The lightning-fast asynchronous Python web framework. With the features and tools you'd expect. And some you wouldn't believe.

Joined September 2018
A win-win approach to support the project. If you've ever wanted to dig deeper into #pythonsanic, this is your chance! Impressive work done by @AdmHpkns to walk you through every single implementation detail and then guide you step by step to build a fully-working #webapp.
Want to help @sanicframework and level up your skills? A portion of proceeds from every purchase of sanicbook.com/ goes directly back to the project.
1
2
11
📣 Good day, fellow coders! Sanic v25.3 is now out. 🗒️Note that the release cadence for v24 may be slightly different to previous times. 👇Release notes
1
4
96
We’re shining a spotlight on the amazing projects built with Sanic! We want to showcase the power of Sanic and the creativity of our community. Got a project you’re proud of? Drop a reply or DM us!
1
123
At the start of this month, we released v24.12! This brings: - Custom CLI Commands (BETA) - Python 3.13 Support - Multiple bug fixes
1
2
102
Sanic retweeted
Replying to @shahzadahmad246
@sanicframework for sure! 😎
1
1
3
143
Sanic retweeted
Replying to @umgbhalla
for everyone writing an API in python, use sanic.dev/ instead of fastapi or whatever slop you were going to use. its flask-like, asynchronous, supports multi-processing, has built-in openapi docs & cors headers support, etc.
1
14
7,763
Sanic version 24.6 has been released. Additionally, we have released a patch for our 23.12 LTS version. Happy coding!
2
5
140
Sanic retweeted
We landed on @sanicframework for two reasons: usage of asyncs and websockets. Fernand is ultra-fast thanks to websockets (and a custom implementation on live data on both backend and frontend)
1
2
137
Replying to @yasoobkhalid
Hey! We use Python with @sanicframework for the backend, which are the building block of our custom smart syncing engine. Tagging @cx42net in case I missed something or said something stupid 😅
1
1
3
121
Don’t let the small footprint of Sanic on X @sanicframework fools you of its relevance. 17k stars on GitHub is not a small achievement. There are many Python libraries out there, but personally, I look for: ✅ ease of use ✅ detailed documentation ✅ mature community
1
1
7
797
565 - Una API con Python y sanic casi sin programar En los últimos días me he juntado con dos cuestiones que finalmente me han llevado a lo mismo. Por un lado, el reto de programación para este 2024, y por otro lado un problem... youtube.com/watch?v=oH0anSZk…
3
7
462
On the design of @RoyaleAPI as a website — This site was never intended to be one used by millions of players, and as with all of my personal projects, I utilized it as an opportunity to test out frameworks and technologies that I’m interested in. So it’s built with a lot of things that might not even be ideally suited for the task. I learned a lot about the different technologies that were relatively new at the time, and based on my dependency on several Python libraries, I found myself being involved and became part of the core team of a Python async web framework. Sanic @sanicframework used to be a tiny library, but through the dedication of the team lead Adam Hopkins @AdmHpkns, it has since grown to become one of the most popular async framework available. As a single team of one, doing design, technology, marketing, and all the social media, video animation, of this brand, it’s my baby in every sense — but I also had to make lots of compromises in terms of fully realizing my vision of what could be. One of the regrets is that I don’t know how to write mobile apps from scratch, so while I recognize the need for it, I can’t very easily create one without hiring someone to develop it. For many years, per the Supercell fan content policy, third-pary sites were not allowed to derive revenue other than display ads, which greatly diminished the potential to offer premium services to offset the costs. This part has now greatly changed, thankfully after I raised this issue with Supercell when they invited me to look at some new games in development in June 2023. But not being able to monetize easily means that hiring a developer for a mobile app just doesn’t seem like a wise business decision. It’s very hard for me to justify the cost. I take zero salary from RoyaleAPI, so for me, the spend is 0. As soon as I hire a developer, that adds tremendous financial pressure to the company that doesn’t make any business sense. There are many other aspects of the site that I plan to write about — such as the gift of being able to chat with the end users on a daily basis, and the gift of being able to chat with kids and young adults in the 16-25yo demographic. I know that I will never have kids on my own, so this sudden availability to interact with young people has been one of the greatest gifts of all — not all of them are very pleasant, but I really appreciate the opportunity to talk to them when I want to — not because I have to. Some of them would send me questions when they’re applying for universities, their first jobs, etc. Many of them have such talented and kind souls that I truly feel blessed that they would seek me out to ask for advice. I plan on writing more about this aspect in the future. 2024-01-22 This is one of the notes from my blog post about the story of RoyaleAPI.
7/ Our user-facing website was originally just a proof-of-concept, mainly developed to show what developers can do with the API that we published.
1
1
7
3,314
Replying to @ImSh4yy
Nice. 😎 My (tiny) stack is python (@sanicframework), sqlite/@pocketbase and selfhosted s3 with @SeaweedFS using @coolifyio for easy deployment in my VPS.
1
2
373
Last release, one of the changes we introduced into Sanic was exactly this. Trusted publishing allows Python projects like ours to upload stuff to PyPI without using a long-lived password or token.
I just shipped a new package to PyPI from GitHub Actions without using a password OR token, for the first time! I'm using the Trusted Publishers mechanism PyPI added last year, which is based on OpenID Connect (implementation detail) Here are my notes: til.simonwillison.net/pypi/p…
2
240
With our latest Sanic release we also refactored our CI/CD process, and have started to upload Docker images automatically again. We upload images for Python 3.10 and 3.11. For each of those, you can choose between the latest version, the latest LTS version or a fixed version.
1
6
224