Skip to main content

AI-powered project generator CLI with plugin marketplace

Project description

d_Pygen ⚡

Universal AI-Powered Project Generator CLI

d_Pygen is a powerful, extensible, and intelligent command-line tool that automatically generates complete, production-ready project structures using AI, templates, and plugins.

It supports multiple programming languages, dependency managers, plugin marketplaces, and AI providers, allowing developers to bootstrap projects instantly with correct structure, dependencies, and configurations.


🚀 Installation

From Source

git clone https://github.com/dangerSayan/d_pygen.git

cd d_pygen

pip install -e .

Quick Start

d_Pygen init d_Pygen create "FastAPI backend"

✨ Features

🤖 AI-Powered Project Generation

  • Generate complete projects using natural language prompts

  • Example:

    d_Pygen create "FastAPI backend with JWT authentication"
    
  • Automatically creates:

    • folder structure
    • source files
    • configs
    • dependency files

Supports multiple AI providers:

  • OpenAI
  • OpenRouter
  • Groq
  • Together AI
  • Ollama (local AI)

📦 Multi-Language Support

Supports automatic project detection and dependency installation for:

  • Python (pip, poetry)
  • Node.js (npm, yarn, pnpm)
  • Rust (cargo)
  • Go (go modules)

🔌 Plugin Marketplace System

Install plugins to extend functionality.

Plugins can add:

  • new templates
  • new generators
  • new project types

Example:

d_Pygen plugins install fastapi

📁 Template Engine with Variants

Use predefined templates:

d_Pygen create --template fastapi

Templates support variants:

d_Pygen create --template fastapi --variant full

⚙️ Automatic Dependency Installation

Automatically installs dependencies after project generation.

Supports:

  • pip
  • poetry
  • npm
  • yarn
  • pnpm
  • cargo
  • go mod

🧠 Toolchain Detection (Doctor System)

Check system readiness:

d_Pygen doctor

Detects:

  • installed runtimes
  • dependency managers
  • missing tools
  • environment issues

🧩 Plugin Marketplace

View available plugins:

d_Pygen plugins marketplace

Search plugins:

d_Pygen plugins search

Install plugin:

d_Pygen plugins install plugin_name

Update plugin:

d_Pygen plugins update plugin_name

Update all plugins:

d_Pygen plugins upgrade

Uninstall plugin:

d_Pygen plugins uninstall plugin_name

🧰 Dependency Management

Scan project dependencies:

d_Pygen doctor

⚡ Interactive Project Creation

Interactive wizard:

d_Pygen create

Prompts you step-by-step.


🧾 Template Management

List templates:

d_Pygen templates list

List template variants:

d_Pygen templates variants template_name

⚙️ Configuration Management

View config:

d_Pygen config show

Set config value:

d_Pygen config set api_provider openrouter

Reset config:

d_Pygen config reset

Interactive config wizard:

d_Pygen config wizard

🧠 AI Provider Configuration

Supports priority fallback system:

Example priority:

OpenRouter → Ollama

Automatically switches if one fails.


📊 Telemetry System (Optional)

Anonymous usage tracking helps improve the tool.

Disable telemetry:

d_Pygen telemetry disable

Enable telemetry:

d_Pygen telemetry enable

Clear telemetry:

d_Pygen telemetry clear

🧹 Cache Management

Clear cache:

d_Pygen cache clear

Clear plugin cache:

d_Pygen plugins cache clear

After publishing to PyPI

pip install d_pygen

🧑‍💻 Usage Examples

Generate FastAPI backend

d_Pygen create "FastAPI backend with JWT auth"

Generate MERN stack project

d_Pygen create "MERN stack with authentication"

Use template

d_Pygen create --template fastapi

Use template variant

d_Pygen create --template fastapi --variant full

Interactive mode

d_Pygen create


🧠 How It Works

Workflow:

User Prompt
   ↓
AI Provider generates project plan
   ↓
Template engine creates files
   ↓
Dependency manager installs dependencies
   ↓
Project ready

🔌 Plugin System

Plugins can extend:

  • templates
  • generators
  • features

Plugin structure:

plugin/
├── plugin.json
└── templates/

🧠 Supported AI Providers

Provider Supported
OpenAI
OpenRouter
Groq
Together
Ollama

🖥 Supported Platforms

  • Windows
  • Linux
  • macOS
  • WSL
  • Docker

🔒 Security

  • Basic validation checks are performed before file generation and plugin installation.

📈 Roadmap

Future plans:

  • GUI interface
  • More templates
  • More plugins
  • More AI providers
  • Project update support

🤝 Contributing

Contributions welcome.

Steps:

Fork repo
Create branch
Make changes
Submit PR

📜 License

MIT License


👤 Author

Sayan Bose

GitHub: https://github.com/dangerSayan


⭐ Support

If you like this project, please star the repository.

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

d_pygen-0.1.4.tar.gz (47.5 kB view details)

Uploaded Source

Built Distribution

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

d_pygen-0.1.4-py3-none-any.whl (56.1 kB view details)

Uploaded Python 3

File details

Details for the file d_pygen-0.1.4.tar.gz.

File metadata

  • Download URL: d_pygen-0.1.4.tar.gz
  • Upload date:
  • Size: 47.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for d_pygen-0.1.4.tar.gz
Algorithm Hash digest
SHA256 d919a779010df18a0e9b9a821e3c081b62d59ae95325d5d92d2c0bfe2bc37bc6
MD5 ae24187c17f200e57407241e58a83513
BLAKE2b-256 13cdd7664203e575ca27106e7ba6388a266cf7c173fadc350c508fe8c4e9ce32

See more details on using hashes here.

File details

Details for the file d_pygen-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: d_pygen-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 56.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for d_pygen-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8747ff93ca25cc2a5d93035a6ad88a4912e686b247523e99cf0f424d8176f712
MD5 975201a2514a1e9efb63959514c7fa28
BLAKE2b-256 856e4de2aca5d2de3340a737b46e4dd8c164b13cf43aa402e21470ddda1a13b1

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