Skip to main content

Python wrapper for TopoMojo API

Project description

PyTopoMojo

This project is a Python API Client that can be used to interact with TopoMojo. It is a work in progress, so not all TopoMojo API endpoints are implemented yet.

📖 API Documentation: https://jbooz1.github.io/pytopomojo/

Installation

pip install pytopomojo

Uplaod Workspace Example

from pytopomojo import Topomojo

topomojo = Topomojo("<topomojo_url>", "<topomojo_api_key>")
topomojo.get_workspaces()

# Upload a workspace archive
topomojo.upload_workspace("/path/to/workspace.zip")

# Upload multiple workspace archives
topomojo.upload_workspaces(["/path/one.zip", "/path/two.zip"])

Workspace Update Example

from pytopomojo import Topomojo

tm = Topomojo("<topomojo_url>", "<api_key>")

# Update workspace name and description
tm.update_workspace(
    workspace_id="<workspace-guid>",
    changed_workspace_data={
        "name": "New Name",
        "description": "New Description"
        # 'id' is optional; the client will include it automatically
    }
)

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

pytopomojo-0.2.0.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

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

pytopomojo-0.2.0-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file pytopomojo-0.2.0.tar.gz.

File metadata

  • Download URL: pytopomojo-0.2.0.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pytopomojo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2e0a919840fa2f6e22a469660e3fbf1e20d4a3f6b25fae70474e5a7ae228beb4
MD5 49cabffeed2eb429773bc7b3dd794d57
BLAKE2b-256 73aba3a70aecd2bb890414b15c5ee8b23ef916d8a924141efd1a855f17c035f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytopomojo-0.2.0.tar.gz:

Publisher: publish.yaml on jbooz1/pytopomojo

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

File details

Details for the file pytopomojo-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pytopomojo-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pytopomojo-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c08fd7b6a1500dfd5bba06eb361f77166c0ab910130ed0db321617fe0ebd2d1b
MD5 d2a9efa9e6e451e2af5f6afffce83bbd
BLAKE2b-256 36ec01715e26887bc497d85344e60d3f51b0e478cbf0985efc8600e435688977

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytopomojo-0.2.0-py3-none-any.whl:

Publisher: publish.yaml on jbooz1/pytopomojo

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 Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page