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

Uploaded Python 3

File details

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

File metadata

  • Download URL: polyanalyst6api-0.37.6.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.6.tar.gz
Algorithm Hash digest
SHA256 e6db360b4edd5ef6d7ca684aed0a3478df17728cea37adaf7c18bd784ed79ac1
MD5 121b45407251361a45a4908d132dd55a
BLAKE2b-256 68c33d9ded8a78de7dd66c4e87b051fa1b39977c141d3329ed84824dafcbfa4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for polyanalyst6api-0.37.6.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.6-py3-none-any.whl.

File metadata

File hashes

Hashes for polyanalyst6api-0.37.6-py3-none-any.whl
Algorithm Hash digest
SHA256 39ede15c876f16eeb3bd1bc18480e0e3bd9b7bd839c2f4ae919d800a6ef8518f
MD5 daac5e2f2bfbec8ea0d8286df7325b5f
BLAKE2b-256 f875b299574d64f90a94ea1b07babd7afc7c5ae58850ac5ea58c36fe013b27d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for polyanalyst6api-0.37.6-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