Skip to main content

polyanalyst6api is a PolyAnalyst API client for Python

Project description

Telegram Group PyPI package Downloads Supported Python versions MIT License

Welcome to the official Python client library for the PolyAnalyst REST API.

This package provides python wrappers for PolyAnalyst applications, such as Analytical Client, Scheduler, Drive. Using polyanalyst6api you can access and edit projects, publications, files and more.

Installation

pip install -u polyanalyst6api

Python 3.9 or later is required.

Documentation

See API Reference for the client library methods.

Refer to PolyAnalyst's User Manual at Application Programming Interfaces > Version 1 for REST API specification.

Usage

Import and initialize a client:

from polyanalyst6api import API

# using an api token
client = API(<POLYANALIST_URL>, token=<API_TOKEN>)

# or using PolyAnalyst user credentials. Note that in this case you need to call .login()
client = API(<POLYANALIST_URL>, <USERNAME>, <PASSWORD>)
client.login()

Request data using client methods:

>>> prj = client.project(<prjUUID>)
>>> prj.status()
{'status': 'Loaded'}

>>> prj.get_node_list()
[{'id': 11,
  'name': 'Internet Source',
  'status': 'synchronized',
  'subtype': 'INET',
  'type': 'DataSource'},
 {'id': 12,
  'name': 'Python',
  'status': 'synchronized',
  'subtype': 'Python',
  'type': 'Dataset'}]

View the examples directory for more code snippets.

License

This project is licensed under the MIT License - see the LICENSE file for details

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

polyanalyst6api-0.37.8.tar.gz (41.6 kB view details)

Uploaded Source

Built Distribution

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

polyanalyst6api-0.37.8-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file polyanalyst6api-0.37.8.tar.gz.

File metadata

  • Download URL: polyanalyst6api-0.37.8.tar.gz
  • Upload date:
  • Size: 41.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for polyanalyst6api-0.37.8.tar.gz
Algorithm Hash digest
SHA256 0cad24859910237a06fb72e7754a871d9bee98532454417021cad92f9dadb036
MD5 f955eba0519e4a7b25dcf8fd8eb3ae65
BLAKE2b-256 822d5b41cb639ac6414258d96da1be666b0c3ef89f0497ab53fa6c2330d45a0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for polyanalyst6api-0.37.8.tar.gz:

Publisher: publish.yml on Megaputer/polyanalyst6api-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file polyanalyst6api-0.37.8-py3-none-any.whl.

File metadata

File hashes

Hashes for polyanalyst6api-0.37.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9807d240b3f6281e9b9af5244568d9bcb888a612d45436446e3926f344db3cfc
MD5 884b60625d650da79476819d210361a0
BLAKE2b-256 51adb84ef8e37946ff086bd1ebe8c0c778b1522d9efb9cb9ff21fa3c85e1d7cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for polyanalyst6api-0.37.8-py3-none-any.whl:

Publisher: publish.yml on Megaputer/polyanalyst6api-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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