Phoning home, analytics and storage with 0 setup.
Project description
phoning-home
Phoning home provides out of the box capabilities to phone home for security, analytics, gaming and reporting with in-built consent mechanism. No server setups needed, only Turso atm.
Demo
from phoning_home import ph
# url, token
ph.connect('http://url.turso.io', 't0k3nfh734tr673gqi78rytg3q34786') # use env vars
# Increment counters
@ph.counter('ZIP_DWNLDS')
def download_zipfile():
# code for downloading zip file
...
count = ph.fetch('counter', 'ZIP_DWNLDS')
# Leaderboard
ph.leaderboard('scrabble-123', 'yus', 100)
leaderboard = ph.fetch('leaderboard', 'scrabble-123')
# Send a deluge of kv values
ph.info({
'version': '1.2.3',
'os': 'linux'
})
info = ph.fetch('info')
# Or namespace it
data = {
'name': 'Miaw Spoogle',
'username': 'purr678'
}
ph.namedinfo('USER_INFO', data)
namedinfo = ph.fetch('namedinfo', 'USER_INFO')
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
phoning-home-0.1.0.tar.gz
(10.6 kB
view details)
File details
Details for the file phoning-home-0.1.0.tar.gz
.
File metadata
- Download URL: phoning-home-0.1.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf016caa65002500add465357211310d0e07850b0aaa95328c410ebd4888f79b |
|
MD5 | 2509d3acefc9a83b1fa651e3f374c3a3 |
|
BLAKE2b-256 | a8c537fc81e2eac83ac2c8e112467c61405ce89c8aaff8b972b41c6f24328211 |