Skip to main content

Parse credentials in ~/.authinfo files, either plain text or GPG-encrypted.

Project description

Introduction

This module provides access to authentication credentials stored in .authinfo files.

.authinfo files are based on .netrc files, and allow a bit more flexibility, but losing macro support.

They contain entries, formated as plain text, with key=${value} format fields.

.authinfo files are multiprotocol and allow to do advanced matching.

.authinfo files are typically encrypted using GPG, and this library will invoke GPG to decrypt .authinfo.gpg files.

References:

Usage

TL;DR: Here’s an example, and for now refer to the tests and code for more.

import authinfo

...

entry = get_entry(
 machine='smtp.example.org',
)

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

authinfo-0.0.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

authinfo-0.0.4-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file authinfo-0.0.4.tar.gz.

File metadata

  • Download URL: authinfo-0.0.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for authinfo-0.0.4.tar.gz
Algorithm Hash digest
SHA256 320f77655f9d6116defae60f67cf6f8d47fae00a6d413f2a7f66d7abd2ebd393
MD5 fb7924d5a364da331b02e166de745947
BLAKE2b-256 b74a6f62cf9af1e722a83757e6327b719cd0578de1325e17c2351265bf1a41bc

See more details on using hashes here.

File details

Details for the file authinfo-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: authinfo-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for authinfo-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6cb67ea87f5c80f147b624280a85a33404ed1b8b9b7dc2d3f1d08fb4f575d0a5
MD5 091be335df7fa289834fec86ea60e5dd
BLAKE2b-256 28b9c9ec0d7a479b1f692f25a87a57ec736fd475e21ec58acad5485fae4bcbf6

See more details on using hashes here.

Supported by

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