Skip to main content

PyDFDS

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

Installation

pip install streaminghub-pydfds==0.1.40

Usage

from streaminghub_pydfds import Parser
from streaminghub_pydfds.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 --strip-extras -o requirements.txt pyproject.toml
pip-compile --strip-extras --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/*

Metadata

Release files for streaminghub-pydfds 0.1.40

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streaminghub-pydfds 0.1.40
File Size Uploaded Provenance Actions
streaminghub_pydfds-0.1.40.tar.gz 10.8 kB Without provenance Details for streaminghub_pydfds-0.1.40.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for streaminghub-pydfds 0.1.40
File Interpreter ABI Platform Actions
streaminghub_pydfds-0.1.40-py3-none-any.whl Python 3 none any Details for streaminghub_pydfds-0.1.40-py3-none-any.whl

Total release size: 22.1 kB

Release files / streaminghub_pydfds-0.1.40.tar.gz

Download URL streaminghub_pydfds-0.1.40.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8bae3b8cbf689df017e8197ba927044d2aa7ee4ed0e1d41be2458675f2b337e0
BLAKE2b-256 checksum
How to use checksums
902106117f81bbce5df01af571ca084d06c6ec1adcc7afee5fd46aff2fdd475a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / streaminghub_pydfds-0.1.40-py3-none-any.whl

Download URL streaminghub_pydfds-0.1.40-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e0042bf143b84301403871361f0dbca01f4b6150543b771424c0adcb2561b95
BLAKE2b-256 checksum
How to use checksums
0fa1f4f4756aa58a874c459c42de5133319340fc1e045e621108dda6812a0c79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Security for streaminghub-pydfds 0.1.40

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page