Zinnia-twitter
Zinnia-twitter is a package putting your entries on Twitter.
Installation
Install the package on your system:
$ pip install zinnia-twitter
Tweepy will also be installed as a dependency.
Register the 'zinnia_twitter' in your INSTALLED_APPS after the 'zinnia' application.
Define these following settings with your credentials:
TWITTER_CONSUMER_KEY
TWITTER_CONSUMER_SECRET
TWITTER_ACCESS_KEY
TWITTER_ACCESS_SECRET
If you have enabled one of the zinnia-wysiwyg-xxx plugin widget, you need to reconstruct the EntryAdmin class manually with the provided mixins:
from zinnia.admin.entry import EntryAdmin from zinnia_twitter.admin import EntryAdminTwitterMixin from zinnia_ckeditor.admin import EntryAdminCKEditorMixin class FinalEntryAdmin(EntryAdminCKEditorMixin, EntryAdminTwitterMixin, EntryAdmin): pass admin.site.unregister(Entry) admin.site.register(Entry, FinalEntryAdmin)
Note that the authentification for Twitter has changed since September 2010. The actual authentification system is based on oAuth. That’s why now you need to set these 4 settings. If you don’t know how to get these information, follow this excellent tutorial at:
http://talkfast.org/2010/05/31/twitter-from-the-command-line-in-python-using-oauth/
You can replace the script mentionned in the step 3 of the tutorial by the get_twitter_access management command provided by the application, once you have your CONSUMER_KEY and CONSUMER_SECRET.
Now in the admin, you can post an update containing your entry’s title and the shortened URL of your entry.
Metadata
Release files for zinnia-twitter 1.1
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 |
|---|---|---|---|---|
| zinnia-twitter-1.1.tar.gz | 8.7 kB | Without provenance | Details for zinnia-twitter-1.1.tar.gz |
Release files / zinnia-twitter-1.1.tar.gz
| Download URL | zinnia-twitter-1.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c93c2e0d8d54d96c4d38d5fe3e1ea521de7db2bd13aa0a5567d85d86a6dd5244
|
|
BLAKE2b-256 checksum How to use checksums |
7fabb57603d761860370c8eede531906bfdf3e095dc3af04afcb6c564ab6c318
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for zinnia-twitter 1.1
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.