RepositoryPythonCACanada
lstn

lstn/ip6words

Utility to convert IPv6 addresses to and from a user friendly word based format

82sao
3fork
1issue
1lượt xem

🔤 ip6words: Biến địa chỉ IPv6 thành cụm từ dễ nhớ

Công cụ dòng lệnh Python chuyển đổi hai chiều giữa IPv6 và định dạng từ ngữ thân thiện, dùng wordlist từ NLTK cố định để đảm bảo nhất quán.

ip6words là gói Python nhỏ gọn của tác giả lstn, giải quyết bài toán kinh điển: địa chỉ IPv6 dài, khó nhớ, dễ nhầm lẫn khi đọc to hoặc ghi chép. Thay vì chuỗi hex như 2001:0db8:85a3:0000:0000:8a2e:0370:7334, nó ánh xạ thành cụm từ tiếng Anh (ví dụ the8 cho ::). Cài đặt qua pip install ip6words, chạy ngay ip6words <địa_chỉ_IPv6_hoặc_từ>. Dự án dùng NLTK (các corpus brown, words, abc, inaugural, genesis) để xây danh sách từ, sau đó pickle (dill) lại để mapping từ ↔ IP luôn ổn định — trừ khi dữ liệu NLTK gốc thay đổi.

✨ Điểm nổi bật

  • Chuyển đổi hai chiều: IPv6 ↔ định dạng từ (ví dụ :: → the8)
  • Wordlist cố định: Dùng NLTK + pickle (dill) để từ khóa luôn mapping 1-1 với IP
  • CLI đơn giản: Cài pip install ip6words, chạy ip6words <địa_chỉ>
  • Tự tái tạo wordlist: Tuỳ chọn -d xoá file pickle để build lại từ NLTK
  • Hỗ trợ IPv4: Cũng xử lý được địa chỉ IPv4
  • Python 3.3+: Không hỗ trợ Python 2
  • Tuỳ chọn explode: Cờ -e xuất dạng mở rộng thay vì nén
  • License Apache 2: Tự do dùng cho mục đích thương mại

💡 Vì sao đáng chú ý

ip6words không tạo ra địa chỉ mới hay thay đổi giao thức — nó chỉ thêm lớp presentation để con người làm việc với IPv6 bớt đau đầu. Ý tưởng mapping IP ↔ từ có từ lâu (như IPv4 dotted-decimal, hay các scheme kiểu what3words), nhưng triển khai gọn nhẹ, zero-config sau khi cài, và bảo toàn tính xác định (deterministic) nhờ wordlist pickle là điểm mạnh. Phù hợp cho admin đọc log, dev debug network, giáo viên demo IPv6, hoặc bất kỳ ai cần đọc/nhắc địa chỉ IP qua điện thoại, voice chat mà không bị sai sót.


#IPv6 #CLI #Python #NetworkTools #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC
blechschmidt/freebind

IPv6 address rate limiting evasion tool (that also supports IPv4)

294
Dec 15, 2023
RepositoryPython
Guovin/iptv-api

⚡️ IPTV直播源自动更新工具:自动采集、校验、测速并生成可播放结果,支持 M3U/TXT/API 输出、自定义频道、IPv4/IPv6、Docker、GitHub Actions、CLI 与 GUI 多端部署

26.4k
Oct 14, 2026
RepositoryPython
NewFuture/DDNS

🌐自动更新域名解析到本机IP,支持dnspod,阿里DNS,CloudFlare,华为云,DNSCOM...

4.7k
Nov 17, 2026
RepositoryPython
Exa-Networks/exabgp

The BGP swiss army knife of networking

2.3k
Nov 23, 2026
RepositoryPython
yuanzl77/IPTV

每天自动更新IPTV直播源,支持IPV4/IPV6双栈访问!自定义频道,高质量直播源,❌不含有广告。Automatically update IPTV live streaming sources every day, supporting IPV4/IPV6 dual stack access! Custom channels, high-quality live streaming sources, ❌ Does not contain advertisements.

2.2k
Sep 21, 2026
RepositoryPython
kimwang1978/collect-txt

源 (自动整理)

2.0k
Dec 2, 2026
RepositoryGo
lionsoul2014/ip2region

Ip2region is an offline IP-to-Region localization library and IP data management framework with both IPv4 and IPv6 supports, 10-microsecond level query efficiency, xdb search client for many programming languages

20.0k
Nov 24, 2026
RepositoryGo
Loyalsoldier/geoip

🌚 🌍 🌝 GeoIP 增强版,自由定制多种格式 GeoIP 文件,包括但不限于 V2Ray dat 格式文件 geoip.dat、MaxMind mmdb 格式文件、sing-box SRS 格式文件、mihomo MRS 格式文件、Clash ruleset、Surge ruleset、Nginx allow & deny 规则文件等。Enhanced edition of GeoIP for Nginx, V2Ray, Xray-core, Clash, mihomo, sing-box, Shadowrocket, Quantumult X, Surge, hysteria, Trojan-Go, dae, etc.

6.8k
Nov 29, 2026
RepositoryC++
dannagle/PacketSender

Network utility for sending / receiving TCP, UDP, SSL, HTTP

2.7k
Nov 22, 2026