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
File details
Details for the file vaccine-feed-ingest-schema-1.2.5.tar.gz
.
File metadata
- Download URL: vaccine-feed-ingest-schema-1.2.5.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e687055c307ca555c3d86840bdeadf26bbc94447806f574f0fec2f4722144d63 |
|
MD5 | aec849faad5e0721deca55eae9eece2c |
|
BLAKE2b-256 | 46eee880aaf51654c36a3abdd29bec353dfb0158dcbc9a9fb79167c8c06154e5 |
File details
Details for the file vaccine_feed_ingest_schema-1.2.5-py3-none-any.whl
.
File metadata
- Download URL: vaccine_feed_ingest_schema-1.2.5-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5efe9b6fd40040bb73a97ccbaa13c0708254a3605c83792037fd7925db58ca84 |
|
MD5 | 0f8c033e3bd27a16353bb8c3d927bfe8 |
|
BLAKE2b-256 | 5e89877dfb7682568eec240c9ebaf2208f4e7f99888aacc574acf95e0ad505ab |