API for Censius
Project description
pip3 install --trusted-host 3.83.66.248 --index-url http://3.83.66.248:8080 censiuslogs
You can then start using the Python package as
from censiuslogs.client import Client
c = Client(api_key='lczhlzobdvwrrwechlzsvbzselirtsxk')
data = {
"model_id": 2,
"user_defined_model_id": "11a2cb",
"feature_event": {"smoething": 1},
"event_type": "something",
"feature_prediction": {"somePrediction": 1},
"actuals": {"someActuals": "wo"},
"proc_feature_event": [1, 2],
"model_version": "v1",
"feature_actuals": {"actual": 1}
}
c.add_logs(data=data)
from censiuslogs.client import Client
c = Client(api_key='lczhlzobdvwrrwechlzsvbzselirtsxk')
data = [{
"model_id": 2,
"user_defined_model_id": "11a2cb",
"feature_event": "{\"smoething\": 1}",
"event_type": "something",
"feature_prediction": "{\"somePrediction\": 1}",
"actuals": "{\"someActuals\": \"wo\"}"
},{
"model_id": 2,
"user_defined_model_id": "11a2cb",
"feature_event": "{\"smoething\": 1}",
"event_type": "something",
"feature_prediction": "{\"somePrediction\": 1}",
"actuals": "{\"someActuals\": \"wo\"}"
}]
c.add_batch_logs(all_events=data)
from censiuslogs.client import Client
c = Client(api_key='lczhlzobdvwrrwechlzsvbzselirtsxk')
data={
"log_id": "061cd5bb-a8c8-4343-bedb-7ebe5f15d499",
"actuals": "{\"someActuals\": \"wo\"}"
}
c.update_actuals(data=data)
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
censius-1.4.4.tar.gz
(6.6 kB
view details)
File details
Details for the file censius-1.4.4.tar.gz.
File metadata
- Download URL: censius-1.4.4.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15eb359858a3dfd6d3d75413d6cedd34fac76d01df989973d2ad724cf16c622a
|
|
| MD5 |
efd65094e0cb1819e080d0f597f1ff3c
|
|
| BLAKE2b-256 |
b283ec2d0fd5159871d31e6e01e58ef8d8f5a818b598b22d5abd9b49e6a7dbb5
|