micropython-lib/python-ecosys
Brian Whitman e025c843b6 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-10-05 10:42:14 +11:00
..
cbor2 cbor2: Improve decoder to pass Ruff F821 undefined-name. 2023-08-22 22:43:20 +10:00
iperf3 iperf3: Pre-declare some variables set in the loop. 2023-08-22 22:43:46 +10:00
pyjwt all: Standardise x.y.z versioning for all packages. 2023-07-23 11:48:57 +10:00
requests requests: Fix detection of iterators in chunked data requests. 2023-10-05 10:42:14 +11:00
README.md top: Update top-level docs. 2022-12-16 17:16:03 +11:00

README.md

Python-ecosystem packages

These MicroPython versions of common Python packages, typically found on PyPI.

If a package has the same name as a PyPI package, then it should match at least some subset of the functionality.

Future plans

  • More organised directory structure based on library purpose (e.g. drivers, network, etc).