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-1.0.0.tar.gz (77.8 kB view details)

Uploaded Source

Built Distribution

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

keychain_access-1.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: keychain_access-1.0.0.tar.gz
  • Upload date:
  • Size: 77.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.13

File hashes

Hashes for keychain_access-1.0.0.tar.gz
Algorithm Hash digest
SHA256 295757b2e0f84bbd644268e3f58d377bf6aab9d3cd433eb668620a27fe74beb6
MD5 9be6ff817da477faf8bc9a300db50203
BLAKE2b-256 e7fb00c1ea760b68a6d72a180e31925e0c56bf519e520df1584185ac60ffc139

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keychain_access-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52de145c72a8224efa32cd0509696c9b22bf51033f1ec0d4cee5409b982289bb
MD5 22794a58f29b798a5babf9b27ee2e93f
BLAKE2b-256 a1eaf5fe6d88b5a73ff071bfe4c5ef6012aba9d57033663f3861a17bc79a28ee

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