Skip to main content

BigBoat docker dashboard Python API

PyPI Build status Coverage Status Quality Gate Status

Python wrapper library for the BigBoat API. This API can create, retrieve, update and delete application definitions, do similar operations for instances and poll for status.

Support for v2 and the deprecated v1 APIs (limited to certain operations) is included. Note that BigBoat development itself has halted.

Requirements

The BigBoat Python API has been tested to work on Python 3.8+. The API has few dependencies; see requirements.txt for the list of installation requirements. The short list is also repeated here:

Installation

Install the latest version from PyPI using:

pip install bigboat

For local development, you can use pip install . to install the package from the cloned Git repository.

Functionality

First, import the library:

import bigboat

Next, determine the URL of your BigBoat instance. In this example we use http://BIG_BOAT. Also check whether to use the v1 or v2 version of the API. v1 is limited (deprecated in newer versions) and v2 requires an API key. Example:

api = bigboat.Client_v2('http://BIG_BOAT', 'MY_API_KEY')

You can then use various methods on the client API, namely:

  • api.apps(): List of Applications
  • api.get_app(name, version): Retrieve a specific Application
  • api.update_app(name, version): Register an Application
  • api.delete_app(name, version): Delete an Application
  • api.instances(): List of Instances
  • api.get_instance(): Retrieve a specific Instance
  • api.update_instance(name, app_name, version, ...): Start an Instance
  • api.delete_instance(name): Stop an Instance

In addition to the common methods, v2 has the following API methods:

  • api.get_compose(name, version, file_name): Retrieve a docker compose or bigboat compose file for an Application
  • api.update_compose(name, version, file_name, content): Update a docker compose or bigboat compose file for an Application
  • api.statuses(): Retrieve a list of status dictionaries

Development

  • GitHub Actions is used to run unit tests and report on coverage for commits and pull requests.
  • SonarCloud performs quality gate scans and tracks them.
  • Coveralls receives coverage reports and tracks them.
  • You can perform local lint checks, typing checks, tests and coverage during development (after setting up a local installation) with make pylint, make mypy, make test and make coverage, respectively, after installing dependencies from requirements-analysis.txt by running make setup_analysis (for the pylint and mypy recipes) and from requirements-test.txt with make setup_test (necessary for making all the Makefile recipes mentioned here function correctly).
  • We publish releases to PyPI using make release which performs multiple checks: version number consistency, lint, typing and unit tests.
  • Noteworthy changes to the module are added to the changelog.

License

The API wrapper library is licensed under the Apache 2.0 License.

References

Metadata

Release files for bigboat 1.0.1

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

Source distribution (sdist)

Source distribution for bigboat 1.0.1
File Size Uploaded
bigboat-1.0.1.tar.gz 14.0 kB Details

Built distribution (wheel)

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

Total release size: 29.7 kB

Release files / bigboat-1.0.1.tar.gz

Download URL bigboat-1.0.1.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7428825589f5bddfd50ec12e3038aeca94bd6b9935846d68a865533babf60436
BLAKE2b-256 checksum
How to use checksums
7e74b1dd4b5420944566b41308b9f72a074634f6dd85acedff446315b6f27fd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release files / bigboat-1.0.1-py3-none-any.whl

Download URL bigboat-1.0.1-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfed5b9d64612c2dae363e1fadc9ff845e688779936df6f91fc406c59b119e26
BLAKE2b-256 checksum
How to use checksums
b955cbad85091b89dfcfc22c24d3144ed7133e0d7989ebdce03adce68c4792cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.3.0

2 release files

0.2.12

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

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