LogSnag API Wrapper
Project description
Installation
pip3 install logsnag
Usage
Import Library
from logsnag import LogSnag
Initialize Client
logsnag = LogSnag(token='7f568d735724351757637b1dbf108e5', project="my-saas")
Publish Event
logsnag.track(
channel="waitlist",
event="User Joined",
user_id="user_123",
description="Email: john@doe.com",
icon="🎉",
tags={
"source": "google",
},
notify=True
)
User Properties
logsnag.identify(
user_id="user_123",
properties={
"name": "John Doe",
"email": "john@doe.com",
"plan": "free",
}
)
Publish Insight
logsnag.insight.track(
title='User Count',
value=100,
icon='👨',
)
Increment Insight
logsnag.insight.increment(
title='User Count',
value=1,
icon='👨',
)
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
logsnag-1.0.0b2.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file logsnag-1.0.0b2.tar.gz.
File metadata
- Download URL: logsnag-1.0.0b2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89174947179cf2e76a346fa1a167e1d62cb0e0954125ed99302f13a91cbda628
|
|
| MD5 |
d4227a0c05e8ad73d5032223ee0c5960
|
|
| BLAKE2b-256 |
b5382a9e140ecc2a41d437653568e1dd190a0b6ea62738902abdc888ff53b727
|
File details
Details for the file logsnag-1.0.0b2-py3-none-any.whl.
File metadata
- Download URL: logsnag-1.0.0b2-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b0632189166e4a8cbea2298d3d73c76f9a2c900f61a9915e5b916493071f528
|
|
| MD5 |
555358ec299d307af8c3ead5c40374ed
|
|
| BLAKE2b-256 |
c3fc5204d14990d2dcb80a2587886fc5106ac98e9972cb0961d20c736fdde356
|