Skip to main content

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

Metadata

Release files for trashy-poetry 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trashy-poetry 1.0.3
File Size Uploaded
trashy-poetry-1.0.3.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trashy-poetry 1.0.3
File Interpreter ABI Platform
trashy_poetry-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / trashy-poetry-1.0.3.tar.gz

Download URL trashy-poetry-1.0.3.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f830d16e902273e6756f93d4c563b8003f35b6428ff44f875e703e21265b6b03
BLAKE2b-256 checksum
How to use checksums
376aa71bb067d6c569d7cad8e0319db51646cd3a53d4d03394f367b557fe322c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.7.3 Linux/5.4.74-10576-gb6cc41974db3

Release files / trashy_poetry-1.0.3-py3-none-any.whl

Download URL trashy_poetry-1.0.3-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6562d9de8c127f449a78e5daae4eaa963343de104de7d408b94795a3bff3c3e3
BLAKE2b-256 checksum
How to use checksums
11c7c02fa9f8aed1d37f872ea1a04fdc0b560b815dce76ae1d678a4628c0c2c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.7.3 Linux/5.4.74-10576-gb6cc41974db3

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page