Official wrapper over the dashlog.app api
Project description
Dashlog
Official wrapper over the dashlog.app api
pip install dashlog
from dashlog import Dashlog
dash = Dashlog('<Your-API-Key-here>')
response = dash.log(
project='MyProject', # string - required
channel='Users', # string - required
title='New User', # string - required
description='John Doe created an account', # string - optionnal
data={ # dict - optionnal
'username': '@johndoe', # Values can be
'email': 'john.doe@dashlog.app' # strings,
'age': 32, # numbers,
'premium': True # or booleans
}
notify=True, # boolean - optionnal - send log by email if True
)
print(response.status) # 200
print(response.json()) # {'status': 200, 'message': 'log added successfully'}
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
dashlog-0.0.1.tar.gz
(6.5 MB
view hashes)