File transport adapter for Requests
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file requests_stdin-1.0.1.tar.gz.
File metadata
- Download URL: requests_stdin-1.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec372c477cf0798c3b84d5cc76794acb3e97553629d2963ce55bf662cd54f37d
|
|
| MD5 |
4a9c868d2d2f4848c2037f5a0f0f19f0
|
|
| BLAKE2b-256 |
c28f686ecfb85be70d3b5451f5bbaf697da41a507a900cb7d70119b6d6656722
|
File details
Details for the file requests_stdin-1.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: requests_stdin-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
640c2b8e92abed624950a91dab13bf4e0465abfd9e03cc90baf6cedf9ef3fd89
|
|
| MD5 |
527cb6c0cdfc61e0975f8e7918cdfc2e
|
|
| BLAKE2b-256 |
25eb93dd6ded2e5f8e99c8e2be6149dad966d729015cf05875d31a14d918116d
|