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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5968672b2aef3c18f581de9cf7e42d7816a1a1e8df782be42836411f0a1146b8 |
|
MD5 | 5634749eede08c5e4fd65f4f7a0a12d6 |
|
BLAKE2b-256 | 8189efc279a3e3cc53c847bb1f4ebf55f63d35905844709f362b1b4f73dc6720 |
Close
Hashes for vaccine_feed_ingest_schema-1.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbcb2fa7a4e5256519740cb6f2002c97e06cf69445f3b65ccb01e9e315d248e4 |
|
MD5 | 53900f88147f412bbcdc91ab44574b64 |
|
BLAKE2b-256 | 0ec1309f53ba935dcb69e9c4579e70a8462ff57fe069fb6a206f92c27b234490 |