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.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

safe_netrc-1.0.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file safe-netrc-1.0.1.tar.gz.

File metadata

  • Download URL: safe-netrc-1.0.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for safe-netrc-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1dcc7263b4d9ce72e0109d8e2bc9ba89c8056ccc618d26c8c94802c6fd753720
MD5 81c4eadd33350a46f39e091d7f5ede65
BLAKE2b-256 e4f1fb3c8ccd4a8963d7400cfd80100d5ae7fd95d49ace3a6722736bb4c1c1a6

See more details on using hashes here.

Provenance

File details

Details for the file safe_netrc-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: safe_netrc-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for safe_netrc-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f0dd6a5e304b1da3be220f15efedbf09e50779fe90462143c228c781b9d8218
MD5 39bb684e1cf22f903a24f65b356a0172
BLAKE2b-256 262ab5b09ff2781c7ea694b337f65f52a00319396578c049af8890ff9b4b8232

See more details on using hashes here.

Provenance

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