Skip to main content

FABRIC Python Client Library and CLI Extensions

Project description

fabrictestbed-extensions

pypi-badge api-docs-badge

This is the implementation of a Python library, otherwise known as "FABlib", for interacting with FABRIC testbed.

Your first encounter with FABlib might be through FABRIC project's JupyterHub instance, where FABlib is pre-installed for you. You will be presented with many examples of interacting with FABRIC testbed and FABlib usage when you log in there. Those notebook sources can be found on GitHub as well.

If you want to interact with FABRIC from Jupyter or a Python project on your local development environment, that is possible too. See Install the FABRIC Python API and the notes below for details.

FABlib API docs can be found here. If you have questions about FABRIC or FABlib usage, please ask them in FABRIC forums.

Installing FABlib

You can install released versions of FABlib from PyPI:

$ pip install fabrictestbed-extensions

If you need the current development version of FABlib, install it from the git repository:

$ pip install git+https://github.com/fabric-testbed/fabrictestbed-extensions@main

Note that installing FABlib using either methods will also install a number of dependencies, so you might want to install FABlib in a virtual environment. Your favorite tool for managing virtual environments (venv, virtualenv, or virtualenvwrapper) should work. FABRIC team tends to favor virtualenvwrapper.

Using FABlib

Once installed, you can use FABlib in your Python projects:

from fabrictestbed_extensions.fablib.fablib import FablibManager as fablib_manager

try:
    fablib = fablib_manager()
    fablib.show_config()
except Exception as e:
    print(f"Exception: {e}")

Please note that some configuration is required for this to work.

Contributing to FABlib

We welcome contributions in the form of bug reports, feature requests, code patches, documentation updates, etc. If you have ideas that can help FABlib, please review the guidelines first.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fabrictestbed_extensions-1.8.1.tar.gz (438.7 kB view details)

Uploaded Source

Built Distribution

fabrictestbed_extensions-1.8.1-py3-none-any.whl (420.0 kB view details)

Uploaded Python 3

File details

Details for the file fabrictestbed_extensions-1.8.1.tar.gz.

File metadata

File hashes

Hashes for fabrictestbed_extensions-1.8.1.tar.gz
Algorithm Hash digest
SHA256 6682c623a121c91df3acb01fd7f54e307df87083ecba9f72b3b8912888be991d
MD5 36c6c48247594432a44741cf4980c9b9
BLAKE2b-256 e9a39261ca33a16c859ff07ac7267276361d3f624d1a0398a5d9e47bc59a9e73

See more details on using hashes here.

Provenance

The following attestation bundles were made for fabrictestbed_extensions-1.8.1.tar.gz:

Publisher: publish.yml on fabric-testbed/fabrictestbed-extensions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fabrictestbed_extensions-1.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fabrictestbed_extensions-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60ae85e963d65cda14f81b0caad02782ab0588cde8b4e2ce5118e80651103dee
MD5 80de3b3396daaa9af630577ee90103ef
BLAKE2b-256 2a868cc4dae7c5445261ba3caebcf42bddd56f530a04acb2cc9322396ff75400

See more details on using hashes here.

Provenance

The following attestation bundles were made for fabrictestbed_extensions-1.8.1-py3-none-any.whl:

Publisher: publish.yml on fabric-testbed/fabrictestbed-extensions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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