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

Uploaded Source

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