Creating an API with Daeploy

Or the shortest tutorial you’ll ever read about creating an API!

Creating an API

# from daeploy import service @service.entrypoint def hello(name: str) -> str: return f"Hello {name}" if __name__ == "__main__":

Deploying the API as a Service

$ docker run -v /var/run/docker.sock:/var/run/docker.sock -p 80:80 -p 443:443 -d daeploy/manager:latest
$ daeploy login -host http://localhost
$ daeploy init --name hello_service
$ daeploy deploy hello 1.0.0 ./hello_service/

Daeploy helps you to create APIs out of your existing #python code and deploy it as web services. Get started now!