Installation
You can either download or clone this repo, or alternatively you can install this module using pip:
pip install blackout
Overview
Blackout is a small micro-module which makes it easier to completely forget packages. This is particularly useful when working with packages made up of multiple sub-modules.
And example might be:
/site-packages/foo/__init__.py
/site-packages/foo/bar.py
If bar.py has a function called foo() within it, and we change that function then it is not enough to reload foo, we must specifically reload foo as well as foo.bar.
When working with packages with any modules this can be time consuming and problematic - particularly when developing within a host which is persistent.
Blackout helps, because we can unload the package in its entirety in a single line using:
```blackout.drop('foo')```
This will remove any hold to foo as well as any submodules of foo. In this
case we can simply call import foo again, knowing that everything
within that package is being loaded fresh.
Compatability
This has been tested under Python 2.7.13 and Python 3.6.6 under both Windows and Ubuntu.
Metadata
Release files for blackout 1.0.4
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 |
|---|---|---|---|---|
| blackout-1.0.4.tar.gz | 2.9 kB | Without provenance | Details for blackout-1.0.4.tar.gz |
Release files / blackout-1.0.4.tar.gz
| Download URL | blackout-1.0.4.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5bf0eec6be86205ab39a52586bad5dbe4eb268432bb956786469f5f37a2285bf
|
|
BLAKE2b-256 checksum How to use checksums |
8e83aea10c50604c7266a82fd4cc8bc9805f08fb7162ce7ffaf65222ce83d341
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2
|
Security for blackout 1.0.4
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.