sopel-asn
ASN (and MAC address) 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
Origin lookup — Find what ASN an IP belongs to:
<dgw> .asn 208.67.222.222
<Sopel> [ASN] 208.67.222.0/24 | AS36692 | Cisco OpenDNS, LLC | US | ARIN |
0001-01-01 | more info: https://bgp.tools/as/36692
<dgw> .asn 2001:4860:b002::68
<Sopel> [ASN] 2001:4860::/32 | AS15169 | Google LLC | US | ARIN | 2005-03-14 |
more info: https://bgp.tools/as/15169
AS info — Find the name of an ASN's registrant:
<dgw> .asn 15169
<Sopel> [ASN] AS15169 | Google LLC | US | ARIN | 2000-03-30 | more info:
https://bgp.tools/as/15169
MAC address info — Find the vendor name assigned to a MAC address:
<dgw> .mac 00-1a-2b-3c-4d-5e
<Sopel> [ASN] MAC 00:1A:2B:3C:4D:5E is registered to Ayecom Technology Co., Ltd..
Background
This plugin performs network lookups via bgp.tools using
the whois protocol, as documented at https://bgp.tools/kb/api. All data provided
is best-effort; allocation dates are particularly flaky (often 0001-01-01).
Changelog
0.2.0
Simplified commands: .asn now handles ASNs, IPv4, and IPv6.
Using bgp.tools as backend instead of Team Cymru's DNS interface. Peer lookup
(.asnp command) is sadly no longer supported.
There is a new .mac command to look up the vendor (OUI) of hardware
MAC addresses, however.
0.1.0
First release of sopel-asn.
Metadata
Release files for sopel-asn 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sopel_asn-0.2.0.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sopel_asn-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / sopel_asn-0.2.0.tar.gz
| Download URL | sopel_asn-0.2.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c771c5a70994da9f3b394b1d7fa07f90260562445373a69201588ca2f7c45fb4
|
|
BLAKE2b-256 checksum How to use checksums |
afba6bb09fc06d250059785eb645fa9d792f9f7378dd73419276950854370de6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2025.
Transparency logRelease files / sopel_asn-0.2.0-py3-none-any.whl
| Download URL | sopel_asn-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f0b3365cd228e1c977479cd557f2a74c26a667cdd8bbcb7e1f2dcd4cee98156
|
|
BLAKE2b-256 checksum How to use checksums |
bd232a8e0995d36cab9882395e03352008452ca3901fe64350495b60b91063e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2025.
Transparency log