No project description provided
Project description
<p><a href="https://circleci.com/gh/atveit/amplitude-python"><img src="https://circleci.com/gh/atveit/amplitude-python.svg?style=svg&circle-token=dfb7391f33d23ac3dad467b60ca34b36e7a37ebb" alt="CircleCI"></a></p>
<h1 id="amplitude-python">amplitude-python</h1>
<p>Python API for Amplitude Analytics Logging - <a href="https://amplitude.com">https://amplitude.com</a></p>
<p>This API is a simple (unofficial) wrapper for the <a href="https://amplitude.zendesk.com/hc/en-us/articles/204771828-HTTP-API">Amplitude HTTP API</a></p>
<h2 id="1-install-amplitude-python">1. Install amplitude-python</h2>
<p>Potential preparation before installing: create and activate virtualenv or conda environment</p>
<h3 id="1-1-install-from-pypi-with-conda-or-pip">1.1 Install from pypi with conda or pip</h3>
<pre><code class="lang-bash">pip install amplitude-python
</code></pre>
<h3 id="1-2-install-from-github">1.2 Install from github</h3>
<pre><code class="lang-bash">$ git clone https://github.com/atveit/amplitude-python.git
$ cd amplitude-python
$ python setup.py instal
</code></pre>
<h2 id="2-logging-to-amplitude-with-amplitude-python">2. Logging to Amplitude with amplitude-python</h2>
<p>Recommend having a look at <a href="https://amplitude.zendesk.com/hc/en-us/articles/204771828-HTTP-API">Amplitude HTTP API Documentation</a> before start logging.</p>
<pre><code class="lang-python">import amplitude
# initialize amplitude logger
amplitude_logger = amplitude.AmplitudeLogger(api_key = "SOME_API_KEY_STRING")
# example event
event_args = {"device_id":"somedeviceid", "event_type":"justtesting",
"event_properties":{"property1":"somevalue", "propertyN":"anothervalue"}
event = amplitude_logger.create_event(**event_args)
# send event to amplitude
amplitude_logger.log_event(event)
</code></pre>
<h2 id="3-test-amplitude-python-module">3. Test amplitude-python module</h2>
<pre><code>python setup.py test
</code></pre>
<h1 id="amplitude-python">amplitude-python</h1>
<p>Python API for Amplitude Analytics Logging - <a href="https://amplitude.com">https://amplitude.com</a></p>
<p>This API is a simple (unofficial) wrapper for the <a href="https://amplitude.zendesk.com/hc/en-us/articles/204771828-HTTP-API">Amplitude HTTP API</a></p>
<h2 id="1-install-amplitude-python">1. Install amplitude-python</h2>
<p>Potential preparation before installing: create and activate virtualenv or conda environment</p>
<h3 id="1-1-install-from-pypi-with-conda-or-pip">1.1 Install from pypi with conda or pip</h3>
<pre><code class="lang-bash">pip install amplitude-python
</code></pre>
<h3 id="1-2-install-from-github">1.2 Install from github</h3>
<pre><code class="lang-bash">$ git clone https://github.com/atveit/amplitude-python.git
$ cd amplitude-python
$ python setup.py instal
</code></pre>
<h2 id="2-logging-to-amplitude-with-amplitude-python">2. Logging to Amplitude with amplitude-python</h2>
<p>Recommend having a look at <a href="https://amplitude.zendesk.com/hc/en-us/articles/204771828-HTTP-API">Amplitude HTTP API Documentation</a> before start logging.</p>
<pre><code class="lang-python">import amplitude
# initialize amplitude logger
amplitude_logger = amplitude.AmplitudeLogger(api_key = "SOME_API_KEY_STRING")
# example event
event_args = {"device_id":"somedeviceid", "event_type":"justtesting",
"event_properties":{"property1":"somevalue", "propertyN":"anothervalue"}
event = amplitude_logger.create_event(**event_args)
# send event to amplitude
amplitude_logger.log_event(event)
</code></pre>
<h2 id="3-test-amplitude-python-module">3. Test amplitude-python module</h2>
<pre><code>python setup.py test
</code></pre>
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
amplitude-python-0.11.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for amplitude_python-0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3528a5e8f49bcf8074d8b52ee9502d2f5024438e0a50cb8834592789c3cc82ad |
|
MD5 | 43965261936c6ff8b5ce2103c0a3b5a9 |
|
BLAKE2b-256 | 7bfd3e31478c0fc975b39a5183b05c3a00950e3c204910eb62ba25070465c705 |