Reactor.am python client
Project description
reactor-python
Python library to send data to reactor.am
Installation
pip install reactor
Basic usage
import reactor
reactor.APPLICATION_ID = '<your_app_id_hash>'
response = reactor.collect({
"session": 1405587905,
"user_id": "661787707",
"first_name_s": "John",
"last_name_s": "Doe",
"gender_g": "male",
"share_facebook_b": False,
})
assert response.status_code == 200
response = reactor.event('order', {
"user_id": "661787707",
"product_s": "Gizmo",
"price_f": 10.30
})
assert response.status_code == 200
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
reactor-0.1.tar.gz
(1.7 kB
view details)
File details
Details for the file reactor-0.1.tar.gz
.
File metadata
- Download URL: reactor-0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df04b8953517b84543be7dc6f653a7a39d82dce32bb66ad1b29aa786bbbd47a8 |
|
MD5 | e66ff41449f5aeb84031c0f46b9e0bcb |
|
BLAKE2b-256 | 946bb4ce88e50f1a7e86095dcd80a98b34dfd972278e5a398612475c85f5ae68 |