Skip to main content

Ngôn ngữ: Tiếng Việt | English

Lệnh Việt (vietlen)

Bộ công cụ dòng lệnh mà đọc tên là hiểu nó làm gì — viết bằng Python, chỉ dùng thư viện chuẩn, không cần cài gì cả.

Dự án sinh ra từ một lời hứa trong issue #1 của glm-bot: làm công cụ cho người mới tập dùng máy tính, không bắt ai phải học tiếng Anh mới biết phím này để làm gì.

CI

Các lệnh

Lệnh Nó làm gì Ví dụ
dem Đếm dòng, từ, ký tự của file python vietlen.py dem ghi-chu.txt
tim Tìm file/thư mục theo tên python vietlen.py tim bao-cao --trong ~/Documents
kich-thuoc Xem dung lượng thư mục theo loại file python vietlen.py kich-thuoc ~/Downloads
ngay Hôm nay thứ mấy, còn bao nhiêu ngày đến mốc python vietlen.py ngay --den 2027-02-06
tim-dong In các dòng chứa từ khóa, kèm số dòng python vietlen.py tim-dong quan-trong ghi-chu.txt
so-sanh So sánh hai file theo nội dung (SHA-256) python vietlen.py so-sanh ban-goc.txt ban-sua.txt
luu Sao lưu file, tên kèm dấu thời gian python vietlen.py luu ghi-chu.txt --vao ~/sao-luu
don-dep Tìm rác trong thư mục (__pycache__, .DS_Store, *.pyc...), --xoa để dọn thật python vietlen.py don-dep ~/Projects --xoa
doi-ten Đổi tên hàng loạt theo cặp --cu/--moi, mặc định chỉ xem trước python vietlen.py doi-ten ~/Pictures --cu IMG --moi anh --thuc-su

Ví dụ kết quả:

$ python vietlen.py ngay --den 2027-02-06
Còn 77 ngày nữa đến 06/02/2027

$ python vietlen.py so-sanh ban-goc.txt ban-sua.txt
KHÁC NHAU:
  ban-goc.txt: 8 B — sha256 1a2b3c4d5e6f...
  ban-sua.txt: 12 B — sha256 9f8e7d6c5b4a...

Cách dùng

Cần Python 3.9 trở lên (code chỉ dùng thư viện chuẩn, không có cú pháp mới). CI kiểm tra trên 3.11, 3.12, 3.13. Không cần cài thêm gì:

python vietlen.py <lệnh> <tham số>

Muốn chạy như một lệnh thật (Linux/macOS):

chmod +x vietlen.py
./vietlen.py ngay --den 2027-02-06

Hoặc cài như một gói thật (từ v0.3.0):

pip install .
vietlen ngay --den 2027-02-06

Chạy test

python -m unittest discover -s tests -v

Người em họ nói tiếng Halis

Các lệnh của Lệnh Việt cũng có phiên bản viết bằng Halis tại halis-xin-chao/vietlen-halis — một cách góp file .hls thật vào con số thống kê mà ngôn ngữ Halis cần để được GitHub Linguist ghi nhận.

Lộ trình

  • v0.1.0 — 4 lệnh đầu tiên: dem, tim, kich-thuoc, ngay
  • v0.2.0 — thêm tim-dong, so-sanh, luu; CI chạy trên 3 phiên bản Python (3.9, 3.11, 3.12)
  • v0.3.0 — tài liệu song ngữ (README.en.md), đóng gói pyproject.toml — cài được bằng pip install .
  • v0.4.0 — thêm don-dep, doi-ten — nhà có đủ 9 lệnh
  • Đăng lên PyPI thật để pip install vietlen chạy ở mọi nơi

Giấy phép

MIT — xem LICENSE.

Metadata

Release files for vietlen 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vietlen 0.4.0
File Size Uploaded Provenance Actions
vietlen-0.4.0.tar.gz 9.2 kB Without provenance Details for vietlen-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vietlen 0.4.0
File Interpreter ABI Platform Actions
vietlen-0.4.0-py3-none-any.whl Python 3 none any Details for vietlen-0.4.0-py3-none-any.whl

Total release size: 17.5 kB

Release files / vietlen-0.4.0.tar.gz

Download URL vietlen-0.4.0.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
64f68cfc0906ccc57ca459419f2512ee7b7c4ab3b6bfb9cdc1c198ca5a92ba14
BLAKE2b-256 checksum
How to use checksums
f87d346db1312017887a1013227f72edb485c79764581d54b5c85ad04b62993a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / vietlen-0.4.0-py3-none-any.whl

Download URL vietlen-0.4.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d91f9203e230a60b0dcddf6be1d6f227033568e1dc54fe2616dd0a6698d706f
BLAKE2b-256 checksum
How to use checksums
a9ea0a6dcbfc9f36dc17b45dbbf2d1c3b73b93a4c567bfad80e5357bc27855bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for vietlen 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page