Skip to main content

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

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

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

Metadata

Release files for cs-gimmicks 20230331

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cs-gimmicks 20230331
File Size Uploaded Provenance Actions
cs.gimmicks-20230331.tar.gz 3.9 kB Without provenance Details for cs.gimmicks-20230331.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cs-gimmicks 20230331
File Interpreter ABI Platform Actions
cs.gimmicks-20230331-py3-none-any.whl Python 3 none any Details for cs.gimmicks-20230331-py3-none-any.whl

Total release size: 7.7 kB

Release files / cs.gimmicks-20230331.tar.gz

Download URL cs.gimmicks-20230331.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
83b23f9cf72da91320b602e2ae88947f3b1cc5145dc27d8db25842d147daef84
BLAKE2b-256 checksum
How to use checksums
76374e56b8f3f888d85508c8492cbf9a57e32946cb6e50ed815deaed8b7c6272
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cs.gimmicks-20230331-py3-none-any.whl

Download URL cs.gimmicks-20230331-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22444d4eb4b5b5447d36f06cde2efc6c827fe8f6606ef56fdb7d125146b9f56e
BLAKE2b-256 checksum
How to use checksums
fd8b8af16115bd9d8e7180096817726d57c579f9a7051626ef3d305e4527e01f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for cs-gimmicks 20230331

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page