This release is a pre-release and may not be stable for production use.
littlebird
LittleBird is a Python 3.6+ asynchronous library for accessing twitter utilizing new python features: async generators, type hinting, etc.
Usage
Currently only the oauth1 methods are supported (application only authentication, user account access).
import asyncio
import contextlib
from littlebird import LittleBird
from littlebird.web import OAuth1HttpClient
little_bird = LittleBird(OAuth1HttpClient(
# required for oauth1 signing:
consumer_key: str,
consumer_secret: str,
# optionally necessary for endpoints requiring a user's scope:
access_token: Optional[str] = None,
access_token_secret: Optional[str] = None
))
async def main(little_bird):
# watch the random sampling of tweets chosen by twitter
async for tweet in little_bird.sample():
print(tweet)
if __name__ == '__main__':
loop = asyncio.get_event_loop()
with contextlib.suppress(KeyboardInterrupt):
loop.run_until_complete(main(little_bird))
Metadata
Release files for littlebird 0.0.0a1
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 |
|---|---|---|---|---|
| littlebird-0.0.0a1.tar.gz | 4.7 kB | Without provenance | Details for littlebird-0.0.0a1.tar.gz |
Release files / littlebird-0.0.0a1.tar.gz
| Download URL | littlebird-0.0.0a1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa6af6bd089e11eb4f5b65a34492bfbdd072d4ebd1be5c05978b6992c6a67abc
|
|
BLAKE2b-256 checksum How to use checksums |
e8550b84f3aaa87f6546a5deaacdabd6186833e403c1af19c5effe543de7256b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for littlebird 0.0.0a1
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.