{"id":24373582,"url":"https://github.com/tokynblast/pytgm","last_synced_at":"2025-07-20T17:33:00.256Z","repository":{"id":267372482,"uuid":"899687652","full_name":"TokynBlast/pyTGM","owner":"TokynBlast","description":"A Python Library for making games inside a terminal!","archived":false,"fork":false,"pushed_at":"2025-06-03T19:09:18.000Z","size":3844,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T01:25:46.703Z","etag":null,"topics":["cli","cmake","cpp","cpp17","game-development","nanobind","python","python-lib","python-library","python3","terminal"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TokynBlast.png","metadata":{"files":{"readme":"README.jp.md","changelog":"CHANGELOG.txt","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"TokynBlast","patreon":"TokynBlast","thanks.dev":"TokynBlast"}},"created_at":"2024-12-06T19:45:46.000Z","updated_at":"2025-06-03T19:09:20.000Z","dependencies_parsed_at":"2024-12-10T01:17:46.979Z","dependency_job_id":"ebe132e5-b2cb-4761-b658-1fe914c0ece3","html_url":"https://github.com/TokynBlast/pyTGM","commit_stats":null,"previous_names":["tokynblast/pytgm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TokynBlast/pyTGM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TokynBlast%2FpyTGM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TokynBlast%2FpyTGM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TokynBlast%2FpyTGM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TokynBlast%2FpyTGM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TokynBlast","download_url":"https://codeload.github.com/TokynBlast/pyTGM/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TokynBlast%2FpyTGM/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266165738,"owners_count":23886674,"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","cmake","cpp","cpp17","game-development","nanobind","python","python-lib","python-library","python3","terminal"],"created_at":"2025-01-19T05:11:51.784Z","updated_at":"2025-07-20T17:33:00.247Z","avatar_url":"https://github.com/TokynBlast.png","language":"C++","funding_links":["https://github.com/sponsors/TokynBlast","https://patreon.com/TokynBlast","TokynBlast"],"categories":[],"sub_categories":[],"readme":"# 🛠️ ワークフロー状況（Workflow Status）\r\n\r\n\u003c!-- Eventually, will be |linting|security|築く|です --\u003e\r\n\r\n| **《コードチェック》** | [![C++ Lint](https://github.com/TokynBlast/pyTGM/actions/workflows/cpplint.yml/badge.svg)](https://github.com/TokynBlast/pyTGM/actions/workflows/cpplint.yml) | [![Pylint](https://github.com/TokynBlast/pyTGM/actions/workflows/pylint.yml/badge.svg)](https://github.com/TokynBlast/pyTGM/actions/workflows/pylint.yml)                                | [![Isort](https://github.com/TokynBlast/pyTGM/actions/workflows/Isort.yml/badge.svg)](https://github.com/TokynBlast/pyTGM/actions/workflows/Isort.yml) |\r\n| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |\r\n| **《セキュリティ》**  | [![Safety](https://github.com/TokynBlast/pyTGM/actions/workflows/Saftey.yml/badge.svg)](https://github.com/TokynBlast/pyTGM/actions/workflows/Saftey.yml)     | [![SHA256 生成](https://github.com/TokynBlast/pyTGM/actions/workflows/generate-sha3-hashes.yml/badge.svg)](https://github.com/TokynBlast/pyTGM/actions/workflows/generate-sha3-hashes.yml) |                                                                                                                                                        |\r\n| **《築く》**      | [![C++ ビルド](https://github.com/TokynBlast/pyTGM/actions/workflows/compile.yml/badge.svg)](https://github.com/TokynBlast/pyTGM/actions/workflows/compile.yml)  |                                                                                                                                                                                          |                                                                                                                                                        |\r\n\r\n\u003e ⚠️ **注意：このプロジェクトは現在開発中です。**\u003cbr\u003e本番環境での利用は自己責任でお願いします。\r\n\r\n\u003e 🧠 **補足：日本語を学習中のため、文法ミスがあるかもしれません。**\u003cbr\u003eもしおかしい部分があれば、ぜひ教えてください！\u003cbr\u003e「・」は僕とお兄ちゃんのための記号です。\r\n\r\n---\r\n\r\n## 📦 インストール方法（Installing）\r\n\r\n### pip の場合\r\n\r\n```sh\r\npip install pyTGM\r\n```\r\n\r\nバージョン 5.0.0 より前は、ソースコードからビルドする必要があります。\r\n\r\n### 必要なツール\r\n\r\n* cmake\r\n* setuptools\r\n* wheel\r\n* Python 開発ヘッダー（例: python3-dev）\r\n\r\n### macOS の場合\r\n\r\n```sh\r\n./setup.sh\r\n```\r\n\r\n### Windows の場合\r\n\r\nVisual Studio 2017 以降が必要です。\r\nPython インストール時に以下を有効にしてください：\r\n\r\n* Add Python to PATH\r\n* Customize installation \u003e Development Tools\r\n\r\n### Linux の場合（自動検出）\r\n\r\n```sh\r\nbash -c 'if command -v apt-get \u003e/dev/null; then sudo apt-get update \u0026\u0026 sudo apt-get install -y python3-dev elif command -v dnf \u003e/dev/null; then sudo dnf install -y python3-devel elif command -v pacman \u003e/dev/null; then sudo pacman -Sy --noconfirm python elif command -v zypper \u003e/dev/null; then sudo zypper install -y python3-devel elif command -v brew \u003e/dev/null; then brew install python elif command -v pkg \u003e/dev/null; then sudo pkg install -y python elif command -v emerge \u003e/dev/null; then sudo emerge --ask dev-lang/python elif command -v apk \u003e/dev/null; then sudo apk add --no-cache python3-dev else echo \"対応していないパッケージマネージャです。Python 開発ヘッダーを手動でインストールしてください。\"; exit 1; fi'\r\n```\r\n\r\n---\r\n\r\n# 🎮 ピトグム【Python・Terminal・ゲーム作成】\r\n\r\nピトグム（pyTGM）は、ターミナルで動作するシンプルなゲームを作成できるライブラリです。\r\n\r\nASCIIやANSIアートを使って、音声・通信・暗号化などの機能も備えています。\r\n\r\n---\r\n\r\n## 🐞 バグ報告・機能要望\r\n\r\n* バグ報告：[ここをクリック](https://github.com/TokynBlast/pyTGM/issues/new?assignees=\u0026labels=\u0026projects=\u0026template=bug_report.md\u0026title=)\r\n* 機能提案：[ここをクリック](https://github.com/TokynBlast/pyTGM/issues/new?assignees=\u0026labels=\u0026projects=\u0026template=feature_request.md\u0026title=)\r\n* ビルド関連の報告：[ここをクリック](https://github.com/TokynBlast/pyTGM/issues/new?template=compile_report.md)\r\n\r\n---\r\n\r\n## ❤️ コントリビューション（協力）\r\n\r\n* [ブランチを作成](https://github.com/TokynBlast/pyTGM/branches)して、変更を加えてください。\r\n* プルリクエストを送っていただければ、確認してマージします。\r\n* [GitHub Sponsors](https://github.com/sponsors/TokynBlast) による支援も大歓迎です！\r\n\r\n---\r\n\r\n## 💡 ヒント\r\n\r\nお兄ちゃん、全部の機能が必要なわけではないよ。\r\n\r\n```python\r\n\\a  # ビープ音（ANSIエスケープ）\r\n```\r\n\r\nターミナルの制御やライブラリが提供する機能で、もっと自由に！\r\n\r\n---\r\n\r\n## 🌟 機能例（Examples）\r\n\r\n### ターミナル制御\r\n\r\n```python\r\nterminal.cls()  # 画面をクリア\r\nterminal.color(0, 255, 0)  # 色を指定（RGB）\r\nprint(terminal.BOLD + \"太字!\" + terminal.RESET)\r\n```\r\n\r\n### 音声再生\r\n\r\n```python\r\nsound('mysound.mp3')  # Windows / macOS / Linux 対応\r\n```\r\n\r\n### 簡易サーバー通信\r\n\r\n```python\r\nLocalServer(1080, {'名前': ((123, 456), 99)})\r\n```\r\n\r\n受信例：\r\n\r\n```python\r\n{'初音ミク': ((0, 0), 100), 'レモン': ((245, 334), 43)}\r\n```\r\n\r\n### 暗号化（Base64・SHA256・カスタム）\r\n\r\n#### Base64（ブ64）\r\n\r\n```python\r\nencrypt.b64.Table.table = 'あいうえおかきくけこ...'\r\nencrypt.b64.Table.generate('文字列セット', 32)\r\n\r\nencrypt.b64.encode(text)\r\nencrypt.b64.decode(text)\r\n```\r\n\r\n#### SHA256 ハッシュ\r\n\r\n```python\r\nencrypt.sha256(\"テキスト\")\r\n```\r\n\r\n#### フク512（カスタム）\r\n\r\n```python\r\nencrypt.hk512.encode(data, key)\r\nencrypt.hk512.decode(data, key)\r\n```\r\n\r\n---\r\n\r\n## 🔗 関連リンク\r\n\r\n* [ホームページ](https://pyTGM.tokynblast.space/home)\r\n* [使い方ガイド](https://pyTGM.tokynblast.space/documentation/use)\r\n* [GitHub リポジトリ](https://github.com/TokynBlast/pyTGM/tree/main)\r\n* [バグ報告と提案](https://github.com/TokynBlast/pyTGM/issues)\r\n* [更新履歴](https://github.com/TokynBlast/pyTGM/blob/main/CHANGELOG.txt)\r\n\r\n---\r\n\r\n## 🪪 ライセンス\r\n\r\nこのプロジェクトは **Bspace License** に基づいて、Tokyn Blast（ときゆ）によって公開されています。\r\n\r\n---\r\n\r\n\u003e 🌲 「木を隠すなら森の中」\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokynblast%2Fpytgm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftokynblast%2Fpytgm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokynblast%2Fpytgm/lists"}