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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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