Skip to main content

Discard data through and other DAAS

Project description


is a python library to discard data through and other DAAS endpoints.


pip install devnullaas


py-devnullaas provides NullStream, a file-like object to which you can write strings or Whatever the plural of bytes is.

from devnullaas import NullStream

devnull = NullStream()

password = 'hunter2'

del password  # once it has been discarded remotely,
              # we can discard our local copy

Endpoint configuration

By default, NullStream uses, but you can specify any DAAS-compliant endpoint in the constructor:

devnull = NullStream(endpoint="http://devnull.local/dev/null")

⚠️ Warning: Discarding data with an untrusted endpoint may result in compromised data. Usage with untrusted endpoints is not recommended.

Offline usage

NullStream can also be used offline by passing None as the endpoint. While much faster, this does not ensure safe discarding of data and should only be used in environments where no DAAS can be reached.

devnull = NullStream(endpoint=None)
# has it truly been discarded? 🤷 I dunno


While fully functional, this is a joke, and should not be taken seriously. Please do not use this. Please especially do not use this in production. I mean, if something like this somehow makes its way into production you have some bigger problems to fix, but still.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for devnullaas, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size devnullaas-1.0.0-py3-none-any.whl (2.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size devnullaas-1.0.0.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page