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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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