Skip to main content

Gimmicks and hacks to make some of my other modules more robust and less demanding of others.

Project description

Gimmicks and hacks to make some of my other modules more robust and less demanding of others.

Latest release 20230210: DEVNULL default open for "r+b" instead of "wb".

Function debug(*a, **kw)

Wrapper for debug() which does a deferred import.

Function error(*a, **kw)

Wrapper for error() which does a deferred import.

Function exception(*a, **kw)

Wrapper for exception() which does a deferred import.

Function info(*a, **kw)

Wrapper for info() which does a deferred import.

Function log(*a, **kw)

Wrapper for log() which does a deferred import.

Function trace(*a, **kw)

Wrapper for info() which does a deferred import.

Function warning(*a, **kw)

Wrapper for warning() which does a deferred import.

Release Log

Release 20230210: DEVNULL default open for "r+b" instead of "wb".

Release 20221228: Generalise the logging function map, add trace function, bugfix logging call lookup.

Release 20220429: Add DEVNULL symbol, needed before Python 3.3.

Release 20211208: Define TimeoutError.

Release 20210306: Add simple implementations of nullcontext and SimpleNamespace.

Release 20200418.1: Initial release with logging call stubs.

Project details


Download files

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

Source Distribution

cs.gimmicks-20230210.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cs.gimmicks-20230210-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file cs.gimmicks-20230210.tar.gz.

File metadata

  • Download URL: cs.gimmicks-20230210.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for cs.gimmicks-20230210.tar.gz
Algorithm Hash digest
SHA256 02a67319859eb5b255e705ec163569bcc5809607c50e2c40eba5bb92a1c5be72
MD5 0c084da5eeba0cf230b5fd4aa77440e5
BLAKE2b-256 9f496c7830431c4e976618f201a95f3605888ad06f0bd02258cfa94bc12f286f

See more details on using hashes here.

File details

Details for the file cs.gimmicks-20230210-py3-none-any.whl.

File metadata

  • Download URL: cs.gimmicks-20230210-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for cs.gimmicks-20230210-py3-none-any.whl
Algorithm Hash digest
SHA256 f9ad736c508b6e46c3c0fa89cd94648b4c0f1a6efc4dd7c6e02995f8a3b9ac30
MD5 ebe6a7b6a62addbefafab931aab45708
BLAKE2b-256 ec40ed6a8c46a9c733417c708a32b5c328a6beca9ba394445d9a759c5eee9121

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 Pingdom Monitoring Sentry Error logging StatusPage Status page