Security News
Highlights from the 2024 Rails Community Survey
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Following Flask and Bottle footsteps, adding a bit of italian flavor :-)
pip install bicchiere
Current version: 1.9.5
from bicchiere import Bicchiere
app = Bicchiere()
or
app = Bicchiere("La mia bella App")
@app.get("/")
def home():
return "Bon giorno, cosa bevete oggi?"
if __name__ == "__main__":
#This will run default server on http://localhost:8086
app.run()
... and this is just about the classical WSGI Hello, World, for everything else please refer to Bicchiere Wiki
Well... not really. A bit of rationale is in order here.
So, why Bicchiere?
For one thing, reinventing the wheel is not only fun but highly educational, so, by all means, do it!
I like Flask and Bottle. A lot. Both have things that I highly appreciate, simplicity in the first place. But it doesn't end there.
There's also the single file/no dependencies approach (Bottle), which I intend to mimic with Bicchiere. Although not a mandatory thing, I like it that way.
Built-in sessions (Flask). Although the user of the library must be free to choose whatever he likes regarding sessions or any other component of the application for that matter, I think session-handling is one of those must-have things in any web app these days. So, I provided basic session handling mechanism, in 3 flavors: memory, filesystem, and sqlite. This was the most that could be done without falling out of the boundaries of the Python Standard Library. Details on this at the wiki (under construction)
Built-in templating mechanism (Bottle). Similar considerations apply. In my opinion, this is also a must have, regardless how micro is the framework/library. Then again, end-user must be free to choose. As a good WSGI compliant middleware, Bicchiere doesn't come in the way of the user if he prefers to use Mako, Jinja2, Genshi or whatever he likes. Details at the wiki (under construction)
WebSockets handling: to me, this is the fruit on the cake, for various reasons:
And still, there's a lot of stuff to be mentioned. More to come...
FAQs
Yet another python web (WSGI) micro-framework
We found that bicchiere demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.