Updates the requirements on [sphinx](https://github.com/sphinx-doc/sphinx) to permit the latest version. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/sphinx-doc/sphinx/releases">sphinx's releases</a>.</em></p> <blockquote> <h2>Sphinx 8.1.3</h2> <p>Changelog: <a href="https://www.sphinx-doc.org/en/master/changes/8.1.html">https://www.sphinx-doc.org/en/master/changes/8.1.html</a></p> <h2>Bugs fixed</h2> <ul> <li><a href="https://redirect.github.com/sphinx-doc/sphinx/issues/13013">#13013</a>: Restore support for <code>cut_lines()</code> with no object type. Patch by Adam Turner.</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/sphinx-doc/sphinx/blob/v8.1.3/CHANGES.rst">sphinx's changelog</a>.</em></p> <blockquote> <h1>Release 8.1.3 (released Oct 13, 2024)</h1> <h2>Bugs fixed</h2> <ul> <li><a href="https://redirect.github.com/sphinx-doc/sphinx/issues/13013">#13013</a>: Restore support for :func:<code>!cut_lines</code> with no object type. Patch by Adam Turner.</li> </ul> <h1>Release 8.1.2 (released Oct 12, 2024)</h1> <h2>Bugs fixed</h2> <ul> <li><a href="https://redirect.github.com/sphinx-doc/sphinx/issues/13012">#13012</a>: Expose :exc:<code>sphinx.errors.ExtensionError</code> in <code>sphinx.util</code> for backwards compatibility. This will be removed in Sphinx 9, as exposing the exception in <code>sphinx.util</code> was never intentional. :exc:<code>!ExtensionError</code> has been part of <code>sphinx.errors</code> since Sphinx 0.9. Patch by Adam Turner.</li> </ul> <h1>Release 8.1.1 (released Oct 11, 2024)</h1> <h2>Bugs fixed</h2> <ul> <li><a href="https://redirect.github.com/sphinx-doc/sphinx/issues/13006">#13006</a>: Use the preferred <a href="https://www.cve.org/">https://www.cve.org/</a> URL for the :rst:role:<code>:cve: <cve></code> role. Patch by Hugo van Kemenade.</li> <li><a href="https://redirect.github.com/sphinx-doc/sphinx/issues/13007">#13007</a>: LaTeX: Improve resiliency when the required <code>fontawesome</code> or <code>fontawesome5</code> packages are not installed. Patch by Jean-François B.</li> </ul> <h1>Release 8.1.0 (released Oct 10, 2024)</h1> <h2>Dependencies</h2> <ul> <li><a href="https://redirect.github.com/sphinx-doc/sphinx/issues/12756">#12756</a>: Add lower-bounds to the <code>sphinxcontrib-*</code> dependencies. Patch by Adam Turner.</li> <li><a href="https://redirect.github.com/sphinx-doc/sphinx/issues/12833">#12833</a>: Update the LaTeX <code>parskip</code> package from 2001 to 2018. Patch by Jean-François B.</li> </ul> <h2>Incompatible changes</h2> <ul> <li><a href="https://redirect.github.com/sphinx-doc/sphinx/issues/12763">#12763</a>: Remove unused internal class <code>sphinx.util.Tee</code>.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/sphinx-doc/sphinx/commit/a1510de4777eaa2e569435f95b05f6f3293d7035"><code>a1510de</code></a> Bump to 8.1.3 final</li> <li><a href="https://github.com/sphinx-doc/sphinx/commit/62e9606d63c8bbb4964213fd6b427d1483847662"><code>62e9606</code></a> Restore support for <code>cut_lines()</code> with no object type (<a href="https://redirect.github.com/sphinx-doc/sphinx/issues/13015">#13015</a>)</li> <li><a href="https://github.com/sphinx-doc/sphinx/commit/5ae32ce9bfe4a17a7f00e1e8d39a80449423c726"><code>5ae32ce</code></a> Bump version</li> <li><a href="https://github.com/sphinx-doc/sphinx/commit/a72b47bb408923cb7809eb9f96885545184e3773"><code>a72b47b</code></a> Bump to 8.1.2 final</li> <li><a href="https://github.com/sphinx-doc/sphinx/commit/39a45ad4073a4d8c3b7dfd64d22e8a88870dcc7c"><code>39a45ad</code></a> Expose <code>ExtensionError</code> in <code>sphinx.util</code> for backwards compatibility.</li> <li><a href="https://github.com/sphinx-doc/sphinx/commit/5a4859a2e489c66b38804e95bf77fd0baf4320dc"><code>5a4859a</code></a> Add docs about sphinx-autobuild (<a href="https://redirect.github.com/sphinx-doc/sphinx/issues/13011">#13011</a>)</li> <li><a href="https://github.com/sphinx-doc/sphinx/commit/05679efe7b34f8b2fb87605438c40248ac8cae83"><code>05679ef</code></a> Type-check the 'autodoc_intenum' example (<a href="https://redirect.github.com/sphinx-doc/sphinx/issues/12827">#12827</a>)</li> <li><a href="https://github.com/sphinx-doc/sphinx/commit/86d1d31fb370f031739079de7d827be0074e7661"><code>86d1d31</code></a> Prune CHANGES of unneeded sections</li> <li><a href="https://github.com/sphinx-doc/sphinx/commit/b6269d3790bb3bdd652ce67fecb59e6afddc8014"><code>b6269d3</code></a> Improve documentation for the Builder API (<a href="https://redirect.github.com/sphinx-doc/sphinx/issues/13008">#13008</a>)</li> <li><a href="https://github.com/sphinx-doc/sphinx/commit/c46abc47210088a6c4fee9dac23badfcebc441d7"><code>c46abc4</code></a> Improve clarity for <code>master_doc</code> and <code>root_doc</code></li> <li>Additional commits viewable in <a href="https://github.com/sphinx-doc/sphinx/compare/v5.0.0...v8.1.3">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Responder: a familiar HTTP Service Framework for Python
Powered by Starlette. That async declaration is optional.
View documentation.
This gets you a ASGI app, with a production static files server pre-installed, jinja2 templating (without additional imports), and a production webserver based on uvloop, serving up requests with gzip compression automatically.
Testimonials
"Pleasantly very taken with python-responder. @kennethreitz at his absolute best." —Rudraksh M.K.
"ASGI is going to enable all sorts of new high-performance web services. It's awesome to see Responder starting to take advantage of that." — Tom Christie author of Django REST Framework
"I love that you are exploring new patterns. Go go go!" — Danny Greenfield, author of Two Scoops of Django
More Examples
See the documentation's feature tour for more details on features available in Responder.
Installing Responder
Install the most recent stable release:
pip install --upgrade responder
Or, install directly from the repository:
pip install 'responder @ git+https://github.com/kennethreitz/responder.git'
Only Python 3.6+ is supported.
The Basic Idea
The primary concept here is to bring the niceties that are brought forth from both Flask and Falcon and unify them into a single framework, along with some new ideas I have. I also wanted to take some of the API primitives that are instilled in the Requests library and put them into a web framework. So, you'll find a lot of parallels here with Requests.
- Setting
resp.contentsends back bytes. - Setting
resp.textsends back unicode, while settingresp.htmlsends back HTML. - Setting
resp.mediasends back JSON/YAML (.text/.html/.contentoverride this). - Case-insensitive
req.headersdict (from Requests directly). resp.status_code,req.method,req.url, and other familiar friends.
Ideas
- Flask-style route expression, with new capabilities -- all while using Python 3.6+'s new f-string syntax.
- I love Falcon's "every request and response is passed into to each view and mutated"
methodology, especially
response.media, and have used it here. In addition to supporting JSON, I have decided to support YAML as well, as Kubernetes is slowly taking over the world, and it uses YAML for all the things. Content-negotiation and all that. - A built in testing client that uses the actual Requests you know and love.
- The ability to mount other WSGI apps easily.
- Automatic gzipped-responses.
- In addition to Falcon's
on_get,on_post, etc methods, Responder features anon_requestmethod, which gets called on every type of request, much like Requests. - A production static file server is built-in.
- Uvicorn built-in as a production web server. I would have chosen Gunicorn, but it doesn't run on Windows. Plus, Uvicorn serves well to protect against slowloris attacks, making nginx unnecessary in production.
- GraphQL support, via Graphene. The goal here is to have any GraphQL query exposable at any route, magically.
- Provide an official way to run webpack.
