Skip to main content

Safe netrc file parser

Project description

Safe Netrc

This package provides a subclass of the Python standard library netrc.netrc class 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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

safe-netrc-1.0.0.tar.gz (26.0 kB view hashes)

Uploaded source

Built Distribution

safe_netrc-1.0.0-py2.py3-none-any.whl (11.1 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page