sourceorrery (Python)
Read secrets from SourceOrrery vaults in Python. Secrets belong to the runtime, not the repository.
from sourceorrery import SecretReader
with SecretReader("development") as reader, reader.get("database-password") as secret:
connect(password=secret.value.expose_text())
# the value is zeroised when the `with` block ends
SourceOrrery replaces the plaintext .env file with an encrypted local
vault. This package is its read-only Python SDK: it opens a vault, reads
the newest accessible version of a secret (or an exact version), its
properties and sourceorrery:// references, and loads every secret a
project's sourceorrery.toml declares. It cannot create, change or delete
a secret through its public API; reads still append audit events.
Documentation: the Python guide · Getting started · Threat model
Before you start: the CLI
Option 1: Set up with the CLI
This SDK is read-only. Use the separately installed sourceorrery CLI to
create vaults and set secret values. pip does not install the CLI. Follow
the CLI installation guide, then:
sourceorrery vault create development
sourceorrery secret set database-password --vault development # typed at a hidden prompt
The CLI does not have to be installed where your application runs: this package opens the vault file itself.
Option 2: Set up with an AI coding agent
sourceorrery init --integration all
Use your existing coding agent and ask: "Set up SourceOrrery for this
project without showing secret values." Replace all with your agent's
name to install only its skills. The agent handles the manifest, code and
launch commands; you create vaults and enter values privately.
The agent setup guide
also covers updating skills from the repository independently of the CLI.
Install
pip install sourceorrery
abi3 wheels for Python 3.11+ on Windows, macOS and Linux (glibc), x64 and arm64, with no runtime dependencies, so nothing is compiled on install. Other platforms build the sdist, which needs Rust 1.91.1+ and a C compiler.
Unlocking
SecretReader("development") finds the vault under SOURCEORRERY_HOME
(or the platform data directory) and opens it like the CLI: this machine's
key in the OS credential store first, then SOURCEORRERY_RECOVERY_KEY, then
the file named by SOURCEORRERY_RECOVERY_KEY_FILE; never an interactive
prompt, and never the vault's view check. On servers,
in containers and in CI, where this machine's key is not available, pass
the vault's recovery key as a file
(Headless).
A secret that one of the vault's connections stores (HashiCorp Vault, AWS Secrets Manager or Azure Key Vault) is read at that provider by the same calls, with the credentials the connection stores or the ones the provider's own tools find in the environment (providers).
Errors and values
Every failure is a SourceOrreryError subclass (SecretNotFoundError,
VaultLockedError, SecretExpiredError, …) with a stable code and a
hint that says what to do, such as the sourceorrery secret set command
that would store a missing secret. A value is a SecretValue: it prints
as [REDACTED], refuses to be pickled, copied or serialised, and is
zeroised by close() or at the end of a with block.
Building from source
From a clone of the repository, with Rust 1.91.1+, a C compiler and Python 3.11+, in a virtual environment:
pip install ./bindings/python # pip fetches maturin and compiles the extension
The tests read a vault that the CLI creates; from the repository root, in Bash (Git Bash on Windows):
cargo build --release -p sourceorrery-cli
eval "$(bash scripts/ci/fixture-vault.sh)"
pip install pytest
python -m pytest bindings/python/tests
Every step, with the prerequisites for each platform: https://sourceorrery.ai/sdks/python/#building-from-source.
Licence
MIT or Apache-2.0, at your option. Source: https://github.com/Netizine/sourceorrery/tree/main/bindings/python.
Metadata
Release files for sourceorrery 0.3.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 |
|---|---|---|---|---|
| sourceorrery-0.3.1.tar.gz | 339.6 kB | With provenance | Details for sourceorrery-0.3.1.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| sourceorrery-0.3.1-cp311-abi3-win_arm64.whl | CPython 3.11 | abi3 | Windows ARM64 | Details for sourceorrery-0.3.1-cp311-abi3-win_arm64.whl |
| sourceorrery-0.3.1-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for sourceorrery-0.3.1-cp311-abi3-win_amd64.whl |
| sourceorrery-0.3.1-cp311-abi3-manylinux_2_28_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.28+ x86-64 | Details for sourceorrery-0.3.1-cp311-abi3-manylinux_2_28_x86_64.whl |
| sourceorrery-0.3.1-cp311-abi3-manylinux_2_28_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.28+ ARM64 | Details for sourceorrery-0.3.1-cp311-abi3-manylinux_2_28_aarch64.whl |
| sourceorrery-0.3.1-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details for sourceorrery-0.3.1-cp311-abi3-macosx_11_0_arm64.whl |
| sourceorrery-0.3.1-cp311-abi3-macosx_10_12_x86_64.whl | CPython 3.11 | abi3 | macOS 10.12+ x86-64 | Details for sourceorrery-0.3.1-cp311-abi3-macosx_10_12_x86_64.whl |
Total release size: 42.6 MB
Release files / sourceorrery-0.3.1.tar.gz
| Download URL | sourceorrery-0.3.1.tar.gz |
|---|---|
| Size | 339.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2107bbd2162edbe12572479b6ca8b6a0894c7085bf209dd015eb3a888c4884ec
|
|
BLAKE2b-256 checksum How to use checksums |
b9a7b9ab494dcbe13118dfcb34d39382eb2416bb99ab1e1f64ead3e4d5a7832e
|
| 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 Oct 26, 2026.
Transparency logRelease files / sourceorrery-0.3.1-cp311-abi3-win_arm64.whl
| Download URL | sourceorrery-0.3.1-cp311-abi3-win_arm64.whl |
|---|---|
| Size | 6.7 MB |
| Tags | CPython 3.11 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
ce87e267a0b9fd4971ac04a11dbda39bc83dc02313e8b4284c12dae130775a26
|
|
BLAKE2b-256 checksum How to use checksums |
91e83129ea751096faae12c6983233a9329ebfe4888c9d13a804d05a46cfac44
|
| 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 Oct 26, 2026.
Transparency logRelease files / sourceorrery-0.3.1-cp311-abi3-win_amd64.whl
| Download URL | sourceorrery-0.3.1-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 7.2 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8eb0edb199f777f9d979a24ce72cbed8a795c39587ff5fb37480dc5658d3e8d5
|
|
BLAKE2b-256 checksum How to use checksums |
41458d86353f407aef4efab81adad28936692be3bd9224ac88beb8f1f2103bdf
|
| 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 Oct 26, 2026.
Transparency logRelease files / sourceorrery-0.3.1-cp311-abi3-manylinux_2_28_x86_64.whl
| Download URL | sourceorrery-0.3.1-cp311-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.0 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
5b19e84a80a07fc56159733b91cddf42a0fca70be10e8d4eb63e952e888c21f5
|
|
BLAKE2b-256 checksum How to use checksums |
c99592e33ddf4ba328fec76dc2d7252cbc6aeae3c3bd78247014ea1dba932664
|
| 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 Oct 26, 2026.
Transparency logRelease files / sourceorrery-0.3.1-cp311-abi3-manylinux_2_28_aarch64.whl
| Download URL | sourceorrery-0.3.1-cp311-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 7.6 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
06f8f68b28c467a8211295a4f4ae6dd26702b5f73ac89e9522c66e17694a7204
|
|
BLAKE2b-256 checksum How to use checksums |
f2f24e4c8c2fd2be6184dffb50bd92d4ea6a15c57922103945c9d64dd49f2a36
|
| 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 Oct 26, 2026.
Transparency logRelease files / sourceorrery-0.3.1-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | sourceorrery-0.3.1-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 6.2 MB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b892d3c42e827ddd44733114ec896e0ec844b7df52a4ef3a8faeca5773f547b8
|
|
BLAKE2b-256 checksum How to use checksums |
35c86ebbb52b29367be8d30509d1d17a536123916e966b244c617569bf511cd4
|
| 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 Oct 26, 2026.
Transparency logRelease files / sourceorrery-0.3.1-cp311-abi3-macosx_10_12_x86_64.whl
| Download URL | sourceorrery-0.3.1-cp311-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 6.6 MB |
| Tags | CPython 3.11 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
d8a14a2f2036da0440a8d433d7bcce161743d39558594634ee5ecb9d6dc61f77
|
|
BLAKE2b-256 checksum How to use checksums |
36a70d52f2d50801e0f94dc0a4269443120538d4de2bac30cc402ef464035480
|
| 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 Oct 26, 2026.
Transparency logSecurity for sourceorrery 0.3.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
All 7 files in this release have been uploaded with provenance metadata.
Attestation for sourceorrery-0.3.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 Oct 26, 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.