11.2 Using OpenHands
The first task for our artificial junior software developer is to create a web application with very simple user administration. The backend is to be programmed in Python, and the users are to be stored in an SQLite database. A website is used to manage users, where you can add new users and delete or change existing ones.
Prompt: Create a JSON REST API backend using Python. Add a route health that responds with HTTP status code 200.
This task is of course child’s play for a powerful model such as gpt-4o. OpenHands performs the following steps and only stumbles slightly:
-
The app.py file gets created. It contains the HTTP endpoint for /health and sets the web server port to 5000.
-
The python3 /workspace/app.py command ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access