Skip to main content

CLI tool for static site generation from GAMS5 digital object collections

Project description

Poll-In tool

CLI tool that polls / pulls-in ("poll-in") digital objects from a GAMS5 project and performs static site rendering. (Informatics: polling-concept) Supplies a development workflow for GAMS5-based web projects.

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

Quickstart

  1. Setup project files for the pollin tool

  2. Install pollin-tool itself

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

# 2. install pollin-tool via 
# optionally specifiy version tag
uv tool install pollin-tool

# verify installation via
pollin --version

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

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 pollin-tool
# 02b. uv sync (uv procedure)
# 02b. Start virtual environment (venv)

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

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

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

Staging

pollin stage "/path/to/project"

Production

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

Deployment

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

# production deployment
pollin 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

pollin_tool-0.2.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.

pollin_tool-0.2.0-py3-none-any.whl (41.6 kB view details)

Uploaded Python 3

File details

Details for the file pollin_tool-0.2.0.tar.gz.

File metadata

  • Download URL: pollin_tool-0.2.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 pollin_tool-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cd31b143125f65309d590db4f1dc9c8bcbda8a769bf4087178db4e2e67bf51fb
MD5 ff51853d6a58ba07cada5a6af637689f
BLAKE2b-256 fbe869423617646531c4559101d5910dcac1a314d3865dc10c752af7451d3857

See more details on using hashes here.

File details

Details for the file pollin_tool-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pollin_tool-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3db5d0aa6e048c6c92112ffb1129569bc2a11398c13fba5934aaa5efa4fce25d
MD5 63940ff0316e5c74eaf2ddb600b03cb6
BLAKE2b-256 9a7eb4dab270cab090478d37ae2acb69ea0f11509fa405090c92c028f54847c0

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