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

In a previous blog post, you learned from our data scientist, Oskar Liew, about REST APIs and how they are a way for programs to communicate with each other using URLs. In this tutorial, we will explain how to create an API using Daeploy.

Creating an API

Creating an API with Daeploy is no harder than writing a regular python function. You simply decorate the functions you want to expose to the API with the entrypoint decorator, like this:

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

If you run this…


REST APIs are a way for programs to communicate with each other using URLs. It is an Application Programming Interface that follows the representational state transfer (REST or RESTful) software architectural style. A developer sets up an API on a server and allows clients to talk to it.

A practical example of this is when you go to YouTube to search for a funny cat video. When you write a search message and press enter, your browser sends a request to YouTube’s servers containing your search string. Their server processes that information and responds with a list of videos. The…


Getting started with daeploy!

Daeploy is a tool created to make software deployment, primarily for Machine Learning algorithms, quick and easy for anyone who has basic knowledge of Python. It has two components: a SDK that helps you to create APIs out of Python code and a runtime manager that packages and deploys the code as web services.

In this tutorial we explain how to configure the manager, create, and deploy your first service using Daeploy. This guide gives access to a free trial of the manager, that can be used without restrictions for 12 hours before it needs to be restarted. …

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store