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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
931594bef23b5e0c0bce2cbbf629d4ca3a49711b0978fa0b8d940c88651521a4
|
|
| MD5 |
db4b183f34b93c80feedc3c1a1b19610
|
|
| BLAKE2b-256 |
2ad8ac796a22ad3a2b7e34fbfbaf67bb45f71e61726727c7f8e3c22e2418aa64
|
Provenance
The following attestation bundles were made for sopel_asn-0.1.0.tar.gz:
Publisher:
pypi.yml on dgw/sopel-asn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_asn-0.1.0.tar.gz -
Subject digest:
931594bef23b5e0c0bce2cbbf629d4ca3a49711b0978fa0b8d940c88651521a4 - Sigstore transparency entry: 203370227
- Sigstore integration time:
-
Permalink:
dgw/sopel-asn@05bbe87cc8992b32e2a3dc76a260e198f0d435a3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/dgw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@05bbe87cc8992b32e2a3dc76a260e198f0d435a3 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8592f2b8990cb48a6db38ae98facf2f119f615f9839e1c36b17a80b5f9b15892
|
|
| MD5 |
f927fa48bf70461baf48226443d8e545
|
|
| BLAKE2b-256 |
63cb718e30fe4273384ad61f3342f224993bb2071101925c96c9fa56fd979408
|
Provenance
The following attestation bundles were made for sopel_asn-0.1.0-py3-none-any.whl:
Publisher:
pypi.yml on dgw/sopel-asn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_asn-0.1.0-py3-none-any.whl -
Subject digest:
8592f2b8990cb48a6db38ae98facf2f119f615f9839e1c36b17a80b5f9b15892 - Sigstore transparency entry: 203370228
- Sigstore integration time:
-
Permalink:
dgw/sopel-asn@05bbe87cc8992b32e2a3dc76a260e198f0d435a3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/dgw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@05bbe87cc8992b32e2a3dc76a260e198f0d435a3 -
Trigger Event:
release
-
Statement type: