Requests-Stdin is a transport adapter for use with the Requests Python library to allow stdin input access via stdin:// URLs.
To use:
import requests
from requests_stdin import StdinAdapter
s = requests.Session()
s.mount('stdin://', StdinAdapter())
resp = s.get('stdin://some_prompt')
Features
Will read stdin input
Might set a Content-Length header
That’s about it
Contributing
Contributions welcome! Feel free to open a pull request against https://github.com/huakim/requests-stdin
License
To maximise compatibility with Requests, this code is licensed under the Apache license. See LICENSE for more details.
Metadata
Release files for requests-stdin 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| requests_stdin-1.0.1.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| requests_stdin-1.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 6.2 kB
Release files / requests_stdin-1.0.1.tar.gz
| Download URL | requests_stdin-1.0.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec372c477cf0798c3b84d5cc76794acb3e97553629d2963ce55bf662cd54f37d
|
|
BLAKE2b-256 checksum How to use checksums |
c28f686ecfb85be70d3b5451f5bbaf697da41a507a900cb7d70119b6d6656722
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / requests_stdin-1.0.1-py2.py3-none-any.whl
| Download URL | requests_stdin-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
640c2b8e92abed624950a91dab13bf4e0465abfd9e03cc90baf6cedf9ef3fd89
|
|
BLAKE2b-256 checksum How to use checksums |
25eb93dd6ded2e5f8e99c8e2be6149dad966d729015cf05875d31a14d918116d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|