Skip to main content

More Context

Context utilities

Installation

pip install more-context

Usage

Safe Context Manager

Like @contextmanager, but safe.

Code like this:

@safe_context_manager
def my_ctx():
    lock = lock_resource()
    yield
    lock.delete()

Is equivalent to:

@contextmanager
def my_ctx():
    lock = lock_resource()
    try:
        yield
    finally:
        lock.delete()

Metadata

Release files for more-context 0.0.1

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

Source distribution (sdist)

Source distribution for more-context 0.0.1
File Size Uploaded Provenance Actions
more-context-0.0.1.tar.gz 1.8 kB Without provenance Details for more-context-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for more-context 0.0.1
File Interpreter ABI Platform Actions
more_context-0.0.1-py3-none-any.whl Python 3 none any Details for more_context-0.0.1-py3-none-any.whl

Total release size: 3.8 kB

Release files / more-context-0.0.1.tar.gz

Download URL more-context-0.0.1.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
156fa37eabca15550bc4bee692eaa14ee09f4ff49030d2bc2cd22d9c5e0502c7
BLAKE2b-256 checksum
How to use checksums
5f7d25a25b29344642a743e0242959f33bc4000e844bf1851c2aa012cf76ea56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

Release files / more_context-0.0.1-py3-none-any.whl

Download URL more_context-0.0.1-py3-none-any.whl
Size 2.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8643a6b993639444fe7013e305ebeac2a019ffa03d21796020fae0f4c18d628e
BLAKE2b-256 checksum
How to use checksums
5acf6c58710023f432711af61adcd699f60ba5319a9a6259b176d5d030bafe83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

Security for more-context 0.0.1

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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