quickie.Context

class quickie.Context(*, wd: str | Path, env: Mapping, inherit_env: bool = True)

The context for a task.

__init__(*, wd: str | Path, env: Mapping, inherit_env: bool = True)

Initialize the context.

Parameters:
  • wd – The working directory.

  • env – The environment variables.

  • inherit_env – Whether to inherit the environment variables from the parent process.

Methods

__init__(*, wd, env[, inherit_env])

Initialize the context.

copy()

Copy the context.

default()

Returns the default context.

from_env_file(path, *[, wd, base_dir, env, ...])

Create a Context with env variables loaded from a .env file.

Attributes

env

Environment variables.