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.1.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.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_ipinfo-1.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"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.1.tar.gz
Algorithm Hash digest
SHA256 9e1b9a7d8df442935fc00e25884cbabc0d0c8beda375de9444d76c6afca88026
MD5 9f0cde3a9db974e145aec94a3ca4790d
BLAKE2b-256 1860b63a4a888fcb18d1df46b27c6e94f4d3791772c0f1f7ca5a783cf059d998

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nonebot_plugin_ipinfo-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e52bf074b48887e0207e1f3eb0bfbadad4a8b9c4c75e1cb7ae37c7451056cec3
MD5 591a2ba13573f4e92313556aa98cd3e2
BLAKE2b-256 03a2bf414f4de453e3fee33246dff4a14883e2b0b5a80a4674aa591ce5fabc17

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