{ "info": { "author": "James Arthur", "author_email": "username: thruflo, domain: gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Pylons", "Intended Audience :: Developers", "License :: Public Domain", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "[pyramid_twitterauth][] is a package that extends [pyramid_simpleauth][] to\nallow a [Pyramid][] application's users to authenticate via Twitter and / or\nconnect their Twitter account.\n\nOnce they've done so, you get an authenticated [Tweepy][] client as \n`request.twitter.client` and flags for `has_read_access` & `has_write_access`::\n\n # e.g.: in a view callable\n if request.twitter.has_write_access:\n request.twitter.client.update_status('OMG #lolcats')\n\n# Install\n\nInstall the package as you would any other Python egg, e.g.:\n\n easy_install pyramid_twitterauth\n\nThen include it along with a session factory, `pyramid_tm`, `pyramid_basemodel`\nand `pyramid_simpleauth` in the configuration portion of your Pyramid app:\n\n # Configure a session factory, here, we're using `pyramid_beaker`.\n config.include('pyramid_beaker')\n config.set_session_factory(session_factory_from_settings(settings))\n \n # Include the packages. The order is significant if you want \n # `pyramid_basemodel` to \"just work\".\n config.include('pyramid_simpleauth')\n config.include('pyramid_twitterauth')\n config.include('pyramid_basemodel')\n \n # Either include `pyramid_tm` or deal with committing transactions yourself.\n config.include('pyramid_tm')\n\nNote that you must provide an `sqlalchemy.url` in your `.ini` settings, or bind\nthe SQLAlchemy models and scoped `Session` to a database engine yourself.\n\n# Mode\n\nIn default mode, the package allows users to authenticate via Twitter. This is\ndone by exposing the following views::\n\n* /oauth/twitter/authenticate\n* /oauth/twitter/authenticate_callback\n* /oauth/twitter/failed\n* an HTTPForbidden view that redirects to /oauth/twitter/authenticate\n\nIn \"connect\" mode, the package allows *existing* authenticated users to connect\ntheir Twitter accounts. This is done by exposing views at::\n\n* /oauth/twitter/authorize\n* /oauth/twitter/authorize_callback\n\nThese two modes are currently mutually exclusive. To enable \"connect\" mode,\nset ``twitterauth.mode`` in your `.ini` settings::\n\n twitterauth.mode = connect\n\n# Settings\n\nSpecify your Twitter app's OAuth consumer info in your ::\n\n twitterauth.oauth_consumer_key = \n twitterauth.oauth_consumer_secret = \n\nViews are exposed by default at `/oauth/twitter/...`. To use a different path:\n\n twitterauth.url_prefix = 'somewhere'\n\n# Tests\n\nI've only tested the package under Python 2.6 and 2.7 atm. You'll need `nose`, \n`coverage`, `mock` and `WebTest`. Then, e.g.:\n\n $ nosetests --cover-package=pyramid_twitterauth --cover-tests --with-doctest --with-coverage pyramid_twitterauth\n ......................................\n Name Stmts Miss Cover Missing\n ---------------------------------------------------------\n pyramid_twitterauth 18 0 100% \n pyramid_twitterauth.hooks 28 0 100% \n pyramid_twitterauth.model 21 0 100% \n pyramid_twitterauth.tests 370 0 100% \n pyramid_twitterauth.view 157 0 100% \n ---------------------------------------------------------\n TOTAL 594 0 100% \n ----------------------------------------------------------------------\n Ran 45 tests in 9.090s\n\n OK\n\n[pyramid]: http://docs.pylonsproject.org/projects/pyramid/en/latest\n[pyramid_simpleauth]: http://github.com/thruflo/pyramid_simpleauth\n[pyramid_twitterauth]: http://github.com/thruflo/pyramid_twitterauth\n[tweepy]: https://github.com/tweepy/tweepy\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/thruflo/pyramid_twitterauth", "keywords": null, "license": "This is free and unencumbered software released into the public domain.", "maintainer": null, "maintainer_email": null, "name": "pyramid_twitterauth", "package_url": "https://pypi.org/project/pyramid_twitterauth/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyramid_twitterauth/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/thruflo/pyramid_twitterauth" }, "release_url": "https://pypi.org/project/pyramid_twitterauth/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "Twitter OAuth for Pyramid.", "version": "0.2.1" }, "last_serial": 797658, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "90bbe5a430e8c5ea5a3c65a6b0625b45", "sha256": "9714ab4f457d6c8e85821afd4c4cdd21185d4974eadc01a3b5f0edb4bdcb52cd" }, "downloads": -1, "filename": "pyramid_twitterauth-0.1.tar.gz", "has_sig": false, "md5_digest": "90bbe5a430e8c5ea5a3c65a6b0625b45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13434, "upload_time": "2012-04-01T14:20:41", "url": "https://files.pythonhosted.org/packages/a1/d9/d19f0edd2e4b40fb7425b28d6270b46479de560c671bdc24103b791ac76c/pyramid_twitterauth-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "36a0110bf54f49354c5e0ab3d1e3fdeb", "sha256": "701004c17a8a4eb4cd50a278c963a14d949ae4d91d6a597edcfdc0bb60a04fdc" }, "downloads": -1, "filename": "pyramid_twitterauth-0.2.tar.gz", "has_sig": false, "md5_digest": "36a0110bf54f49354c5e0ab3d1e3fdeb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15880, "upload_time": "2012-04-01T21:27:24", "url": "https://files.pythonhosted.org/packages/4b/08/30fd8cbbd26b821af968e768bad0fc74d645cf87f6ee684732a569913145/pyramid_twitterauth-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "3aeef3442cfc302bd436356b081ac247", "sha256": "c878aa80b514b524b090c7425808b70c16101864e307af35ed464f06212fd6c6" }, "downloads": -1, "filename": "pyramid_twitterauth-0.2.1.tar.gz", "has_sig": false, "md5_digest": "3aeef3442cfc302bd436356b081ac247", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16188, "upload_time": "2012-09-20T13:09:37", "url": "https://files.pythonhosted.org/packages/19/92/e14712db10b8e02ef2e0b8ec9e9706f5d196ffafa8b59bee08175165bb65/pyramid_twitterauth-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3aeef3442cfc302bd436356b081ac247", "sha256": "c878aa80b514b524b090c7425808b70c16101864e307af35ed464f06212fd6c6" }, "downloads": -1, "filename": "pyramid_twitterauth-0.2.1.tar.gz", "has_sig": false, "md5_digest": "3aeef3442cfc302bd436356b081ac247", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16188, "upload_time": "2012-09-20T13:09:37", "url": "https://files.pythonhosted.org/packages/19/92/e14712db10b8e02ef2e0b8ec9e9706f5d196ffafa8b59bee08175165bb65/pyramid_twitterauth-0.2.1.tar.gz" } ] }