Compare Bottle and CherryPy

Bottle is a fast, simple and lightweight WSGI micro web-framework for Python. It is distributed as a single file module and has no dependencies other than the Python Standard Library.

CherryPy allows developers to build web applications in much the same way they would build any other object-oriented Python program. CherryPy has built-in tools for sessions, static files, cookies, file uploads, caching, encoding, authorization, compression, and many more.

Let's see how Bottle and CherryPy compare on various factors and features and which to choose when.

Bottle

CherryPy

Overall

Type

Type
Python microframework for building web applications.
Type
A minimalist, object-oriented and popular web framework for Python.

Author

Release Date

Release Date
2009
Release Date
2002

License

License
License

Website

Website
Website
Adoption and Ease of Use

Popularity [?]

Popularity [?]
1.5 Stars
Used by 14,000 projects.
Popularity [?]
1 Star
Used by 6,600 projects.

Used by

Used by
No data.
Used by
Used in production services at Netflix and Hulu

Jobs [?]

Jobs [?]
1 Star
74 job openings which list Bottle as a requirement.
Jobs [?]
0.5 Star
16 job openings which list CherryPy in the job description.

Performance [?]

Performance [?]
5 Stars
Very fast. Extensions could impact performance adversely.
Performance [?]
5 Stars
Very fast. Extensions could impact performance adversely.

Flexibility

Flexibility
5 Stars
Very flexible and extremely simple. Doesn't force anything on developers.
Flexibility
5 Stars
Very flexible and simple. Doesn't force anything on developers.

Ease of Learning

Ease of Learning
5 Stars
Straightforward and easy to learn. It has a good amount of tutorials online.
Ease of Learning
5 Stars
Straightforward and easy to learn. Being around for almost 20 years, it has a good amount of tutorials online.
Database Support

RDBMS Support

RDBMS Support
Through Plugins or Extensions
Through Plugins or Extensions
No built-in ORM framework. Leaves it up to developers to choose a library like SQLAlchemy or extensions such as Macaron.
RDBMS Support
Through Plugins or Extensions
Through Plugins or Extensions
No built-in ORM framework. Leaves it up to developers to choose their own such as SQLAlchemy.

NoSQL Support

NoSQL Support
No built-in support but 3rd party Python libraries like PyMongo or Bottle-Mongo can be used to talk to NoSQL databases.
NoSQL Support
No built-in support for NoSQL databases but developers can use libraries to talk to MongoDB, DynamoDB etc.
Web & Core Features

Admin Dashboard

Admin Dashboard
Through Plugins or Extensions
Through Plugins or Extensions
No built-in admin panel.
Admin Dashboard
Through Plugins or Extensions
Through Plugins or Extensions
No built-in admin panel.

REST Support

REST Support
No built-in support but can be implemented easily.
REST Support
No built-in support but can be implemented easily. Read this guide to implement.

Security

Security
No built-in protection. Bottle is a minimalist framework. Must be handled by developers themselves or by using 3rd party extensions.
Security
No built-in protection. Must be handled by developers themselves or by using 3rd party extensions.

Templating Library

Templating Library
Fast and pythonic built-in template engine and support for mako, jinja2 and cheetah templating languages.
Templating Library
Doesn't come with a built-in templating language or package. Developers can use Jinja2, Mako. See full list here

Web Forms

Web Forms
No built-in support.
Web Forms
No built-in support. Developers can use formencode or any other solution.

Authentication

Authentication
Using a plugin such as Bottle-Cork
Authentication
Built-in implementation of HTTP Basic Access Authentication.

Testing

Testing
Using WebTest and Nose.
Testing
Using WebTest and Nose.

If you found this useful, please help us grow by sharing this article with your followers using the sharing icons. Every share or call out will help. Thank you.

Similar Comparisons

Comments (1)


lucid zen

CherryPy suffered from a lack of good documentation for a long period despite being a very good and intuitive framework. I use Flask these days but I really miss CherryPy way of structuring my code. Watch this decade old video “The Zen of CherryPy” and you’ll see what I mean. It’s one of those videos that never gets old and is timeless.

https://archive.org/details/pyvideo_281___the-zen-of-cherrypy-111


Speak Your Mind

Read free Software Algorithms and Computer Science Books by CodeAhoy Learn.

Introduction to Recursion and Backtracking

Sorting Algorithms

Introduction to C Programming Language

And More...