datasette-socrata
Import data from Socrata into Datasette
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-socrata
Usage
Make sure you have enabled WAL mode on your database files before using this plugin.
Once installed, an interface for importing data from Socrata will become available at this URL:
/-/import-socrata
Users will be able to paste in a URL to a dataset on Socrata in order to initialize an import.
You can also pre-fill the form by passing a ?url= parameter, for example:
/-/import-socrata?url=https://data.sfgov.org/City-Infrastructure/Street-Tree-List/tkzw-k3nq
Any database that is attached to Datasette, is NOT loaded as immutable (with the -i option) and that has WAL mode enabled will be available for users to import data into.
The import-socrata permission governs access. By default the root actor (accessible using datasette --root to start Datasette) is granted that permission.
You can use permission plugins such as datasette-permissions-sql to grant additional access to other users.
Configuration
If you only want Socrata imports to be allowed to a specific database, you can configure that using plugin configration in metadata.yml:
plugins:
datasette-socrata:
database: socrata
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-socrata
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-socrata 0.3.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 | |
|---|---|---|---|---|
| datasette-socrata-0.3.1.tar.gz | 12.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datasette_socrata-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.8 kB
Release files / datasette-socrata-0.3.1.tar.gz
| Download URL | datasette-socrata-0.3.1.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63b7ef72a2687972d44b20f82a11168df7bbfaabe44cf21226cfc1c47e21d0dc
|
|
BLAKE2b-256 checksum How to use checksums |
0cc8701ce846e94df332f2ddb25925141d80d8fd701c2653e98ad2b70ad60339
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Release files / datasette_socrata-0.3.1-py3-none-any.whl
| Download URL | datasette_socrata-0.3.1-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
840034b4bcb9c26e39130b8797cd095a544480760926366568e8492a0ae27c5d
|
|
BLAKE2b-256 checksum How to use checksums |
a348d62df67df5b01ddd03ed81bb337bebba47e05323f43c98bf247d7cb36e7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Security for datasette-socrata 0.3.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.