Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/znitche/microhttp
minimal async HTTP client for micropython
https://github.com/znitche/microhttp
async http-client http-requests micropython
Last synced: 10 days ago
JSON representation
minimal async HTTP client for micropython
- Host: GitHub
- URL: https://github.com/znitche/microhttp
- Owner: zNitche
- License: mit
- Created: 2024-06-11T19:43:51.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-07-14T17:00:42.000Z (4 months ago)
- Last Synced: 2024-10-11T22:22:27.050Z (about 1 month ago)
- Topics: async, http-client, http-requests, micropython
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## microHTTP
minimal async HTTP client for micropython
### Local installation (for development)
```
python3 -m build --sdist
pip3 install dist/microhttp-.tar.gz
```#### Microcontroller installation
#### Get package from GitHub release1. Get `.zip` package (replace `` with release number, for instance `v1.0.1`)
```
wget -O microHTTP.zip https://github.com/zNitche/microHTTP/releases/download//microHTTP-.zip
```2. Unpack archive and add its content to your project (don't forget to include it in `.gitignore`)
```
unzip microHTTP.zip
cp -r microHTTP /microHTTP
```3. Flash microcontroller and you are good to go.
##### As a MicroPython frozen module
See Micropython [docs](https://docs.micropython.org/en/latest/reference/manifest.html#manifest).in short copy `microHTTP` package to `[micropython_src_dir]/ports/rp2/modules` and run
```
make -C ports/rp2 BOARD=RPI_PICO_W
```### Development
packages in `requirements.txt` are used for development / build```
pip3 install -r requirements.txt
```#### Remote Shell
for flashing pico you can use `rshell`
```
pip3 install rshell==0.0.32
```enter REPL
```
rshell
repl
```flash
```
rshell -f commands/flash
```clear all files
```
rshell -f commands/wipe
```