Skip to content

3.0.0 - Switch to connection manager

Compare
Choose a tag to compare
@tannewt tannewt released this 27 Feb 01:05
· 149 commits to main since this release
cd34a7e

What's Changed

  • Use ConnectionManager by @justmobilize in #151 It centralizes socket connection tracking and allows sharing it with other libraries. Thanks again to @justmobilize for the refactoring!

You'll need to install Adafruit_CircuitPython_ConnectionManager to use this version of adafruit_requests. circup should install it automatically.

Top level functions set_socket(), request(), head(), get(), post(), put(), patch(), and delete() have all been removed in favor of requiring an explicit adafruit_requests.Session() object. See the examples for how to initialize depending on which networking library is being used.

Full Changelog: 2.0.5...3.0.0

To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.

To use in CPython, pip3 install adafruit-circuitpython-requests.

Read the docs for info on how to use it.