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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file trashy-poetry-1.0.3.tar.gz
.
File metadata
- Download URL: trashy-poetry-1.0.3.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.7.3 Linux/5.4.74-10576-gb6cc41974db3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f830d16e902273e6756f93d4c563b8003f35b6428ff44f875e703e21265b6b03 |
|
MD5 | 87e4a8552c39099d8a7036327a46a9fc |
|
BLAKE2b-256 | 376aa71bb067d6c569d7cad8e0319db51646cd3a53d4d03394f367b557fe322c |
File details
Details for the file trashy_poetry-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: trashy_poetry-1.0.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.7.3 Linux/5.4.74-10576-gb6cc41974db3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6562d9de8c127f449a78e5daae4eaa963343de104de7d408b94795a3bff3c3e3 |
|
MD5 | 17f17a4c9987c65bcdc637ab09c4deff |
|
BLAKE2b-256 | 11c7c02fa9f8aed1d37f872ea1a04fdc0b560b815dce76ae1d678a4628c0c2c8 |