safe-netrc-1.0.1
توضیحات
Safe netrc file parser
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | safe-netrc-1.0.1 |
| نام | safe-netrc |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Leo Singer <leo.p.singer@nasa.gov> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/safe-netrc/ |
| مجوز | GPL-2.0-or-later |
# 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
نیازمندی
| مقدار | نام |
|---|---|
| - | pytest |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl safe-netrc-1.0.1:
pip install safe-netrc-1.0.1.whl
نصب پکیج tar.gz safe-netrc-1.0.1:
pip install safe-netrc-1.0.1.tar.gz