Registry / web-framework / wsme
library0.12.1pypypi✓ verified 81d ago

WSME (Web Service Made Easy) simplifies writing REST APIs by using Python type annotations to define web service protocols, supporting JSON and XML. Version 0.12.1 is the latest stable release, with a maintenance cadence.

pip install wsme
INSTALL
IMPORT
SIG · WSME
W
wsme
web-frameworkpythonv0.12.1
Install
3.1s avg
Import
Disk
32MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.12.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 33.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.1s · import 0.000s · 34MB
32MB installed
● package 32MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WSRoot
from wsme import WSRoot
from wsme import WSPromise
expose
from wsme import expose
validate
from wsme import validate

Define a simple web service with WSME using type annotations and WSPromise.

from wsme import WSPromise, types class MyService: @WSPromise(returns=types.text) def greet(self, name: types.text) -> str: return f"Hello, {name}!" if __name__ == '__main__': # In a real app, you would set up a WSGI server pass
Debug
Known issues
breakingWSME 0.12 removed support for Python 2 and dropped the wsmeext.pecan module. Users must migrate to Python 3.8+ and use pecan-wsme instead.
fix
Upgrade to Python >=3.8 and replace 'from wsmeext.pecan import ...' with 'from pecan_wsme import ...' (install pecan-wsme).
affects: <0.12.0
deprecatedImporting types from wsme.api is deprecated; use from wsme import types instead.
fix
Change imports to 'from wsme import types'.
affects: all
gotchaType annotations must be strings (types.text) not Python builtins (str). Using builtins may cause serialization errors.
fix
Always use wsme.types types, e.g., types.text, types.int, etc.
affects: all
Upgrade
Version history
0.12.1latest on PyPI · released Sep 22, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
OpenAI (training)
1
Resources
wsme — pip install wsme · libregistry