{"id":37064136,"url":"https://github.com/thruflo/pyramid_twitterauth","last_synced_at":"2026-01-14T07:29:44.991Z","repository":{"id":2751114,"uuid":"3747636","full_name":"thruflo/pyramid_twitterauth","owner":"thruflo","description":"Twitter OAuth for Pyramid.","archived":false,"fork":false,"pushed_at":"2012-11-13T13:21:54.000Z","size":160,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T19:42:53.902Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pypi.python.org/pypi/pyramid_twitterauth","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thruflo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-03-17T13:00:12.000Z","updated_at":"2013-12-22T06:54:25.000Z","dependencies_parsed_at":"2022-09-02T13:12:22.555Z","dependency_job_id":null,"html_url":"https://github.com/thruflo/pyramid_twitterauth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thruflo/pyramid_twitterauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thruflo%2Fpyramid_twitterauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thruflo%2Fpyramid_twitterauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thruflo%2Fpyramid_twitterauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thruflo%2Fpyramid_twitterauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thruflo","download_url":"https://codeload.github.com/thruflo/pyramid_twitterauth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thruflo%2Fpyramid_twitterauth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T07:29:44.341Z","updated_at":"2026-01-14T07:29:44.969Z","avatar_url":"https://github.com/thruflo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[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` \u0026 `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 = \u003ckey\u003e\n    twitterauth.oauth_consumer_secret = \u003csecret\u003e\n\nViews are exposed by default at `/oauth/twitter/...`.  To use a different path:\n\n    twitterauth.url_prefix = 'somewhere'\n\nIf you'd prefer to tell your tweepy client to parse response data into pure\npython dictionaries, rather than tweepy model classes use:\n\n    twitterauth.use_json_parser = true\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthruflo%2Fpyramid_twitterauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthruflo%2Fpyramid_twitterauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthruflo%2Fpyramid_twitterauth/lists"}