Skip to main content

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


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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page