{"id":19722014,"url":"https://github.com/datajoint/datajoint-addons","last_synced_at":"2025-07-23T10:05:18.896Z","repository":{"id":51085402,"uuid":"46578529","full_name":"datajoint/datajoint-addons","owner":"datajoint","description":"Addons for datajoint-python","archived":false,"fork":false,"pushed_at":"2021-05-24T15:03:15.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-06-05T20:49:34.193Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datajoint.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-20T18:08:31.000Z","updated_at":"2021-05-24T15:03:17.000Z","dependencies_parsed_at":"2022-09-17T17:01:13.066Z","dependency_job_id":null,"html_url":"https://github.com/datajoint/datajoint-addons","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/datajoint/datajoint-addons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datajoint%2Fdatajoint-addons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datajoint%2Fdatajoint-addons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datajoint%2Fdatajoint-addons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datajoint%2Fdatajoint-addons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datajoint","download_url":"https://codeload.github.com/datajoint/datajoint-addons/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datajoint%2Fdatajoint-addons/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266657954,"owners_count":23963602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T23:16:13.668Z","updated_at":"2025-07-23T10:05:18.850Z","avatar_url":"https://github.com/datajoint.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# datajoint-addons\n\nA collection of addons and nice-to-haves for datajoint-python\n\n## gitlog\n\nA decorator for datajoint tables. Here is an example how to use it\n\n```python\n\n  import datajoint as dj\n  from djaddon import gitlog\n\n  schema = dj.schema('mydb',locals())\n\n  @schema\n  @gitlog\n  class MyRelation(dj.Computed):\n      definition = \"\"\"\n      # example table\n      -\u003eSomeForeignKey\n      idx     : int # some index\n      ---\n      value   : double # some value\n      \"\"\"\n\n      def _make_tuples(self, key):\n        ...\n```\n\nThe `@gitlog` decorator will add a member class called `GitKey` with tier `dj.Part` to `MyRelation` that stores the sha1, the branch, and whether currently modified files exist for the directory `MyRelation` lives in for each entry computed with `_make_tuples`.\n\n## hdf5\n\nAdds the functions `to_hdf5` and `read_hdf5` to a relation. These functions can save and load the table to and from hdf5 files.\n\n```python\n import datajoint as dj\n from djaddon import hdf5\n\n schema = dj.schema('mydb',locals())\n\n @schema\n @hdf5\n class MyRelation(dj.Computed):\n     definition = ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatajoint%2Fdatajoint-addons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatajoint%2Fdatajoint-addons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatajoint%2Fdatajoint-addons/lists"}