adafruit / Adafruit_IO_Python

Adafruit IO Python Client Library
Other
225 stars 99 forks source link

The difference between Adafruit_IO_Python and Adafruit_CircuitPython_AdafruitIO are quite significant - Can they be made more similar? #155

Open thejunglejim opened 4 months ago

thejunglejim commented 4 months ago

The difference between Adafruit_IO_Python and Adafruit_CircuitPython_AdafruitIO are quite significant.

Is it not possible to make them more similar?

tyeth commented 4 months ago

A very sensible suggestion!

Alternatively you may be unaware that you can run the circuitpython library using normal Python (CPython). You just need to import requests instead of adafruit_requests and change the requests.Session() call, commenting out all the other unnecessary initialisation stuff, then the HTTP examples should work (I tested the group http example of the circuitpython library using normal python).