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.3.0.tar.gz (96.0 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.3.0-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gams_frog-0.3.0.tar.gz
Algorithm Hash digest
SHA256 08ccd756680d91e17e89f4dfb3fe06f3ab12139ddec2a8eb843b0b76ad717888
MD5 49d862faeef771d6581eb54cb7bef504
BLAKE2b-256 ad82314c160e3d99b2589830f8568068fabadac9bc84a7bc8d0ee2b31745e321

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gams_frog-0.3.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48c23475082654918fa70499f2ba30dc5329e3db6381b4e12fe97bf77c149910
MD5 80d8db4ee50570bc8cf603af4caf5464
BLAKE2b-256 1ab4c82eb54fe6379e583efd8f2ca484b9d4acc858ff52c75aa40384e3698a98

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