requests-lite


Namerequests-lite JSON
Version 2.32.7 PyPI version JSON
download
home_pagehttps://requests.readthedocs.io
SummaryPython HTTP for Humans (lite version).
upload_time2024-07-01 00:53:27
maintainerNone
docs_urlNone
authorKenneth Reitz
requires_python>=3.8
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # Requests-lite



**Requests-lite** is Requests but more lite!, is a simple, yet elegant, HTTP library.



```python

>>> import requests

>>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))

>>> r.status_code

200

>>> r.headers['content-type']

'application/json; charset=utf8'

>>> r.encoding

'utf-8'

>>> r.text

'{"authenticated": true, ...'

>>> r.json()

{'authenticated': True, ...}

```



Requests allows you to send HTTP/1.1 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!



Requests is one of the most downloaded Python packages today, pulling in around `30M downloads / week`— according to GitHub, Requests is currently [depended upon](https://github.com/psf/requests/network/dependents?package_id=UGFja2FnZS01NzA4OTExNg%3D%3D) by `1,000,000+` repositories. You may certainly put your trust in this code.



[![Downloads](https://static.pepy.tech/badge/requests/month)](https://pepy.tech/project/requests)

[![Supported Versions](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests)

[![Contributors](https://img.shields.io/github/contributors/psf/requests.svg)](https://github.com/psf/requests/graphs/contributors)



## Installing Requests and Supported Versions



Requests is available on PyPI:



```console

$ python -m pip install requests

```



Requests officially supports Python 3.8+.



## Supported Features & Best–Practices



Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.



- Keep-Alive & Connection Pooling

- International Domains and URLs

- Sessions with Cookie Persistence

- Browser-style TLS/SSL Verification

- Basic & Digest Authentication

- Familiar `dict`–like Cookies

- Automatic Content Decompression and Decoding

- Multi-part File Uploads

- SOCKS Proxy Support

- Connection Timeouts

- Streaming Downloads

- Automatic honoring of `.netrc`

- Chunked HTTP Requests



## API Reference and User Guide available on [Read the Docs](https://requests.readthedocs.io)



[![Read the Docs](https://raw.githubusercontent.com/psf/requests/main/ext/ss.png)](https://requests.readthedocs.io)



## Cloning the repository



When cloning the Requests repository, you may need to add the `-c

fetch.fsck.badTimezone=ignore` flag to avoid an error about a bad commit (see

[this issue](https://github.com/psf/requests/issues/2690) for more background):



```shell

git clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git

```



You can also apply this setting to your global Git config:



```shell

git config --global fetch.fsck.badTimezone ignore

```



---



[![Kenneth Reitz](https://raw.githubusercontent.com/psf/requests/main/ext/kr.png)](https://kennethreitz.org) [![Python Software Foundation](https://raw.githubusercontent.com/psf/requests/main/ext/psf.png)](https://www.python.org/psf)


            

Raw data

            {
    "_id": null,
    "home_page": "https://requests.readthedocs.io",
    "name": "requests-lite",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Kenneth Reitz",
    "author_email": "me@kennethreitz.org",
    "download_url": "https://files.pythonhosted.org/packages/67/4f/1129320d5cc6ae2f5b5b5e58d9ec57a9e1c1be4ed1a5718bfe7ad70034d3/requests-lite-2.32.7.tar.gz",
    "platform": null,
    "description": "# Requests-lite\r\n\r\n\r\n\r\n**Requests-lite** is Requests but more lite!, is a simple, yet elegant, HTTP library.\r\n\r\n\r\n\r\n```python\r\n\r\n>>> import requests\r\n\r\n>>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))\r\n\r\n>>> r.status_code\r\n\r\n200\r\n\r\n>>> r.headers['content-type']\r\n\r\n'application/json; charset=utf8'\r\n\r\n>>> r.encoding\r\n\r\n'utf-8'\r\n\r\n>>> r.text\r\n\r\n'{\"authenticated\": true, ...'\r\n\r\n>>> r.json()\r\n\r\n{'authenticated': True, ...}\r\n\r\n```\r\n\r\n\r\n\r\nRequests allows you to send HTTP/1.1 requests extremely easily. There\u2019s no need to manually add query strings to your URLs, or to form-encode your `PUT` & `POST` data \u2014 but nowadays, just use the `json` method!\r\n\r\n\r\n\r\nRequests is one of the most downloaded Python packages today, pulling in around `30M downloads / week`\u2014 according to GitHub, Requests is currently [depended upon](https://github.com/psf/requests/network/dependents?package_id=UGFja2FnZS01NzA4OTExNg%3D%3D) by `1,000,000+` repositories. You may certainly put your trust in this code.\r\n\r\n\r\n\r\n[![Downloads](https://static.pepy.tech/badge/requests/month)](https://pepy.tech/project/requests)\r\n\r\n[![Supported Versions](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests)\r\n\r\n[![Contributors](https://img.shields.io/github/contributors/psf/requests.svg)](https://github.com/psf/requests/graphs/contributors)\r\n\r\n\r\n\r\n## Installing Requests and Supported Versions\r\n\r\n\r\n\r\nRequests is available on PyPI:\r\n\r\n\r\n\r\n```console\r\n\r\n$ python -m pip install requests\r\n\r\n```\r\n\r\n\r\n\r\nRequests officially supports Python 3.8+.\r\n\r\n\r\n\r\n## Supported Features & Best\u2013Practices\r\n\r\n\r\n\r\nRequests is ready for the demands of building robust and reliable HTTP\u2013speaking applications, for the needs of today.\r\n\r\n\r\n\r\n- Keep-Alive & Connection Pooling\r\n\r\n- International Domains and URLs\r\n\r\n- Sessions with Cookie Persistence\r\n\r\n- Browser-style TLS/SSL Verification\r\n\r\n- Basic & Digest Authentication\r\n\r\n- Familiar `dict`\u2013like Cookies\r\n\r\n- Automatic Content Decompression and Decoding\r\n\r\n- Multi-part File Uploads\r\n\r\n- SOCKS Proxy Support\r\n\r\n- Connection Timeouts\r\n\r\n- Streaming Downloads\r\n\r\n- Automatic honoring of `.netrc`\r\n\r\n- Chunked HTTP Requests\r\n\r\n\r\n\r\n## API Reference and User Guide available on [Read the Docs](https://requests.readthedocs.io)\r\n\r\n\r\n\r\n[![Read the Docs](https://raw.githubusercontent.com/psf/requests/main/ext/ss.png)](https://requests.readthedocs.io)\r\n\r\n\r\n\r\n## Cloning the repository\r\n\r\n\r\n\r\nWhen cloning the Requests repository, you may need to add the `-c\r\n\r\nfetch.fsck.badTimezone=ignore` flag to avoid an error about a bad commit (see\r\n\r\n[this issue](https://github.com/psf/requests/issues/2690) for more background):\r\n\r\n\r\n\r\n```shell\r\n\r\ngit clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git\r\n\r\n```\r\n\r\n\r\n\r\nYou can also apply this setting to your global Git config:\r\n\r\n\r\n\r\n```shell\r\n\r\ngit config --global fetch.fsck.badTimezone ignore\r\n\r\n```\r\n\r\n\r\n\r\n---\r\n\r\n\r\n\r\n[![Kenneth Reitz](https://raw.githubusercontent.com/psf/requests/main/ext/kr.png)](https://kennethreitz.org) [![Python Software Foundation](https://raw.githubusercontent.com/psf/requests/main/ext/psf.png)](https://www.python.org/psf)\r\n\r\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Python HTTP for Humans (lite version).",
    "version": "2.32.7",
    "project_urls": {
        "Documentation": "https://requests.readthedocs.io",
        "Homepage": "https://requests.readthedocs.io",
        "Source": "https://github.com/psf/requests"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "32da3857be491b69a190f2b10712e8bca235c0611eb3800fbf2f999574657d7f",
                "md5": "78f00e2198209d6bd30212f117e068ed",
                "sha256": "94df67629454629cfaa4f0af992aacf83bdaadbf0bc40fdada323421f87fe1b0"
            },
            "downloads": -1,
            "filename": "requests_lite-2.32.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "78f00e2198209d6bd30212f117e068ed",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 125357,
            "upload_time": "2024-07-01T00:53:25",
            "upload_time_iso_8601": "2024-07-01T00:53:25.137894Z",
            "url": "https://files.pythonhosted.org/packages/32/da/3857be491b69a190f2b10712e8bca235c0611eb3800fbf2f999574657d7f/requests_lite-2.32.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "674f1129320d5cc6ae2f5b5b5e58d9ec57a9e1c1be4ed1a5718bfe7ad70034d3",
                "md5": "14d098f66ee9b39a082b59289ef2672a",
                "sha256": "b6892d9381472315031328406f027e93ddbc72cf683658f954f3f9b8b718f3c6"
            },
            "downloads": -1,
            "filename": "requests-lite-2.32.7.tar.gz",
            "has_sig": false,
            "md5_digest": "14d098f66ee9b39a082b59289ef2672a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 131392,
            "upload_time": "2024-07-01T00:53:27",
            "upload_time_iso_8601": "2024-07-01T00:53:27.868018Z",
            "url": "https://files.pythonhosted.org/packages/67/4f/1129320d5cc6ae2f5b5b5e58d9ec57a9e1c1be4ed1a5718bfe7ad70034d3/requests-lite-2.32.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-01 00:53:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "psf",
    "github_project": "requests",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "requests-lite"
}
        
Elapsed time: 0.57787s