{"id":19680400,"url":"https://github.com/datasette/datasette-metadata-editable","last_synced_at":"2025-04-29T04:31:30.980Z","repository":{"id":203634789,"uuid":"710064950","full_name":"datasette/datasette-metadata-editable","owner":"datasette","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-16T15:08:06.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-16T22:15:48.527Z","etag":null,"topics":[],"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/datasette.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,"zenodo":null}},"created_at":"2023-10-26T00:21:50.000Z","updated_at":"2025-04-16T15:08:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"59326a0e-290e-4654-a716-d314388d3431","html_url":"https://github.com/datasette/datasette-metadata-editable","commit_stats":null,"previous_names":["datasette/datasette-metadata-editable"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasette%2Fdatasette-metadata-editable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasette%2Fdatasette-metadata-editable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasette%2Fdatasette-metadata-editable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasette%2Fdatasette-metadata-editable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datasette","download_url":"https://codeload.github.com/datasette/datasette-metadata-editable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251432819,"owners_count":21588660,"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":[],"created_at":"2024-11-11T18:05:01.107Z","updated_at":"2025-04-29T04:31:30.731Z","avatar_url":"https://github.com/datasette.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# datasette-metadata-editable\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-metadata-editable.svg)](https://pypi.org/project/datasette-metadata-editable/)\n[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-metadata-editable?include_prereleases\u0026label=changelog)](https://github.com/datasette/datasette-metadata-editable/releases)\n[![Tests](https://github.com/datasette/datasette-metadata-editable/workflows/Test/badge.svg)](https://github.com/datasette/datasette-metadata-editable/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-metadata-editable/blob/main/LICENSE)\n\nA Datasette plugin for editing instance, database and table metadata. Currently requires [Datasette 1.0a14](https://docs.datasette.io/en/latest/changelog.html#a14-2024-08-05) or higher.\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n\n```bash\ndatasette install datasette-metadata-editable\n```\n\n## Usage\n\nThis plugin _must_ be used with a persistent `internal.db` database. If you don't configure Datasette in this way any changes made to metadata will be lost when the server restarts.\n\nBe sure to start Datasette something like this:\n\n```bash\ndatasette --internal internal.db\n```\n\nUsers with the `datasette-metadata-editable-edit` permission will see action menu items for editing the metadata attached to the instance, a database or a table.\n\nAn easy way to test the plugin is like this, which will allow even logged out users to edit metadata:\n\n```bash\ndatasette --internal internal.db -s permissions.datasette-metadata-editable-edit true\n```\nOr to restrict edits to the `root` user:\n```bash\ndatasette --internal internal.db -s permissions.datasette-metadata-editable-edit.id root --root\n```\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n\n```bash\ncd datasette-metadata-editable\npython3 -m venv venv\nsource venv/bin/activate\n```\n\nNow install the dependencies and test dependencies:\n\n```bash\npip install -e '.[test]'\n```\n\nTo run the tests:\n\n```bash\npytest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatasette%2Fdatasette-metadata-editable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatasette%2Fdatasette-metadata-editable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatasette%2Fdatasette-metadata-editable/lists"}