Falcon v3.0.0 Documentation
as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis basic async image store. Save the following code as store.py next to app.py and config.py: import asyncio import datetime import io import aiofiles import falcon import PIL.Image class Image: def __init__(self0 码力 | 1055 页 | 739.30 KB | 1 年前3Falcon v3.0.1 Documentation
as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis basic async image store. Save the following code as store.py next to app.py and config.py: import asyncio import datetime import io import aiofiles import falcon import PIL.Image class Image: def __init__(self0 码力 | 1058 页 | 741.59 KB | 1 年前3Falcon v3.0.0-b1 Documentation
champ under CPython 3.5+ and PyPy 3.5+. Features ASGI and WSGI Support WebSocket Support Native asyncio support (no hacks or compatibility layers) Strict adherence to RFCs Highly-optimized, extensible async image store as (save the following code as store.py next to app.py and config.py): import asyncio import datetime import io import aiofiles import falcon import PIL.Image class Image: def __init__(self values(), key=lambda item: item.modified) async def save(self, image_id, data): loop = asyncio.get_running_loop() image = await loop.run_in_executor(None, self._load_from_bytes, data)0 码力 | 1028 页 | 725.86 KB | 1 年前3Falcon v3.0.0-b2 Documentation
champ under CPython 3.5+ and PyPy 3.5+. Features ASGI and WSGI Support WebSocket Support Native asyncio support (no hacks or compatibility layers) Strict adherence to RFCs Highly-optimized, extensible basic async image store. Save the following code as store.py next to app.py and config.py: import asyncio import datetime import io import aiofiles import falcon import PIL.Image class Image: def __init__(self values(), key=lambda item: item.modified) async def save(self, image_id, data): loop = asyncio.get_running_loop() image = await loop.run_in_executor(None, self._load_from_bytes, data)0 码力 | 1041 页 | 730.21 KB | 1 年前3Falcon v3.1.1 Documentation
as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis basic async image store. Save the following code as store.py next to app.py and config.py: import asyncio import datetime import io import aiofiles import falcon import PIL.Image class Image: def __init__(self0 码力 | 540 页 | 476.60 KB | 1 年前3Falcon v3.1.1-rc1 Documentation
as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis basic async image store. Save the following code as store.py next to app.py and config.py: import asyncio import datetime import io import aiofiles import falcon import PIL.Image class Image: def __init__(self0 码力 | 540 页 | 476.61 KB | 1 年前3Falcon v3.1.0 Documentation
as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis basic async image store. Save the following code as store.py next to app.py and config.py: import asyncio import datetime import io import aiofiles import falcon import PIL.Image class Image: def __init__(self0 码力 | 537 页 | 474.34 KB | 1 年前3Falcon v3.1.1-b3 Documentation
as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis basic async image store. Save the following code as store.py next to app.py and config.py: import asyncio import datetime import io import aiofiles import falcon import PIL.Image class Image: def __init__(self0 码力 | 540 页 | 476.61 KB | 1 年前3Falcon v3.1.1-a Documentation
as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis basic async image store. Save the following code as store.py next to app.py and config.py: import asyncio import datetime import io import aiofiles import falcon import PIL.Image class Image: def __init__(self0 码力 | 540 页 | 476.60 KB | 1 年前3Falcon v3.1.1-b1 Documentation
as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis as little as possible while remaining highly effective. ASGI, WSGI, and WebSocket support Native asyncio support No reliance on magic globals for routing and state management Stable interfaces with an emphasis basic async image store. Save the following code as store.py next to app.py and config.py: import asyncio import datetime import io import aiofiles import falcon import PIL.Image class Image: def __init__(self0 码力 | 540 页 | 476.61 KB | 1 年前3
共 32 条
- 1
- 2
- 3
- 4