Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ArmoniK.Api Python package

This folder contains the necessary scripts to generate the ArmoniK.Api Python package. Please note that while the package generation is platform dependent, the generated package should be compatible with Linux and Windows.

Install the Python Package from PyPI

At each release, we provide a prepackaged version of ArmoniK.Api available on PyPI here : https://pypi.org/project/armonik. To install the package to your current Python environment, you can use pip :

pip install armonik

Linux / WSL

How to generate

Requirements :

  • Python >= 3.7
  • Python3-venv
  • Pip3
  • Bash

If the python command doesn't link to python3 on your system, you may be able to install the package python-is-python3, which links python to python3.

To generate the package from sources, run the proto2python.sh script from its folder. You need to specify a directory where the virtual environment used for the build will be located. For example the following command will generate the packages and will create the build environment "pyvenv" in the current user's home directory:

./proto2python.sh ~/pyvenv

3 folders will be created :

  • generated : contains the source files used to create the package
  • build : contains the source files used to create the wheel package
  • pkg : contains the sdist and wheel packages

Instead of running the script you can install the armonik package in "editable" mode, allowing you to make changes to the source code, and the changes will be reflected immediately without reinstalling the package.

pip install -e ./packages/python

How to install the generated package

From this directory, use the following command:

pip install pkg/armonik*.whl

The generated package will be installed to your current python environment

Windows

Coming soon

Tests

Test Environment Setup

Before running tests, ensure the following setup steps are completed:

  1. Install Dependencies:
sudo apt install dotnet-sdk-6.0 jq
  1. Launch the Mock Server:

Verify that port 5000 is available (Armonik and the mock server communicate on the same port, uninstall armonik if necessary):

lsof -i :5000
  1. Launch the server from the project's root directory in a separate terminal:
cd packages/csharp/ArmoniK.Api.Mock
dotnet run

Test Environment Summary

The test environment utilizes a mock endpoint to assert if the ArmoniK service has been triggered. It leverages the requests library to query the /calls.json endpoint, examining the JSON response to validate the count of remote procedure calls made to specific services and methods

curl localhost:5000/calls.json | jq

WARNING

Note for Users

Starting from gRPC version 1.57 and onward, it is necessary to explicitly specify the default authority when creating the gRPC channel. more details

Metadata

Release files for armonik 3.15.2.dev1594

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

Source distribution (sdist)

Source distribution for armonik 3.15.2.dev1594
File Size Uploaded
armonik-3.15.2.dev1594.tar.gz 77.3 kB Details

Built distribution (wheel)

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

Total release size: 215.7 kB

Release files / armonik-3.15.2.dev1594.tar.gz

Download URL armonik-3.15.2.dev1594.tar.gz
Size 77.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6a30d35ad6e429f3431f81c9e25e46c51ec3aa784dbc1fd04605543c88308532
BLAKE2b-256 checksum
How to use checksums
e086bf0b1be506d5d13650b02c30c184ecd5a8d89d71fbc66974b2866bf9a379
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / armonik-3.15.2.dev1594-py3-none-any.whl

Download URL armonik-3.15.2.dev1594-py3-none-any.whl
Size 138.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bb791e563653659c39ce9642ce8ebb7c569fa94fb7fe5d556669ee8e7ae1506
BLAKE2b-256 checksum
How to use checksums
fb67d0303261570b747a2084594f9145729d531a22121316a2f187d27a328c65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release history Release notifications | RSS feed

3.29.3

2 release files

3.29.2

2 release files

3.29.1

2 release files

3.29.0

2 release files

3.28.2

2 release files

3.28.0

2 release files

3.27.0

2 release files

3.26.1

2 release files

3.26.0

2 release files

3.23.0

2 release files

3.22.0

2 release files

3.21.0

2 release files

3.19.0

2 release files

3.18.1

2 release files

3.17.0

2 release files

3.16.2

2 release files

3.16.0

2 release files

This release

3.15.2.dev1594 This release

2 release files

3.15.0

2 release files

3.14.0

2 release files

3.13.2

2 release files

3.13.0

2 release files

3.11.0

2 release files

3.9.2

2 release files

3.9.0

2 release files

3.8.2

2 release files

3.8.1

2 release files

3.8.0

2 release files

3.7.2

2 release files

3.6.1

2 release files

3.6.0

2 release files

3.5.3

2 release files

3.5.2

2 release files

3.5.1

2 release files

3.5.0

2 release files

3.4.0

2 release files

3.3.0

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.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