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.7.tar.gz
(7.3 kB
view details)
File details
Details for the file censius-1.4.7.tar.gz.
File metadata
- Download URL: censius-1.4.7.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdf4547211dfb8937699220b6235e535f9a4167ca6d3d15ede7a396a0fa044a0
|
|
| MD5 |
901aface1590642b462535e9dd83708d
|
|
| BLAKE2b-256 |
3caa4539b06d9e62db10d916d2e24529a932ef613f7569ed86c76ad7debbd2ea
|