{"id":23768535,"url":"https://github.com/nci-gdc/cdisutils","last_synced_at":"2026-01-25T00:02:34.448Z","repository":{"id":19601619,"uuid":"22852450","full_name":"NCI-GDC/cdisutils","owner":"NCI-GDC","description":"Utility modules for GDC functionality","archived":false,"fork":false,"pushed_at":"2024-08-12T20:54:21.000Z","size":422,"stargazers_count":1,"open_issues_count":14,"forks_count":2,"subscribers_count":26,"default_branch":"develop","last_synced_at":"2025-09-05T13:51:21.138Z","etag":null,"topics":["core","library"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NCI-GDC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2014-08-11T19:47:48.000Z","updated_at":"2024-08-12T20:53:39.000Z","dependencies_parsed_at":"2024-06-27T00:36:26.002Z","dependency_job_id":"5bb898e6-b4d3-4fee-8577-6d6f892579c5","html_url":"https://github.com/NCI-GDC/cdisutils","commit_stats":null,"previous_names":[],"tags_count":64,"template":false,"template_full_name":null,"purl":"pkg:github/NCI-GDC/cdisutils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCI-GDC%2Fcdisutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCI-GDC%2Fcdisutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCI-GDC%2Fcdisutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCI-GDC%2Fcdisutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NCI-GDC","download_url":"https://codeload.github.com/NCI-GDC/cdisutils/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCI-GDC%2Fcdisutils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28739321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T22:12:27.248Z","status":"ssl_error","status_checked_at":"2026-01-24T22:12:10.529Z","response_time":89,"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":["core","library"],"created_at":"2025-01-01T01:37:21.605Z","updated_at":"2026-01-25T00:02:34.417Z","avatar_url":"https://github.com/NCI-GDC.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commitlogoColor=white)](https://github.com/pre-commit/pre-commit)\n\n---\n# cdisutils\n\nVarious utilities useful for working on cdis systems.\n\n\n- [cdisutils](#cdisutils)\n  - [`cdisutils.net`](#cdisutilsnet)\n    - [`no_proxy`](#no_proxy)\n  - [`cdisutils.storage3`](#cdisutilsstorage3)\n    - [`is_probably_swift_segments(obj)`](#is_probably_swift_segmentsobj)\n    - [`swift_stream(obj)`](#swift_streamobj)\n  - [`cdisutils.log`](#cdisutilslog)\n    - [`get_logger(name)`](#get_loggername)\n  - [`cdisutils.tungsten`](#cdisutilstungsten)\n- [Setup pre-commit hook to check for secrets](#setup-pre-commit-hook-to-check-for-secrets)\n- [contributing](#contributing)\n\n---\n\nA few modules:\n\n## `cdisutils.net`\n\nNetworking utilities.\n\n### `no_proxy`\n\nfunction that can be used as a decorator or a context manager to\ntemporarily disable the pdc http_proxy\n\n## `cdisutils.storage3`\n\nFor working with storage via apache libcloud\n\n### `is_probably_swift_segments(obj)`\n\nTakes a libcloud storage Object, tells you if it's probably one of\nOpenStack Swift's goofy segment indicator JSON blobs\n\n### `swift_stream(obj)`\n\nGiven a libcloud storage object containing one of the aforementioned\nJSON blobs, gives you a stream to the data you actually wanted.\n\n## `cdisutils.log`\n\nSimple logging setup.\n\n### `get_logger(name)`\n\nReturns a basic stdlib `Logger` object that logs to stdout with a\nreasonable format string, set to level INFO.\n\n## `cdisutils.tungsten`\n\nUtilities for working with tungsten provisioned machines\n\n# Setup pre-commit hook to check for secrets\n\nWe use [pre-commit](https://pre-commit.com/) to setup pre-commit hooks for this repo.\nWe use [detect-secrets](https://github.com/Yelp/detect-secrets) to search for secrets being committed into the repo.\n\nTo install the pre-commit hook, run\n```\npre-commit install\n```\n\nTo update the .secrets.baseline file run\n```\ndetect-secrets scan --update .secrets.baseline\n```\n\n`.secrets.baseline` contains all the string that were caught by detect-secrets but are not stored in plain text. Audit the baseline to view the secrets .\n\n```\ndetect-secrets audit .secrets.baseline\n```\n# contributing\n\nRead how to contribute [here](https://github.com/nci-gdc/gdcapi/blob/master/contributing.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnci-gdc%2Fcdisutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnci-gdc%2Fcdisutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnci-gdc%2Fcdisutils/lists"}