Flask

Flask
Flask

Version 3.1.3

OS Ubuntu 24.04

Frameworks

Description

Software Included

Package
Flask
Version
3.1.3
Package
Werkzeug
Version
3.1.8
Package
python
Version
3.12.3

Getting started after deploying Flask

API Creation

In addition to creating a Droplet from the Flask 1-Click App via the control panel, you can also use the DigitalOcean API.

As an example, to create a 4GB FlaskDroplet in the NYC3 region, you can use the following curl command. You'll need to either save your API access token to an environment variable or substitute it into the command below.


  curl -X POST -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer '$TOKEN'' -d \
      '{"name":"choose_a_name","region":"nyc3","size":"s-2vcpu-4gb","image":"flask"}' \
      "https://api.digitalocean.com/v2/droplets"