Skip to main content

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

Project description

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.

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_tld-0.1.3.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sopel_tld-0.1.3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file sopel_tld-0.1.3.tar.gz.

File metadata

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

File hashes

Hashes for sopel_tld-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8da033e443288ae7feafb303f3743c07307b732530c393cb154071aac5b3469f
MD5 e5a0647e92bc7d5ec89cd60282fd102d
BLAKE2b-256 9b7fdb1c838dbcdd2f5b9396bf556c348bb2ae793494ff7d99ff1f90258b6105

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_tld-0.1.3.tar.gz:

Publisher: pypi.yml on sopel-irc/sopel-tld

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_tld-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: sopel_tld-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.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_tld-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1fa81493f76089d11ca886f5d1a4c4b3acf97037c5aa1b3f3372b0b2fd655e01
MD5 131cc1cd7d4a60565c85c5325d07304c
BLAKE2b-256 3233dbba03e2fba65c1e34e0e04e4bb79637934e5e8329b9157d11bcc3153959

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_tld-0.1.3-py3-none-any.whl:

Publisher: pypi.yml on sopel-irc/sopel-tld

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