Skip to main content

A Python SDK to access the Storyscript Hub, which supports caching and more

Project description

PyPi CircleCI Codecov Contributor Covenant Code style: black

hub-sdk-python

A Python SDK to access the Storyscript Hub, which supports caching and more

Developer

Furthermore, install pre-commit and set up a git hook:

pip install --user pre-commit
pre-commit install

This will ensure that every commit is formatted according to black.

Legacy Usage

from storyhub.sdk.StoryscriptHub import StoryscriptHub

python_service = StoryscriptHub().get("python")

print("Service Name:", python_service.name)
print("UUID:", python_service.service_uuid)
print("Alias:", python_service.alias)
print("Username:", python_service.username)
print("Service Data:", python_service.raw_data)

Advanced Usage

The Storyscript Hub SDK provides the ability to safely access the entire hub service data.

from storyhub.sdk.StoryscriptHub import StoryscriptHub

# tell the hub sdk to utilize the service wrapper
# making it easy to access objects safely
hub = StoryscriptHub(service_wrapper=True)

python_service = StoryscriptHub(service_wrapper=True).get("python")

configuration = python_service.configuration()

print("License Type:", configuration.license().name())
print("Startup Command:", configuration.lifecycle().startup().command())

Project details


Download files

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

Files for story-hub, version 0.3.13
Filename, size File type Python version Upload date Hashes
Filename, size story_hub-0.3.13-py2.py3-none-any.whl (40.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size story-hub-0.3.13.tar.gz (42.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page