Skip to main content

CLI tool for frontend generation for GAMS5 projects

Project description

gams-frog

CLI tool that generates frontends for GAMS5 projects. Supplies a development workflow for GAMS5-based web projects.

Meant as replacement for the gams3 "gamsdev" development workflow.

Quickstart

  1. Setup project files for gams-frog

  2. Install gams-frog itself

# 1. install uv
# mac might need brew to install uv

# 2. install gams_frog via 
# optionally specifiy version tag
uv tool install gams_frog

# verify installation via
frog --version

# 3. use the gams_frog
cd ./my/working/directory
frog dev # will use the gams_frog.toml from the current working dir
# alternatively specifiy a path
frog dev "C:\path\to\project"
# check for basic commands
frog 

Basic usage

  1. Have a running GAM5-API (OR external)
  2. Clone or init project files
  3. UV setup (install via pypi or clone via git)
# 01. Setup project files from templates: https://zimlab.uni-graz.at/gams5/projects/project_template/gams-www
# 01b. Install uv (python package)

# 02a. Install via pypi
# 02a. uv install / pip install

# 02b. Clone gams_frog
# 02b. uv sync (uv procedure)
# 02b. Start virtual environment (venv)

# 03. Configure gams_frog via config file (gams_frog.toml) in template project folder

# (point to project folder with config file)
frog dev "C:\path\to\project"

# for production use
frog build "C:\path\to\project"

Staging

frog stage "/path/to/project"

Production

# use build command to generate the production files
frog build "/path/to/project"

Deployment

  • use the -d flag to deploy to staging or production environment
# staging deployment
frog stage "/path/to/project" -d

# production deployment
frog build "/path/to/project" -d

Development

Release

  1. Increment version in pyproject.toml in feature branch (merging into develop):
    • make sure version follow vd.d.d pattern
  2. Merge changes to develop -> main
  3. Create release on the gitlab webclient (from main branch) with new git tag that must be the same as in the pyproject.toml!
    • e.g. v0.1.1
    • create the release from the main branch!
    • gitlab will autodeploy the new version to pypi

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

gams_frog-0.4.0.tar.gz (96.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gams_frog-0.4.0-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

File details

Details for the file gams_frog-0.4.0.tar.gz.

File metadata

  • Download URL: gams_frog-0.4.0.tar.gz
  • Upload date:
  • Size: 96.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.31

File hashes

Hashes for gams_frog-0.4.0.tar.gz
Algorithm Hash digest
SHA256 060fca242353abf9af796e934d86446a68505339dc2f57197630620210afac73
MD5 de7a9cb065e2c6e8b8529735d5d14d3b
BLAKE2b-256 6e313e34f7771a93b353e78f1ff5bccfebdb9d173da0b7d2c9ba8ddf622e4418

See more details on using hashes here.

File details

Details for the file gams_frog-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: gams_frog-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 41.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.31

File hashes

Hashes for gams_frog-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34ef9b6fddc5b24789bdd5e4652ce0109c417dc7b676db6c78dddb96fe067267
MD5 898b08fd4c2c1da49076db7236826aa7
BLAKE2b-256 f5ff71b267b587395358c8b9e4e24e6460f6ef9577d9db1d1e70ce2a6639ba2f

See more details on using hashes here.

Supported by

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