Skip to main content

portweights

Deploy a LoRA adapter as a private, OpenAI-compatible API on Portweights. Standard library only; Python 3.9+.

pip install portweights
portweights login                                   # token from https://portweights.com/app/tokens
portweights deploy ./my-adapter --name "Triage"     # adapter_config.json + adapter_model.safetensors
portweights deploy --hf owner/repo                  # or import from Hugging Face
portweights deploy ./my-adapter --region eu         # run it in India (in, default), the US (us) or Europe (eu)
portweights list
portweights key <deployment> --rotate
portweights balance

deploy uploads, waits until the adapter is serving, and prints the base URL, model ID and a new API key (shown once). Call it with any OpenAI SDK.

As a library:

from portweights import Client
pw = Client()                       # PORTWEIGHTS_TOKEN, or the token saved by `portweights login`
d = pw.deploy("./my-adapter", name="Triage")
key = pw.create_key(d["id"])

Metadata

Release files for portweights 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for portweights 0.1.0
File Size Uploaded Provenance Actions
portweights-0.1.0.tar.gz 6.0 kB Without provenance Details for portweights-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for portweights 0.1.0
File Interpreter ABI Platform Actions
portweights-0.1.0-py3-none-any.whl Python 3 none any Details for portweights-0.1.0-py3-none-any.whl

Total release size: 13.7 kB

Release files / portweights-0.1.0.tar.gz

Download URL portweights-0.1.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
825091a361cf8250d7ccfc092aa2459a64edc857e3dd6c2c2b7d0686586be3aa
BLAKE2b-256 checksum
How to use checksums
3edcb2ed9c5652017b574c2d47869f532e5b3b3f7c1aa0316aa5bafdee29ff46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.0

Release files / portweights-0.1.0-py3-none-any.whl

Download URL portweights-0.1.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56c80434354e3ff143b346c016f01d5513011055aeb4a3b5770f892fcd9ce5f6
BLAKE2b-256 checksum
How to use checksums
468f506037a890e3a2cf171162f5b00e33da0ea61246f7809f67f5af19f13af2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.0

Security for portweights 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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