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
Release history Release notifications | RSS feed
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)