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.6.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for isyflask_cli-0.1.6.tar.gz
Algorithm Hash digest
SHA256 b422f2ae3a8e9cb2becc59e82ac1030e45d07bd33956ed87feb4750b15383f8e
MD5 55d56f3af0a653bf8c9427b524490547
BLAKE2b-256 6fe04677f02a3d56675e952990a73b5998efbb4a6598a04671761f116a8dc29b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for isyflask_cli-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 12ee5c4f94e5829b178cbafce39ede0ecb25e0990ae688b57107c517a08d1089
MD5 3b619590446556e1678dd7a1c2e6f35a
BLAKE2b-256 7f3f66c6f7cbaa91f66d9e36728cf1188c6b95a9dbbce2f12c8a5de9697f82f5

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