Skip to main content

CherryPy REST webservice framework with MongoDB ORM support

Project description

MoCherry

MoCherry is built around CherryPy & mongoengine to support REST webserivces with very low memory footprint, support for MongoDB ORM, built-in WSGI server and faster initilization.

Features

  • In-built REST webservice support
  • MongoDB ORM support with MongoEngine plugin
  • Similar usability & file system structure like Django to reduce the learning curve
  • Low memory footprint
  • In-built CherryPy WSGI server
  • Built-in basic encryption support
  • MIT licensed

Installation

Currently MoCherry is not deployed to python pip repository. We will soon deploy it there for developers' convenience. In the meantime following steps can be followed to install mocherry to your development environment. The following command will download and install MoCherry and all it's required dependencies to your system or virtualenv.

$ pip install git+https://github.com/techunits/mocherry.git

Create First Application

Our team is working on the project/app generator rapidly to have a seemless app generation at developer's ease. For now we have provided an base application in the following repository so that you can get started with MoCherry. Download Sample Application

$ git clone https://github.com/techunits/mocherry-sample-app.git
$ cd mocherry-sample-app
$ python manage.py runserver  # start WSGI server
[12/Jan/2020:00:52:20] ENGINE Listening for SIGTERM.
[12/Jan/2020:00:52:20] ENGINE Bus STARTING
[12/Jan/2020:00:52:20] ENGINE Set handler for console events.       
[12/Jan/2020:00:52:20] ENGINE Started monitor thread 'Autoreloader'.
[12/Jan/2020:00:52:21] ENGINE Serving on http://localhost:9090
[12/Jan/2020:00:52:21] ENGINE Bus STARTED

MoCherry Management Commands

MoCherry framework also support custom management commands to enhance its CLI capabilities. With the framework sample code we have provided a test command to verify how it works

$ python manage.py test
Success: This is a test command

Sample Applications

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mocherry-1.0.5.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

mocherry-1.0.5-py3.8.egg (23.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page