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.

Files for birdcage, version 0.9.0
Filename, size File type Python version Upload date Hashes
Filename, size birdcage-0.9.0.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page