{"repo":"crate/micropython-cratedb","free":true,"listed":false,"github":"https://github.com/crate/micropython-cratedb","clone":"git clone https://github.com/crate/micropython-cratedb.git","description":"A CrateDB Driver for MicroPython.","language":"Python","stars":10,"topics":["cratedb","cratedb-driver","micropython","micropython-driver","iot","iot-device","rdbms","sensor-network","sensor-networks","sql"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"micropython-cratedb - A CrateDB Driver for MicroPython Introduction micropython-cratedb is a CrateDB driver for the MicroPython language. It connects to CrateDB using the HTTP Endpoint. To use this, you'll need a CrateDB database cluster. Sign up for our cloud free tier here or get started with Docker here. Want to learn more about CrateDB? Take our free Fundamentals course at the CrateDB Academy. You can also watch this video from the Raspberry Pint Meetup where Simon Prickett, CrateDB's Developer Advocate, demonstrates how to use this driver with various sensors attached to Raspberry Pi Pico W devices. Installation There are two ways to install this driver. Install with mpremote Install the driver with mpremote like this: This will install the driver into /lib on the device, along with the base64 module from micropython-lib . Install with mip You can also install the driver into /lib on the device by running the following commands at the MicroPython REPL on the device: Using the Driver in a MicroPython Script Import the driver like this: Connecting to CrateDB Connect to a CrateDB Cloud cluster using SSL, by providing hostname, username, and password: The driver uses SSL by default. If you're running CrateDB on your workstation (with Docker for example, by using docker run --rm -it --publish=4200:4200 crate ), connect like this: The driver will connect to port 4200 unless you provide an alternative value: Interacting with CrateDB CrateDB is a SQL database: you'll store, upda","default_branch":null,"files":null,"tree":[],"storefront":"/r/crate","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/crate/micropython-cratedb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}