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.1.0.tar.gz
.
File metadata
- Download URL: vaccine-feed-ingest-schema-1.1.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81514c1e5d504001b9f4d80a4436cf413d4175f4082e616bc9e4798875011cbe |
|
MD5 | ce24a40410588cd9ec79dbc4460b0082 |
|
BLAKE2b-256 | 24bfede88f582498b2a2b4be71db89cafa88abffc5dcfc9fd79f8c0fa8b781a5 |
File details
Details for the file vaccine_feed_ingest_schema-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: vaccine_feed_ingest_schema-1.1.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bcabe9a54792c6960b02716165e9b9d1cb951a0fd20a512c43d23b5b3616b9e |
|
MD5 | e5ac639286562d141a41130f6c094a1c |
|
BLAKE2b-256 | 15e6598a2b7892d41873060a720e0e1a31d919fea559f8f8784868d4bcc88df8 |