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

  3. Apply permissions checks whether or or not we are reading from the default netrc file, and whether or not the file contains passwords.


pip install safe-netrc


>>> 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 Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page