Skip to main content

A bundeld set of tools, clients for the lange-suite of tools and more.

Project description

lange-python

Python helpers and clients for Lange services.

Distribution CLI

Publish a distribution artifact to the app services distribution system:

export LANGE_LABS_API_KEY="your-api-key"
lange distribution publish \
  --path ./dist/app.dmg \
  --version 1.2.3 \
  --distribution-name desktop-app \
  --os macos

Apply a macOS app update after downloading the published zip artifact:

from pathlib import Path

from lange.distribution import DistributionClient

client = DistributionClient(distribution_name="desktop-app", api_key="your-api-key")

update_metadata = client.update(
    current_version="1.2.3",
    installed_app_path=Path("/Applications/Desktop App.app"),
)

print(update_metadata["version"])
# The caller should now shut down so the detached helper can replace the app bundle.

Tunnel worker

from lange.tunnel import Tunnel

tunnel = Tunnel(
    host="wss://tunnel.lange-labs.com",
    api_key="your-bearer-token",
    target="http://localhost:3000",
)

tunnel.start()
# ...
tunnel.stop()

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

lange_python-0.3.7.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

lange_python-0.3.7-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file lange_python-0.3.7.tar.gz.

File metadata

  • Download URL: lange_python-0.3.7.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Darwin/25.1.0

File hashes

Hashes for lange_python-0.3.7.tar.gz
Algorithm Hash digest
SHA256 49d81d8baa6613bb3af4a95de53dbc71c6eedfa6043b873589f663977e2f176e
MD5 2552e95eb9d6b5615aa55963a2239357
BLAKE2b-256 2b91abd43988e1be96b2534ca01fc11b0606b6063d0ffbacd385c53c178a84f2

See more details on using hashes here.

File details

Details for the file lange_python-0.3.7-py3-none-any.whl.

File metadata

  • Download URL: lange_python-0.3.7-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Darwin/25.1.0

File hashes

Hashes for lange_python-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7b6bccde40bab3f53c12213691b6f96fcdec3ab62c15e4e893200dc9ec134fcd
MD5 1953054afae72fd4bb5ba48a5e04fca8
BLAKE2b-256 9095686ce060d00398227a9c4043ba07a570c858180eb135998720af4ecef25a

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