Python Library for Thither.Direct
Project description
Thither.Direct library for python
============================
Installation
------------
pip install libthither
## THE LIBRARY
+ APIs are:
+ Flow Metrics Statistics Client
+ push_single
+ push_list
+ push_csv_data
+ get_definitions
+ get_stats
+ (more to come)
+ Utils:
+ (still to come)
Creating a Flow Metrics Statistics Client
------------------------
.. code-block:: python
from libthither.api.fms import FlowMetricsStatisticsClient
client = FlowMetricsStatisticsClient(
'YourFlowID',
pass_phrase='YourPassPhrase',
keep_alive=True,
# https=False,
# cipher='AES',
# json=False,
# version='v201807',
# requests_args={},
)
# after initiated, client can be called with:
client.push_single(YourMetricId, DateAndTime, Value)
client.push_list([[Metric ID, DateTime, Value],])
client.push_csv_data("mid,dt,v\nYourMetricId,DateAndTime,Value")
More information at:
https://thither.direct/information/services/commercial/index
https://github.com/thither/Thither.Direct-client-libraries/tree/master/python
============================
Installation
------------
pip install libthither
## THE LIBRARY
+ APIs are:
+ Flow Metrics Statistics Client
+ push_single
+ push_list
+ push_csv_data
+ get_definitions
+ get_stats
+ (more to come)
+ Utils:
+ (still to come)
Creating a Flow Metrics Statistics Client
------------------------
.. code-block:: python
from libthither.api.fms import FlowMetricsStatisticsClient
client = FlowMetricsStatisticsClient(
'YourFlowID',
pass_phrase='YourPassPhrase',
keep_alive=True,
# https=False,
# cipher='AES',
# json=False,
# version='v201807',
# requests_args={},
)
# after initiated, client can be called with:
client.push_single(YourMetricId, DateAndTime, Value)
client.push_list([[Metric ID, DateTime, Value],])
client.push_csv_data("mid,dt,v\nYourMetricId,DateAndTime,Value")
More information at:
https://thither.direct/information/services/commercial/index
https://github.com/thither/Thither.Direct-client-libraries/tree/master/python
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
libthither-0.10.3.tar.gz
(4.8 kB
view details)
File details
Details for the file libthither-0.10.3.tar.gz
.
File metadata
- Download URL: libthither-0.10.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
223ec7e00c57bdb314da6c0ca41370fb409a137eb0185a6729b86e1ec4329228
|
|
MD5 |
46e40632d8465f66cfb1cbfe0109c09b
|
|
BLAKE2b-256 |
708fbf61cc12c3fc21937a8fec68c6a077ea99e281e8e770884f779b74abe7fc
|