Skip to main content

sopel-tld

Top-level domain (TLD) info plugin for Sopel IRC bots.

Installing

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

$ pip install sopel-tld

Using

This plugin provides the .tld command, which can be used to look up a top-level domain with or without the leading .:

<dgw> .tld .net
<Sopel> [tld] Name: .net | Entity: network | Administrator: Verisign | IDN: Yes
        | DNSSEC: Yes | SLD: Yes | IPv6: Yes | Notes: This is an open TLD; any
        person or entity is permitted to register. According to RFC 1591 (March
        1994) "This domain is intended to hold only the computers of network
        providers."

<dgw> .tld mil
<Sopel> [tld] Name: .mil | Entity: U.S. military | Administrator: United States
        Department of Defense | IDN: No | DNSSEC: Yes | SLD: Yes | IPv6: Yes |
        Notes: The .mil TLD is restricted to departments, services and agencies
        of the United States Department of Defense.

Most data is sourced from the English Wikipedia, so code updates might be required periodically as their table format evolves.

Changelog

0.1.3

Fixed:

  • Send a proper user agent with requests to Wikipedia [#5]

0.1.2

Fixed:

  • Lists in fields (e.g. ccTLD "domain hacks") are parsed correctly with a separator added between items (item 1, item 2 vs. item 1item2) [#4]

0.1.1

Fixed:

  • English-language ICANN era gTLDs got moved to a separate page; parse that too.

0.1.0

First release of sopel-tld, based on the built-in tld plugin from Sopel 8.0.

Compared to the built-in plugin, this release contains a simple fix for some ccTLD output errors caused by new <style> tags in the Wikipedia markup.

Metadata

Release files for sopel-tld 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sopel-tld 0.1.3
File Size Uploaded
sopel_tld-0.1.3.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sopel-tld 0.1.3
File Interpreter ABI Platform
sopel_tld-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 kB

Release files / sopel_tld-0.1.3.tar.gz

Download URL sopel_tld-0.1.3.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8da033e443288ae7feafb303f3743c07307b732530c393cb154071aac5b3469f
BLAKE2b-256 checksum
How to use checksums
9b7fdb1c838dbcdd2f5b9396bf556c348bb2ae793494ff7d99ff1f90258b6105
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 Aug 28, 2025.

Transparency log

Release files / sopel_tld-0.1.3-py3-none-any.whl

Download URL sopel_tld-0.1.3-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fa81493f76089d11ca886f5d1a4c4b3acf97037c5aa1b3f3372b0b2fd655e01
BLAKE2b-256 checksum
How to use checksums
3233dbba03e2fba65c1e34e0e04e4bb79637934e5e8329b9157d11bcc3153959
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 Aug 28, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page