Larry Birdy
Larry Birdy is based on 'birdy' and
is sentence-oriented (i.e. sprinkled with syntactic sugar).
Through an experimental (and fuzzy oop design) and proof-of-concept way,
you can make API calls with exprensiveness (and verbosity).
Install
pip install larry-birdy
Example
from larry.twitter import RestAPI, p
API = RestAPI(CONSUMER_KEY,
CONSUMER_SECRET,
ACCESS_TOKEN,
ACCESS_TOKEN_SECRET)
OWNER = API.verify_account_credentials(skip_status=True)
query = '#python #twitter -rt'
tweet_instances = API.search_tweets(q=query,
result_type='recent',
lang='en',
count=10,
tweet_mode='extended')
# You can write "sentences" like the following:
content_has_media = p.Does.this(status=tweet_instance).have_element('media')
# Does this [status] have (the) element ['media']?
hashtags_number = p.Find.for_element('hashtags').its_number_within(tweet_instance)
# Find, for (the) element ['hashtags'], its number within (this) [status].
mentions = p.Get.element('user_mentions').from_(tweet_instance)
# Get (the) element ['user_mentions'], from (this) [status].
user = tweet_instance.user
user_is_following_owner = p.Is.this(user).following(OWNER)
# Is this [user] following [OWNER]?
try:
API.retweet(tweet=tweet_instance, trim_user=True)
except Exception as error_message:
print(error_message)
Metadata
Release files for larry-birdy 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| larry-birdy-0.0.1.tar.gz | 3.7 kB | Without provenance | Details for larry-birdy-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| larry_birdy-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for larry_birdy-0.0.1-py3-none-any.whl |
Total release size: 7.8 kB
Release files / larry-birdy-0.0.1.tar.gz
| Download URL | larry-birdy-0.0.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3bea733750fe77313423df50bd49e98d63d970b4e5765a55e02d9498cb460330
|
|
BLAKE2b-256 checksum How to use checksums |
f6b5d27eefbc2ece820c8dd9b4ef088bceaac37606a3e2e626ee876d249c74ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Release files / larry_birdy-0.0.1-py3-none-any.whl
| Download URL | larry_birdy-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b640f7e516e878537039dbee19a15a6e60b202753909f26a5d35dc6fd20c1dc
|
|
BLAKE2b-256 checksum How to use checksums |
64c76af4f57c4a434548c08726ee48c4e238893ed384e3f2103a79c90ec8e13a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Security for larry-birdy 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.