Skip to main content

A Python package to interact with a Cegal Hub Server and Cegal Hub Connectors

Project description

Introduction

A Python client library to use with a Cegal Hub Server and Cegal Hub Connector applications. Cegal Hub allows for exchange of data and messages across process boundaries on the local machine or across a network or internet. Out of the box the library allows for working with local or remote Cegal Hub Agents or Cegal Hub Connectors such as the Cegal Hub Petrel Connector and for queries against a running Cegal Hub Server which may also be local or remote. The library is designed to be consumed by other Python libraries with knowledge about specific Cegal Hub Connectors and functionality. Cegal Hub is secured using Cegal Keystone.

Usage

  1. Configure logging (Optional)
  2. Create a Hub object to work with a Cegal Hub Server
  3. Make queries against a running Cegal Hub Server
  4. Make client requests against Cegal Hub Connector applications

Basic Example working with a local running Cegal Hub Server

import logging

# Import the Hub object
from cegalprizm.hub import Hub

# Configure logging to stdout with info level
logging.getLogger()
logging.basicConfig(
    format="%(asctime)s %(levelname)s %(message)s",
    level=logging.INFO,
    stream=sys.stdout,
)

# Create a Hub object
hub = Hub()

# Verify that the local Hub Server is running
hub.verify_health()

# Check that the version of the Python client library is compatible with the running Hub Server
hub.is_version_compatible()

# Query the server
hub.print_query_server()

# Query the available connectors
hub.print_query_connectors()

Further information and examples

Please see the Cegal Prizm Documentation site here

License

Copyright (2022) Cegal, As. This library (the "Software") may not be used except in connection with the Licensees use of the Cegal Prizm Hub pursuant to an Agreement (defined below) between Licensee (defined below) and Cegal, AS. ("Cegal"). This Software shall be deemed part of the "Subscription Services" under the Agreement. Licensees use of the Software must comply at all times with any restrictions applicable to the Subscription Services, generally, and must be used in accordance with any applicable documentation. If you have not agreed to an Agreement or otherwise do not agree to these terms, you may not use the Software. This license terminates automatically upon the termination of the Agreement or Licensees breach of these terms. Agreement: the agreement between Cegal and Licensee governing the use of the Cegal Prizm Hub, which shall be, with respect to Cegal, and the Cegal Terms of Service located at https://cegal.com/about/terms-and-conditions , in each case unless Licensee has entered into a separate written agreement with Cegal governing the use of the applicable Cegal Services. Licensee: the user of the Software, or, if the Software is being used on behalf of a company, the company.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

cegalprizm_hub-1.0.dev32604-py3-none-any.whl (44.8 kB view details)

Uploaded Python 3

File details

Details for the file cegalprizm_hub-1.0.dev32604-py3-none-any.whl.

File metadata

  • Download URL: cegalprizm_hub-1.0.dev32604-py3-none-any.whl
  • Upload date:
  • Size: 44.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for cegalprizm_hub-1.0.dev32604-py3-none-any.whl
Algorithm Hash digest
SHA256 01016e55356b5485fe7cb61e7cdcc50bf7f550510ba9aa2fbac68346cae76899
MD5 0695ef4161d7a891bc986e03c66b2ca7
BLAKE2b-256 a34df6a9f33e10134399ef299fe661bedf37b8b854f0ca55e6ee3cb39272a27f

See more details on using hashes here.

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