Skip to main content

Access to the OSX Keychain API in Python.

Project description

keychain_access

keychain_access is a simple Python library that wraps the objective-c Security framework to access the macOS keychain, allowing you to store and retrieve passwords for your OSX applications. Due to this, pyobjc is required as a dependency.

Installation

pip install keychain_access

Usage

import keychain_access

# Store a password
keychain_access.set('my_service', 'my_account', 'my_password')

# Retrieve a password
password = keychain_access.get('my_service', 'my_account')

# Delete a password
keychain_access.delete('my_service', 'my_account')

License

MIT

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

keychain_access-0.1.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

keychain_access-0.1.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file keychain_access-0.1.2.tar.gz.

File metadata

  • Download URL: keychain_access-0.1.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.8.10 Darwin/23.5.0

File hashes

Hashes for keychain_access-0.1.2.tar.gz
Algorithm Hash digest
SHA256 979a626384aee34fa2a351e760992126d9c5de112c39a81ea5a91920231a7496
MD5 0d43767033ae912c90a1763e7c28d739
BLAKE2b-256 32cbcb1540f447c96fa21411a43b6484f8ecb691c17c872abfb42cee601f7b29

See more details on using hashes here.

File details

Details for the file keychain_access-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: keychain_access-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.8.10 Darwin/23.5.0

File hashes

Hashes for keychain_access-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d85764f3eb8cba15f4b5a7f6e6d702274ee62f2808f8696a7ef5bd5edebef03
MD5 f62390fb6d483e0131b5019e0da42d04
BLAKE2b-256 f582a4d0fd3dd749d77b315713cc35075a9ada5b2dea15f9aeb49cc9e8b8962e

See more details on using hashes here.

Supported by

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