Skip to main content

Take a poem and make it an Instagram post

Project description

logo


Create Instagram posts from your plaintext poetry in seconds.

Installation

pip install baudelaire

Usage

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

For example:

baudelaire -o "outputs" "$(cat "poem.txt")"

[!note] The input is expected to be a plaintext poem, so you can write the contents directly in the command line or cat them from a plaintext file.

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")"

Configuration

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

[!note] If you change the font you might need to tweak other parameters like the number of lines per board. It's recommended to create a separate config per template.

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

baudelaire-0.1.1.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

baudelaire-0.1.1-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

File details

Details for the file baudelaire-0.1.1.tar.gz.

File metadata

  • Download URL: baudelaire-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.11

File hashes

Hashes for baudelaire-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e2528e0d2b79e45d9acac6bd25c4e0d7e5cafe449f4640da637da086be6a8226
MD5 d889476dbc40b010274042512609f9f3
BLAKE2b-256 3fb8ede45e194d3ac638cb9a1248e5312fd9c969ecb83dd37835a390fbebf2ee

See more details on using hashes here.

File details

Details for the file baudelaire-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: baudelaire-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.11

File hashes

Hashes for baudelaire-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f272b2fa398fe3ba6615af8568da5344558fed2f88c2a74024361e7a1c4e7ec4
MD5 8a244f87645136c3dab3c9d81ed11ef2
BLAKE2b-256 2a5d28faf2051025249063825d66dbd1f9ea92ea3028b2b4e41fbfc0b6a71b51

See more details on using hashes here.

Supported by

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