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.3.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.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: authinfo-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 56b316af5ec146fe0e03e7fdc62b6e6f58a023ca30280df023612a8a04678971
MD5 9d047a6599520ed0f3782bd8c859c751
BLAKE2b-256 9e4815d86bf272058bb3d7d3e5ef35c4645668557462eee2ce032483640129b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: authinfo-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8096a8e952a5fa2698e7b0022775ff945a7e0202ae9247389af04e58060a6052
MD5 922a1e142dac52e1370cd5ec1532826f
BLAKE2b-256 e1295ddd189f322b46f19227c27afc8ba847d9483dcf2382708b54844f1a8862

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