Skip to main content

Normalized data schema for the output of the vaccine-feed-ingest pipeline.

Project description

vaccine-feed-ingest-schema

PyPI Changelog License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vaccine-feed-ingest-schema-1.2.2.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file vaccine-feed-ingest-schema-1.2.2.tar.gz.

File metadata

  • Download URL: vaccine-feed-ingest-schema-1.2.2.tar.gz
  • Upload date:
  • Size: 8.5 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

Hashes for vaccine-feed-ingest-schema-1.2.2.tar.gz
Algorithm Hash digest
SHA256 571504612a60dfb07bd0226b48ccac3eb27f0df35555221784d172139cbb1a77
MD5 2d6c631b7577fed05d686e26b6a506e2
BLAKE2b-256 8f0d39af017d736e0c7d2f9c9adc5a2bdd785f3701d6b6fd1813a5988611727d

See more details on using hashes here.

File details

Details for the file vaccine_feed_ingest_schema-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: vaccine_feed_ingest_schema-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 9.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

Hashes for vaccine_feed_ingest_schema-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 75e5087e04b194d75306982dedb9cc22ed2c4fedb93a7fd02f4c7af94485f0dd
MD5 a91395f27b53c85a8a381ad4228c471e
BLAKE2b-256 a19a53c4e08d2c59930a3eed58afe260b49d54c44e0fea3e14def13a5fc6edf4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page