paradigx-cli-core
Shared core for Paradigx
product CLIs (botu, tokenroute, ...).
This is a library, not a CLI — it has no command entry point. Product CLIs depend on it and keep only their command layer.
What it provides
- OAuth device-flow login against Logto (
auth,device_flow) - Shared token cache at
~/.paradigx/auth.json, keyed by API URL, so one login is reused across every Paradigx CLI (config) - Automatic JWT refresh — cached tokens are transparently renewed via
the stored refresh token (
auth.valid_access_token) - HTTP client with per-product trailing-slash / redirect handling
(
client) --jsonoutput helpers — rich tables for humans, JSON for agents (output)
Usage (by a product CLI)
from paradigx_cli_core import do_login, valid_access_token, request
# login
do_login("https://botu.io/api/auth/discovery/", "https://botu.io",
on_code=lambda c: print("visit", c.verification_uri_complete))
# authenticated call (auto-refreshes the token)
token = valid_access_token("https://botu.io")
sites = request("GET", "https://botu.io", "/api/sites",
token=token, trailing_slash=True)
See docs/specs/cli-phase-b.md in the workspace repo for the design.
© 2026 Paradigx. All Rights Reserved.
Metadata
Release files for paradigx-cli-core 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| paradigx_cli_core-0.1.0.tar.gz | 10.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| paradigx_cli_core-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.6 kB
Release files / paradigx_cli_core-0.1.0.tar.gz
| Download URL | paradigx_cli_core-0.1.0.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47e6761e3cda79fe3bbf915e939e577203ae5fd5b77259f8a79eeae00795f595
|
|
BLAKE2b-256 checksum How to use checksums |
e0be05c00d9e550bd6217af3449714d95003478b5edd3eeb498acf922eb4c778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / paradigx_cli_core-0.1.0-py3-none-any.whl
| Download URL | paradigx_cli_core-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d90598c9dcb7e296b4fd7bfafce9ee9564226dee61197baa346ef143fa73251a
|
|
BLAKE2b-256 checksum How to use checksums |
cbc4f4f1b0f7d4e1ccd36a79a5843e6caf2c4d4d105fc35937cd73584f2e805b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for paradigx-cli-core 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.