Python Client for Localytics Raw Data Export
This is a Python API Client for Localytics Raw Data Export. It allows to export all events and sessions captured by Localytics. Data is written in JSON and available on hourly basis as log files.
Installation
The client is currently best installed via Pypi:
$ pip install localytics
Usage
Let's have a walk through the functionalities through a couple of examples. Start by loading the library.
>>> from localytics import Localytics
Setup and Authentication
In order for you to access the KPI Service, you need to authenticate with api_key. Your api_secret, once you supply it, will be used throughout the entire session.
>>> localytics = Localytics(api_key = 'XXXXX', api_secret= 'YYYYY')
Download Data
There is a method download_data that downloads data to local folder. Example shows how to export data for last 2 days:
>>> localytics.download_data(
app_ids = ['AAAAA', 'BBBBB'],
start_date = datetime.today() - timedelta(2),
end_date = datetime.today()
)
You can also specify optional parameters. This is more complex example:
>>> localytics.download_data(
app_ids = ['AAAAA', 'BBBBB'],
start_date = datetime.today() - timedelta(2),
end_date = datetime.today(),
destination_folder = 'data',
compressed=True
)
On default data are stored in localytics_data folder and compressed in gz format. Please set compresses = True if you want to store data decompressed.
Contributions and bug reports.
Contributions and bug reports are only acceptable as GitHub Pull Requests and issues. Thanks!
Metadata
Release files for localytics 1.42
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| localytics-1.42.tar.gz | 2.6 kB | Without provenance | Details for localytics-1.42.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| localytics-1.42-py3-none-any.whl | Python 3 | none | any | Details for localytics-1.42-py3-none-any.whl |
Total release size: 6.5 kB
Release files / localytics-1.42.tar.gz
| Download URL | localytics-1.42.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4613318f9907fbe1c9797106aba22fd74e2ca2ff5c23c1473976af1b7fe134b4
|
|
BLAKE2b-256 checksum How to use checksums |
2df35d149090d03c9fd4bb28a5e2f6dc1a753358ae64da4a3faacfad25d3fa06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / localytics-1.42-py3-none-any.whl
| Download URL | localytics-1.42-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07892095e990d4090ca5513e1aa76964d7953ae234a18c8b44f4ba153520cdeb
|
|
BLAKE2b-256 checksum How to use checksums |
0f10cb4bda3dc4c7fd43f3c11bf4b6472c41a4f086fe37bee43bec2dbc1cc9bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for localytics 1.42
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.