Try it

Hello world
import base

class IndexHandler(base.Base):

    async def get(self):
        return {"message": "Hello World"}

if __name__ == "__main__":

Using local python3 installation and venv

mkdir base-demo && cd base-demo

python3 -m venv .venv

source .venv/bin/activate

pip install wheel base3

curl -o


Open browser and visit http://localhost:9000

Using docker / docker-compose

mkdir base-demo && cd base-demo

curl -o

curl -o docker-compose.yaml

curl -o Dockerfile

docker-compose up

Open browser and visit http://localhost:9000

Microservice based example (using docker / docker-compose)

git clone

cd base3example-contacts

git submodule update --init --recursive

cd users/keys

# generate key without password

ssh-keygen -t rsa -b 1024 -m PEM -f jwt.private_key

openssl rsa -in jwt.private_key -pubout -outform PEM -out jwt.public_key && rm

cd ../..

docker-compose up

Open browser or postman and visit

GET http://localhost:10000/api/users/about

GET http://localhost:10001/api/contacts/about

GET/POST http://localhost:10000/api/users/

GET/POST http://localhost:10000/api/users/sessions