Skip to main content

NoneBot IP 信息查询插件

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-ipinfo

✨ 查询 IP 地址的信息 ✨

License PyPI Python
NoneBot Registry Supported Adapters

安装

使用nb-cli [推荐]

nb plugin install nonebot-plugin-ipinfo

使用pip

pip install nonebot-plugin-ipinfo

使用

命令需要加 NoneBot 命令前缀 (默认为/)
命令 ipinfo / ip 查询 IP 地址的信息
命令 domaininfo 查询域名的 WHOIS 信息
命令 getdomain 查询 IP 地址的托管域名
以上命令均支持使用 -v 命令选项输出详细的信息

配置项

配置方式:直接在 NoneBot 全局配置文件中添加以下配置项即可

ipinfo_access_token [必填]

  • 类型:str
  • 默认值:None
  • 说明:iPinfo 的 access_token

ipinfo_use_ip2location [选填]

  • 类型:bool
  • 默认值:False
  • 说明:是否使用 ip2location 作为数据源

ipinfo_ip2location_api_key [选填]

  • 类型:str
  • 默认值:None
  • 说明:ip2location 的 api_key

ipinfo_verbose_use_reference [选填]

  • 类型:bool
  • 默认值:False
  • 说明:-v 模式是否使用合并转发消息发送

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

nonebot_plugin_ipinfo-1.0.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_ipinfo-1.0.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_ipinfo-1.0.0.tar.gz.

File metadata

  • Download URL: nonebot_plugin_ipinfo-1.0.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nonebot_plugin_ipinfo-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3b30209296ed6210c42d1ad54b5cc13837a78cf19c7d3de0f1bf6e9c400d4ac9
MD5 1a057ca0255a7b59c855ec2835305c0b
BLAKE2b-256 a179e9b29e1096864970c80addacadfba119577b4b693268ae39a6f6544ab1ec

See more details on using hashes here.

File details

Details for the file nonebot_plugin_ipinfo-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nonebot_plugin_ipinfo-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nonebot_plugin_ipinfo-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9daa9b27d4f7c2690f6b9f4620b915837d208fc1649e66173d8c5a7ae13e2148
MD5 f7e4fe6ce0ca0f87233273ddbddcd0b4
BLAKE2b-256 b7ed326c78278291037aa386e41278915fdc1a6ec1e7f6aa50a9237a3b05c1fc

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