faithful-core
Shared foundation library. The shared, tested foundation of the Faithful Oversight tools: safe output, atomic file publishing, console handling, and the WinRM collection plumbing.
Status: early. The first release, 0.1.0, is on PyPI. Read the stability promise below before you depend on it.
What it is
faithful-core is the common base every Faithful Oversight tool builds on. It holds the code that must behave the same in every tool, so that each fix and each test lives in one place.
It has no command-line tool of its own, and it has no runtime dependencies. Its foundation modules never use the network. Two parts can, and only when a tool asks for them: the WinRM transport, and the Vault, AWS Secrets Manager, and Azure Key Vault secret providers. Those providers use their own SDKs, which the tool installs, and each SDK's usual way of finding credentials. The library sends no telemetry.
Who uses it
The Faithful Oversight tools: pakad, toledot, mishpat, shaar, merilo, and gvul. You can use it in your own tools too. The license allows it.
What is in it
| Module | What it does |
|---|---|
faithful_core.errors |
One base error, FaithfulError, and the four errors a tool reports to its user. |
faithful_core.exitcodes |
The exit codes every tool uses. |
faithful_core.safety |
Makes untrusted text safe for a terminal, a CSV file, and Markdown. |
faithful_core.clock |
Writes times the same way on every platform, and gives a repeatable report time. |
faithful_core.console |
Prints without letting a closed pipe or a narrow terminal change an exit code. |
faithful_core.xmlsafe |
Parses untrusted XML with limits on size, depth, and element count. |
faithful_core.files |
Publishes a set of files atomically, and refuses to replace a file the tool reads. |
faithful_core.render |
Small helpers for HTML, Markdown, and JSON reports. |
faithful_core.collect.names |
Checks server and account names. Writes install hints. |
faithful_core.collect.secrets |
Fetches a secret from a variable, a file, a keyring, Vault, AWS, or Azure. Removes it from text. |
faithful_core.collect.script |
Loads a PowerShell script that a tool ships as package data. |
faithful_core.collect.winrm |
The WinRM transport settings and the collection loop. |
docs/api.md describes every name.
Stability promise
- The project follows Semantic Versioning.
- The names listed in docs/api.md are the public interface. A breaking change to one of them needs a new major version. While the version is below 1.0.0, a minor version can break them, and the changelog says so.
- Anything that starts with an underscore is private. It can change in any release.
- Messages are for people. Their wording can change in any release, so do not match on it.
- Exit code values and the
FaithfulErrorhierarchy are part of the public interface.
Installation
pip install faithful-core
The WinRM transport needs pypsrp. It is an optional extra:
pip install "faithful-core[winrm]"
To try unreleased changes, install the development version from GitHub:
pip install git+https://github.com/faithful-oversight/faithful-core
To work from source, see CONTRIBUTING.md.
Usage
from pathlib import Path
from faithful_core.files import write_files
from faithful_core.render import md_table
from faithful_core.safety import terminal_line
rows = [["alice", "=1+1"], ["bob", "line one\nline two"]]
report = "\n".join(md_table(("Name", "Note"), rows)) + "\n"
written = write_files(
Path("report"),
{"report.md": report},
force=False,
slug="example",
)
print(terminal_line(str(written[0])))
Documentation
Security
Please do not report security problems in public issues. See SECURITY.md.
Contributing
Contributions are welcome. Read CONTRIBUTING.md and the code of conduct first.
License
Copyright 2026 Faithful Oversight, LLC. Licensed under the Apache License, Version 2.0.
Metadata
Release files for faithful-core 0.1.1
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 | Actions |
|---|---|---|---|---|
| faithful_core-0.1.1.tar.gz | 118.8 kB | With provenance | Details for faithful_core-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| faithful_core-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for faithful_core-0.1.1-py3-none-any.whl |
Total release size: 154.0 kB
Release files / faithful_core-0.1.1.tar.gz
| Download URL | faithful_core-0.1.1.tar.gz |
|---|---|
| Size | 118.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce6b8394d3f420fd89e6f0fdfb58ff67a7c9e0a269dce43d45c58ff844b45e73
|
|
BLAKE2b-256 checksum How to use checksums |
cce9aab9aab1c9f1be08072259ec5231e7c8695ac5e4064e1bcb759c593a9d30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / faithful_core-0.1.1-py3-none-any.whl
| Download URL | faithful_core-0.1.1-py3-none-any.whl |
|---|---|
| Size | 35.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cee47156e836319002d043bc9d6d4ba2a8cb8f49cd39438a1381cadb183efddd
|
|
BLAKE2b-256 checksum How to use checksums |
e7909c9b5809b72ebdb979e91013dd2801160ff70c76849f641c032a2e4d90bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for faithful-core 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for faithful_core-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA 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.