datasette-permissions-metadata
Configure permissions for Datasette 0.x in metadata.json
Background
Datasette 1.0 will introduce a new way of configuring permissions using YAML or JSON directly in the Datasette datasette.yml configuration file.
This plugin makes a similar ability available to the Datasette 0.64+ series of releases, by allowing a permissions key to be added to the metadata.json or metadata.yml file used with that version of Datasette.
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-permissions-metadata
Configuration
To grant the upload-csvs permission (used by the datasette-upload-csvs plugin) to an user with an id of simon, add the following to metadata.json:
{
"permissions": {
"upload-csvs": {
"id": "simon"
}
}
}
See the documentation on allow blocks for more details on this configuration format.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-permissions-metadata
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Metadata
Release files for datasette-permissions-metadata 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| datasette_permissions_metadata-0.1.tar.gz | 6.7 kB | Without provenance | Details for datasette_permissions_metadata-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datasette_permissions_metadata-0.1-py3-none-any.whl | Python 3 | none | any | Details for datasette_permissions_metadata-0.1-py3-none-any.whl |
Total release size: 13.8 kB
Release files / datasette_permissions_metadata-0.1.tar.gz
| Download URL | datasette_permissions_metadata-0.1.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55dd9465e58177d63299a5d522bda058a0608ee73f26a6767b0e50be9b52e328
|
|
BLAKE2b-256 checksum How to use checksums |
65a4a036709c971d3e45da01401ba5f979ff14a9854b115af5890af3b6d73e85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / datasette_permissions_metadata-0.1-py3-none-any.whl
| Download URL | datasette_permissions_metadata-0.1-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcd0ca83ddb53c9f45ebf49cec5b91f1befe40f6cc1a3f3eda2108aa4535ecd4
|
|
BLAKE2b-256 checksum How to use checksums |
f4d03e3b61adba81afc5e0b1baf4cd0b4d1268dcfeabe225d20b5939236b1c8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for datasette-permissions-metadata 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.