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:

Metadata

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 Provenance
safe-netrc-1.0.1.tar.gz 10.8 kB Without provenance 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

Security for safe-netrc 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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