Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cwyark/micropython-uaioftp

Lightweight ftp library for MicroPython.
https://github.com/cwyark/micropython-uaioftp

asyncio ftp micropython

Last synced: 12 days ago
JSON representation

Lightweight ftp library for MicroPython.

Awesome Lists containing this project

README

        

# micropython-uaioftp
Lightweight ftp library for MicroPython.

## uaioftp server example

```
import uasyncio as asyncio
import logging
logging.basicConfig(level=logging.DEBUG)
#logging.basicConfig(level=logging.INFO)
loop = asyncio.get_event_loop()
from uaioftp import uaioftpd
ftpd = uaioftpd(loop=loop, my_ip=netif.ip()[0])
loop.call_soon(asyncio.start_server(ftpd.server, "0.0.0.0", 21))
try:
loop.run_forever()
except:
loop.close()
```