Client for connector interactions with an Elimity Insights server
Project description
Elimity Insights Python client
This Python module provides a client for connector interactions with an Elimity Insights server.
Usage
Importing data to custom sources
The following snippet shows how to authenticate as a custom source and create a connector log at an Elimity Insights server. You can generate a source identifier and token by visiting the custom source's detail page in Elimity Insights and clicking the 'GENERATE CREDENTIALS' button, which can be found under the 'SETTINGS' tab.
from datetime import datetime
from elimity_insights_client import Client, Config, ConnectorLog, Level
if __name__ == "__main__":
config = Config(id=1, url="https://local.elimity.com:8081", token="token")
client = Client(config)
timestamp = datetime.now()
log = ConnectorLog(level=Level.INFO, message="Hello world!", timestamp=timestamp)
logs = [log]
client.create_connector_logs(logs)
Other API interactions
This module also provides a client for other API interactions with Elimity Insights. The snippet below shows how to authenticate with an API token and list sources at an Elimity Insights server. You can generate a token identifier and secret by visiting the 'API tokens' page in Elimity Insights and clicking the 'CREATE API TOKEN' button.
from elimity_insights_client.api import Config, sources
if __name__ == "__main__":
config = Config(token_id="1", token_secret="my-secret-value", url="https://example.elimity.com", verify_ssl=True)
my_sources = sources(config)
print(my_sources)
Installation
$ pip install elimity-insights-client
Compatibility
| Client version | Insights version |
|---|---|
| 1 | 2.8 - 2.10 |
| 2 - 3 | 2.11 - 3.0 |
| 4 | 3.1 - 3.3 |
| 5 - 6 | 3.4 - 3.5 |
| 7 | 3.6 - 3.7 |
| 8 | 3.8 - 3.15 |
| 9 | ^3.16 |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file elimity_insights_client-10.2.1b1.tar.gz.
File metadata
- Download URL: elimity_insights_client-10.2.1b1.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.1 Linux/5.15.0-1040-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c156cb0fe946ddd42704aae260b72d7db93ccd3683f5ed0ea8f05f7ac825398b
|
|
| MD5 |
3beaec0b2ad0f1c42bf47083c6b5491c
|
|
| BLAKE2b-256 |
37bec2d8a8fea97a14cfc749d5f1ed0c1723b893e100cdb1bae153113aa6fa69
|
File details
Details for the file elimity_insights_client-10.2.1b1-py3-none-any.whl.
File metadata
- Download URL: elimity_insights_client-10.2.1b1-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.1 Linux/5.15.0-1040-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17c6b5ca92dd50793519fa46d02953aed900d0fcd8f6dea26a08b01bed58099f
|
|
| MD5 |
cd02fd2de0f2cb9d1a4e57feb0c9b559
|
|
| BLAKE2b-256 |
b5def0b55d782de5ca1efd0a41695bee989796efe446f1978fd4aa1aade8f366
|