{"id":15030937,"url":"https://github.com/t3tra-dev/pyinit","last_synced_at":"2025-04-09T22:51:32.581Z","repository":{"id":257620889,"uuid":"858202475","full_name":"t3tra-dev/pyinit","owner":"t3tra-dev","description":"pyinit is a command-line tool designed to help developers quickly scaffold Python library projects.","archived":false,"fork":false,"pushed_at":"2024-12-03T03:48:51.000Z","size":90,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T22:51:26.174Z","etag":null,"topics":["cli","cross-platform","python","python3","rust","rust-lang","scaffolded"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t3tra-dev.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.ja.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.ja.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-16T13:44:26.000Z","updated_at":"2025-03-10T11:18:08.000Z","dependencies_parsed_at":"2024-12-03T04:34:07.963Z","dependency_job_id":null,"html_url":"https://github.com/t3tra-dev/pyinit","commit_stats":{"total_commits":53,"total_committers":3,"mean_commits":"17.666666666666668","dds":"0.26415094339622647","last_synced_commit":"f07500942520c47cd40b1128e94f1d066b964624"},"previous_names":["t3tra-dev/pyinit"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3tra-dev%2Fpyinit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3tra-dev%2Fpyinit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3tra-dev%2Fpyinit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3tra-dev%2Fpyinit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t3tra-dev","download_url":"https://codeload.github.com/t3tra-dev/pyinit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125643,"owners_count":21051766,"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":["cli","cross-platform","python","python3","rust","rust-lang","scaffolded"],"created_at":"2024-09-24T20:14:34.531Z","updated_at":"2025-04-09T22:51:32.555Z","avatar_url":"https://github.com/t3tra-dev.png","language":"Rust","readme":"[[英語/English](README.md)]\n\n# pyinit\n\n`pyinit`は、Pythonライブラリプロジェクトを迅速にセットアップするためのコマンドラインツールです。`README.md`、`LICENSE`、`setup.py`など、ライブラリ開発に必要なファイルを自動で生成し、開発者がプロジェクト構築にかかる手間を省きます。\n\n## 特徴\n\n- Pythonライブラリプロジェクトのディレクトリ構造を自動生成\n- `README.md`、`LICENSE`、`__init__.py`、`setup.py`、`requirements.txt`などの重要ファイルを作成\n- 柔軟なカスタムテンプレートのサポート\n- Linux、macOS、Windowsをサポートするクロスプラットフォーム対応\n- インタラクティブなプロンプトとコマンドライン引数での高速セットアップを提供\n\n## インストール方法\n\n### Linux\n\n`pyinit`をLinuxにインストールするには、[リリースページ](https://github.com/t3tra-dev/pyinit/releases)から最新バイナリをダウンロードし、バイナリを`PATH`にあるディレクトリに移動します。\n\n```bash\nwget https://github.com/t3tra-dev/pyinit/releases/download/v1.0.0/pyinit-linux-latest-v1.0.0.zip\nunzip pyinit-linux-latest-v1.0.0.zip\nchmod +x pyinit\nsudo mv pyinit /usr/local/bin/\n```\n\n`pyinit`を実行して使い始めます:\n\n```bash\npyinit --help\n```\n\n### macOS\n\nmacOS向けに`pyinit`をインストールするには、[リリースページ](https://github.com/t3tra-dev/pyinit/releases)から最新バイナリをダウンロードし、バイナリを`PATH`にあるディレクトリに移動します。\n\n```bash\ncurl -L -O https://github.com/t3tra-dev/pyinit/releases/download/v1.0.0/pyinit-macos-latest-v1.0.0.zip\nunzip pyinit-macos-latest-v1.0.0.zip\nchmod +x pyinit\nsudo mv pyinit /usr/local/bin/\n```\n\n`pyinit`を実行して使い始めます:\n\n```bash\npyinit --help\n```\n\n### Windows\n\nWindowsで`pyinit`を使用するには、[リリースページ](https://github.com/t3tra-dev/pyinit/releases)から最新バイナリをダウンロードして解凍します。\n\n```bash\nInvoke-WebRequest -Uri https://github.com/t3tra-dev/pyinit/releases/download/v1.0.0/pyinit-windows-latest-v1.0.0.zip -OutFile pyinit.zip\nExpand-Archive -Path pyinit.zip -DestinationPath .\n```\n\n以下の手順で`pyinit`を`PATH`に追加します:\n\n1. 「このPC」を右クリックし、「プロパティ」を選択\n2. 「システムの詳細設定」をクリックし、「環境変数」を選択\n3. 「システム環境変数」の中から`Path`を探し、選択後「編集」をクリック\n4. 「新規」をクリックし、`pyinit.exe`があるパスを追加\n5. すべてのウィンドウで「OK」をクリックして閉じる\n\nこれでコマンドラインから`pyinit`が実行できるようになります:\n\n```bash\npyinit --help\n```\n\n## ローカルでのビルド方法\n\n`pyinit`をソースコードからローカル環境でビルドするには、Rustがインストールされている必要があります。\n\n### 前提条件\n\n- [Rust](https://www.rust-lang.org/tools/install)がシステムにインストールされていること\n\n### ビルド・インストール手順\n\nリポジトリをクローンして `cargo install --path .` を実行してください:\n\n```bash\ngit clone https://github.com/t3tra-dev/pyinit.git\ncd pyinit\ncargo install --path .\n```\n\nこれで、`pyinit`が実行できるようになります:\n\n```bash\npyinit --help\n```\n\n## 使用方法\n\n`pyinit`は、対話形式およびコマンドライン引数を使用して非対話形式で実行できます。\n\n### コマンドライン引数\n\n```bash\npyinit [OPTIONS]\n```\n\n#### オプション\n\n- `--name`, `-n`: ライブラリの名前を指定\n- `--description`, `-d`: ライブラリの説明を指定\n- `--author`, `-a`: 作者の名前を指定\n- `--license`, `-l`: ライセンスの種類を指定(MIT、GPL、Apache-2.0、など)\n- `--help`, `-h`: CLIのヘルプ情報を表示(`-h`はサマリー)\n- `--version`: CLIのバージョンを表示\n\n#### 使用例\n\nインタラクティブにPythonライブラリプロジェクトを作成するには、以下のコマンドを実行します:\n\n```bash\npyinit\n```\n\nプロジェクト名や説明、作者、ライセンスを尋ねられるので、入力して進みます。非対話形式でプロジェクトを作成する場合は、コマンドライン引数を使用します:\n\n```bash\npyinit --name mylib --description \"A Python library for awesome features\" --author \"John Doe\" --license MIT\n```\n\nこれにより、以下のディレクトリ構造が生成されます:\n\n```\nmylib/\n├── LICENSE\n├── README.md\n├── mylib/\n│   └── __init__.py\n├── requirements.txt\n├── setup.py\n└── tests/\n```\n\n### ライセンスの選択\n\nライセンスに`custom`を選んだ場合、カスタムライセンステキストを入力するか、空白のままにすることができます。それ以外の場合は、選択したライセンスに基づいて`LICENSE`ファイルが自動的に生成されます。\n\n## コントリビューティングとサポート\n\n`pyinit`への貢献は大歓迎です！以下の手順に従って貢献できます:\n\n1. リポジトリをフォークします: [https://github.com/t3tra-dev/pyinit](https://github.com/t3tra-dev/pyinit)\n2. フィーチャーブランチを作成します: `git checkout -b feature/your-feature`\n3. 変更をコミットします: `git commit -m 'Add a new feature'`\n4. ブランチをプッシュします: `git push origin feature/your-feature`\n5. プルリクエストを送信します。\n\nサポートや質問については、リポジトリの[Issuesセクション](https://github.com/t3tra-dev/pyinit/issues)に問題を報告してください。\n\n全てのコントリビューターに感謝しています！\n\n![pyinit Contributors](https://contrib.rocks/image?repo=t3tra-dev/pyinit)\n\n---\n\n`pyinit`はMITライセンスの下で提供されています。詳細については[LICENSE](https://github.com/t3tra-dev/pyinit/blob/main/LICENSE)ファイルをご覧ください。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft3tra-dev%2Fpyinit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft3tra-dev%2Fpyinit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft3tra-dev%2Fpyinit/lists"}