Skip to main content

Hacker News plugin for Sopel.

Project description

sopel-hackernews

Hacker News plugin for Sopel.

Development status

The current version is more or less stable, but is still considered beta or pre-1.0 due to missing planned features and lack of testing for edge cases. See plans for 1.0 at https://github.com/sopel-irc/sopel-hackernews/issues/3

We welcome contributions from anyone who feels like implementing something from the 1.0 "wishlist", as well as bug reports and feature suggestions.

Installing

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

$ pip install sopel-hackernews

Configuring

sopel-hackernews supports Sopel's config wizard:

$ sopel-plugins configure hackernews

Available settings are as follows:

  • relative_timestamps — whether timestamps will be "humanized" like "2 days, 3 hours ago" (the default) or shown as absolute values

Usage

Links to Hacker News items are expanded automatically.

You can search for a link on HN using the .rhn command:

.rhn https://somecool.site/that/posted/an/article/

Credits

Loosely based on dasu's hn.py module, which was licensed as "literally do whatever you want, i'm not liable for anything lol". Thank you for the springboard!

Changelog

0.2.0

Added:

  • sopel-plugins configure wizard support (#17)
  • Handle user links (#16)
  • Basic formatting parser (#15, #18, #19)
  • Differentiation of polls from regular stories (#14)

Housekeeping:

  • Require Sopel 8 + Python 3.8 or higher (#11)
  • Future-proof package license metadata (#12)
  • Automate PyPI release publishing (#13)

0.1.0

Initial release. Considered beta, but largely functional.

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_hackernews-0.2.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

sopel_hackernews-0.2.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file sopel_hackernews-0.2.0.tar.gz.

File metadata

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

File hashes

Hashes for sopel_hackernews-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fc67ae841ea8ec4b110d62ea59a109a1dd629eb205f7d74183ec54dbb5729f26
MD5 d08b3141f5b7d8946b911c3d4643de33
BLAKE2b-256 240b792a25261edce4c4f85263049ac8521838efd1a2c88fa318902fee2da70c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_hackernews-0.2.0.tar.gz:

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

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_hackernews-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sopel_hackernews-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4addecd9bfff7917f03b135c4cb587c861c86f61b18784b463c019075bd46c04
MD5 df5dfe05f8ae99c0d860048b0a722b7d
BLAKE2b-256 c04d32dc9a7b7f686a04ac1a340eb9b494111719fc853e45f176dbff843d7d18

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_hackernews-0.2.0-py3-none-any.whl:

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

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