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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for keychain_access-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d85764f3eb8cba15f4b5a7f6e6d702274ee62f2808f8696a7ef5bd5edebef03 |
|
MD5 | f62390fb6d483e0131b5019e0da42d04 |
|
BLAKE2b-256 | f582a4d0fd3dd749d77b315713cc35075a9ada5b2dea15f9aeb49cc9e8b8962e |