Skip to main content

No project description provided

Project description

keyringrs

A Python binding for keyring-rs.

While keyring is a great tool, it doesn't fully meet our general requirements due to the following reasons:

  • Native Linux Keyutils Support: We need seamless integration with keyutils on Linux.
  • Proper Memory Management on macOS: We perform numerous key queries, and keyring has known memory management issues on macOS (see issue jaraco/keyring #670).

This library aims to maintain API compatibility with keyring-rs as closely as possible.

Installation

To install the package, simply run:

pip install keyringrs

Usage

Here's a quick example of how to use keyringrs:

from keyringrs import Entry

# Create an entry for the given service and username
entry = Entry("my-service", "my-name")

# Set a password
entry.set_password("0Xl$$K6o2bBwDe")

# Retrieve the password
password = entry.get_password()
print(f"My password is '{password}'")

# Delete the credential
entry.delete_credential()

This interface follows the same logic as keyring-rs to ensure consistency and ease of use.

tree layout

The repo organized using mixed rust/python layout.

.
├── Cargo.lock
├── Cargo.toml
├── README.md
├── keyringrs
│   └── __init__.py
├── pyproject.toml
├── src
│   └── lib.rs
├── tests
│   └── test_base.py
└── uv.lock

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keyringrs-0.1.0.tar.gz (21.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

keyringrs-0.1.0-cp39-abi3-win_amd64.whl (138.9 kB view details)

Uploaded CPython 3.9+Windows x86-64

keyringrs-0.1.0-cp39-abi3-win32.whl (132.2 kB view details)

Uploaded CPython 3.9+Windows x86

keyringrs-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl (439.3 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ x86-64

keyringrs-0.1.0-cp39-abi3-musllinux_1_2_i686.whl (463.9 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ i686

keyringrs-0.1.0-cp39-abi3-musllinux_1_2_armv7l.whl (534.9 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARMv7l

keyringrs-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl (445.3 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

keyringrs-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (272.2 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

keyringrs-0.1.0-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (312.8 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ s390x

keyringrs-0.1.0-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (329.1 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ppc64le

keyringrs-0.1.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (276.5 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARMv7l

keyringrs-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (271.1 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

keyringrs-0.1.0-cp39-abi3-manylinux_2_5_i686.manylinux1_i686.whl (287.4 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.5+ i686

keyringrs-0.1.0-cp39-abi3-macosx_11_0_arm64.whl (243.4 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

keyringrs-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl (248.7 kB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file keyringrs-0.1.0.tar.gz.

File metadata

  • Download URL: keyringrs-0.1.0.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.2

File hashes

Hashes for keyringrs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7f9c17d1fe9d56d298323be6999e11b24ba2c1c545217404b4c66178d1bb82d9
MD5 e543d0a0158b16cb336582a145f2ec05
BLAKE2b-256 4d428ba563e210bb1e9d2ed55106ea134c90257cbdb9a964036f16fac44ad714

See more details on using hashes here.

File details

Details for the file keyringrs-0.1.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: keyringrs-0.1.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 138.9 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.2

File hashes

Hashes for keyringrs-0.1.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e77f53571763fb1d8331d2eec91635cd5b51cf7e22a51d79e9b898e8adfe45e2
MD5 00bbeac1f026512e58c409f86a59e277
BLAKE2b-256 c8b18e9d61b425a089ded9da73cf163e78cc14f02ef9a2146f3bec59ce727843

See more details on using hashes here.

File details

Details for the file keyringrs-0.1.0-cp39-abi3-win32.whl.

File metadata

  • Download URL: keyringrs-0.1.0-cp39-abi3-win32.whl
  • Upload date:
  • Size: 132.2 kB
  • Tags: CPython 3.9+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.2

File hashes

Hashes for keyringrs-0.1.0-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 eacdfac242b683b70af0c8a8a06d626a9bae7932c42f96128ad0ee03f6372c7f
MD5 e49d962992d050f4e877d82afec1bcad
BLAKE2b-256 5942d923be64876c88e68685c5ffe1ae4a0f74dbbd474d7868e0bd41ab133cce

See more details on using hashes here.

File details

Details for the file keyringrs-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for keyringrs-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 34a6e02f9c152bbfed43a525b9e98c266408d08a7a4ce0f352492f5e20b49e79
MD5 0b25cecebffe932e078ef6663c1aff41
BLAKE2b-256 ef1257852b13d5075ce61e1278dbe6219df91473d3b5f9d977d48519bfc61ffd

See more details on using hashes here.

File details

Details for the file keyringrs-0.1.0-cp39-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for keyringrs-0.1.0-cp39-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 5a1f9cfabdc2db738b5b1ffbd22cfd333d9339d37d2b4c0288ae0acc8c9b4ec4
MD5 a9cd6f663b6dc45d41585e23f08ef3c1
BLAKE2b-256 a5595764ec45f188a97ffc16175c2de57b4836c52014fd8aa06fd76acbd75b7a

See more details on using hashes here.

File details

Details for the file keyringrs-0.1.0-cp39-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for keyringrs-0.1.0-cp39-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 2d3ff365953ecb33dac8acf070e463217d4fef9e07765ccc380d3bf4c4ebb3ec
MD5 048c602ba1b9d889184622f4d0d5ae25
BLAKE2b-256 93e565bf9aee9c8d431eb1eedd2d038b8a4b3f5299783a6b91f7669c09ffd016

See more details on using hashes here.

File details

Details for the file keyringrs-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for keyringrs-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 7350341f86cc3dd152078c210ca99f150bde03c535d07a46e754ecbba8607dfa
MD5 3bd55f4934ceb242bdc64b38cf4c981a
BLAKE2b-256 732772a4f05965424b51b1b744ef69da4308d3f2abbdccb4a3206fa073a979bd

See more details on using hashes here.

File details

Details for the file keyringrs-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for keyringrs-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8e6468d1e27796ab8f8d98448fef168156130e9369c7bbd5d0b21904140989af
MD5 4e197672fca8ffa219e5c2505ca7e793
BLAKE2b-256 228fa74ff9b693dfb6cf127f5dd33fdb04a7e0fe638c047d0d28c495895339b4

See more details on using hashes here.

File details

Details for the file keyringrs-0.1.0-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for keyringrs-0.1.0-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 7b9cec4ec2326647163cf6433cfe6afeae72e0c1c7345755b6370c5979f6be0d
MD5 4c362521f16f9af5f6cc74a0311e4d58
BLAKE2b-256 6a5bf6635c794d9430038952dd290b2c156da4b8c59e3eda21a5351c7202c6ec

See more details on using hashes here.

File details

Details for the file keyringrs-0.1.0-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for keyringrs-0.1.0-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 ef8ae408c917e12835337dceede39d2479268b6b1f520eaf94fa78d83e2d240a
MD5 a70ec83aea6e260249d40d3052c1769b
BLAKE2b-256 900ef3cb1f05b458549c68b913422e547c34e6624c5b2bc2369a131273fcbd8a

See more details on using hashes here.

File details

Details for the file keyringrs-0.1.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for keyringrs-0.1.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 f8f1338d9e9af996b984f46c2fabeff2a8640c93585418f47de20ec98a4812be
MD5 1f12cb084e850ce5306732f94497d512
BLAKE2b-256 d74e92178275561ffa546b67ec55725e6e743d4a7ea72f2eb926fe743059d14d

See more details on using hashes here.

File details

Details for the file keyringrs-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for keyringrs-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 742afde3b509054346d48f0ba00086bccd62c1938bf5073da4f56f1c5a72a025
MD5 fd827d0cf6b97d08133711f406907693
BLAKE2b-256 d5ce7692e930b3772d2edc23023b72ee80ed4990b51956c0900a62681fd54ea8

See more details on using hashes here.

File details

Details for the file keyringrs-0.1.0-cp39-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for keyringrs-0.1.0-cp39-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 8f460e421bafc4ed4a7d2117cce4f7baaa5bd563a105d13243ad3a3077be0ad8
MD5 5e4f35ce7573ffb332182ccb83641cc4
BLAKE2b-256 ff1dfe8bda6d26e8ca951e6a70215969ac9b476d114270baf8979fa573c63b46

See more details on using hashes here.

File details

Details for the file keyringrs-0.1.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for keyringrs-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2a39ee67f5d128ab565f092f3381ee19c782a2253deb539681b9ee4e6def86a
MD5 790d035ed9c89dde022c62537b0c2285
BLAKE2b-256 aaf03144aa99bbf9232b22eb76bee1ba83df75685763386fccef3d1869e984e5

See more details on using hashes here.

File details

Details for the file keyringrs-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for keyringrs-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0603a89d1a9775f9047c153646957f7630787013b97386edda0a2319466a7b2a
MD5 74d6d45d1fc1bf28a0d0ca67a23fd859
BLAKE2b-256 23d7bdcaaa5a64ddf9c5636847134ac1cfed2552d136d1b85b81f2daebd422d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page