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.36.2.tar.gz (17.1 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.36.2-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polyanalyst6api-0.36.2.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.14.0-1017-azure

File hashes

Hashes for polyanalyst6api-0.36.2.tar.gz
Algorithm Hash digest
SHA256 5610af92f0118cfce0df75264dc0c092db2e3e40fb2ea4ec4c35999dee018ca3
MD5 1d66cec2933e4d747c3b9b7956090aee
BLAKE2b-256 1d84ba4579b5ca27a5cd3ccbd90f7ca3767f1fe46317e23e1139b86d61b9c76a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: polyanalyst6api-0.36.2-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.14.0-1017-azure

File hashes

Hashes for polyanalyst6api-0.36.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eb49b20f1ef59f3f4cbbe235cbbbce2d04e2da0d0bbf06afdb9a8fa0e1ada031
MD5 4baa02ce9192c3b893d7e6fce60b9a39
BLAKE2b-256 6bfb589f4daa60c24f148b89c170948945ffd71acf8a2237ae45441f2186bbe0

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