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.1.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.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polyanalyst6api-0.37.1.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.1.tar.gz
Algorithm Hash digest
SHA256 9432e6c5142528f367a979331a5c4a00bca3a72a31d53abf243be5765fa16164
MD5 2d74bfdad4f6023df7a858cab2703787
BLAKE2b-256 25955c54e9fc3789150f5645b978f59de7f8dde3ea14444aa72d0bba62e32bae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: polyanalyst6api-0.37.1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dfffe2c0c8d6a846d2a13bd4aedc41c39aec5893ed42d078f0db09c500a2cb15
MD5 4fa03a9368d9039fe204ae2db4c634e3
BLAKE2b-256 fa44327a324a82f75a5ceede71f0a3a47e07f8c6efdeb303cb9516fea5830d45

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