Name | pysecrets JSON |
Version |
0.0.3
JSON |
| download |
home_page | |
Summary | The lightest weight package for loading secrets into a project. |
upload_time | 2024-02-23 16:58:26 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.8 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# PySecrets
The lightest weight package for loading secrets into a project via the `os.environ`.
## Setup
Easy install via pip
```bash
pip install pysecrets
```
The package requires you to have a file in your project directory that is called `.secrets`. This file will look like the following:
```
# passwords file
PASSWORD=hello
APIKEY=17886cd8-6d61-4c29-9482-c64fb995ea14
# comments must be on their own lines
```
## Example Usage
This is for your basic usage with a `.secrets` file.
```python
import os
from pysecrets import secrets
secrets()
print(os.environ['PASSWORD'])
```
If you have secrets for a different environment, simply
```python
...
secrets('.secrets_stage')
...
```
Raw data
{
"_id": null,
"home_page": "",
"name": "pysecrets",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "",
"author_email": "Spencer Jensen <spencerwjensen96@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/55/0e/535d0e15c5f90553f7fd2c8f1ca3ddfdcae2ca903fbc05f322cd566fe1e6/pysecrets-0.0.3.tar.gz",
"platform": null,
"description": "# PySecrets\nThe lightest weight package for loading secrets into a project via the `os.environ`.\n\n## Setup\nEasy install via pip\n```bash\npip install pysecrets\n```\nThe package requires you to have a file in your project directory that is called `.secrets`. This file will look like the following:\n```\n# passwords file\n\nPASSWORD=hello\nAPIKEY=17886cd8-6d61-4c29-9482-c64fb995ea14\n# comments must be on their own lines\n```\n\n## Example Usage\nThis is for your basic usage with a `.secrets` file.\n```python\nimport os\nfrom pysecrets import secrets\n\nsecrets()\n\nprint(os.environ['PASSWORD'])\n```\nIf you have secrets for a different environment, simply\n```python\n...\nsecrets('.secrets_stage')\n...\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "The lightest weight package for loading secrets into a project.",
"version": "0.0.3",
"project_urls": {
"Homepage": "https://github.com/spencerwjensen96/pysecrets",
"Issues": "https://github.com/spencerwjensen96/pysecrets/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d12edd9ccb049c609babece0349af5e340c4782b7399987661ad85750b25445b",
"md5": "0d50ca4edc510bd39d2227a53a72379b",
"sha256": "2106af35158c318d31f2a8123f7f5479c34bc8e1d4d2e6e757609f73e3f9e13a"
},
"downloads": -1,
"filename": "pysecrets-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0d50ca4edc510bd39d2227a53a72379b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 3280,
"upload_time": "2024-02-23T16:58:24",
"upload_time_iso_8601": "2024-02-23T16:58:24.426044Z",
"url": "https://files.pythonhosted.org/packages/d1/2e/dd9ccb049c609babece0349af5e340c4782b7399987661ad85750b25445b/pysecrets-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "550e535d0e15c5f90553f7fd2c8f1ca3ddfdcae2ca903fbc05f322cd566fe1e6",
"md5": "a14fcecd1c50c03fe8bdc9c4e08f4d9b",
"sha256": "ae1de4d290dce45085df5a11560bb2ef90402cbb955cc1a3ad7840e2861e4f32"
},
"downloads": -1,
"filename": "pysecrets-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "a14fcecd1c50c03fe8bdc9c4e08f4d9b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 2743,
"upload_time": "2024-02-23T16:58:26",
"upload_time_iso_8601": "2024-02-23T16:58:26.808880Z",
"url": "https://files.pythonhosted.org/packages/55/0e/535d0e15c5f90553f7fd2c8f1ca3ddfdcae2ca903fbc05f322cd566fe1e6/pysecrets-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-23 16:58:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "spencerwjensen96",
"github_project": "pysecrets",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pysecrets"
}