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>')
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[str, str | int | float | boolean] - optionnal
'email': 'john.doe@dashlog.app' # Values can be
'username': '@johndoe', # strings,
'age': 29, # 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.2.tar.gz
(2.3 kB
view hashes)