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.0.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.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: baudelaire-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 363720053959fe852694e6730e6241c943a17688f24c472385ff079105f5e223
MD5 b433c259e55b8b85d09bf9b9bee22632
BLAKE2b-256 62009289d6cef55bb322fe98cb41e006e63c33ae0b87668085cd389e99dfd609

See more details on using hashes here.

File details

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

File metadata

  • Download URL: baudelaire-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90ab20677a4e3ae46e0ea9e2d8d86864e5edaa53c244975c259becd8ca3ea6ea
MD5 77d7a41a9346cc76bcddb4514390d37f
BLAKE2b-256 949606ac8f71f606a27228665b10c5ad91c6a118ee10faaf1ad05a4ca4c7bf41

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