armonik


Namearmonik JSON
Version 3.16.2 PyPI version JSON
download
home_page
SummaryGRPC python binding for the ArmoniK orchestrator API
upload_time2024-03-19 11:30:06
maintainer
docs_urlNone
author
requires_python>=3.7
licenseApache v2.0 LICENSE
keywords cloud htc grpc armonik aneo
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://pypi.org/project/armonik).
To install the package to your current Python environment, you can use pip :
```
pip install armonik
```

## Linux / [WSL](https://learn.microsoft.com/en-us/windows/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](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:

```bash
./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.

 ```bash 
 pip install -e ./packages/python
 ```

### **How to install the generated package**
From this directory, use the following command:
```code 
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:

```bash
sudo apt install dotnet-sdk-6.0 jq
```


2. Launch the Mock Server:

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

```bash
lsof -i :5000
```

3. Launch the server from the project's root directory in a separate terminal:

```bash
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

```bash
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](https://github.com/grpc/grpc/issues/34305)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "armonik",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "cloud,HTC,gRPC,ArmoniK,Aneo",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/8f/05/c51922adf7bb827ccc2371b1d852ec023af8b3fe671933faff3ca48a4935/armonik-3.16.2.tar.gz",
    "platform": null,
    "description": "# ArmoniK.Api Python package\nThis 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.\n\n## Install the Python Package from PyPI\nAt each release, we provide a prepackaged version of ArmoniK.Api available on PyPI here : [https://pypi.org/project/armonik](https://pypi.org/project/armonik).\nTo install the package to your current Python environment, you can use pip :\n```\npip install armonik\n```\n\n## Linux / [WSL](https://learn.microsoft.com/en-us/windows/wsl/)\n### **How to generate**\n\nRequirements :\n- Python >= 3.7\n- Python3-venv\n- Pip3\n- Bash\n\nIf 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.\n\nTo generate the package from sources, run the [proto2python.sh](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:\n\n```bash\n./proto2python.sh ~/pyvenv\n```\n\n3 folders will be created :\n- generated : contains the source files used to create the package\n- build : contains the source files used to create the wheel package\n- pkg : contains the sdist and wheel packages\n\nInstead 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.\n\n ```bash \n pip install -e ./packages/python\n ```\n\n### **How to install the generated package**\nFrom this directory, use the following command:\n```code \npip install pkg/armonik*.whl\n```\nThe generated package will be installed to your current python environment\n\n## Windows\nComing soon\n\n## Tests\n\n### **Test Environment Setup**\n\nBefore running tests, ensure the following setup steps are completed:\n\n1. Install Dependencies:\n\n```bash\nsudo apt install dotnet-sdk-6.0 jq\n```\n\n\n2. Launch the Mock Server:\n\nVerify that port 5000 is available (Armonik and the mock server communicate on the same port, uninstall armonik if necessary):\n\n```bash\nlsof -i :5000\n```\n\n3. Launch the server from the project's root directory in a separate terminal:\n\n```bash\ncd packages/csharp/ArmoniK.Api.Mock\ndotnet run\n```\n\n### **Test Environment Summary**\n\nThe 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\n\n```bash\ncurl localhost:5000/calls.json | jq\n```\n\n## WARNING\n\n### Note for Users\n\nStarting from gRPC version 1.57 and onward, it is necessary to explicitly specify the default authority when creating the gRPC channel. [more details](https://github.com/grpc/grpc/issues/34305)\n",
    "bugtrack_url": null,
    "license": "Apache v2.0 LICENSE",
    "summary": "GRPC python binding for the ArmoniK orchestrator API",
    "version": "3.16.2",
    "project_urls": {
        "Bug Tracker": "https://github.com/aneoconsulting/ArmoniK/issues",
        "Homepage": "https://github.com/aneoconsulting/ArmoniK.Api"
    },
    "split_keywords": [
        "cloud",
        "htc",
        "grpc",
        "armonik",
        "aneo"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f655c35040c0a37981b60fd10bb469b91308fb036921385d79545369549cab1a",
                "md5": "15f9685097582baaaa7946110241bf63",
                "sha256": "4ac1587c32ae610418222119ee573776443923d2ae21db46a804304bbe2e8cbd"
            },
            "downloads": -1,
            "filename": "armonik-3.16.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "15f9685097582baaaa7946110241bf63",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 139327,
            "upload_time": "2024-03-19T11:30:02",
            "upload_time_iso_8601": "2024-03-19T11:30:02.779917Z",
            "url": "https://files.pythonhosted.org/packages/f6/55/c35040c0a37981b60fd10bb469b91308fb036921385d79545369549cab1a/armonik-3.16.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8f05c51922adf7bb827ccc2371b1d852ec023af8b3fe671933faff3ca48a4935",
                "md5": "410a0de089d9c6c4671be8d16f4f4b26",
                "sha256": "367fe4b6ded173f371438ce82fe05bb229b0acc7fecef3f57412bd34e2962b27"
            },
            "downloads": -1,
            "filename": "armonik-3.16.2.tar.gz",
            "has_sig": false,
            "md5_digest": "410a0de089d9c6c4671be8d16f4f4b26",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 78425,
            "upload_time": "2024-03-19T11:30:06",
            "upload_time_iso_8601": "2024-03-19T11:30:06.028297Z",
            "url": "https://files.pythonhosted.org/packages/8f/05/c51922adf7bb827ccc2371b1d852ec023af8b3fe671933faff3ca48a4935/armonik-3.16.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-19 11:30:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "aneoconsulting",
    "github_project": "ArmoniK",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "armonik"
}
        
Elapsed time: 0.22316s