privex.helpers.extras

Various helper functions/classes which depend on a certain package being installed.

This constructor file attempts to load each extras module individually, each wrapped with a try/catch for ImportError so that one unavailable package doesn’t cause problems.

Modules

privex.helpers.extras.attrs

Functions/classes which depend on the package attrs ( Attrs.org )

privex.helpers.extras.git

Helper functions / classes for using git within a python application.

privex.helpers.extras.attrs.AttribDictable()

A small mixin class for attr.s() classes, allowing them to behave like dictionaries, and support casting into dictionaries using dict(x).

privex.helpers.extras.git._AsyncGit(repo, …)

Git CLI wrapper class - methods can be used both synchronously and async via AsyncGit / Git (aliases, both are the same)