Name | safe-netrc JSON |
Version |
1.0.1
JSON |
| download |
home_page | |
Summary | Safe netrc file parser |
upload_time | 2022-11-29 13:24:35 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.7 |
license | GPL-2.0-or-later |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Safe Netrc
This package provides a subclass of the Python standard library
[`netrc.netrc` class](https://docs.python.org/3/library/netrc.html) to add some
custom behaviors.
1. If the ``NETRC`` environment variable is defined, then use it as
the default netrc file path.
2. Backport permissions checks that were added in Python 3.1
(see https://bugs.python.org/issue14984).
3. Apply permissions checks whether or or not we are reading from the
default netrc file, and whether or not the file contains passwords.
## Installation
pip install safe-netrc
## Usage
>>> from safe_netrc import netrc
## Notes for software packaging
Software packaging files exist for the following systems:
- RPM: https://git.ligo.org/packaging/rhel/python-safe-netrc
- Debian: https://git.ligo.org/packaging/debian/safe-netrc
- Conda: https://github.com/conda-forge/safe-netrc-feedstock
Raw data
{
"_id": null,
"home_page": "",
"name": "safe-netrc",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "",
"author_email": "Leo Singer <leo.p.singer@nasa.gov>",
"download_url": "https://files.pythonhosted.org/packages/e4/f1/fb3c8ccd4a8963d7400cfd80100d5ae7fd95d49ace3a6722736bb4c1c1a6/safe-netrc-1.0.1.tar.gz",
"platform": null,
"description": "# Safe Netrc\n\nThis package provides a subclass of the Python standard library\n[`netrc.netrc` class](https://docs.python.org/3/library/netrc.html) to add some\ncustom behaviors.\n\n1. If the ``NETRC`` environment variable is defined, then use it as\n the default netrc file path.\n\n2. Backport permissions checks that were added in Python 3.1\n (see https://bugs.python.org/issue14984).\n\n3. Apply permissions checks whether or or not we are reading from the\n default netrc file, and whether or not the file contains passwords.\n\n## Installation\n\n pip install safe-netrc\n\n## Usage\n\n >>> from safe_netrc import netrc\n\n## Notes for software packaging\n\nSoftware packaging files exist for the following systems:\n\n- RPM: https://git.ligo.org/packaging/rhel/python-safe-netrc\n- Debian: https://git.ligo.org/packaging/debian/safe-netrc\n- Conda: https://github.com/conda-forge/safe-netrc-feedstock\n",
"bugtrack_url": null,
"license": "GPL-2.0-or-later",
"summary": "Safe netrc file parser",
"version": "1.0.1",
"project_urls": {
"Bug Tracker": "https://git.ligo.org/computing/safe-netrc/issues",
"source": "https://git.ligo.org/computing/safe-netrc"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "262ab5b09ff2781c7ea694b337f65f52a00319396578c049af8890ff9b4b8232",
"md5": "39bb684e1cf22f903a24f65b356a0172",
"sha256": "5f0dd6a5e304b1da3be220f15efedbf09e50779fe90462143c228c781b9d8218"
},
"downloads": -1,
"filename": "safe_netrc-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "39bb684e1cf22f903a24f65b356a0172",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 10891,
"upload_time": "2022-11-29T13:24:33",
"upload_time_iso_8601": "2022-11-29T13:24:33.626442Z",
"url": "https://files.pythonhosted.org/packages/26/2a/b5b09ff2781c7ea694b337f65f52a00319396578c049af8890ff9b4b8232/safe_netrc-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e4f1fb3c8ccd4a8963d7400cfd80100d5ae7fd95d49ace3a6722736bb4c1c1a6",
"md5": "81c4eadd33350a46f39e091d7f5ede65",
"sha256": "1dcc7263b4d9ce72e0109d8e2bc9ba89c8056ccc618d26c8c94802c6fd753720"
},
"downloads": -1,
"filename": "safe-netrc-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "81c4eadd33350a46f39e091d7f5ede65",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 10846,
"upload_time": "2022-11-29T13:24:35",
"upload_time_iso_8601": "2022-11-29T13:24:35.252607Z",
"url": "https://files.pythonhosted.org/packages/e4/f1/fb3c8ccd4a8963d7400cfd80100d5ae7fd95d49ace3a6722736bb4c1c1a6/safe-netrc-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-11-29 13:24:35",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "safe-netrc"
}