Top Tweets for #PythonSanic
@Piero_Go_ @vin_acct There's reasons to use FastAPI, but there's reasons to use #PythonSanic too! We're both different :)
π RELEASE DAY! π
Version 23.12 is out. We're extremely excited to showcase docs built with @sanicframework and @htmx_org, and share other improvements with you!
Full details: https://t.co/casmkbTyrK
#PythonSanic #Python #Webserver #WebDev #WebDevelopment
We're skipping v23.9 release this year and going straight to v23.12. Full message from @AdmHpkns π
#PythonSanic #Python #Webserver #WebDev #WebDevelopment


Request IDs are an extremely useful tool to correlate a specific request with its corresponding logs.
@sanicframework makes this easy: https://t.co/1oWpwGlD8L
#PythonSanic #Python #Webserver #WebDev #WebDevelopment
If you had unlimited time and unlimited money, what #PythonSanic projects would you LOVE to work on?
Dunno who needs to hear this, but server errors are ok! It's better to know something's wrong and fix it than to "catch all" and raise some other arbitrary status code instead. That way tools like @getsentry work too :)
#PythonSanic #Python #Webserver #WebDev #WebDevelopment

Since we're (clearly) faster than the speed of sound, can we say we're... supersanic?
#PythonSanic #Python
Third way of updating config: environment variables!
Any env vars starting with whatever the "env_prefix" argument is set to when creating an app (default "SANIC_") will be auto-loaded and casted to the correct type.
#PythonSanic #Python #Webserver #WebDev #WebDevelopment

Second way of updating config: as a dictionary!
The config object behaves the same way a dictionary does, and implements the same methods that dictionaries have.
#PythonSanic #Python #Webserver #WebDev #WebDevelopment

First way of updating Sanic's config? Simple: Much like you would do with any other Python object :)
Set the attribute to whatever value you want it to be!
#PythonSanic #Python #Webserver #WebDev #WebDevelopment

Up until now, whenever using the app registry, we've always specified the application's name in the "Sanic.get_app" method.
However, if only one app exists and it's already been created, this is not necessary!
#PythonSanic #Python #Webserver #WebDev #WebDevelopment

If you try to use the app registry to fetch an app before it's been created, Sanic will raise an exception by default.
But, if you prefer, it can create an app for you by simply passing the "force_create=True" argument.
#PythonSanic #Python #Webserver #WebDev #WebDevelopment

When you instantiate a Sanic instance, you can retrieve it at a later time from the app registry.
This can be useful if you need to access your Sanic instance from a location where it is not otherwise accessible.
#PythonSanic #Python #Webserver #WebDev #WebDevelopment

In order to prevent users from "stepping" over Sanic's app variables, we provide a "ctx" namespace in which users can store anything they need.
This namespace is also accessible within any request or signal handler.
#PythonSanic #Python #Webserver #WebDev #WebDevelopment

While we always aim for a clean and unopinionated feature list, we also maintain a bunch of goodies meant to make developer lifes a bit easier.
Enter Sanic Extensions: https://t.co/QD7UZZ7lgr
#PythonSanic #Python #Webserver #WebDev #WebDevelopment

Looking to serve static files with a directory viewer? We've got your back!
Try running:
βΊ sanic --simple <directory>
#PythonSanic #Python #Webserver #WebDev #WebDevelopment

How is it possible to have a functioning webserver with @sanicframework being the only dependency? Well, Sanic is not just a framework, but also a webserver!
Simply run:
βΊ sanic <filename>
#PythonSanic #Python #Webserver #WebDev #WebDevelopment

@HarisBinSaif There's a usecase for everything, but personally we're team #PythonSanic! Reason number 1 is that we build it (duh), but there's many other too! For starters, we ship with our own internal web server, and we're extremely unopinionated :)
Last Seen Hashtags on Sotwe
realincest
Seen from Switzerland
melibendeli
Seen from Turkey
girlcock
Seen from United States
nolimit()*** +filter:native_video
Seen from Netherlands
padre
Seen from Peru
nolimit filter:videos
Seen from United Kingdom
chudai #tamil
Seen from Singapore
waria bali
Seen from Indonesia
ΨͺΨ§ΩΨ¬Ω
η©Ώζ΄
Seen from Indonesia
Most Popular Users

Elon Musk 
@elonmusk
240.6M followers

Barack Obama 
@barackobama
119.2M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Cristiano Ronaldo 
@cristiano
110.5M followers

Narendra Modi 
@narendramodi
107M followers

Rihanna 
@rihanna
97.6M followers

NASA 
@nasa
92.2M followers

Justin Bieber 
@justinbieber
90.9M followers

KATY PERRY 
@katyperry
87.6M followers

Taylor Swift 
@taylorswift13
81.4M followers

Lady Gaga 
@ladygaga
73M followers

Virat Kohli 
@imvkohli
69.8M followers

Kim Kardashian 
@kimkardashian
69.8M followers

YouTube 
@youtube
68.7M followers

Bill Gates 
@billgates
63.9M followers

Neymar Jr 
@neymarjr
62.5M followers

The Ellen Show
@theellenshow
62.4M followers

CNN 
@cnn
61.9M followers

X 
@x
60.8M followers

Selena Gomez 
@selenagomez
60.7M followers


