Skip to main content

Build status PyPI package Downloads Supported Python versions MIT License

polyanalyst6api is a simple and easy to use client library for the PolyAnalyst API.

This package provides wrappers for PolyAnalyst Analytical Client, Scheduler and Drive. Using it you can execute nodes, view datasets, run tasks, download/upload files and so on.

Installation

Python 3.7+ is required. Install and upgrade polyanalyst6api with these commands:

pip install polyanalyst6api
pip install --upgrade polyanalyst6api

Documentation

See API Reference for the client library methods.

Refer to PolyAnalyst User Manual at Application Programming Interfaces > Version 01 for REST API specification.

Usage

Import an api client and log in to PolyAnalyst server

from polyanalyst6api import API

with API(POLYANALIST_URL, USERNAME, PASSWORD) as api:
    # making a request to PolyAnalyst endpoint that require authorization
    print(api.get_server_info())

Working with project

Instantiate project wrapper by calling with existing project ID:

prj = api.project(PROJECT_UUID)

Set Python node code using parent Parameters node.

prj.parameters('Parameters (1)').set(
    'Dataset/Python',
    {'Script': 'result = pandas.DataFrame([{"val": 42}])'}
)

Execute Python node and wait to complete execution

prj.execute('Python', wait=True)

Check node results:

ds = prj.dataset('Python').preview()
assert ds[0]['val'] == 42

Save project:

prj.save()

Downloading file from user home folder using PA Drive API

content = api.drive.download_file('README.txt')
with open(r'C:\README.txt', mode='wb+') as local_file:
    local_file.write(content)

See polyanalyst6api-python/examples for more complex examples.

License

This project is licensed under the MIT License - see the LICENSE file for details

Release files for polyanalyst6api 0.29.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polyanalyst6api 0.29.4
File Size Uploaded
polyanalyst6api-0.29.4.tar.gz 15.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for polyanalyst6api 0.29.4
File Interpreter ABI Platform
polyanalyst6api-0.29.4-py3-none-any.whl Python 3 none any Details

Total release size: 32.6 kB

Release files / polyanalyst6api-0.29.4.tar.gz

Download URL polyanalyst6api-0.29.4.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
08d68d406c8e6bae2528dbfc913acbc30128f209a2e42e3696493da8001ec455
BLAKE2b-256 checksum
How to use checksums
cb8a017a5e4633f0f02f719c4b81bdb1baebbf5c3de9b49259ae27a94e100946
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure

Release files / polyanalyst6api-0.29.4-py3-none-any.whl

Download URL polyanalyst6api-0.29.4-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
645ba262ef0f126515cd711b5c73309f3be9a30f71039d2916b2b3521f23c08e
BLAKE2b-256 checksum
How to use checksums
72cb2aa2253b2e0272ce55f2c159690c88e86a616be7fa04cff695ae493106c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure

Release history Release notifications | RSS feed

0.38.0

2 release files

0.37.8

2 release files

0.37.1

2 release files

0.37.0

2 release files

0.35.3

2 release files

0.35.2

2 release files

0.35.1

2 release files

0.34.0

2 release files

0.33.2

2 release files

0.33.1

2 release files

0.33.0

2 release files

0.32.1

2 release files

This release

0.29.4 This release

2 release files

0.26.0

2 release files

0.25.1

2 release files

0.25.0

2 release files

0.24.0

2 release files

0.23.2

2 release files

0.23.0

2 release files

0.22.0

2 release files

0.21.0

2 release files

0.20.0

2 release files

0.18.1

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.12.1

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page