Skip to main content

polyanalyst6api is a PolyAnalyst API client for Python.

Project description

polyanalyst6api

polyanalyst6api is a python package for accessing PolyAnalyst's APIs.

Installation

The easiest way to install polyanalyst6api-python is from PyPI:

$ pip install polyanalyst6api

You may also use Git to clone the repository from GitHub and install it manually:

git clone https://github.com/Megaputer/polyanalyst6api-python.git
cd polyanalyst6api-python
pip install poetry
poetry install

Usage

See API Reference for more detailed information.

Authentication

Import client, initialize it and log in to PolyAnalyst's server:

import polyanalyst6api as polyanalyst

api = polyanalyst.API(POLYANALIST_URL, USERNAME, PASSWORD)
api.login()

API supports Context Manager protocol, so you could use it with with statement. In this case API will automatically log in with provided credentials.

with polyanalyst.API(POLYANALIST_URL, USERNAME, PASSWORD) as api:
    pass

Working with project

See polyanalyst6api-python/examples for a more complex examples.

At first you need to connect to existing project:

prj = api.project(PROJECT_UUID)

Print node names within project:

for node_name in prj.get_nodes():
    print(node_name)

Initiate node execution:

prj.execute(NODE_NAME)

Display the preview of node results:

result = prj.preview(NODE_NAME)
print(result)

Save project:

prj.save()

PolyAnalyst API

Full API specification is stored in the PolyAnalyst User Manual under the url below:

/polyanalyst/help/eng/24_Application_Programming_Interfaces/toc.html

Supported Python version

polyanalyst6api-python works only with python3 (3.4+).

License

This project is licensed under the MIT License - see the LICENSE.md 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.9.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

polyanalyst6api-0.9.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polyanalyst6api-0.9.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.4 Windows/10

File hashes

Hashes for polyanalyst6api-0.9.0.tar.gz
Algorithm Hash digest
SHA256 e2e27c2d77f63e8fd7b8adf1b5ac927e5635eb3ad71f4b282760a2e71167daa5
MD5 b3e2d35e1f7b25e1def037ff71f7f8a1
BLAKE2b-256 01e6ba008751dbc3df8c8d0cfa8399ae53eaf9e0d85e39129a3e5387d18e0e63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: polyanalyst6api-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.4 Windows/10

File hashes

Hashes for polyanalyst6api-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4affd12a720b0a4f52d48c90bc0207bb239f8aa20f6bcf6c80cc41b674a55373
MD5 cfb05b818d32190aa4a2a5a5e199967b
BLAKE2b-256 65bc7d3170f6ca04e08430950d6028f1f53211fb5233520d16d40498fca04222

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page