Skip to main content

Helps in the process of creating a context manager

Project description

ContextM

My package does this

Instillation

python -m pip install contextM

Usage

import contextM

class my_context_manager(contextM.ContextManager):
    def __init__(self, var):
        self.var = var
    def __enter__(self):
        print('Enter!')
        return self
    def __exit__(self, *args, **kwargs):
        print('Exit!')

Features

ContextManager class:
* See Implementation Above

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

ContextM-1.0.0.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

ContextM-1.0.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file ContextM-1.0.0.tar.gz.

File metadata

  • Download URL: ContextM-1.0.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.0

File hashes

Hashes for ContextM-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b0bcbb3634bae84f883a9c0e94b178f1d808ab30c772bb3cdc9417edcfa1e059
MD5 f26a948b1909c10cd233a3a59eb06dfc
BLAKE2b-256 ebfcad7189a25e32fda7f8508f89dda53ce2d18ad69a26dc2e2883a42df3d45f

See more details on using hashes here.

File details

Details for the file ContextM-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ContextM-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.0

File hashes

Hashes for ContextM-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27d7d46c1e88e1da627761078f91039b30e3b866618250bfce6462f9f77afb5b
MD5 a3861fca806671752704bee260253037
BLAKE2b-256 48fc784ee2d936a86d27fd7d0b61e3fe8a0cdca8096b8ca1a3f5f8990074008f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page