一个用于轻松查询OpenAlias记录的Python工具
项目描述
Privex Pyrewall
一个用于查询OpenAlias记录的Python工具 - 用于轻松获取与域名相关联的所有加密货币地址。默认使用DNS-over-HTTPs进行安全,但必要时也支持纯DNS。
OpenAlias.py - A Python tool for easily querying OpenAlias records
Copyright (c) 2023 Privex Inc. ( https://www.privex.io )
Copyright::
+===================================================+
| © 2023 Privex Inc. |
| https://www.privex.io |
+===================================================+
| |
| OpenAlias.py - A python OpenAlias Client |
| License: X11/MIT |
| |
| https://github.com/Privex/openalias-py |
| |
| Core Developer(s): |
| |
| (+) Chris (@someguy123) [Privex] |
| |
+===================================================+
快速入门安装
我们建议您使用Python 3.7或更高版本,因为该工具使用了dataclasses。
理论上可能在3.6上运行,但您需要安装dataclasses回退包
通过PyPi使用pip安装
python3 -m pip install -U openalias
从源安装
git clone https://github.com/Privex/openalias-py.git
cd openalias-py
# You can either use pip to install it, or setup.py
# Via pip
pip3 install .
# Via setup.py
python3 setup.py install
用法
# You can either use the command which is supposed to be auto-installed into /usr/local/bin
# or ~/.local/bin - or you can use python3 -m openalias
# View help (independent command script)
openaliaspy --help
# View help (using the command via python module call)
python3 -m openalias --help
# Get the XMR address associated with the domain privex.io
openaliaspy get privex.io xmr
# Get JUST the LTC address on it's own associated with the domain privex.io
# (useful for programmatic use)
openaliaspy get -p privex.io ltc
# List all addresses associated with privex.io in a colourful rich table
openaliaspy list privex.io
# List the addresses and other data in plain comma-separated text
openaliaspy list -p privex.io
# Use standard DNS instead of DNS-over-HTTPs to list/get privex.io's addresses
openaliaspy -P dns list privex.io
openaliaspy -P dns get privex.io xmr
# Use a custom resolver for DNS-over-HTTPs or standard DNS
openaliaspy -P dns -r 9.9.9.9 get privex.io btc
openaliaspy -r https://dns.privex.io list privex.io
许可
OpenAlias.py遵循X11 / MIT许可,有关更多信息请参阅LICENSE
。
感谢阅读!
如果此项目对您有所帮助,请考虑从Privex购买VPS或专用服务器 - 价格低至每月0.99美元(我们接受加密货币!)
您也可以使用我们的OpenAlias地址privex.io
向我们捐赠 :)
项目详情
下载文件
下载适用于您的平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。
源分布
openalias-1.0.2.tar.gz (10.9 kB 查看哈希值)
构建发行版
openalias-1.0.2-py3-none-any.whl (14.2 kB 查看哈希值)
关闭
openalias-1.0.2.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | e88d8af8ca18739cd55d6745ec37fa0ab2f6c21dac336d6f0d7b926530ec9a1d |
|
MD5 | e14904d02d948bfd06b2421522e9ac44 |
|
BLAKE2b-256 | e7595d8bbda48436959b6809981d7eb2ef5dd9a8cb39512f3e64486fca3dabdb |
关闭
openalias-1.0.2-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | f9db6bcf6d10bf65853c12e6e9bbfd57d31cd1a4f867365e68068de39414feb8 |
|
MD5 | 3e42db06466152b10986ca2568637bc2 |
|
BLAKE2b-256 | e477279b364fb25762611fe8ba4b03aa3873305cc3259c6abfb9a5d0f1e1c3ca |