{"id":15722130,"url":"https://github.com/mischau8/datasette-annotate","last_synced_at":"2025-03-30T23:43:27.810Z","repository":{"id":159840396,"uuid":"632834081","full_name":"MischaU8/datasette-annotate","owner":"MischaU8","description":"Datasette plugin for annotating / labelling your training data","archived":false,"fork":false,"pushed_at":"2023-05-01T19:40:26.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T23:43:24.995Z","etag":null,"topics":["annotation-tool","datasette","datasette-io","datasette-plugin","machine-learning","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MischaU8.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-26T08:21:38.000Z","updated_at":"2023-07-04T14:39:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"974a14fd-7d87-4e3f-b78b-80f78ad7679f","html_url":"https://github.com/MischaU8/datasette-annotate","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"8f45085ffebdc44490597b1c26b4eeeb72b4df24"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MischaU8%2Fdatasette-annotate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MischaU8%2Fdatasette-annotate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MischaU8%2Fdatasette-annotate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MischaU8%2Fdatasette-annotate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MischaU8","download_url":"https://codeload.github.com/MischaU8/datasette-annotate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246395572,"owners_count":20770240,"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","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":["annotation-tool","datasette","datasette-io","datasette-plugin","machine-learning","sqlite"],"created_at":"2024-10-03T22:04:11.792Z","updated_at":"2025-03-30T23:43:27.791Z","avatar_url":"https://github.com/MischaU8.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# datasette-annotate\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-annotate.svg)](https://pypi.org/project/datasette-annotate/)\n[![Changelog](https://img.shields.io/github/v/release/MischaU8/datasette-annotate?include_prereleases\u0026label=changelog)](https://github.com/MischaU8/datasette-annotate/releases)\n[![Tests](https://github.com/MischaU8/datasette-annotate/workflows/Test/badge.svg)](https://github.com/MischaU8/datasette-annotate/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/MischaU8/datasette-annotate/blob/main/LICENSE)\n\nDatasette plugin for annotating / labelling your training data.\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n\n    datasette install datasette-annotate\n\nOnly the [root actor](https://docs.datasette.io/en/stable/authentication.html#using-the-root-actor) will have access to create (write) annotations.\n\n## Usage\n\nYou can start the annotation process by going to the `/database_name/table_name/-/annotate` page. This table should be configured to specify which annotation labels can be selected, see below. Annotations will be written to the table `table_name_annotations`.\n\n### Configuration\n\nTo add annotations for a table it must have a primary key column. The possible labels for each table should be configured by adding the following settings to the `metadata.json`:\n\n```json\n{\n    \"databases\": {\n        \"my_database\": {\n            \"tables\": {\n                \"training_data\": {\n                    \"plugins\": {\n                        \"datasette-annotate\": {\n                            \"labels\": [\"ABSTAIN\", \"HAM\", \"SPAM\"]\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n```\n\nIf you are using `metadata.yml` the configuration should look like this:\n\n```yaml\ndatabases:\n  my_database:\n    tables:\n      training_data:\n        plugins:\n          datasette-annotate:\n            labels:\n              - ABSTAIN\n              - HAM\n              - SPAM\n```\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n\n    cd datasette-annotate\n    python3 -m venv venv\n    source venv/bin/activate\n\nNow install the dependencies and test dependencies:\n\n    pip install -e '.[test]'\n\nTo run the tests:\n\n    pytest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmischau8%2Fdatasette-annotate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmischau8%2Fdatasette-annotate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmischau8%2Fdatasette-annotate/lists"}