# keyper
[![PyPi Version](https://img.shields.io/pypi/v/keyper.svg)](https://pypi.org/project/keyper/)
[![License](https://img.shields.io/pypi/l/keyper.svg)](https://github.com/Microsoft/keyper/blob/main/LICENSE)
A Python 3 library for dealing with the macOS Keychain.
Please note that this library requires openssl 3.0 or above to function.
## Installation
pip install keyper
## Examples:
```python
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](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
Raw data
{
"_id": null,
"home_page": "https://github.com/Microsoft/keyper",
"name": "keyper",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": null,
"keywords": "apple,macOS,keychain,certificates,passwords",
"author": "Dale Myers",
"author_email": "dalemy@microsoft.com",
"download_url": "https://files.pythonhosted.org/packages/66/16/245268b38f402284f05b1237ad6bdf2720e0efe3e400443c57a9e136f969/keyper-1.1.0.tar.gz",
"platform": null,
"description": "# keyper\n\n[![PyPi Version](https://img.shields.io/pypi/v/keyper.svg)](https://pypi.org/project/keyper/)\n[![License](https://img.shields.io/pypi/l/keyper.svg)](https://github.com/Microsoft/keyper/blob/main/LICENSE)\n\nA Python 3 library for dealing with the macOS Keychain.\n\nPlease note that this library requires openssl 3.0 or above to function.\n\n## Installation\n\n pip install keyper\n\n## Examples:\n\n```python\nimport keyper\n\n# Get a password from the keychain\npassword = keyper.get_password(label=\"my_keychain_password\")\n\n# Create a temporary keychain and install the certificate:\n\nwith keyper.TemporaryKeychain() as keychain:\n certificate = keyper.Certificate(\"/path/to/cert\", password=\"password\")\n keychain.install_cert(certificate)\n # Use codesign or similar here\n```\n\n# Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A utility for dealing with the macOS keychain.",
"version": "1.1.0",
"project_urls": {
"Homepage": "https://github.com/Microsoft/keyper",
"Repository": "https://github.com/Microsoft/keyper"
},
"split_keywords": [
"apple",
"macos",
"keychain",
"certificates",
"passwords"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "c9007a5187a72dbbd45d449f028c3413db8e7336c69b2fa4ac4e8df4d07c6bdc",
"md5": "e81194413ef31163329b873692b33e81",
"sha256": "6ebe20f4c4077c73d59fad8bebd7f77788bb15cf144f68461236580f3d2ca2c9"
},
"downloads": -1,
"filename": "keyper-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e81194413ef31163329b873692b33e81",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 11413,
"upload_time": "2024-01-09T15:53:20",
"upload_time_iso_8601": "2024-01-09T15:53:20.828153Z",
"url": "https://files.pythonhosted.org/packages/c9/00/7a5187a72dbbd45d449f028c3413db8e7336c69b2fa4ac4e8df4d07c6bdc/keyper-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "6616245268b38f402284f05b1237ad6bdf2720e0efe3e400443c57a9e136f969",
"md5": "53dfb486e1fb4ceb7f4d9818676fa5fb",
"sha256": "abbe377a383aa72e7a00b505bdc05ea7a6c0dbc680eadadab326e9b8ba148f57"
},
"downloads": -1,
"filename": "keyper-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "53dfb486e1fb4ceb7f4d9818676fa5fb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 10047,
"upload_time": "2024-01-09T15:53:19",
"upload_time_iso_8601": "2024-01-09T15:53:19.751015Z",
"url": "https://files.pythonhosted.org/packages/66/16/245268b38f402284f05b1237ad6bdf2720e0efe3e400443c57a9e136f969/keyper-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-09 15:53:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Microsoft",
"github_project": "keyper",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "keyper"
}