VarSnap
Project description
Varsnap Python
Python VarSnap client
Installation
Install from PyPI - pip install varsnap
Requirements
The varsnap client currently requires python 3.7.
The client depends on three environment variables to be set:
VARSNAP
- Should be eithertrue
orfalse
. Varsnap will be disabled if the variable is anything other thantrue
.ENV
- If set todevelopment
, the client will receive events from production. If set toproduction
, the client will emit events.VARSNAP_TOKEN
- Copied from https://www.varsnap.com/user/
Usage
Add the varsnap decorator in front of any function you'd like to make better:
from varsnap import varsnap
@varsnap
def example(args, **kwargs):
return 'output'
Publishing
pip install twine
python setup.py sdist bdist_wheel
twine upload dist/*
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
varsnap-0.1.0.tar.gz
(3.3 kB
view hashes)