Skip to main content

A beautiful CLI built with Typer, Rich and Questionary

Project description

GPT CLI

CLI đầu tiên của mình được viết bằng PythonTyper để học cách xây dựng các ứng dụng dòng lệnh.

📖 Giới thiệu

GPT CLI là một dự án học tập giúp mình làm quen với:

  • Python
  • Typer
  • Command Line Interface (CLI)
  • setup.py
  • pip install
  • GitHub

Dự án được tạo với mục đích học lập trình và tìm hiểu cách hoạt động của các công cụ như Git, npm và Vercel CLI.


✨ Tính năng

Hiện tại CLI hỗ trợ các lệnh:

  • hello
  • about
  • version
  • login
  • logout
  • add
  • multiply
  • age
  • calc
  • me

📦 Cài đặt

Clone dự án:

git clone https://github.com/namnn2016-ops/CLI

Di chuyển vào thư mục:

cd gpt

Cài đặt:

python -m pip install -e .

🚀 Cách sử dụng

Xin chào

gpt hello Nam

Kết quả:

Hello Nam!

Cộng hai số

gpt add 10 20

Kết quả:

30

Nhân hai số

gpt multiply 7 8

Kết quả:

56

Hiển thị phiên bản

gpt version

Kết quả:

1.0.0

Giới thiệu

gpt about

Đăng nhập

gpt login

Đăng xuất

gpt logout

Hiển thị thông tin

gpt me

📂 Cấu trúc dự án

gpt/
│
├── main.py
├── setup.py
├── README.md
└── .gitignore

🛠 Công nghệ sử dụng

  • Python
  • Typer
  • setuptools

🎯 Mục tiêu

Đây là dự án học tập nhằm:

  • Học Python
  • Học CLI
  • Học GitHub
  • Chuẩn bị kiến thức để xây dựng các dự án lớn hơn trong tương lai.

👨‍💻 Tác giả

Nguyen Nhat Nam

Dự án được tạo để học lập trình Python và CLI.


📄 Giấy phép

MIT License

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

namgpt-1.0.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

namgpt-1.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file namgpt-1.0.1.tar.gz.

File metadata

  • Download URL: namgpt-1.0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for namgpt-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d9ced1c3bae997b9ae8bcaa9d9e8b53473199b5ff2919ba4d039b51b532441f0
MD5 80e9f50f09190bab219398f3d6fa0c3c
BLAKE2b-256 b590b96d2578b96965678e56a12bf201ebd1c5c08924f09a8e495e61b390d898

See more details on using hashes here.

File details

Details for the file namgpt-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: namgpt-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for namgpt-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fabf818269ada9166dc69c18d9fece03d5a6f23c460d3e6f182f9460604aafdb
MD5 ca33ac8b7ee11ccfc7fd3062acfb09cd
BLAKE2b-256 8c5a92dc03862ef1bd7ddcf15bd9815cec130430f141067c890f889e009819f0

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