twitter-application-only-auth
A simple implementation of the Twitter Application-only authentication https://dev.twitter.com/docs/auth/application-only-auth that offers applications the ability to issue authenticated requests on behalf of the application itself (as opposed to on behalf of a specific user).
Tested with Python 2.6, 2.7, 3.3 and 3.4
Install
pip install twitter-application-only-auth
Usage
import json
from application_only_auth import Client
# The consumer secret is an example and will not work for real requests
# To register an app visit https://dev.twitter.com/apps/new
CONSUMER_KEY = 'xvz1evFS4wEEPTGEFPHBog'
CONSUMER_SECRET = 'L8qq9PZyRg6ieKGEKhZolGC0vJWLw8iEJ88DRdyOg'
client = Client(CONSUMER_KEY, CONSUMER_SECRET)
# Pretty print of tweet payload
tweet = client.request('https://api.twitter.com/1.1/statuses/show.json?id=316683059296624640')
print json.dumps(tweet, sort_keys=True, indent=4, separators=(',', ':'))
# Show rate limit status for this application
status = client.rate_limit_status()
print status['resources']['search']
Real-World use cases
Tweet Dump: dump and inspect your tweet data!
Metadata
Release files for twitter-application-only-auth 0.3.3
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 |
|---|---|---|---|---|
| twitter-application-only-auth-0.3.3.tar.gz | 2.7 kB | Without provenance | Details for twitter-application-only-auth-0.3.3.tar.gz |
Release files / twitter-application-only-auth-0.3.3.tar.gz
| Download URL | twitter-application-only-auth-0.3.3.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ced205bd4716667dfa947018f3cf857ca0277e7f7f4ce0626e0629a1ae4c90b
|
|
BLAKE2b-256 checksum How to use checksums |
4d57af7c3dbb6b7a90d6b268a77b6a88f3f80b70d66463e61e7860e9409fffc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for twitter-application-only-auth 0.3.3
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.