This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Distribution paused by the project owner.
NULLSCREAM
nullscream is a simple library that allows you to
import noop functions and classes that you can use as drop in replacements for functions you wish to override.
This allows anything on the blacklist to be importable, but not executable.
Installation
pip install nullscream
Usage
Import the install_nullscream function the top of your main entry file (e.g. main.py), import nullscream before
importing any other libraries.
import nullscream
nullscream_blacklist = ["requests"]
nullscream.activate(
blacklist=nullscream_blacklist,
)
Now when you import requests, you will get a noop version of the requests library.
import requests
print(requests.__doc__)
# Output:
# This is a noop stand-in module.
print(requests.foobar())
# Output:
# MagicType instance
You can uninstall the noop module by calling uninstall_nullscream
import nullscream
nullscream.uninstall(blacklist=["requests"])
Now when you import requests, you will get the original requests library.
import requests
print(requests.__doc__)
# Output: Original requests library docstring
Testing
python -m unittest discover -s tests
Metadata
Release files for nullscream 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nullscream-0.1.5.tar.gz | 15.4 kB | Without provenance | Details for nullscream-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nullscream-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for nullscream-0.1.5-py3-none-any.whl |
Total release size: 31.1 kB
Release files / nullscream-0.1.5.tar.gz
| Download URL | nullscream-0.1.5.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77ba4b59ddab35949aa4720787f1fd13b09d1355c016b0690c358f92a2f77da2
|
|
BLAKE2b-256 checksum How to use checksums |
1a21b09c8595b49fe5e3ce3718acb326769a0c23263bd6a458f5814fe26a1a4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.22
|
Release files / nullscream-0.1.5-py3-none-any.whl
| Download URL | nullscream-0.1.5-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a4f9c9b1243aa9710e6be008e404dded670b568b122f437a2a4d8d33b7aa4a3
|
|
BLAKE2b-256 checksum How to use checksums |
9f05d270ffa4ceec376471136155438f8b00a19ac7b3d0eab0ebfe9638c390f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.22
|
Security for nullscream 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.