Skip to main content

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

ebcommander-1.0.1.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distribution

ebcommander-1.0.1-py3-none-any.whl (11.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page