Metadata-Version: 2.4
Name: safe-netrc
Version: 1.0.0
Summary: Safe netrc file parser
Home-page: https://git.ligo.org/emfollow/safe-netrc
Author: Leo Singer
Author-email: leo.singer@ligo.org
License: GPL-2+
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Internet
Classifier: Topic :: Security
Description-Content-Type: text/markdown
License-File: LICENSE.md
Dynamic: license-file

# 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
