Skip to main content

OneFuse upstream provider package for Python

Project description

This is a context manager class available to Python that facilitates easy API connectivity from a Python script host to a OneFuse host.

Installation

You will want to install the latest version that matches the version of your OneFuse appliance. To find available versions the following command will cause pip to throw an error showing available versions:

$pip install onefuse==versions

To install the OneFuse Python Module by version:

$pip install onefuse==1.3.0

To install the Latest OneFuse Python Module:

$ pip install onefuse

To upgrade OneFuse to the latest version if OneFuse is already installed:

$ pip install onefuse --upgrade

Usage

Import and instantiate a OneFuseManager:

from onefuse.admin import OneFuseManager
ofm = OneFuseManager(username, password, host)

Accepted optional kwargs

  • source - default ‘PYTHON’ - allows to specify source so that this class can be called by other modules (CloudBolt, etc.). All OneFuse jobs will show this value as the Source of the job

  • protocol - default ‘https’ - Allows to specify non-standard protocol

  • port - default 443 - Allows to specify non-standard port

  • verify_certs - default False - Allows to specify whether or not to verify OneFuse certs

  • logger - allows you to pass in logger information. By default will log to onefuse.log as well as to console at the LOG_LEVEL set in configuration.globals

Authentication, headers, and url creation is handled within this class, freeing the caller from having to deal with these tasks.

Examples

Example 1 - Make custom REST calls to OneFuse:

from onefuse.admin import OneFuseManager
ofm = OneFuseManager(username, password, host)
response = ofm.get('/namingPolicies/')

Example 2 - Provision Naming with OOB methods:

from onefuse.admin import OneFuseManager
ofm = OneFuseManager(username, password, host)
naming_json = ofm.provision_naming(self, policy_name, properties_stack,
                                   tracking_id)

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

onefuse-2026.1.1.tar.gz (32.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onefuse-2026.1.1-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

Details for the file onefuse-2026.1.1.tar.gz.

File metadata

  • Download URL: onefuse-2026.1.1.tar.gz
  • Upload date:
  • Size: 32.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for onefuse-2026.1.1.tar.gz
Algorithm Hash digest
SHA256 916854f5ec7b5641b4d7b20af1bb470b0ccab90fe374fd9d18eb39b0d0ed772a
MD5 5d448ada7f6535cf0958892bf86cd5f0
BLAKE2b-256 576c7be75f64008ec5225602e2f1ffbf11db682cbd9c5802779475cab415802a

See more details on using hashes here.

File details

Details for the file onefuse-2026.1.1-py3-none-any.whl.

File metadata

  • Download URL: onefuse-2026.1.1-py3-none-any.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for onefuse-2026.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03fe64123925da441171765c6adffe1b26daa9dc7f65089112e86c5a9221f0d4
MD5 8ec1be201087c9bb05bc2034f995a2bd
BLAKE2b-256 4fdf2f7b3857f739edd0604c075d2e359d5623eddd772c2e8e4b20f34f887ef2

See more details on using hashes here.

Supported by

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