Skip to main content

logo


Create Instagram posts from your plaintext poetry in seconds:


logo


Installation

pip install baudelaire

Usage

baudelaire "<plaintext-input>" -o "<output-directory>" -c "<config>"

For example:

baudelaire -o "outputs" "$(cat "poem.txt")"
# OR:
baudelaire -o "outputs" -f poem.txt

The text will be written to the specified output directory as poem_part-*.png files. There is a default configuration file which is distributed as a part of the package.

You can give it a try by using Dylan Thomas' Do not go gentle into that good night:

baudelaire -o "outputs" "$(cat "tests/rage.txt")"

File inputs

Plaintext

All plaintext files are read as-is using the basic f.read() facility in Python. This means that the entire contents of a .txt file will be parsed as a poem.

Markdown

Configuration

The default config is available in the repository under config/default.yaml. Check out the comments to understand what each configuration option does.

Metadata

Release files for baudelaire 0.4.0

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

Source distribution (sdist)

Source distribution for baudelaire 0.4.0
File Size Uploaded Provenance Actions
baudelaire-0.4.0.tar.gz 3.2 MB Without provenance Details for baudelaire-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for baudelaire 0.4.0
File Interpreter ABI Platform Actions
baudelaire-0.4.0-py3-none-any.whl Python 3 none any Details for baudelaire-0.4.0-py3-none-any.whl

Total release size: 6.3 MB

Release files / baudelaire-0.4.0.tar.gz

Download URL baudelaire-0.4.0.tar.gz
Size 3.2 MB
Tags Source
SHA-256 checksum
How to use checksums
97c68a87b2f754e3cd7c10432e22cc09c2822e114056ad463971a4ce048a712d
BLAKE2b-256 checksum
How to use checksums
ded9a2bef348a00281d910fe5de61724b76d2d232269dab8a99d08f96d4da10b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.11

Release files / baudelaire-0.4.0-py3-none-any.whl

Download URL baudelaire-0.4.0-py3-none-any.whl
Size 3.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
96ea1a53d8f5b0dd906413cd275485d6672e26a694c8e60b6c9bdaf19dc2e9e7
BLAKE2b-256 checksum
How to use checksums
704ca40ff01ec88f8d31963235ac6c37fc144929e743c8c21a53e6c0a9cd94a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.11

Security for baudelaire 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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