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

Instalacion

Para instalar el CLI ejecute el siguiente comando

python -m pip install --upgrade pip
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
cd <folder project name>
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.7.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

isyflask_cli-0.1.7-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: isyflask_cli-0.1.7.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1035-azure

File hashes

Hashes for isyflask_cli-0.1.7.tar.gz
Algorithm Hash digest
SHA256 50753feb2ac028ee3b689d82c2a23ba7537e22c468d312a7e9bf6a5926973995
MD5 0d54f66fab689dd24c38f8638c3f1094
BLAKE2b-256 537d2931ae5d3887a98589d6fdd61f525eb013a8696c26fe499881cc153aa396

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for isyflask_cli-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7f7665c7b11e8249021b6b6bf1b96f0259e20faf1c51bcae05c7904964cce4e9
MD5 cfa3dc5c8b2372572f0e3ea93bcfdfc3
BLAKE2b-256 0320c4c4e6f683647582ce2dc2da51c4c74769c0646292150344500b1c004648

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