Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.38 KB

ext-utilities.rst

File metadata and controls

46 lines (32 loc) · 1.38 KB

outgoing

Utilities for Extension Authors

lookup_netrc

resolve_password

resolve_path

OpenClosable

Pydantic Types & Models

The senders built into outgoing make heavy use of pydantic for validating & processing configuration, and some of the custom types & models used are also of general interest to anyone writing an outgoing extension that also uses pydantic.

Converts its input to pathlib.Path instances, including expanding tildes. If there is a field named configpath declared before the Path field and its value is non-None, then the value of the Path field will be resolved relative to the parent directory of the configpath field; otherwise, it will be resolved relative to the current directory.

Like Path, but the path must exist and be a file

Like Path, but the path must exist and be a directory

Password()

StandardPassword()

NetrcConfig()