Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
Log In
Found the internet!
Create an account to follow your favorite communities and start taking part in conversations.

Posts about PyPy

Subreddit Icon
r/RenPy
14.5k members
A place for discussion about the Ren'Py visual novel engine and related topics and technologies.
Visit
Subreddit Icon
r/Python
1.1m members
News about the programming language Python. If you have something to teach others post here. If you have questions or are a newbie use r/learnpython
Visit
Subreddit Icon
r/Baking
1.6m members
For all your baking needs! Recipes, ideas and all things baking related. Cakes, cookies, pies, tarts, muffins, scones, short- rye- wheat- and naan breads welcome!
Visit
Subreddit Icon
r/Pizza
567k members
The home of pizza on reddit. An educational community devoted to the art of pizza making.
Visit
Subreddit Icon
r/food
23.3m members
The hub for Food Images and more on Reddit
Visit
Subreddit Icon
r/PyMedusa
1.1k members
Welcome to r/PyMedusa
Visit
Subreddit Icon
r/PyScript
748 members
The subreddit for PyScript, the new Python framework that allows users to create rich Python apps in the browser with Python and HTML
Visit
Subreddit Icon
r/learnpython
713k members
Subreddit for posting questions and asking for general advice about your python code.
Visit
Subreddit Icon
r/collingwoodfc
11.6k members
Welcome to /r/CollingwoodFC, the subreddit for all Collingwood Football Club supporters. Please get involved in the discussion and feel free to join the sub's Discord server (link below).
Visit
Subreddit Icon
r/PyGaming
498 members
Comunidad Paraguaya de Gaming, para compartir todo el contenido que este relacionado con videojuegos y Paraguay
Visit
Subreddit Icon
r/AFL
272k members
AFL: The home of Australian rules football on Reddit, including the Australian Football League and all other aspects of the game. To assign a user flair to yourself on desktop, expand the community options menu below and click the pencil icon by your username. On mobile, tap the 3 dots beside your profile picture and select "change user flair"
Visit
Subreddit Icon
r/MachineLearning
2.7m members
Welcome to r/MachineLearning
Visit
Subreddit Icon
r/discord_py_
92 members
an unofficial place to discuss, and learn about the discord.py library for python.
Visit
Subreddit Icon
r/programming
5.4m members
Computer Programming
Visit
r/RocPy
36 members
The Rochester Python Users Group of Rochester, NY
Visit
Subreddit Icon
r/Discord_Bots
33.3k members
Non-official subreddit for Discord bot developement
Visit
Subreddit Icon
r/52weeksofbaking
72.6k members
Welcome to 52 weeks of theme-based baking! This is a great way for beginners to learn, and for experienced bakers to expand their skill set and explore their creativity.
Visit
Subreddit Icon
r/PyMOL
187 members
A community dedicated to those who use PyMOL. A place to learn, get help, and share what you are doing. Now with actual PyMol Devs on the Mod team!
Visit
Subreddit Icon
r/pygame
18.2k members
Welcome to r/pygame
Visit
r/DiscordPY
16 members
The unofficial subreddit for the Discord.py Python API. This subreddits main focus is to give Discord.py developers a space to share their current projects, ask for help, and otherwise interact with the Discord.py developer community.
Visit
r/PleX
259k members
For questions and comments about the Plex Media Server. The Plex Media Server is smart software that makes playing Movies, TV Shows and other media on your computer simple. This page is community-driven and not run by or affiliated with Plex, Inc.
Visit
r/52weeksofcooking
104k members
Each week, we give you an ingredient, technique, cuisine, or inspiration. Each week, you cook a dish in that theme and share the results. Each week, your culinary repertoire gets a little bigger.
Visit
r/PsychoPy
185 members
A subreddit for tips, queries and all things PsychoPy.
Visit
Subreddit Icon
r/django
111k members
News and discussion about the Django web framework.
Visit
r/learnmachinelearning
304k members
A subreddit dedicated to learning machine learning
Visit
Subreddit Icon
r/PuzzleAndDragons
46.7k members
Subreddit for the popular mobile game "Puzzle & Dragons". Discuss tips and strategies, share your clears and achievements, ask questions and make friends with other players around the globe. Don't forget to check out our guides!
Visit
r/pie
18.8k members
Welcome to r/pie
Visit
Subreddit Icon
r/factorio
331k members
Community-run subreddit for the game Factorio made by Wube Software.
Visit
Subreddit Icon
r/M1Finance
42.8k members
M1: The Finance Super App™. Invest, borrow, spend & save with powerful automation—all in place. This unofficial subreddit is a good place to ask questions about using the app, discuss developments, and share ideas with other investors. M1 may post information here, however, this subreddit is not monitored by M1. Questions or concerns for your specific account should be directed to help@m1.com
Visit
35
35
2 comments
66
66
23 comments
23
10
Subreddit Icon
•Posted by7 years ago
10
9 comments
17
Subreddit Icon
•Posted by7 months ago
Archived

This year i started a journey to bring a really fast framework for Http, Http2, Http3 and WebSockets to Python and PyPy.

The problems with japronto and uvloop

Japronto don't get any github updates since 2020 and don't get any src update since 2018, japronto don't support SSL, WebSockets, PyPy3, Windows or macOS Silicon. I really needed good support + performance, not only performance. Almost any solution out there have a really big performance hit when using PyPy3 or are not really fast enougth

The Solution

We discover a really fast, small, and well maintained C++ Library called uNetworking/uWebSockets, but no C API available, so we create and adapt the full C API from uNetworking/uWebSockets and will integrate libuv powered fetch and file IO, this same C API is used by Bun

Benchmarking

We got about 770k req/s with the current version vs 582k from japronto using TechEmPower plaintext benchmarks and we still can get at least 30% or more performance once fully integrated with libuv + asyncio.

Socketify.py brings:
  • WebSocket with pub/sub support

  • Fast and realiable Http/Https

  • Support for Windows, Linux and macOS Silicon & x64

  • Support for PyPy3 and CPython

This project aims to bring high performance PyPy3 web development and will bring:

  • Fetch like API powered by libuv

  • Async file IO powered by libuv

  • Full asyncio integration with libuv

  • Full Http3 support

  • HPy integration to better support CPython, PyPy and GraalPython

Install

For macOS x64 & Silicon, Linux x64, Windows

pip install git+https://github.com/cirospaciari/socketify.py.git
#or specify PyPy3
pypy3 -m pip install git+https://github.com/cirospaciari/socketify.py.git
#or in editable mode
pypy3 -m pip install -e git+https://github.com/cirospaciari/socketify.py.git@main#egg=socketify
Code Example
from socketify import App, AppOptions

app = App(AppOptions(key_file_name="./misc/key.pem", cert_file_name="./misc/cert.pem", passphrase="1234"))
app.get("/", lambda res, req: res.end("Hello World socketify from Python!"))
app.listen(3000, lambda config: print("Listening on port http://localhost:%d now\n" % config.port))
app.run()
Support

Socketify is an active project and will be maintained over time with security updates and new features and will be commercial support available

Check our github page: https://github.com/cirospaciari/socketify.py

17
4 comments
20
20
4 comments
20
Subreddit Icon
•Posted by6 months ago
Archived

In socketify.py project i chose to support PyPy to get the performance close to Go Fiber, today i implemented one optimization, to reuse requests, responses and websockets objects to avoid dynamic allocations and GC pass. PyPy is just a beast, and i have a lot to optimize yet.


TechEmPower Benchmark on old i7 7700HQ asus notebook with nvme

https://github.com/cirospaciari/socketify.py

If you want to try run on your machine you can clone https://github.com/cirospaciari/FrameworkBenchmarks

Commands used to run on Debian GNU/Linux bookworm/sid x86_64 - kernel 6.0.0-2

sudo ./tfb --mode benchmark --test socketify.py --type plaintext 
sudo ./tfb --mode benchmark --test socketify.py-python3 --type plaintext 
sudo ./tfb --mode benchmark --test fiber --type plaintext
20
2 comments