Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

An Open source backend for mobile apps

Project description


**Open source backend stack for mobile.**


CloudEngine is an open source backend stack for building awesome mobile apps.
The aim of the project is to help mobile app developers get their apps off the ground
as quickly as possible. For this, CloudEngine needs to provide all the basic services
required for building rich mobile apps out-of-the-box. Currently there are bare minimum
services included. The aim is also to create fully customizable and extensible framework for
building backend mobile services. The core services could be tightly coupled.

CloudEngine runs only on gunicorn server and hence currently runs only
on UNIX environments. For development purposes, you can use django's builtin webserver
and run the stack on Windows as well.

* Python (2.7.5+)
* Django (1.5.4+)
* MongoDB (2.4.6+)
* MySQL (5.5+)

All the python library dependencies are listed in `requirements.txt`


Create a virtualenv namespace and activate it.

virtualenv myenv
cd myenv
source bin/activate

You can install CloudEngine using pip. You can also grab the source distributions as well as windows and mac installers from the
[project homepage][projectpage]. On Windows, CloudEngine will be installed without support for gevent-socketio
and gunicorn (i.e. you can't test push notifications and related features).

pip install cloudengine

Create a new django project (myproject) startproject myproject

Configure database and other necessary
settings in your project's ``. If you've had trouble installing MySQL-python, you can
skip using MySQL and use sqlite3 or PostgreSQL instead (you'll need install Psycopg for PostgreSQL)

Add the following settings to ``
make sure your SECRET_KEY is a random secret string

MONGO_HOST = 'localhost' # assuming your mongodb server is running locally

# Use hyperlinked styles by default.
# Only used if the `serializer_class` attribute is not set on a view.

# Use Django's standard `django.contrib.auth` permissions,
# or allow read-only access for unauthenticated users.


If you want to use Amazon S3 as your primary file storage service, also add the following settings and fill in your amazon credentials at appropriate places.

# By default files are uploaded to amazon S3 buckets
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'

# The name of the directory that users will upload the files to

# AWS Credentials

In the list of `INSTALLED_APPS` add the following apps


Create database tables.

python syncdb

Add the following line in the ``

url('', include('cloudengine.urls')),

Run the gunicorn server with gevent-socketio worker class. Add the project directory
to python path

gunicorn -w 1 --pythonpath . \
--worker-class cloudengine.socketio.sgunicorn.GeventSocketIOWorker \

On development environments, you can simply run the django development server

python runserver

Please note the development server doesn't support SocketIO hence you can't test
push notifications locally.

Technical Overview

CloudEngine is a pure Python django stack. Each backend service is plugged in as django
app. Each service should be independently pluggable and usable except the core services.
Currently some of the services are tightly coupled. CloudEngine currently runs on gunicorn
server and hence runs only on UNIX environments. CloudEngine uses the excellent
[gevent-socketio][gevent-socketio] library for implementing real time communication
channels, which are the basis of current push notifications system.
gevent-socketio is the python port of the popular [][] library.
For storage we use a combination of relational database (MySQL, PostgreSQL) and a
NoSQL db (Currently mongodb). Ideally, we'd like to move completely to a NoSQL db.
But we want to leverage a lot of django goodies and there is no elegant way to retain
that while migrating to NoSQL. CloudEngine uses [django-rest-framework][django-rest] for providing
REST interfaces to services.

Client libraries

The aim of the project is also to provide readily available client libraries for
as many different platforms as possible to make it easier to consume CloudEngine
services on mobile devices.
Currently only Android SDK is available at - [][android-sdk]
We plan to add SDKs for more platforms

Documentation & Support

Complete documentation is available at - ?

For discussions, questions and support use the [CloudEngine discussion group][group]

or [Github issue tracking][issue-tracker]

You may also want to [follow the authors on twitter] [twitter].

See the LICENSE file for more info.


Project details

Download files

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

Files for cloudengine, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size (221.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page