Skip to main content

Parser for Data Flow Description Schema (DFDS) metadata

Project description

PyDFDS

PyDFDS is a parser for Data Flow Description Schema (DFDS) metadata, written using Python.

Installation

pip install streaminghub-pydfds==0.1.19

Usage

from dfds import Parser
from dfds.typing import Collection, Stream
from util import restream_data

# define a DFDS parser
parser = Parser()

# open a DFDS collection
fp = "/path/to/collection.json"
collection = parser.get_collection_metadata(fp)
dataloader = collection.dataloader()

# list all items in the collection
for attrs in dataloader.ls():
  for stream_id, stream in collection.streams.items():
      pass

# read an entire recording at once
attrs, data = dataloader.read(stream.attrs)

# or replay the recording as a stream
asyncio.create_task(replay_data(collection, stream))

return streams

Developer Guide

# create a virtual environment
python -m venv ~/.virtualenvs/pydfds
# activate virtual environment
source ~/.virtualenvs/pydfds/bin/activate
# install pip tools
python -m pip install --upgrade pip-tools
# generate requirements.txt
pip-compile -o requirements.txt pyproject.toml
pip-compile --extra dev -o requirements.dev.txt pyproject.toml
# install dependencies
pip-sync requirements.txt requirements.dev.txt
# update version (--patch or --minor or --major)
bumpver update --patch
# build package
python -m build
# check package
python -m twine check dist/*
# publish package (testpypi)
python -m twine upload -r testpypi dist/*
# publish package (pypi)
python -m twine upload dist/*

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

streaminghub-pydfds-0.1.19.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streaminghub_pydfds-0.1.19-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file streaminghub-pydfds-0.1.19.tar.gz.

File metadata

  • Download URL: streaminghub-pydfds-0.1.19.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for streaminghub-pydfds-0.1.19.tar.gz
Algorithm Hash digest
SHA256 87819a2dd900dd9cb360313aac7c8872c822abc3e9466d50f30344cf2b4eaf5a
MD5 799b1d1fbdb2e4802ba64707d9b5e9c5
BLAKE2b-256 474994d0b4178b4c575ba8dba459e102b5444af5bce32182b135e8a6b623c61b

See more details on using hashes here.

File details

Details for the file streaminghub_pydfds-0.1.19-py3-none-any.whl.

File metadata

File hashes

Hashes for streaminghub_pydfds-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 1b9b5291d852ab106590a6814a17557760fb6ff664448602ba31854bb5cfa428
MD5 ba0150af664c63e270f09c460e972a7d
BLAKE2b-256 a2b89835c510bbdaf32f1ebdff6a72db85508b06d44c319f848f80c81aba204e

See more details on using hashes here.

Supported by

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