This website requires JavaScript.
Odkrywaj
Pomoc
Zarejestruj się
Zaloguj się
mirror
/
micropython-lib
kopia lustrzana
https://github.com/micropython/micropython-lib
Obserwuj
1
Polub
0
Forkuj
You've already forked micropython-lib
0
Kod
Zgłoszenia
Projekty
Wydania
Wiki
Aktywność
06592f8246
micropython-lib
/
python-ecosys
/
requests
/
manifest.py
4 wiersze
64 B
Python
Czysty
Zwykły widok
Historia
Unescape
Escape
requests: Fix detection of iterators in chunked data requests. Chunked detection does not work as generators never have an `__iter__` attribute. They do have `__next__`. Example that now works with this commit: def read_in_chunks(file_object, chunk_size=4096): while True: data = file_object.read(chunk_size) if not data: break yield data file = open(filename, "rb") r = requests.post(url, data=read_in_chunks(file))
2023-05-30 03:27:49 +00:00
metadata
(
version
=
"
0.8.1
"
,
pypi
=
"
requests
"
)
requests: Rename urequests to requests. This module implements a subset of the Python requests module, and so it should have the same name. Added a backwards-compatibility wrapper to allow people to continue to use `import urequests`. This lives in micropython/urequests. Changed requests to be a package, so that we can implement extension packages in the future for optional functionality. Added a basic README.md to both. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-07-21 06:39:28 +00:00
package
(
"
requests
"
)