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.

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.1.6.tar.gz (19.3 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.1.6-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytopomojo-0.1.6.tar.gz
Algorithm Hash digest
SHA256 fe3b8921f669be660b49384bc306f2060d9587291d704f391aea77df0b07f09d
MD5 65e2f932a942c9c37f40b3cebbd80ff4
BLAKE2b-256 23e841382bfd85ee41a4db9ded8ff985cda9bc72ebbb4c412930a5189afb1034

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytopomojo-0.1.6.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.1.6-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pytopomojo-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 da92a45cc8e8e7a363ea6c096cf381531fed0800ad5a40d7b3df6e6d3f8c6ac0
MD5 7f85d8a4ab93c073ae034b3bfb850566
BLAKE2b-256 f7ecc78356e2debffd838405755c432594f5df11bc7e6617747f4d694713803d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytopomojo-0.1.6-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