Skip to main content

Poetry for everyday use

Project description

Prose

An unpoetic version of Poetry.

While the Poetry package is elegant and reduces a Python developers burden, every day usage has some small annoyances. Some of these things could be fixed but have been considered out of scope and unpoetic.

Prose is made to be the everyday version of Poetry and little bit more trashy. But the trashiness serves those well in the dirty jobs of life. Prose is a wrapper around Poetry so all commands and APIs should function the same with the addition of more features.

Installation

pip install trashy-poetry

Usage

Substitute all poetry commands for prose.

See Poetry Docs. All commands and APIs function the same except for the additional features documented.

For Example:

poetry init -> prose init

poetry shell -> prose shell

Features

Task Runner

Prose includes Poe the Poet by default. Poe the Poet lets you create shortcuts to common tasks such as shell scripts and Python functions. The usage and API functions the same as documented except for the addition of the poe shortcut.

prose run poe [options] task [task_args]

can also be run as

prose poe [options] task [task_args]

Hardcoded Environmental Variables

Inject environmental variables into the run and shell commands by hard coding them into you pyproject.toml file.

Example:

[tool.prose.env]
TEST_ENV = "hello world"
TEST_PATH = "${PATH}:/narf"

Any variables set in the tool.prose.env section of your toml file will be injected into the environment for you.

Load DotEnv Files

Default DotEnv Files

Prose loads .env files if it finds it in the current working directory. See python-dotenv for usage documentation.

Custom DotEnv Files

Prose allows you to add custom .env files with a command line switch for the poe, run, and shell commands.

OPTIONS
  -e (--env)             Dotenv file to load (multiple values allowed)

Examples:

prose shell -e path/custom.env
prose run -e path/custom.env printenv NARF
prose poe -e path/custom.env mycommand

Note: When using the run and poe commands, the -e and --env options must be used before your command arguments

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

trashy-poetry-1.0.3.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

trashy_poetry-1.0.3-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page