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

Uploaded Source

Built Distribution

isyflask_cli-0.1.4-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: isyflask_cli-0.1.4.tar.gz
  • Upload date:
  • Size: 6.4 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.4.tar.gz
Algorithm Hash digest
SHA256 483578da0ace2f526b4b4c3b3e7c74a6ab1a3293ac49509b7046c416576eae88
MD5 565480cbb6a0c10ea641c7972b98907e
BLAKE2b-256 22229a73e3dde4521f6fddbb9b5bfbaec31ceb7eb74bfc0b8d05a1925189ab5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: isyflask_cli-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 33219c27d360ad6c6301c8fb7cb027f441552dc191fd3062603bf5ededc7c73a
MD5 cc4570898335fa9b85f6ccbc61aa60ac
BLAKE2b-256 40862b790848199fa84786bfd107b659cbe68c594ff25efac1ed19685640e6f9

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