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.0.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.37.0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polyanalyst6api-0.37.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.14.3 Linux/6.17.0-1010-azure

File hashes

Hashes for polyanalyst6api-0.37.0.tar.gz
Algorithm Hash digest
SHA256 23e0d668ba5d19c203c6c469d736924355af699b29465a617e2f0ea2f4eb0aa2
MD5 64ed7477cbd0e304d3c888f55d9879e5
BLAKE2b-256 b74cd6e145ed79354d890975270075916ae50534e4485c14801ce47f502e492a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for polyanalyst6api-0.37.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32d7d347238a31237befae7ea932f8767105f0214175da014c4847a9efe72271
MD5 8f10560ef97d4dc21ee3553865ad7c1b
BLAKE2b-256 3f0ac9a4926fc6353df21cd9fcd45bab6352a35369cc3e53d4333d0fe9551ecf

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