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.4

Fixed:

  • Fetch updated wiki page titles, and follow redirects in the future [#6]
  • Treat line break in table cell as a space [#7]
  • Merge multiple rows of data fields for the same (cc)TLD [#8]

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.4

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.4
File Size Uploaded Provenance Actions
sopel_tld-0.1.4.tar.gz 8.7 kB With provenance Details for sopel_tld-0.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 17.1 kB

Release files / sopel_tld-0.1.4.tar.gz

Download URL sopel_tld-0.1.4.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9c7bdfcf424585e718f73b90fc63c9c9dec6b087c0b545e147416dc844cef707
BLAKE2b-256 checksum
How to use checksums
65e4d50b6732f167b9285e4721445d174c7e3f7f5df8ca5cd5d7f10bf9aaeb81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 26, 2026.

Transparency log

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

Download URL sopel_tld-0.1.4-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25c90c1a26bce2734f4e41a15620dbbdafde80be71817a145051b26a0e2eb5c7
BLAKE2b-256 checksum
How to use checksums
c82389f472bcea6e86ccf92f7b6656c7f53ca44dc1c892fcaf1e30be75bc9890
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 26, 2026.

Transparency log

Security for sopel-tld 0.1.4

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sopel_tld-0.1.4.tar.gz

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 Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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