Skip to content

Commit

Permalink
🔖 Release 3.1.2
Browse files Browse the repository at this point in the history
**Fixed**
- Static type checker not accepting **list\[str\]** in values for argument **data**.

**Misc**
- Changed the documentation theme by **furo**.

**Added**
- IPv6 support in the `NO_PROXY` environment variable or in the **proxies** (key no_proxy) argument.
  Patch taken from idle upstream PR psf#5953
- Preemptively register a website to be HTTP/3 capable prior to the first TLS over TCP handshake.
  You can do so by doing like:

  ```python
  from niquests import Session

  s = Session()
  s.quic_cache_layer.add_domain("cloudflare.com")
  ```
- Passed **data** will be converted to form-data if headers have a Content-Type header and is set to `multipart/form-data`.
  Otherwise, by default, it is still urlencoded. If you specified a boundary, it will be used, otherwise, a random one will
  be generated.
  • Loading branch information
Ousret committed Oct 16, 2023
1 parent d616667 commit 1d8561f
Show file tree
Hide file tree
Showing 23 changed files with 315 additions and 293 deletions.
25 changes: 25 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
Release History
===============

3.1.2 (2023-10-16)
------------------

**Fixed**
- Static type checker not accepting **list\[str\]** in values for argument **data**.

**Misc**
- Changed the documentation theme by **furo**.

**Added**
- IPv6 support in the `NO_PROXY` environment variable or in the **proxies** (key no_proxy) argument.
Patch taken from idle upstream PR https://github.com/psf/requests/pull/5953
- Preemptively register a website to be HTTP/3 capable prior to the first TLS over TCP handshake.
You can do so by doing like:

```python
from niquests import Session

s = Session()
s.quic_cache_layer.add_domain("cloudflare.com")
```
- Passed **data** will be converted to form-data if headers have a Content-Type header and is set to `multipart/form-data`.
Otherwise, by default, it is still urlencoded. If you specified a boundary, it will be used, otherwise, a random one will
be generated.

3.1.1 (2023-10-11)
------------------

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ intend to keep it that way.
{'authenticated': True, ...}
>>> r
<Reponse HTTP/2 [200]>
>>> r.ocsp_verified
True
```

Niquests allows you to send HTTP requests extremely easily. There’s no need to manually add query strings to your URLs, or to form-encode your `PUT` & `POST` data — but nowadays, just use the `json` method!
Expand Down
27 changes: 0 additions & 27 deletions docs/_templates/hacks.html

This file was deleted.

37 changes: 0 additions & 37 deletions docs/_templates/sidebarintro.html

This file was deleted.

31 changes: 0 additions & 31 deletions docs/_templates/sidebarlogo.html

This file was deleted.

3 changes: 0 additions & 3 deletions docs/_themes/.gitignore

This file was deleted.

45 changes: 0 additions & 45 deletions docs/_themes/LICENSE

This file was deleted.

86 changes: 0 additions & 86 deletions docs/_themes/flask_theme_support.py

This file was deleted.

51 changes: 27 additions & 24 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@

# Insert Requests' path into the system.
sys.path.insert(0, os.path.abspath("../src"))
sys.path.insert(0, os.path.abspath("_themes"))

import niquests

sys.modules["requests"] = niquests


# -- General configuration ------------------------------------------------

Expand All @@ -37,9 +38,9 @@
# ones.
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
"sphinx.ext.viewcode",
"sphinx_copybutton",
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -58,7 +59,7 @@

# General information about the project.
project = u"Niquests"
copyright = u'MMXVIX. A <a href="https://kenreitz.org/projects">Kenneth Reitz</a> Project'
copyright = u'MMXVIX. A Kenneth Reitz Project'
author = u"Kenneth Reitz"

# The version info for the project you're documenting, acts as replacement for
Expand All @@ -75,7 +76,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
Expand Down Expand Up @@ -103,7 +104,8 @@
# show_authors = False

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = "flask_theme_support.FlaskyStyle"
pygments_style = "sphinx"
pygments_dark_style = "monokai"

# A list of ignored prefixes for module index sorting.
# modindex_common_prefix = []
Expand All @@ -119,18 +121,19 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = "alabaster"
html_theme = "furo"

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {
"show_powered_by": False,
"github_user": "requests",
"github_repo": "requests",
"github_banner": True,
"show_related": False,
"note_bg": "#FFF59C",
"source_repository": "https://github.com/jawah/niquests/",
"source_branch": "main",
"source_directory": "docs/",
"light_css_variables": {
"color-brand-primary": "#7C4DFF",
"color-brand-content": "#7C4DFF",
},
}

# Add any paths that contain custom themes here, relative to this directory.
Expand Down Expand Up @@ -171,17 +174,17 @@
html_use_smartypants = False

# Custom sidebar templates, maps document names to template names.
html_sidebars = {
"index": ["sidebarintro.html", "sourcelink.html", "searchbox.html", "hacks.html"],
"**": [
"sidebarlogo.html",
"localtoc.html",
"relations.html",
"sourcelink.html",
"searchbox.html",
"hacks.html",
],
}
# html_sidebars = {
# "index": ["sidebarintro.html", "sourcelink.html", "searchbox.html", "hacks.html"],
# "**": [
# "sidebarlogo.html",
# "localtoc.html",
# "relations.html",
# "sourcelink.html",
# "searchbox.html",
# "hacks.html",
# ],
# }

# Additional templates that should be rendered to pages, maps page names to
# template names.
Expand Down Expand Up @@ -382,5 +385,5 @@

intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),
"urllib3.future": ("https://urllib3-future.readthedocs.io/en/latest", None),
"urllib3.future": ("https://urllib3future.readthedocs.io/en/latest", None),
}
Loading

0 comments on commit 1d8561f

Please sign in to comment.