Tweettr - thin attrdict like wrapper around (a few) Tweet objects
Tweettr gives you a convenient attribute interface to (some) tweet objects without any copying overhead. And if your editor or IDE understands type annotations it let's you do attribute auto completion.
It also add a way to provide emoji parsing with a similar interface to .entities.hashtags. :sparkling_heart:
So when you receive a json object from the twitter streaming api you can access it in a nicer way:
# json blob returned from twitter streaming api
{
"id": 11223344556677889900,
"id_str": "11223344556677889900",
"created_at": "Sun Feb 16 13:16:19 +0000 2020",
"user": {
"id": 11223344556677889900,
"id_str": "11223344556677889900",
"screen_name": "AAAAAAAA",
# ...
},
"entities": {
"hashtags": [{
"indices": [12, 21],
"text": "MyHashTag"
}]
},
"text": "Hello World #MyHashTag",
"favorite_count": 0,
"favorited": false,
"timestamp_ms": "1500000000000",
"truncated": false,
# ...
}
becomes:
>>> import tweettr
>>> tweet = tweettr.Tweet(json_blob)
>>> tweet.user.id
11223344556677889900
>>> tweet.user.screen_name
'AAAAAAAA'
>>> tweet.emojis # extract emojis like HashTags and Urls...
[Emoji(...), Emoji(...)]
>>> ... # etc, etc...
Metadata
Release files for tweettr 0.1.0
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 | |
|---|---|---|---|---|
| tweettr-0.1.0.tar.gz | 15.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tweettr-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.8 kB
Release files / tweettr-0.1.0.tar.gz
| Download URL | tweettr-0.1.0.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7334eeb8808f485e49317ea467be39571c9408bc1ffc96d5008722a9bd5ae29
|
|
BLAKE2b-256 checksum How to use checksums |
1b4652e7774c4329e1c0680f161981898eb40ae4c2ea0c34359e37e8e521267c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200102 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1
|
Release files / tweettr-0.1.0-py3-none-any.whl
| Download URL | tweettr-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
055b1d6a6d50fd2a4bfa3052f1b5bb517cf4672ad4b639fff1e1f8742bb53681
|
|
BLAKE2b-256 checksum How to use checksums |
c20a020e21028a83e1e0a9a69e6567b3765175b0343c70eb875156e1f09ed8e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200102 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1
|
Security for tweettr 0.1.0
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.