Skip to main content

pytweetql

pytweetql is a simple Python package designed for developers who work with the Twitter GraphQL API

Currently it is built to parse tweet, user, and list GET responses from the Twitter GraphQL API. The function to call is based on the GraphQL endpoint. So for the UserTweets endpoint, you would import the parsing module and use the parse_user_tweets() function.

How it Works

from pytweetql import parsing

# Given a response from GraphQL
response = {'data': {.....}}

# To pull data from a tweet response
tweets = parsing.parse_user_tweets(response=response)

# Will return a list of tweet classes, one for each tweet parsed
print(tweets.tweets)


# To pull data from a user response
users = parsing.parse_users_by_screen_name(response=response)

# Will return a list of user classes, one for each user parsed
print(users.users)


# To pull data from a list response
lists = parsing.parse_create_list(response=response)

# Will return a list of list classes, one for each list parsed
print(lists.lists)

Metadata

Release files for pytweetql 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytweetql 1.0.0
File Size Uploaded Provenance Actions
pytweetql-1.0.0.tar.gz 12.9 kB Without provenance Details for pytweetql-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytweetql 1.0.0
File Interpreter ABI Platform Actions
pytweetql-1.0.0-py3-none-any.whl Python 3 none any Details for pytweetql-1.0.0-py3-none-any.whl

Total release size: 32.5 kB

Release files / pytweetql-1.0.0.tar.gz

Download URL pytweetql-1.0.0.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5bc3efb2d1020dc03ce0538269754cabdce0c88d6882c312edce5a3ccc65208a
BLAKE2b-256 checksum
How to use checksums
b794c1b2e2f32eceaa608f03be39a0b4846651f8096131060ad7908eb0caa406
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.1 Windows/11

Release files / pytweetql-1.0.0-py3-none-any.whl

Download URL pytweetql-1.0.0-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe8c037748ce8134c261ae927c7b80e00e66f6135a74877f6eb23de0241cf25b
BLAKE2b-256 checksum
How to use checksums
d7b8efe2bf14b75a8cf19f165af49a28586310e90cf3b0c51d399350f29bba99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.1 Windows/11

Security for pytweetql 1.0.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page