Skip to main content

library to squeeze text fragments into a phrase of a specified length.Used mainly to create tweets

Project description

Use Birdcage to constrain tweets.

Library to take text collections and create a Phrase of those text collections and fit within the specified length.

This is what the library does:

$ birdcage/example.py No maximum set, generate phrase

expecting: one hour, fourty-five minutes until armageddon strikes the earth expecting: one hour, fourty-five minutes until armageddon strikes the earth

No maximum length set, generate phrase with “: “ as the delimiter

expecting: one hour, fourty-five minutes: until armageddon strikes the earth expecting: one hour, fourty-five minutes: until armageddon strikes the earth

Set a maximum length of 40 characters

expecting: 1h45m until armageddon strikes the ea… expecting: 1h45m until armageddon strikes the ea…

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

birdcage-0.9.0.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file birdcage-0.9.0.tar.gz.

File metadata

  • Download URL: birdcage-0.9.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for birdcage-0.9.0.tar.gz
Algorithm Hash digest
SHA256 3d99c8d2f1699ed2ca8c5119acd8232004110cd6b0797fe55fe5fee674b04cbf
MD5 e28b642875161a6bf59eedc1af6717db
BLAKE2b-256 7c3dced1152fcd10627dfc1c2d5ea74a859976e0a660d6a69accf57f2d7fffc4

See more details on using hashes here.

Supported by

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