| Crates.io | oo7-python |
| lib.rs | oo7-python |
| version | 0.6.0-alpha |
| created_at | 2026-01-21 08:10:40.537088+00 |
| updated_at | 2026-01-21 08:10:40.537088+00 |
| description | Python bindings for oo7 |
| homepage | https://github.com/bilelmoussaoui/oo7 |
| repository | https://github.com/bilelmoussaoui/oo7 |
| max_upload_size | |
| id | 2058605 |
| size | 9,940,317 |
Python bindings for oo7, providing access to Secret Service API on Linux. Automatically uses a file-based keyring when running in a sandboxed environment.
cd python
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
maturin develop
import asyncio
import oo7
async def main():
# Create keyring
keyring = await oo7.Keyring.new()
# Store a secret
await keyring.create_item(
"My Password",
{"application": "myapp", "username": "alice"},
b"secret-password",
replace=True
)
# Search for items
items = await keyring.search_items({"application": "myapp"})
for item in items:
secret = await item.secret()
print(f"Secret: {secret}")
# Clean up
await keyring.delete({"application": "myapp"})
asyncio.run(main())
pytest
See tests/test_keyring.py for more examples.
MIT