{"id":15940265,"url":"https://github.com/codl/py-devnullaas","last_synced_at":"2025-08-12T21:18:50.247Z","repository":{"id":48688151,"uuid":"141140813","full_name":"codl/py-devnullaas","owner":"codl","description":"python lib to discard data through devnull-as-a-service.com","archived":false,"fork":false,"pushed_at":"2023-05-23T06:17:36.000Z","size":39,"stargazers_count":3,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-30T07:40:43.707Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.org/project/devnullaas","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codl.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2018-07-16T13:14:45.000Z","updated_at":"2023-02-25T16:52:09.000Z","dependencies_parsed_at":"2024-10-07T06:41:09.544Z","dependency_job_id":"72f5c79a-df35-424c-9e50-5edfdc2cbf43","html_url":"https://github.com/codl/py-devnullaas","commit_stats":{"total_commits":36,"total_committers":3,"mean_commits":12.0,"dds":"0.41666666666666663","last_synced_commit":"f36a35ac4598b923d44623100ca3ad2baa45de28"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/codl/py-devnullaas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codl%2Fpy-devnullaas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codl%2Fpy-devnullaas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codl%2Fpy-devnullaas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codl%2Fpy-devnullaas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codl","download_url":"https://codeload.github.com/codl/py-devnullaas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codl%2Fpy-devnullaas/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270135683,"owners_count":24533336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-07T06:40:55.871Z","updated_at":"2025-08-12T21:18:50.221Z","avatar_url":"https://github.com/codl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-devnullaas\n\nis a python library to discard data through \u003chttps://devnull-as-a-service.com\u003e\nand other DAAS endpoints.\n\n## Installation\n\n```\npip install devnullaas\n```\n\n## Usage\n\npy-devnullaas provides `NullStream`, a file-like object to which you can write\n`string`s or `bytes`...es. Whatever the plural of `bytes` is.\n\n```python\nfrom devnullaas import NullStream\n\ndevnull = NullStream()\n\npassword = 'hunter2'\n\ndevnull.write(password)\ndel password  # once it has been discarded remotely,\n              # we can discard our local copy\n```\n\n### Endpoint configuration\n\nBy default, `NullStream` uses `https://devnull-as-a-service.com/dev/null`, but\nyou can specify any DAAS-compliant endpoint in the constructor:\n\n```python\ndevnull = NullStream(endpoint=\"http://devnull.local/dev/null\")\ndevnull.write('foobar')\n```\n\n\u003e ⚠️ **Warning**: Discarding data with an untrusted endpoint may result in\n\u003e compromised data. Usage with untrusted endpoints is not recommended.\n\n### Offline usage\n\n`NullStream` can also be used offline by passing `None` as the endpoint. While\nmuch faster, this does not ensure safe discarding of data and should only be\nused in environments where no DAAS can be reached.\n\n```python\ndevnull = NullStream(endpoint=None)\ndevnull.write('foobar')\n# has it truly been discarded? 🤷 I dunno\n```\n\n## Disclaimer\n\nWhile fully functional, this is a joke, and should not be taken seriously.\n*Please* do not use this. *Please* especially do not use this in production. I\nmean, if something like this somehow makes its way into production you have some\nbigger problems to fix, but still.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodl%2Fpy-devnullaas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodl%2Fpy-devnullaas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodl%2Fpy-devnullaas/lists"}