{"id":21296847,"url":"https://github.com/reddec/mpa-gen","last_synced_at":"2026-05-17T09:38:33.894Z","repository":{"id":57443401,"uuid":"212257062","full_name":"reddec/mpa-gen","owner":"reddec","description":"Generates directories and files for multi-page site with backend on Go (gin)","archived":false,"fork":false,"pushed_at":"2019-10-02T05:20:29.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T00:06:39.222Z","etag":null,"topics":["golang","python","python3","site-generator"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reddec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-02T04:44:36.000Z","updated_at":"2019-10-02T05:20:31.000Z","dependencies_parsed_at":"2022-09-05T10:00:42.489Z","dependency_job_id":null,"html_url":"https://github.com/reddec/mpa-gen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fmpa-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fmpa-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fmpa-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fmpa-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reddec","download_url":"https://codeload.github.com/reddec/mpa-gen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243764856,"owners_count":20344496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","python","python3","site-generator"],"created_at":"2024-11-21T14:30:04.023Z","updated_at":"2025-10-24T01:48:54.488Z","avatar_url":"https://github.com/reddec.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mpa-gen\n\n[![PyPI version](https://badge.fury.io/py/mpa-gen.svg)](https://badge.fury.io/py/mpa-gen)\n[![GitHub license](https://img.shields.io/github/license/reddec/mpa-gen)](https://github.com/reddec/mpa-gen/blob/master/LICENSE)\n\nGenerates directories and files for multi-page\nsite with backend on Go (gin).\n\n\n\nGenerates:\n\n- layouts\n- views (page templates)\n- controller stub with in/out params parsing\n- utils for bootstrap\n\nRequirements:\n\n- Jinja2\n- Python3.4+ (actually could run even on lower version but I didn't test)\n\n## Installation\n\n`pip install mpa-gen`\n\n## Quick start from scratch\n\n1. Create empty directory and go into it\n2. Install latest mpa-gen `pip3 install --upgrade --user mpa-gen`\n3. Initialize go project `go mod init myproject`\n4. Generate site structure `mpa-gen portal main`\n\n![Peek 2019-10-02 13-16](https://user-images.githubusercontent.com/6597086/66019781-453aca00-e517-11e9-80ee-016d4285af56.gif)\n\n\n## Usage\n\n```\nusage: mpa-gen [-h] [--dir DIR] [--method METHOD] section name\n\nmulti-page site generator\n\npositional arguments:\n  section          Section name (ex: user/messages)\n  name             Resource name (ex: dialog)\n\noptional arguments:\n  -h, --help       show this help message and exit\n  --dir DIR        Root directory\n  --method METHOD  HTTP method: GET or POST\n\n```\n\n- default method: `GET`\n- default directory: current working dir","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddec%2Fmpa-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freddec%2Fmpa-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddec%2Fmpa-gen/lists"}