跳转到主要内容

一个用于轻松查询OpenAlias记录的Python工具

项目描述

Privex Pyrewall

Build Status Codecov
PyPi Version License Button PyPI - Downloads PyPI - Python Version GitHub last commit

一个用于查询OpenAlias记录的Python工具 - 用于轻松获取与域名相关联的所有加密货币地址。默认使用DNS-over-HTTPs进行安全,但必要时也支持纯DNS。

Screenshot of OpenAlias.py commands

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 查看哈希值)

上传时间: Python 3

由支持