{"id":41114238,"url":"https://github.com/grzegorzme/data-toolz","last_synced_at":"2026-01-22T16:19:44.917Z","repository":{"id":42462422,"uuid":"319584859","full_name":"grzegorzme/data-toolz","owner":"grzegorzme","description":"simple python library for handling data-io tasks","archived":false,"fork":false,"pushed_at":"2023-08-30T13:24:02.000Z","size":112,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-08T13:21:55.523Z","etag":null,"topics":["data","data-wrangling","filesystem","python","python3","s3","tooling"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grzegorzme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-08T09:11:05.000Z","updated_at":"2022-09-07T06:02:46.000Z","dependencies_parsed_at":"2023-02-17T20:31:20.063Z","dependency_job_id":null,"html_url":"https://github.com/grzegorzme/data-toolz","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/grzegorzme/data-toolz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grzegorzme%2Fdata-toolz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grzegorzme%2Fdata-toolz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grzegorzme%2Fdata-toolz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grzegorzme%2Fdata-toolz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grzegorzme","download_url":"https://codeload.github.com/grzegorzme/data-toolz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grzegorzme%2Fdata-toolz/sbom","scorecard":{"id":447005,"data":{"date":"2025-08-11","repo":{"name":"github.com/grzegorzme/data-toolz","commit":"917873cc0d1a94abc856c8929f26db50664e7743"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/dev.yaml:1","Warn: no topLevel permission defined: .github/workflows/master.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dev.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/grzegorzme/data-toolz/dev.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dev.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/grzegorzme/data-toolz/dev.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/master.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/grzegorzme/data-toolz/master.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/master.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/grzegorzme/data-toolz/master.yaml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/dev.yaml:23","Warn: pipCommand not pinned by hash: .github/workflows/master.yaml:22","Warn: pipCommand not pinned by hash: .github/workflows/master.yaml:23","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"27 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: GHSA-3ww4-gg4f-jr7f","Warn: Project is vulnerable to: PYSEC-2024-225 / GHSA-6vqw-3v5j-54x4","Warn: Project is vulnerable to: GHSA-9v9h-cgj8-h64p","Warn: Project is vulnerable to: GHSA-h4gh-qq45-vh27","Warn: Project is vulnerable to: PYSEC-2023-254 / GHSA-jfhm-5ghh-2f97","Warn: Project is vulnerable to: GHSA-v8gr-m533-ghj9","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-gmj6-6f8f-6699","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: PYSEC-2023-238 / GHSA-5wvp-7f3h-6wmm","Warn: Project is vulnerable to: PYSEC-2024-161","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: GHSA-2g68-c3qc-8985","Warn: Project is vulnerable to: GHSA-f9vj-2wh5-fj8j","Warn: Project is vulnerable to: PYSEC-2023-221 / GHSA-hrfv-mqp8-q5rw","Warn: Project is vulnerable to: GHSA-q34m-jh98-gwm2","Warn: Project is vulnerable to: PYSEC-2020-73"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T07:02:20.920Z","repository_id":42462422,"created_at":"2025-08-19T07:02:20.920Z","updated_at":"2025-08-19T07:02:20.920Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28666536,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T14:01:31.714Z","status":"ssl_error","status_checked_at":"2026-01-22T13:59:23.143Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","data-wrangling","filesystem","python","python3","s3","tooling"],"created_at":"2026-01-22T16:19:44.267Z","updated_at":"2026-01-22T16:19:44.910Z","avatar_url":"https://github.com/grzegorzme.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"data-toolz\n==========\nThis repository contains reusable python code for data projects.\n\nThe motivation for this project was to create a package which allows to abstract dataset read/write operations from \n* destination type (`local`, `s3`, `\u003ctbd...\u003e`) and \n* target file type (`delimiter-separated values`, `jsonlines`, `parquet`)\n\nThis would allow to write code easily transferable between local and cloud applications.\n\n\ninstallation\n============\n```shell script\npip install data-toolz\n```\n\nusage\n=====\n\n`datatoolz.filesystem.FileSystem` class gives you an abstraction for accesing both local and remote object using the well know pythonic `open()` interface.\n\n```python\nfrom datatoolz.filesystem import FileSystem\n\nfor fs_type in (\"local\", \"s3\"):\n    fs = FileSystem(name=fs_type)\n\n    # common pythonic interface for both local and remote file systems\n    with fs.open(\"my-folder-or-bucket/my-file\", mode=\"wt\") as fo:\n        fo.write(\"Hello World!\")\n```\n---\n`datatoolz.io.DataIO` class gives you a versatile Reader/Writer interface for handling of typical data files (`jsonlines`, `dsv`, `parquet`)\n\n```python\nimport pandas as pd\nfrom datatoolz.io import DataIO\n\ndf = pd.DataFrame({\"col1\": [1, 2, 3], \"col2\": [\"a\", \"b\", \"c\"]})\n\ndio = DataIO()  # defaults to \"local\" FileSystem\n\n# write as parquet\ndio.write(dataframe=df, path=\"my-file.parquet\", filetype=\"parquet\")\ndio.read(path=\"my-file.parquet\", filetype=\"parquet\")\n\n# write as gzip-compressed jsonlines\ndio.write(dataframe=df, path=\"my-file.json.gz\", filetype=\"jsonlines\", gzip=True)\ndio.read(path=\"my-file.json.gz\", filetype=\"jsonlines\", gzip=True)\n\n# write as delimiter-separated-values in multiple partitions\ndio.write(dataframe=df, path=\"my-file.tsv\", filetype=\"dsv\", sep=\"\\t\", partition_by=[\"col1\"])\ndio.read(path=\"my-file.tsv\", filetype=\"dsv\", sep=\"\\t\")\n\n# write output in multiple chunks per partition\ndio.write(dataframe=df, path=\"my-prefix\", filetype=\"dsv\", sep=\"\\t\", partition_by=[\"col1\"], suffix=[\"chunk01.tsv\", \"chunk02.tsv\"])\ndio.read(path=\"my-prefix\", filetype=\"dsv\", sep=\"\\t\")\n```\n---\n`datatoolz.logging.JsonLogger` is a wrapper logger for outputting JSON-structured logs\n```python\nfrom datatoolz.logging import JsonLogger\n\nlogger = JsonLogger(name=\"my-custom-logger\", env=\"dev\")\nlogger.info(msg=\"what is my purpose?\", meaning_of_life=42)\n```\n```\n{\"logger\": {\"application\": \"my-custom-logger\", \"environment\": \"dev\"}, \"level\": \"info\", \"timestamp\": \"2020-11-03 18:31:07.757534\", \"message\": \"what is my purpose?\", \"extra\": {\"meaning_of_life\": 42}}\n```\nIt can also be used to decorate functions and log their execution details\n```python\nfrom datatoolz.logging import JsonLogger\n\nlogger = JsonLogger(name=\"my-custom-logger\", env=\"dev\")\n\n@logger.decorate(msg=\"my-custom-log\", duration=True, memory=True, my_value=\"my-value\", output_length=lambda x: len(x))\ndef my_func(x, y):\n    return x + y, x * y\n\nprint(my_func(42, 2))\n```\n```\n{\"logger\": {\"application\": \"my-custom-logger\", \"environment\": \"dev\"}, \"level\": \"info\", \"timestamp\": \"2021-03-24 18:10:47.054703\", \"message\": \"my-custom-log\", \"extra\": {\"function\": \"my_func\", \"memory\": {\"current\": 432, \"peak\": 432}, \"duration\": 2.5980000000203063e-06, \"my_value\": \"my-value\", \"output_length\": 2}}\n(44, 84)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrzegorzme%2Fdata-toolz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrzegorzme%2Fdata-toolz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrzegorzme%2Fdata-toolz/lists"}