Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Validata API

PyPI

Web API for Validata

Usage

You can use the online instance of Validata:

Several software services compose the Validata stack. The recommended way to run it on your computer is to use Docker. Otherwise you can install each component of this stack manually, for example if you want to contribute by developing a new feature or fixing a bug.

Run with Docker

Read instructions at https://git.opendatafrance.net/validata/validata-docker

Develop

Install

We recommend using venv python standard package:

python -m venv .venv
source .venv/bin/activate

Install the project dependencies (using master branch of validata-core project):

pip install -r requirements.txt
pip install -e .

To use a specific distant git development branch of validata_core :

pip install -r requirements.txt
pip uninstall validata_core
pip install git+https://git.opendatafrance.net/validata/validata-core.git@development-branch
pip install -e .

Configure

cp .env.example .env

Customize the configuration variables in .env file.

Do not commit .env.

See also: https://github.com/theskumar/python-dotenv

Serve

Start the web server...

./serve.sh

... then open http://localhost:5600/

Test the API - example for schema of Infrastructures de recharge pour véhicules électriques

File to validate: https://opendata.paris.fr/explore/dataset/belib-points-de-recharge-pour-vehicules-electriques-donnees-statiques/download?format=csv&timezone=Europe/Berlin&use_labels_for_header=false

Schema used: https://schema.data.gouv.fr/schemas/etalab/schema-irve/2.1.0/schema.json

Validate data (case-sensitive validation of headers):

http://localhost:5600/validate?schema=https%3A%2F%2Fschema.data.gouv.fr%2Fschemas%2Fetalab%2Fschema-irve%2F2.1.0%2Fschema.json&url=https%3A%2F%2Fopendata.paris.fr%2Fexplore%2Fdataset%2Fbelib-points-de-recharge-pour-vehicules-electriques-donnees-statiques%2Fdownload%3Fformat%3Dcsv%26timezone%3DEurope%2FBerlin%26use_labels_for_header%3Dfalse

http://localhost:5600/validate?schema=https%3A%2F%2Fschema.data.gouv.fr%2Fschemas%2Fetalab%2Fschema-irve%2F2.1.0%2Fschema.json&url=https%3A%2F%2Fopendata.paris.fr%2Fexplore%2Fdataset%2Fbelib-points-de-recharge-pour-vehicules-electriques-donnees-statiques%2Fdownload%3Fformat%3Dcsv%26timezone%3DEurope%2FBerlin%26use_labels_for_header%3Dfalse&header_case=True

Validate data (case-insensitive validation of headers):

http://localhost:5600/validate?schema=https%3A%2F%2Fschema.data.gouv.fr%2Fschemas%2Fetalab%2Fschema-irve%2F2.1.0%2Fschema.json&url=https%3A%2F%2Fopendata.paris.fr%2Fexplore%2Fdataset%2Fbelib-points-de-recharge-pour-vehicules-electriques-donnees-statiques%2Fdownload%3Fformat%3Dcsv%26timezone%3DEurope%2FBerlin%26use_labels_for_header%3Dfalse&header_case=False

Release a new version

  • Update version in setup.py and CHANGELOG.md files
  • Commit changes using Release as commit message
  • Create git tag (starting with "v" for the release)
  • Git push: git push && git push --tagss
  • Check that container image is well built and pypi package is created (validata-api pipelines)

Metadata

Release files for Validata-API 0.7.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Validata-API 0.7.4
File Size Uploaded Provenance Actions
Validata-API-0.7.4.tar.gz 19.1 kB Without provenance Details for Validata-API-0.7.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Validata-API 0.7.4
File Interpreter ABI Platform Actions
Validata_API-0.7.4-py3-none-any.whl Python 3 none any Details for Validata_API-0.7.4-py3-none-any.whl

Total release size: 40.6 kB

Release files / Validata-API-0.7.4.tar.gz

Download URL Validata-API-0.7.4.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0438b773c0d58b7eb27efc93458bd550a7c7656a51a69340e97f3e9fa8d1237e
BLAKE2b-256 checksum
How to use checksums
2c88095a161f1cab5a84cd4e129341e4aeffea58d90eb0ee1791d95e56a3fb6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.16

Release files / Validata_API-0.7.4-py3-none-any.whl

Download URL Validata_API-0.7.4-py3-none-any.whl
Size 21.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c574ca1f887962b11f7d254aba08bc3f6b37a71f9858e375cf110fbdda680b1c
BLAKE2b-256 checksum
How to use checksums
b9ce57aff283a4add93a7941d55bf71d36370f85f4f36860e354d3e8a23b4b91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.16

Security for Validata-API 0.7.4

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page