udata-transport
This plugin acts as a bridge between udata and transport.data.gouv.fr system.
Compatibility
udata-transport requires Python 3.7+ and udata.
Installation
Install udata.
Remain in the same virtual environment (for Python).
Install udata-transport:
pip install udata-transport
Modify your local configuration file of udata (typically, udata.cfg) as following:
PLUGINS = ['transport']
TRANSPORT_DATASETS_URL = 'https://path/to/transport.data.gouv.fr/datasets/api'
TRANSPORT_DATASETS_URL: The URL of the API endpoint listing datasets on transport.data.gouv.fr. Default:https://transport.data.gouv.fr/api/datasets
Usage
Mapping dataset
The mapping is done by a job, runnable by hand or scheduled. The job is idempotent, previous URLs are cleaned before mapping new ones.
udata job run map-transport-datasets
This plugin will store the mapping URL in the dataset extras transport:url key:
{
"id": "dataset-id",
"extras": {
"transport:url": "https://path/to/datasets"
}
}
Changelog
1.0.1 (2024-02-15)
1.0.0 (2022-03-31)
- Initial version of udata-transport #1
Metadata
Release files for udata-transport 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| udata_transport-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for udata_transport-1.0.1-py3-none-any.whl |
Release files / udata_transport-1.0.1-py3-none-any.whl
| Download URL | udata_transport-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
986266b8142f898d24fcbf2c38549588d750c553c165f7d23e87e0e7011e9a31
|
|
BLAKE2b-256 checksum How to use checksums |
04fdc638e489fa9cd054c701bf7ac28eb79417839367700a210fbf6cb71e556e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.9.6 requests/2.24.0 setuptools/66.1.1 requests-toolbelt/1.0.0 tqdm/4.66.1 CPython/3.7.6
|
Security for udata-transport 1.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.