Twitter OAuth for Pyramid.
Project description
[pyramid_twitterauth][] is a package that extends [pyramid_simpleauth][] to allow users to login via Twitter and / or connect their Twitter account:
- if request.twitter.has_write_access:
request.twitter.client.update_status(‘OMG #lolcats’)
To use, specify your Twitter app’s OAuth consumer info in your .ini settings:
twitterauth.oauth_consumer_key = <key> twitterauth.oauth_consumer_secret = <secret>
Views are exposed by default at /oauth/twitter/…. To use a different path:
twitterauth.url_prefix = ‘a/n/other’
Then include the package:
config.include(‘pyramid_twitterauth’)
This adds an authenticated [Tweepy][] client as request.twitter.client and flags for request.twitter.has_read_access and request.twitter.has_write_access.
[pyramid_simpleauth]: http://github.com/thruflo/pyramid_simpleauth [pyramid_twitterauth]: http://github.com/thruflo/pyramid_twitterauth [tweepy]: https://github.com/tweepy/tweepy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyramid_twitterauth-0.1.tar.gz
.
File metadata
- Download URL: pyramid_twitterauth-0.1.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9714ab4f457d6c8e85821afd4c4cdd21185d4974eadc01a3b5f0edb4bdcb52cd |
|
MD5 | 90bbe5a430e8c5ea5a3c65a6b0625b45 |
|
BLAKE2b-256 | a1d9d19f0edd2e4b40fb7425b28d6270b46479de560c671bdc24103b791ac76c |