Lightweight ftp asyncio library for MicroPython.
Project description
# 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()
```
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()
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for micropython-uaioftp-0.9.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c42b8ca45509161ae8f2cc0b397ad716c1cf75e04ad47e2a7fd682bf46260091 |
|
MD5 | 74bd55c70ecb09715d2be090175498a6 |
|
BLAKE2b-256 | d79be425bf1c10eec5710fa16ef7d6b1dc288a450eb88184fa5cbca34b4c524d |