README.rst 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. OAuthLib - Python Framework for OAuth1 & OAuth2
  2. ===============================================
  3. *A generic, spec-compliant, thorough implementation of the OAuth request-signing
  4. logic for Python 3.6+.*
  5. .. image:: https://app.travis-ci.com/oauthlib/oauthlib.svg?branch=master
  6. :target: https://app.travis-ci.com/oauthlib/oauthlib
  7. :alt: Travis
  8. .. image:: https://coveralls.io/repos/oauthlib/oauthlib/badge.svg?branch=master
  9. :target: https://coveralls.io/r/oauthlib/oauthlib
  10. :alt: Coveralls
  11. .. image:: https://img.shields.io/pypi/pyversions/oauthlib.svg
  12. :target: https://pypi.org/project/oauthlib/
  13. :alt: Download from PyPI
  14. .. image:: https://img.shields.io/pypi/l/oauthlib.svg
  15. :target: https://pypi.org/project/oauthlib/
  16. :alt: License
  17. .. image:: https://app.fossa.io/api/projects/git%2Bgithub.com%2Foauthlib%2Foauthlib.svg?type=shield
  18. :target: https://app.fossa.io/projects/git%2Bgithub.com%2Foauthlib%2Foauthlib?ref=badge_shield
  19. :alt: FOSSA Status
  20. .. image:: https://img.shields.io/readthedocs/oauthlib.svg
  21. :target: https://oauthlib.readthedocs.io/en/latest/index.html
  22. :alt: Read the Docs
  23. .. image:: https://badges.gitter.im/oauthlib/oauthlib.svg
  24. :target: https://gitter.im/oauthlib/Lobby
  25. :alt: Chat on Gitter
  26. .. image:: https://raw.githubusercontent.com/oauthlib/oauthlib/8d71b161fd145d11c40d55c9ab66ac134a303253/docs/logo/oauthlib-banner-700x192.png
  27. :target: https://github.com/oauthlib/oauthlib/
  28. :alt: OAuth + Python = OAuthlib Python Framework
  29. OAuth often seems complicated and difficult-to-implement. There are several
  30. prominent libraries for handling OAuth requests, but they all suffer from one or
  31. both of the following:
  32. 1. They predate the `OAuth 1.0 spec`_, AKA RFC 5849.
  33. 2. They predate the `OAuth 2.0 spec`_, AKA RFC 6749.
  34. 3. They assume the usage of a specific HTTP request library.
  35. .. _`OAuth 1.0 spec`: https://tools.ietf.org/html/rfc5849
  36. .. _`OAuth 2.0 spec`: https://tools.ietf.org/html/rfc6749
  37. OAuthLib is a framework which implements the logic of OAuth1 or OAuth2 without
  38. assuming a specific HTTP request object or web framework. Use it to graft OAuth
  39. client support onto your favorite HTTP library, or provide support onto your
  40. favourite web framework. If you're a maintainer of such a library, write a thin
  41. veneer on top of OAuthLib and get OAuth support for very little effort.
  42. Documentation
  43. --------------
  44. Full documentation is available on `Read the Docs`_. All contributions are very
  45. welcome! The documentation is still quite sparse, please open an issue for what
  46. you'd like to know, or discuss it in our `Gitter community`_, or even better, send a
  47. pull request!
  48. .. _`Gitter community`: https://gitter.im/oauthlib/Lobby
  49. .. _`Read the Docs`: https://oauthlib.readthedocs.io/en/latest/index.html
  50. Interested in making OAuth requests?
  51. ------------------------------------
  52. Then you might be more interested in using `requests`_ which has OAuthLib
  53. powered OAuth support provided by the `requests-oauthlib`_ library.
  54. .. _`requests`: https://github.com/requests/requests
  55. .. _`requests-oauthlib`: https://github.com/requests/requests-oauthlib
  56. Which web frameworks are supported?
  57. -----------------------------------
  58. The following packages provide OAuth support using OAuthLib.
  59. - For Django there is `django-oauth-toolkit`_, which includes `Django REST framework`_ support.
  60. - For Flask there is `flask-oauthlib`_ and `Flask-Dance`_.
  61. - For Pyramid there is `pyramid-oauthlib`_.
  62. - For Bottle there is `bottle-oauthlib`_.
  63. If you have written an OAuthLib package that supports your favorite framework,
  64. please open a Pull Request, updating the documentation.
  65. .. _`django-oauth-toolkit`: https://github.com/evonove/django-oauth-toolkit
  66. .. _`flask-oauthlib`: https://github.com/lepture/flask-oauthlib
  67. .. _`Django REST framework`: http://django-rest-framework.org
  68. .. _`Flask-Dance`: https://github.com/singingwolfboy/flask-dance
  69. .. _`pyramid-oauthlib`: https://github.com/tilgovi/pyramid-oauthlib
  70. .. _`bottle-oauthlib`: https://github.com/thomsonreuters/bottle-oauthlib
  71. Using OAuthLib? Please get in touch!
  72. ------------------------------------
  73. Patching OAuth support onto an http request framework? Creating an OAuth
  74. provider extension for a web framework? Simply using OAuthLib to Get Things Done
  75. or to learn?
  76. No matter which we'd love to hear from you in our `Gitter community`_ or if you have
  77. anything in particular you would like to have, change or comment on don't
  78. hesitate for a second to send a pull request or open an issue. We might be quite
  79. busy and therefore slow to reply but we love feedback!
  80. Chances are you have run into something annoying that you wish there was
  81. documentation for, if you wish to gain eternal fame and glory, and a drink if we
  82. have the pleasure to run into each other, please send a docs pull request =)
  83. .. _`Gitter community`: https://gitter.im/oauthlib/Lobby
  84. License
  85. -------
  86. OAuthLib is yours to use and abuse according to the terms of the BSD license.
  87. Check the LICENSE file for full details.
  88. Credits
  89. -------
  90. OAuthLib has been started and maintained several years by Idan Gazit and other
  91. amazing `AUTHORS`_. Thanks to their wonderful work, the open-source `community`_
  92. creation has been possible and the project can stay active and reactive to users
  93. requests.
  94. .. _`AUTHORS`: https://github.com/oauthlib/oauthlib/blob/master/AUTHORS
  95. .. _`community`: https://github.com/oauthlib/
  96. Changelog
  97. ---------
  98. *OAuthLib is in active development, with the core of both OAuth1 and OAuth2
  99. completed, for providers as well as clients.* See `supported features`_ for
  100. details.
  101. .. _`supported features`: https://oauthlib.readthedocs.io/en/latest/feature_matrix.html
  102. For a full changelog see ``CHANGELOG.rst``.