Skip to main content

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:

Release files for safe-netrc 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for safe-netrc 1.0.1
File Size Uploaded
safe-netrc-1.0.1.tar.gz 10.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for safe-netrc 1.0.1
File Interpreter ABI Platform
safe_netrc-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.7 kB

Release files / safe-netrc-1.0.1.tar.gz

Download URL safe-netrc-1.0.1.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1dcc7263b4d9ce72e0109d8e2bc9ba89c8056ccc618d26c8c94802c6fd753720
BLAKE2b-256 checksum
How to use checksums
e4f1fb3c8ccd4a8963d7400cfd80100d5ae7fd95d49ace3a6722736bb4c1c1a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / safe_netrc-1.0.1-py3-none-any.whl

Download URL safe_netrc-1.0.1-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f0dd6a5e304b1da3be220f15efedbf09e50779fe90462143c228c781b9d8218
BLAKE2b-256 checksum
How to use checksums
262ab5b09ff2781c7ea694b337f65f52a00319396578c049af8890ff9b4b8232
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page