Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elimity-insights-client-10.0.0b0.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elimity_insights_client-10.0.0b0-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file elimity-insights-client-10.0.0b0.tar.gz.

File metadata

  • Download URL: elimity-insights-client-10.0.0b0.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.7 Linux/5.15.0-1022-azure

File hashes

Hashes for elimity-insights-client-10.0.0b0.tar.gz
Algorithm Hash digest
SHA256 6a66d688431922c902c2ad3944c36d86f81a9f53515e8c48f285da5d00057e31
MD5 65be47f8e4992d7d931bab54759e12d4
BLAKE2b-256 708c097c73a99e8a0bbf9d220aa32f5ddb971f368a786cc0f1004ceab59865d7

See more details on using hashes here.

File details

Details for the file elimity_insights_client-10.0.0b0-py3-none-any.whl.

File metadata

File hashes

Hashes for elimity_insights_client-10.0.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef73a2e673aaacab9f3676bb1262da623c461cfe7d70c43e9248b3fc6fc3e606
MD5 4bc3ff963f9dff1967d6755c53e65301
BLAKE2b-256 f1bdbd23f6a5bb26b0458bc6f0007a6bf1aad01e3054a076a01e9331016176b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page