Normalized data schema for the output of the vaccine-feed-ingest pipeline.
Project description
vaccine-feed-ingest-schema
Normalized data schema for the output of the vaccine-feed-ingest pipeline.
Installation
Install this library using pip
:
pip install vaccine-feed-ingest-schema
Usage
Import this package then use it to construct normalized objects with type enforcement.
from vaccine_feed_ingest_schema import location
location.NormalizedLocation(
id="vaccinebot:uuid-for-site",
source=location.Source(
source="vaccinebot",
id="uuid-for-site",
fetched_from_uri="https://vaccinateTheStates.com",
published_at="2021-01-13T00:00:00-08:00",
data={},
)
)
For more details on the schema, read the inline comments or the
vaccine-feed-ingest
wiki.
Development
To contribute to this library, first checkout the code. Then create a new virtual environment:
cd vaccine-feed-ingest-schema
python -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies, linters, and tests:
pip install -e '.[lint,test]'
To run code formatters:
isort .
black .
To run linters:
mypy .
flake8 vaccine_feed_ingest_schema
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for vaccine-feed-ingest-schema-1.2.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1469a8040be6586577723ef15d959196f3d29b4d0a355b064618d9a608f22455 |
|
MD5 | be13db375ce5689290743da919c5ca3f |
|
BLAKE2b-256 | 34b128291df9084095035df7db5df45ff4ed6aad5d2e20d00872049946899bf2 |
Close
Hashes for vaccine_feed_ingest_schema-1.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff304e97a7cce07f02d4e6f31deae14c6af516a4af2a3e5d1bdf83284a4fdd22 |
|
MD5 | f0f026397569957c8af00d07392e78f2 |
|
BLAKE2b-256 | aab192e76cfa4717261c2ad586f74877756d43b2e6254240ed416484e7c9b64e |