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-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a7f31d13acdc36d9ebcd8076d71e7ef82375b23dbc0065832fe91453254d851 |
|
MD5 | 1593ac291bf5df999d630fdb8bc830e9 |
|
BLAKE2b-256 | f0c2211d5c5b79151716167ad76f53cab148515414a3e3f76a1d1ab338b8eeab |
Close
Hashes for vaccine_feed_ingest_schema-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 157799ecc1ac10aac2b4ce825fffd761096726af98d8059f25f31122765c6f7a |
|
MD5 | b0ec754891da68d21cb5ca4e11440539 |
|
BLAKE2b-256 | 0cafc1364c5c88f9fda6c2acc0024c8cf9c86bd8224913bfe89fd479932de326 |