all: Change use of "uasyncio" to "asyncio".

Signed-off-by: Damien George <damien@micropython.org>
pull/880/head
Damien George 2024-06-12 13:44:20 +10:00
rodzic 1f019f90ea
commit 7271f1ddc7
27 zmienionych plików z 30 dodań i 30 usunięć

Wyświetl plik

@ -4,7 +4,7 @@ A supplementary module which extends the micropython `espnow` module to provide
`asyncio` support. `asyncio` support.
- Asyncio support is available on all ESP32 targets as well as those ESP8266 - Asyncio support is available on all ESP32 targets as well as those ESP8266
boards which include the `uasyncio` module (ie. ESP8266 devices with at least boards which include the `asyncio` module (ie. ESP8266 devices with at least
2MB flash storage). 2MB flash storage).
## API reference ## API reference
@ -52,7 +52,7 @@ A small async server example::
```python ```python
import network import network
import aioespnow import aioespnow
import uasyncio as asyncio import asyncio
# A WLAN interface must be active to send()/recv() # A WLAN interface must be active to send()/recv()
network.WLAN(network.STA_IF).active(True) network.WLAN(network.STA_IF).active(True)

Wyświetl plik

@ -1,12 +1,12 @@
# aioespnow module for MicroPython on ESP32 and ESP8266 # aioespnow module for MicroPython on ESP32 and ESP8266
# MIT license; Copyright (c) 2022 Glenn Moloney @glenn20 # MIT license; Copyright (c) 2022 Glenn Moloney @glenn20
import uasyncio as asyncio import asyncio
import espnow import espnow
# Modelled on the uasyncio.Stream class (extmod/stream/stream.py) # Modelled on the asyncio.Stream class (extmod/asyncio/stream.py)
# NOTE: Relies on internal implementation of uasyncio.core (_io_queue) # NOTE: Relies on internal implementation of asyncio.core (_io_queue)
class AIOESPNow(espnow.ESPNow): class AIOESPNow(espnow.ESPNow):
# Read one ESPNow message # Read one ESPNow message
async def arecv(self): async def arecv(self):

Wyświetl plik

@ -41,7 +41,7 @@ async def execute(code, g, s):
code = "return {}".format(code) code = "return {}".format(code)
code = """ code = """
import uasyncio as asyncio import asyncio
async def __code(): async def __code():
{} {}

Wyświetl plik

@ -6,7 +6,7 @@ from micropython import const
import bluetooth import bluetooth
import struct import struct
import uasyncio as asyncio import asyncio
from .core import ( from .core import (
ensure_active, ensure_active,

Wyświetl plik

@ -3,7 +3,7 @@
from micropython import const from micropython import const
from collections import deque from collections import deque
import uasyncio as asyncio import asyncio
import struct import struct
import bluetooth import bluetooth

Wyświetl plik

@ -3,7 +3,7 @@
from micropython import const from micropython import const
import uasyncio as asyncio import asyncio
import binascii import binascii
from .core import ble, register_irq_handler, log_error from .core import ble, register_irq_handler, log_error

Wyświetl plik

@ -3,7 +3,7 @@
from micropython import const from micropython import const
import uasyncio as asyncio import asyncio
from .core import ble, log_error, register_irq_handler from .core import ble, log_error, register_irq_handler
from .device import DeviceConnection from .device import DeviceConnection

Wyświetl plik

@ -6,7 +6,7 @@ from micropython import const
import bluetooth import bluetooth
import struct import struct
import uasyncio as asyncio import asyncio
from .core import ( from .core import (
ensure_active, ensure_active,

Wyświetl plik

@ -2,7 +2,7 @@
# MIT license; Copyright (c) 2021 Jim Mussared # MIT license; Copyright (c) 2021 Jim Mussared
from micropython import const, schedule from micropython import const, schedule
import uasyncio as asyncio import asyncio
import binascii import binascii
import json import json

Wyświetl plik

@ -4,7 +4,7 @@
from micropython import const from micropython import const
from collections import deque from collections import deque
import bluetooth import bluetooth
import uasyncio as asyncio import asyncio
from .core import ( from .core import (
ensure_active, ensure_active,

Wyświetl plik

@ -10,7 +10,7 @@ sys.path.append("")
from micropython import const from micropython import const
import uasyncio as asyncio import asyncio
import aioble import aioble
import bluetooth import bluetooth

Wyświetl plik

@ -21,7 +21,7 @@ sys.path.append("")
from micropython import const from micropython import const
import uasyncio as asyncio import asyncio
import aioble import aioble
import bluetooth import bluetooth

Wyświetl plik

@ -5,7 +5,7 @@ sys.path.append("")
from micropython import const from micropython import const
import uasyncio as asyncio import asyncio
import aioble import aioble
import bluetooth import bluetooth

Wyświetl plik

@ -5,7 +5,7 @@ sys.path.append("")
from micropython import const from micropython import const
import uasyncio as asyncio import asyncio
import aioble import aioble
import bluetooth import bluetooth

Wyświetl plik

@ -9,7 +9,7 @@ from micropython import const
import machine import machine
import time import time
import uasyncio as asyncio import asyncio
import aioble import aioble
import bluetooth import bluetooth

Wyświetl plik

@ -9,7 +9,7 @@ from micropython import const
import machine import machine
import time import time
import uasyncio as asyncio import asyncio
import aioble import aioble
import bluetooth import bluetooth

Wyświetl plik

@ -9,7 +9,7 @@ from micropython import const
import machine import machine
import time import time
import uasyncio as asyncio import asyncio
import aioble import aioble
import bluetooth import bluetooth

Wyświetl plik

@ -9,7 +9,7 @@ from micropython import const
import machine import machine
import time import time
import uasyncio as asyncio import asyncio
import aioble import aioble
import bluetooth import bluetooth

Wyświetl plik

@ -9,7 +9,7 @@ from micropython import const
import machine import machine
import time import time
import uasyncio as asyncio import asyncio
import aioble import aioble
import bluetooth import bluetooth

Wyświetl plik

@ -9,7 +9,7 @@ from micropython import const
import machine import machine
import time import time
import uasyncio as asyncio import asyncio
import aioble import aioble
import bluetooth import bluetooth

Wyświetl plik

@ -9,7 +9,7 @@ from micropython import const
import machine import machine
import time import time
import uasyncio as asyncio import asyncio
import aioble import aioble
import bluetooth import bluetooth

Wyświetl plik

@ -9,7 +9,7 @@ from micropython import const
import machine import machine
import time import time
import uasyncio as asyncio import asyncio
import aioble import aioble
import bluetooth import bluetooth

Wyświetl plik

@ -7,7 +7,7 @@ from micropython import const
import machine import machine
import time import time
import uasyncio as asyncio import asyncio
import aioble import aioble
import bluetooth import bluetooth
import random import random

Wyświetl plik

@ -1,4 +1,4 @@
uaiohttpclient is an HTTP client module for MicroPython uasyncio module, uaiohttpclient is an HTTP client module for MicroPython asyncio module,
with API roughly compatible with aiohttp (https://github.com/KeepSafe/aiohttp) with API roughly compatible with aiohttp (https://github.com/KeepSafe/aiohttp)
module. Note that only client is implemented, for server see picoweb module. Note that only client is implemented, for server see picoweb
microframework. microframework.

Wyświetl plik

@ -2,7 +2,7 @@
# uaiohttpclient - fetch URL passed as command line argument. # uaiohttpclient - fetch URL passed as command line argument.
# #
import sys import sys
import uasyncio as asyncio import asyncio
import uaiohttpclient as aiohttp import uaiohttpclient as aiohttp

Wyświetl plik

@ -1,4 +1,4 @@
metadata(description="HTTP client module for MicroPython uasyncio module", version="0.5.2") metadata(description="HTTP client module for MicroPython asyncio module", version="0.5.2")
# Originally written by Paul Sokolovsky. # Originally written by Paul Sokolovsky.

Wyświetl plik

@ -1,4 +1,4 @@
import uasyncio as asyncio import asyncio
class ClientResponse: class ClientResponse: