Skip to main content

Python Ubersmith

Pypi MIT licensed GitHub Release Date

A fully-featured API wrapper for the Ubersmith API

Python wrappers exist on PyPI and across GitHub for interacting with the Ubersmith API, but each of them fails to provide full compatibility.

In comes ubersmith-api...

Installation

# PyPi Installation
pip install ubersmith-api
# GitHub Installation
pip install git+'https://github.com/bnassif/ubersmith-api.git'

Overview

The ubersmith-api package ships two separate layers of usage, which offer varying levels of compatibility.

Both levels use the robust UbersmithConfig Pydantic Settings object, which exposes all settings for how to interact with the API.

Universal Client

The universal client, UbersmithClient provides a generic object for interacting with any Ubersmith version using the version 2.0 API. This object ships with just three methods bound to it:

  • UbersmithClient.request(): Method for making API calls
  • UbersmithClient.system_info(): Calls user.system_info
  • UbersmithClient.method_list(): Calls user.method_list
  • UbersmithClient.method_get(): Calls user.method_get

Example Usage

from ubersmith import *

config = UbersmithConfig(
    host='target-hostname-or-address',
    username='username-to-use',
    password='api-token-for-user',
)

api_client = UbersmithClient(config)

client_info = api_client.request(
    'client.get',
    data={
        'client_id': 1234,
        'metadata': True,
    },
    #raw=True, # Optionally return the unparsed `requests.Response` object
)

Version Specific Clients

Built atop the universal client, version-specific clients are also shipped with ubersmith-api to provide more robust API interactions.

Version-specific clients extend the UbersmithClient object by binding API sections to it, with each section having functions that correspond to API methods.

Example Usage

from ubersmith.versions import *

config = UbersmithConfig(
    host='target-hostname-or-address',
    username='username-to-use',
    password='api-token-for-user',
)

api_client = get_client(version='5.1.3-rc2', config=config)

client_info = api_client.client.get(
  client_id=1234,
  metadata=True,
)

License

MIT - Feel free to use, extend, and contribute.

Metadata

Release files for ubersmith-api 1.1.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 ubersmith-api 1.1.1
File Size Uploaded Provenance Actions
ubersmith_api-1.1.1.tar.gz 311.9 kB With provenance Details for ubersmith_api-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ubersmith-api 1.1.1
File Interpreter ABI Platform Actions
ubersmith_api-1.1.1-py3-none-any.whl Python 3 none any Details for ubersmith_api-1.1.1-py3-none-any.whl

Total release size: 645.3 kB

Release files / ubersmith_api-1.1.1.tar.gz

Download URL ubersmith_api-1.1.1.tar.gz
Size 311.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8bc9c094f58296584b28d811a7049c947b3e12d201e255a751f1a1926bff4078
BLAKE2b-256 checksum
How to use checksums
7eb66d720bb494d4c02ef9e28e32ce8f14e1939b64246fd2587e48899f05fade
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / ubersmith_api-1.1.1-py3-none-any.whl

Download URL ubersmith_api-1.1.1-py3-none-any.whl
Size 333.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bace24b28e12f0a666cfdd254861bb585d83a9e469128eb4f1dc53cfe24c46c1
BLAKE2b-256 checksum
How to use checksums
93df656e569919f3c9a42b21b0bda16ad1a011eb8b5eafe0113342c43fb92c55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for ubersmith-api 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ubersmith_api-1.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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