Skip to main content

A utility for dealing with the macOS keychain.

Project description

keyper

PyPi Version License

A Python 3 library for dealing with the macOS Keychain

Installation

pip install keyper

Examples:

import keyper

# Get a password from the keychain
password = keyper.get_password(label="my_keychain_password")

# Create a temporary keychain and install the certificate:

with keyper.TemporaryKeychain() as keychain:
    certificate = keyper.Certificate("/path/to/cert", password="password")
    keychain.install_cert(certificate)
    # Use codesign or similar here

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

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

keyper-0.7.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

keyper-0.7.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file keyper-0.7.0.tar.gz.

File metadata

  • Download URL: keyper-0.7.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.7 Darwin/20.6.0

File hashes

Hashes for keyper-0.7.0.tar.gz
Algorithm Hash digest
SHA256 ba4f0da1f945af31810e55d0cad33d844b195b569e573e50b6411bba1866ed0d
MD5 1f324255a870d0ad7ebffae157730330
BLAKE2b-256 d62e276a197efb1bd28e36f80f3cf6c0acce6655bfed6de4bf97f9a83931671d

See more details on using hashes here.

File details

Details for the file keyper-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: keyper-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.7 Darwin/20.6.0

File hashes

Hashes for keyper-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16aa702741355379332c4e2b3f70e61da7e362a6d13cb9b57ee37c8c47993920
MD5 848eb305acedf16b3f53356a59064f64
BLAKE2b-256 7fcd271aef032c7cdd5e8f71b45b221adc7db226b6e1aafa32c50df15623d7ff

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