Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/cwyark/micropython-uaioftp
- Owner: cwyark
- License: mit
- Created: 2017-02-16T01:43:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-15T10:13:31.000Z (over 1 year ago)
- Last Synced: 2024-10-15T09:46:40.745Z (24 days ago)
- Topics: asyncio, ftp, micropython
- Language: Python
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - micropython-uaioftp - Lightweight FTP library for MicroPython. (Libraries / Communications)
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()
```