Skip to main content

# 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.

Download files

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

Source Distribution

blackout-1.0.2.zip (5.2 kB view details)

Uploaded Source

File details

Details for the file blackout-1.0.2.zip.

File metadata

  • Download URL: blackout-1.0.2.zip
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/5.7 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.7

File hashes

Hashes for blackout-1.0.2.zip
Algorithm Hash digest
SHA256 8e94b01c9239b4cd44f4a8c32e9a5e25d8b48c8b75052b1d41d0c8398aabe05d
MD5 8c4f5e322746c892b36f78eaff381be3
BLAKE2b-256 27a4302048de4b11eeff22a591c12a1840299101eba1a2093ded8ea46b6fd0c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page