Elektrobit Command Python interface
Project description
Overview
EBCommander is intended as an interaction layer between Python and EBCommand (https://command.elektrobit.com). It can either be used as a module or directly via Commandline.
Preconditions
The script depends on the following Python packages
- beautifulsoup4
- requests
- pyyaml
Use as module
Import EBCommand.
from ebcommander import EbCommand
Create an instance (this starts the initial data retrieval which may take a while, therefore, it should be considered to run it asynchronously).
commander = EbCommand('your-user', 'your-password')
For more information please have a look at doc.
Use from the Commandline
Direct call
For simple requests (e.g. just to get a glimpse at a specific file) the script can be called with the following arguments
| Argument | Description |
|---|---|
| --json | JSON file to which filtered data shall be written |
| --yaml | YAML file to which filtered data shall be written |
| --filter | File filter pattern |
| --download | Path to which the files shall be downloaded |
Complex calls
For more versatile operations a config file must be provided. It can contain several settings to apply filters on projects, distributions, versions and files, store JSON and YAML files and download the retrieved files. For more information see example-config.yaml
The config is provided by the following arguments
| Argument | Description |
|---|---|
| --config | Path to config for more complex setups |
Regardless, if direct or compex calls, the following arguments must be provided
| Argument | Description |
|---|---|
| --user | EBCommand username |
| --password | EBCommand user password |
Additionally, the following arguments can optionally be provided
| Argument | Description |
|---|---|
| --proxy-http | HTTP proxy (e.g. http://localhost:1234) |
| --proxy-https | HTTPS proxy (e.g. https://localhost:1234) |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ebcommander-1.0.1.tar.gz.
File metadata
- Download URL: ebcommander-1.0.1.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e657335c1ef777ad2075f0a12f499c69b02718ee5d53b226ca049e76567f34f
|
|
| MD5 |
38b705f77c7612c89b06b8b06cc0d4a3
|
|
| BLAKE2b-256 |
54ce81d0adf4bcc3beb184c9c63bd856281567289b0a7301dbc3bc9a16c849c0
|
File details
Details for the file ebcommander-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ebcommander-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9551076ab0e4d9f5ddd8c528652d99132373906acdeee5178909c99a54edc7d
|
|
| MD5 |
e47722146c64e48ad6c08c45f167e8d5
|
|
| BLAKE2b-256 |
b69db00c413d01a96fe692d1cecd067f450812688580f16d361588b2696fff2f
|