Skip to main content

wuy

It's like python eel BUT :

  • it's not as polished
  • it uses python3 ONLY
  • it uses asyncio, and the marvellous aiohttp
  • it's server hosted friendly from scratch
  • it uses pubsub mechanism to communicate from server to clients, or from client to clients
  • it's not pyinstaller-friendly for now
  • com errors are catch'able thru the promise

it's a proof of concept : WUY means Web User Ynterface ...

to test/run

Download the zip from here

$ pip3 install aiohttp
$ python3 -u server.py

to use

Install the lib :

$ pip3 install wuy

create a python file "web.py", and copy/paste this:

import wuy
wuy.start(app=True)

Run it, like this :

python3 web.py

It will create a "web/index.html", the defaut front-end ;-)

Edit "web/index.html", like this :

<script src="wuy.js"></script>
<button onclick="wuy.myadd(42,13).then( alert )">test</button>

Edit "web.py", like this :

import wuy

@wuy.expose
def myadd(a,b):
    return a+b

wuy.start(app=(640,480))

and rerun your script :

python3 web.py

and you can start to code

Release files for wuy 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wuy 0.1.5
File Size Uploaded
wuy-0.1.5.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wuy 0.1.5
File Interpreter ABI Platform
wuy-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / wuy-0.1.5.tar.gz

Download URL wuy-0.1.5.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
21bf46c7e5668066ef41137e13791d3b0f2f130e9809042e7b998b2db84a485b
BLAKE2b-256 checksum
How to use checksums
961c88574958d29390e3bded94706cc2ac464a4c9a1d8f2de10378ae9180c8ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / wuy-0.1.5-py3-none-any.whl

Download URL wuy-0.1.5-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8f574c649d67a5bb65d98b93cf68e0222766825c06ef51e788d5dd5f7eea8b2
BLAKE2b-256 checksum
How to use checksums
0dc2c7e7dbd5c7b43f59dea950c5e8c983654a0ebc8d17775789588d38d6320f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.10.1

2 release files

0.10.0

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.0

2 release files

0.8.10

2 release files

0.8.9

2 release files

0.8.8

2 release files

0.8.7

2 release files

0.8.6

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.9

2 release files

0.7.6

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6

2 release files

0.5.4

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page