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 schema
schema.NormalizedLocation(
id="vaccinebot:uuid-for-site",
source=schema.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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f84963aac8b1a72da1d8f5d2c834251a78ad3de116110f76982442eb5b8f4758 |
|
MD5 | 2aadc2a157fd75c35b5aebf7a2336854 |
|
BLAKE2b-256 | a444c86d025017a7e9cbbbb678716d33bde9fc77e227956a67a8cff6e7c75e0a |
Close
Hashes for vaccine_feed_ingest_schema-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b666618ee144ce85324bed756d768f6671f5dc792f9b84b4d1690dcc372bbbaf |
|
MD5 | a6aecfde4cbb5d163c667530e54d4e7d |
|
BLAKE2b-256 | 43652e42a6898c4ed8c035de78f610792a49fe5aecae2450a60af00629ddba8f |