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.6+).
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file polyanalyst6api-0.12.1.tar.gz
.
File metadata
- Download URL: polyanalyst6api-0.12.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.4 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d9394a0ef663a53423aa5bec80f05f0dac6af908f6e13a85752bb2770a64cfb |
|
MD5 | afd68a6e49c7a841752454d10ca16cec |
|
BLAKE2b-256 | e36ae894ef10ea9b25009a2fe0e16838283a1c3afba2cb2d661be55b5c4d096c |
File details
Details for the file polyanalyst6api-0.12.1-py3-none-any.whl
.
File metadata
- Download URL: polyanalyst6api-0.12.1-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.4 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1ddacbcc23d105fd8e03053ef2bf6f4a392742274434661caca5cb97f0d8c23 |
|
MD5 | c4ce76ca60e714ae2a3e32892078babd |
|
BLAKE2b-256 | 7e673fc9aafdfb5dcaa6e2ce1e3d924ddb10cebe04c74fdf7418bbb81ba5076c |