Skip to main content

hugpy-settings

Hugpy Settings resolves, validates and displays the settings shared by Hugpy clients. Each field has a domain, a storage location and a definition supplied by Hugpy Resources.

Installation

Install this library in the Python environment of the application that reads or edits settings.

python -m pip install hugpy-settings

Quick start

Print the effective values for the shared domain, including where each value came from. The report masks secret fields.

from hugpy_settings import local_settings

for name, row in local_settings.report(["shared"]).items():
    print(name, row["value"], row["source"])

Resolution and storage

For local fields, the process environment takes precedence over configured environment files, saved values and term defaults, in that order. resolve includes provenance for applications that need the actual values. Use report for display.

HUGPY_SETTINGS_DATABASE selects a SQLite settings store. Otherwise local values come from the shared profile, normally ~/.config/hugpy/settings.json. local_settings.update validates a change before saving it, and reset removes overrides.

Editors

Hosts can open the terminal panel for the domains they use. The library provides field widgets, validation and reporting for local settings and HTTP-backed Wrapper settings. A box setting is read or changed through the owning worker’s API.

For a local settings editor, pass a list of domains such as ["discovery", "shared"] to local_panel.run(screen, domains). Sensitive fields carry the same masking policy in the reporting API and editor. The package also records the origin of values loaded from configured environment files so an operator can tell which source to change.

Metadata

Release files for hugpy-settings 0.1.19

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

Source distribution (sdist)

Source distribution for hugpy-settings 0.1.19
File Size Uploaded Provenance Actions
hugpy_settings-0.1.19.tar.gz 86.8 kB Without provenance Details for hugpy_settings-0.1.19.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hugpy-settings 0.1.19
File Interpreter ABI Platform Actions
hugpy_settings-0.1.19-py3-none-any.whl Python 3 none any Details for hugpy_settings-0.1.19-py3-none-any.whl

Total release size: 170.2 kB

Release files / hugpy_settings-0.1.19.tar.gz

Download URL hugpy_settings-0.1.19.tar.gz
Size 86.8 kB
Tags Source
SHA-256 checksum
How to use checksums
16883fd1e5a460ec1d54fb3644dbb85c5dde3019baf3406ce761658f28c61e83
BLAKE2b-256 checksum
How to use checksums
b25c9b50b49530176837b4e9f5c020e01de5e2a4c7da42184c2f32b674a852d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / hugpy_settings-0.1.19-py3-none-any.whl

Download URL hugpy_settings-0.1.19-py3-none-any.whl
Size 83.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a21b866e76e20bf802a5398e35b317f0d35c94f549be774c340fcef22e5eb125
BLAKE2b-256 checksum
How to use checksums
31a8d594e36db65cf0c17d661110fa9b0425783028720c889ef60644b4da935f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for hugpy-settings 0.1.19

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.

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