Skip to main content

Un cli para manejar proyectos de API con flask

Project description

isyflask-cli

Un cli para manejar proyectos de API con flask.

Se recomienda la instalación de docker para tener las últimas mejoras y actualizaciones. Algunas características sólo están con docker

Se recomienda utilizar el módulo virtualenv para los proyectos generados

Para windows:

python -m venv venv
./venv/Scripts/activate

Para macOS o linux:

python -m venv venv
source ./venv/Scripts/activate

Posteriormente instale el cli

pip install isyflask-cli

Para iniciar un proyecto ejecute el siguiente comando y responda las preguntas que salgan en el prompt:

isyflask-cli project init
pip install -r requirements.txt

Cambie el directorio al generado en el paso anterior. Utilizando Docker, el proyecto se levanta utilizando el siguiente comando:

docker-compose up

Si no utiliza docker, necesitará ejecutar lo siguiente:

Windows:

python -m venv venv
source ./venv/Scripts/activate

set FLASK_APP=api
set FLASK_RUN_HOST=0.0.0.0
set FLASK_ENV=development 

flask db migrate
flask db upgrade
flask run --host=0.0.0.0

Mac o Linux:

python -m venv venv
./venv/Scripts/activate

export FLASK_APP=api
export FLASK_RUN_HOST=0.0.0.0
export FLASK_ENV=development

flask db migrate
flask db upgrade
flask run --host=0.0.0.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isyflask_cli-0.1.5.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

isyflask_cli-0.1.5-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file isyflask_cli-0.1.5.tar.gz.

File metadata

  • Download URL: isyflask_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.10.6 Linux/5.15.0-1034-azure

File hashes

Hashes for isyflask_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0fc5ee0190055303eeb4175dfc58936539095e238e8f03d9627b44d59324e0a5
MD5 32a56a49486504dae563ffa36c730485
BLAKE2b-256 c9c0a70be3f853b8fdd8971109b9abaf58ac9e87ebb9d149508058272228c0cd

See more details on using hashes here.

File details

Details for the file isyflask_cli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: isyflask_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.10.6 Linux/5.15.0-1034-azure

File hashes

Hashes for isyflask_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5c6a0caccf20ad632110fe5a7bcec4082be4791410c2462327cb18eb7f78b952
MD5 4a71424f1cff711dd51de0d3fe4706eb
BLAKE2b-256 6cfc32f302f23f4adb51d41ffe579f2928491dfd03ef6a666a98ad3cd32c32de

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page