Metadata-Version: 2.1
Name: envsubst
Version: 0.1.1
Summary: Substitute environment variables in a string
Home-page: https://github.com/ashafer01/python-envsubst
Author: Alex Shafer
Author-email: ashafer@pm.me
License: MIT
Platform: UNKNOWN

python-envsubst
===============

Substitute environment variables in a string::

    >>> import os
    >>> from envsubst import envsubst

    >>> del os.environ['PS1']
    >>> print(envsubst('$USER@$HOST ${PS1:-$}:'))
    ashafer01@github.com $:

    >>> os.environ['PS1'] = ''
    >>> print(envsubst('$USER@$HOST ${PS1:-$}:'))
    ashafer01@github.com $:

    >>> print(envsubst('$USER@$HOST ${PS1-foo}:'))
    ashafer01@github.com :


