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 20240316: Fixed release upload artifacts.

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 open_append(path)

Ghastly hack to open something for append entirely because some Linux systems do not let you open a character device for append. Tries sane 'a' and falls back through 'r+' and finally to 'w' only if path refers to a character device.

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 20240316: Fixed release upload artifacts.

Release 20230331: New open_append to handle idiotic Linux do-not-open-tty-for-append semantics.

Release 20230212: Add gimmicks for cs.lex.r and cs.lex.s.

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-20240316.tar.gz (3.7 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-20240316-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cs.gimmicks-20240316.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.6

File hashes

Hashes for cs.gimmicks-20240316.tar.gz
Algorithm Hash digest
SHA256 ce51ca23c3a048022209ae260f5029bfc7956cd7563c3f80a587c28bd7edd605
MD5 03d7dd274b92d2c56e4b3898073e7f8b
BLAKE2b-256 949867c503df9e1aef837776c1ff33dcb25b6c9fc5e76c96b0e802559441c25c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cs.gimmicks-20240316-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.6

File hashes

Hashes for cs.gimmicks-20240316-py3-none-any.whl
Algorithm Hash digest
SHA256 dc122b84e9b873eeccd4f0dae448e1fd2d587c280bb2f96970102f2dcc5903a8
MD5 21e5f4a16c7876a778e5bde01270b27c
BLAKE2b-256 b44d8590885aa3d48b9f79552876d824a75d0899e9ea5a7e204ef72b5f83df87

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