Skip to main content

ASN lookup plugin for Sopel IRC bots

Project description

sopel-asn

ASN lookup plugin for Sopel IRC bots

Installing

Releases are hosted on PyPI, so after installing Sopel, all you need is pip:

$ pip install sopel-asn

Using

[IPv4, IPv6] Origin lookup — Find what ASN an IP belongs to:

<dgw> .asno 208.67.222.222
<Sopel> [ASN] AS36692 | 208.67.222.0/24 | US | Registered at arin on 2006-06-06

<dgw> .asnorigin 2001:4860:b002::68
<Sopel> [ASN] AS15169 | 2001:4860::/32 | US | Registered at arin on 2005-03-14

[IPv4] Peer lookup — Find other BGP peers of an IP address:

<dgw> .asnp 1.1.1.1
<Sopel> [ASN] 1.1.1.0/24 | AU | Registered at apnic on 2011-08-11 | Peer ASNs:
        174, 2914, 3257, 6461, 6939, 13335, 23352

# Note: BGP peer lookup is not currently supported for IPv6 addresses.
<dgw> .asnpeers 2001:4860:b002::68
<Sopel> No records found for 2001:4860:b002::68.

[ASN] AS info — Find the name of an ASN's registrant:

<dgw> .asn 15169
<Sopel> [ASN] AS15169 | GOOGLE, US | US | Registered at arin on 2000-03-30

Background

This plugin performs network lookups using Team Cymru's DNS interface, as documented at https://www.team-cymru.com/ip-asn-mapping

All data provided is best-effort, and not all lookup types are supported (e.g. IPv6 BGP peers, as noted above).

Changelog

0.1.0

First release of sopel-asn.

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

sopel_asn-0.1.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.

sopel_asn-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file sopel_asn-0.1.0.tar.gz.

File metadata

  • Download URL: sopel_asn-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sopel_asn-0.1.0.tar.gz
Algorithm Hash digest
SHA256 931594bef23b5e0c0bce2cbbf629d4ca3a49711b0978fa0b8d940c88651521a4
MD5 db4b183f34b93c80feedc3c1a1b19610
BLAKE2b-256 2ad8ac796a22ad3a2b7e34fbfbaf67bb45f71e61726727c7f8e3c22e2418aa64

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_asn-0.1.0.tar.gz:

Publisher: pypi.yml on dgw/sopel-asn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sopel_asn-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sopel_asn-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sopel_asn-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8592f2b8990cb48a6db38ae98facf2f119f615f9839e1c36b17a80b5f9b15892
MD5 f927fa48bf70461baf48226443d8e545
BLAKE2b-256 63cb718e30fe4273384ad61f3342f224993bb2071101925c96c9fa56fd979408

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_asn-0.1.0-py3-none-any.whl:

Publisher: pypi.yml on dgw/sopel-asn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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