Pygen
Command-line tool to generate Python applications and libraries
Install / Use
/learn @tecnickcom/PygenREADME
pygen
Command-line tool to generate Python services, applications and libraries with reusable logic.
Please consider supporting this project by making a donation via PayPal
- category Tool
- author Nicola Asuni info@tecnick.com
- copyright 2014-2019 Nicola Asuni - Tecnick.com LTD
- license MIT (see LICENSE)
- link https://github.com/tecnickcom/pygen
Description
This is a command-line tool to quickly generate Python services, applications and libraries with a common set of features and reusable logic.
For an equivalent project in Go (golang) please check GoGen.
Each Python project built with this tool adheres to the set of conventions detailed in the following articles:
- Software Naming
- Software Structure
- Software Versioning
- Software Configuration
- Software Logging Format
- Software Metrics
- Simple API JSON Response Format
- Software Automation
- Build Software with Docker
Each generated project is immediately functional and can be fully tested using the make build command.
Quick Start
This project includes a Makefile that allows you to test and build the project in a Linux-compatible system with simple commands.
All the artifacts and reports produced using this Makefile are stored in the target folder.
To see all available options:
make help
Usage
make new TYPE=app CONFIG=myproject.cfg
-
TYPE is the project type:
- lib : library
- app : command-line application
- srv : HTTP API service
- libapp : library + command-line application
- libsrv : library + HTTP API service
-
CONFIG is the configuration file containing the project settings.
To create a new configuration please clone the default.cfg file and change the values.
All projects are creted inside the target directory.
Features
Services (srv)
- Web HTTP RESTful JSON API;
- Standard command line options;
- Multiple configuration options, including remote configuration via URL;
- Logging;
- StatsD client to collect usage metrics;
- Unit tests;
- Makefile;
- Docker build;
- Conda packaging.
- Wheel packaging.
Applications (app)
- Standard command line options;
- Multiple configuration options, including remote configuration via URL;
- Logging;
- StatsD client to collect usage metrics;
- Unit tests;
- Makefile;
- Docker build;
- Conda packaging.
- Wheel packaging.
Libraries (lib)
- Unit tests;
- Makefile;
- Docker build;
- Conda packaging.
- Wheel packaging.
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
111.1kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
352.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
