Skip to main content

polyanalyst6api is a PolyAnalyst API client for Python.

Project description

polyanalyst6api

PyPI package Supported Python versions MIT License

polyanalyst6api is a Python library for interacting with PolyAnalyst APIs.

Installation

Python 3.6+ is required. Install, upgrade and uninstall polyanalyst6api-python with these commands:

$ pip install polyanalyst6api
$ pip install --upgrade polyanalyst6api
$ pip uninstall polyanalyst6api

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

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.16.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

polyanalyst6api-0.16.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for polyanalyst6api-0.16.0.tar.gz
Algorithm Hash digest
SHA256 e57a3190bb52e929aca40f198bea3b9342c9a171568b70520c03664c37460264
MD5 890e68db741a79c4d529a4363d735e94
BLAKE2b-256 e205ebc37d6e81fbc0ac6017998f85c4898b40a5c13fdbc8b04890250b9ba607

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polyanalyst6api-0.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03f80ba85fb864f62a4c215420e5e2515148e5e51c9798b6359c74d3b65376f6
MD5 b1829a900e11b172b302a5f742bab463
BLAKE2b-256 37f3da05eca075071e1fea8c8e8ade59253e19475ba989dc43e67e02974a5a9b

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