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


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
birdcage-0.9.0.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page