streaminghub-pydfds


Namestreaminghub-pydfds JSON
Version 0.1.34 PyPI version JSON
download
home_page
SummaryParser for Data Flow Description Schema (DFDS) metadata
upload_time2024-01-04 03:44:32
maintainer
docs_urlNone
author
requires_python>=3.10
licenseCopyright (c) 2023 Old Dominion University Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: This work shall be cited in the bibliography as: Yasith Jayawardana, Vikas G. Ashok, and Sampath Jayarathna. 2022. StreamingHub: interactive stream analysis workflows. In Proceedings of the 22nd ACM/IEEE Joint Conference on Digital Libraries (JCDL '22). Association for Computing Machinery, New York, NY, USA, Article 15, 1-10. https://doi.org/10.1145/3529372.3530936 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords dfds metadata parser
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PyDFDS

<img src="https://i.imgur.com/xSieE3V.png" height="100px">

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

## Installation

```bash

pip install streaminghub-pydfds==0.1.34

```

## Usage

```python

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

```bash

# 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/*

```

## Copyright

```
Copyright (c) 2023 Old Dominion University

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

This work shall be cited in the bibliography as:

    Yasith Jayawardana, Vikas G. Ashok, and Sampath Jayarathna. 2022.
    StreamingHub: interactive stream analysis workflows. In Proceedings of
    the 22nd ACM/IEEE Joint Conference on Digital Libraries (JCDL '22).
    Association for Computing Machinery, New York, NY, USA, Article 15, 1-10.
    https://doi.org/10.1145/3529372.3530936

    Yasith Jayawardana and Sampath Jayarathna. 2020. Streaming Analytics and
    Workflow Automation for DFS. In Proceedings of the 20th ACM/IEEE Joint
    Conference on Digital Libraries (JCDL '20).
    Association for Computing Machinery, New York, NY, USA, 513-514.
    https://doi.org/10.1145/3383583.3398589

    Yasith Jayawardana and Sampath Jayarathna. 2019. DFS: A Dataset File
    System for Data Discovering Users. In Proceedings of the 19th ACM/IEEE
    Joint Conference on Digital Libraries in 2019 (JCDL '19).
    Association for Computing Machinery, New York, NY, USA, 355-356.
    https://doi.org/10.1109/JCDL.2019.00068

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "streaminghub-pydfds",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "dfds,metadata,parser",
    "author": "",
    "author_email": "Yasith Jayawardana <yasith@cs.odu.edu>",
    "download_url": "https://files.pythonhosted.org/packages/29/77/fd16f06de8ee4d3e43436ca3f0b4518944cf9d5f3aab76eba06b45c7d6f8/streaminghub-pydfds-0.1.34.tar.gz",
    "platform": null,
    "description": "# PyDFDS\n\n<img src=\"https://i.imgur.com/xSieE3V.png\" height=\"100px\">\n\nPyDFDS is a parser for Data Flow Description Schema (DFDS) metadata, written using Python.\n\n## Installation\n\n```bash\n\npip install streaminghub-pydfds==0.1.34\n\n```\n\n## Usage\n\n```python\n\nfrom dfds import Parser\nfrom dfds.typing import Collection, Stream\nfrom util import restream_data\n\n# define a DFDS parser\nparser = Parser()\n\n# open a DFDS collection\nfp = \"/path/to/collection.json\"\ncollection = parser.get_collection_metadata(fp)\ndataloader = collection.dataloader()\n\n# list all items in the collection\nfor attrs in dataloader.ls():\n  for stream_id, stream in collection.streams.items():\n      pass\n\n# read an entire recording at once\nattrs, data = dataloader.read(stream.attrs)\n\n# or replay the recording as a stream\nasyncio.create_task(replay_data(collection, stream))\n\nreturn streams\n\n```\n\n## Developer Guide\n\n```bash\n\n# create a virtual environment\npython -m venv ~/.virtualenvs/pydfds\n# activate virtual environment\nsource ~/.virtualenvs/pydfds/bin/activate\n# install pip tools\npython -m pip install --upgrade pip-tools\n# generate requirements.txt\npip-compile --strip-extras -o requirements.txt pyproject.toml\npip-compile --strip-extras --extra dev -o requirements.dev.txt pyproject.toml\n# install dependencies\npip-sync requirements.txt requirements.dev.txt\n# update version (--patch or --minor or --major)\nbumpver update --patch\n# build package\npython -m build\n# check package\npython -m twine check dist/*\n# publish package (testpypi)\npython -m twine upload -r testpypi dist/*\n# publish package (pypi)\npython -m twine upload dist/*\n\n```\n\n## Copyright\n\n```\nCopyright (c) 2023 Old Dominion University\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThis work shall be cited in the bibliography as:\n\n    Yasith Jayawardana, Vikas G. Ashok, and Sampath Jayarathna. 2022.\n    StreamingHub: interactive stream analysis workflows. In Proceedings of\n    the 22nd ACM/IEEE Joint Conference on Digital Libraries (JCDL '22).\n    Association for Computing Machinery, New York, NY, USA, Article 15, 1-10.\n    https://doi.org/10.1145/3529372.3530936\n\n    Yasith Jayawardana and Sampath Jayarathna. 2020. Streaming Analytics and\n    Workflow Automation for DFS. In Proceedings of the 20th ACM/IEEE Joint\n    Conference on Digital Libraries (JCDL '20).\n    Association for Computing Machinery, New York, NY, USA, 513-514.\n    https://doi.org/10.1145/3383583.3398589\n\n    Yasith Jayawardana and Sampath Jayarathna. 2019. DFS: A Dataset File\n    System for Data Discovering Users. In Proceedings of the 19th ACM/IEEE\n    Joint Conference on Digital Libraries in 2019 (JCDL '19).\n    Association for Computing Machinery, New York, NY, USA, 355-356.\n    https://doi.org/10.1109/JCDL.2019.00068\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n```\n",
    "bugtrack_url": null,
    "license": "Copyright (c) 2023 Old Dominion University  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  This work shall be cited in the bibliography as:  Yasith Jayawardana, Vikas G. Ashok, and Sampath Jayarathna. 2022. StreamingHub: interactive stream analysis workflows. In Proceedings of the 22nd ACM/IEEE Joint Conference on Digital Libraries (JCDL '22). Association for Computing Machinery, New York, NY, USA, Article 15, 1-10. https://doi.org/10.1145/3529372.3530936  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Parser for Data Flow Description Schema (DFDS) metadata",
    "version": "0.1.34",
    "project_urls": {
        "homepage": "https://github.com/nirdslab/streaminghub/tree/master/pydfds"
    },
    "split_keywords": [
        "dfds",
        "metadata",
        "parser"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2038d1f1ba1804c54e52a89528bcab312f81eff02454c7853f840a81fc9befc5",
                "md5": "a886feb83bd5e966c81d3b437a885d7f",
                "sha256": "0fa8cd82a873ea426ed20e459d7fc61ccebee7bd0c67452c54323eca20247fa4"
            },
            "downloads": -1,
            "filename": "streaminghub_pydfds-0.1.34-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a886feb83bd5e966c81d3b437a885d7f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 10868,
            "upload_time": "2024-01-04T03:44:30",
            "upload_time_iso_8601": "2024-01-04T03:44:30.432580Z",
            "url": "https://files.pythonhosted.org/packages/20/38/d1f1ba1804c54e52a89528bcab312f81eff02454c7853f840a81fc9befc5/streaminghub_pydfds-0.1.34-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2977fd16f06de8ee4d3e43436ca3f0b4518944cf9d5f3aab76eba06b45c7d6f8",
                "md5": "e110646b15b99ff8145cc63e5edbb971",
                "sha256": "1438749f8f551e41d101c31339b65cd24ebd9dda0c0598337e3e1630f349e336"
            },
            "downloads": -1,
            "filename": "streaminghub-pydfds-0.1.34.tar.gz",
            "has_sig": false,
            "md5_digest": "e110646b15b99ff8145cc63e5edbb971",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 10985,
            "upload_time": "2024-01-04T03:44:32",
            "upload_time_iso_8601": "2024-01-04T03:44:32.468977Z",
            "url": "https://files.pythonhosted.org/packages/29/77/fd16f06de8ee4d3e43436ca3f0b4518944cf9d5f3aab76eba06b45c7d6f8/streaminghub-pydfds-0.1.34.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-04 03:44:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nirdslab",
    "github_project": "streaminghub",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "streaminghub-pydfds"
}
        
Elapsed time: 0.16410s