Skip to main content

项目代码框架快速生成脚手架

Project description

oliver-codegen

oliver-codegen 是一款快速构建项目基础框架的脚手架工具. 其原理是从 Github 下载对应模板到本地, 并没有什么魔法代码.

安装

$ pipx install oliver-codegen

通常第一次使用 pipx 安装可执行程序时候, 可执行程序并没有自动添加到系统全局变量中, 导致在命令行无法使用. 这时候可以使用下面命令解决:

$ pipx ensurepath

使用方式

$ codegen create your_project_name -t python

其中 -t 后的参数是选择什么模板创建项目. 查看支持哪些模板命令 codegen list template

展示配置

输入以下命令, 将在控制台展示支持哪些模板.

$ codegen list template

更新程序

$ pipx upgrade oliver-codegen

如果你使用了国内镜像源, 可能存在同步问题, 无法更新到最新版本. 可以使用命令 pipx upgrade oliver-codegen -i https://pypi.org/simple/

卸载程序

$ pipx uninstall oliver-codegen

模板地址

# 项目模板名称和存放地址映射表
template:
# Python 项目
  # python 基本模板
  python:
    repository: "https://github.com/lifefossil/template-python.git"
  # fastapi 模板
  fastapi:
    repository: "https://github.com/lifefossil/template-fastapi.git"
  # pyside6 模板
  pyside6:
    repository: "https://github.com/lifefossil/template-pyside6.git"
  # tkinter 模板
  tkinter:
    repository: "https://github.com/lifefossil/template-tkinter.git"
  # Django + Tailwind 模板
  django-tailwind:
    repository: "https://github.com/lifefossil/template-django-tailwind.git"

# vue 项目
  # vue-tailwindcss
  vue-tailwindcss:
    repository: "https://github.com/lifefossil/template-vue-tailwindcss.git"
  # vue-element-plus
  vue-element-plus:
    repository: "https://github.com/lifefossil/template-vue-element-plus.git"
  # vitepress
  vitepress:
    repository: "https://github.com/lifefossil/template-vitepress.git"
  # electron 模板
  electron:
    repository: "https://github.com/lifefossil/template-electron.git"

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

oliver_codegen-0.1.6.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

oliver_codegen-0.1.6-cp311-cp311-win_amd64.whl (11.6 kB view details)

Uploaded CPython 3.11Windows x86-64

File details

Details for the file oliver_codegen-0.1.6.tar.gz.

File metadata

  • Download URL: oliver_codegen-0.1.6.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.3 Windows/10

File hashes

Hashes for oliver_codegen-0.1.6.tar.gz
Algorithm Hash digest
SHA256 ec9e3fba5a20cd68d930ffe400a0b3461477308fc75ea4090138fbf299558360
MD5 89562fa45520be07927db3e7bf6f882f
BLAKE2b-256 0192010ba881a75471b7cdbcfa71be9146ed34d8254b5640305127b7861e428a

See more details on using hashes here.

File details

Details for the file oliver_codegen-0.1.6-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for oliver_codegen-0.1.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 82ec373126b51278dae7ab3b2a62253d5e864c739ad545380e0e1d02daeb56d8
MD5 70648981f6e48ea0c94149ecdbadf168
BLAKE2b-256 ff29b0e664558834216605710e554ba812f36cc5b26b9e74f99192d5f01ed230

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