Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Sopel Wolfram|Alpha module

Wolfram|Alpha module for Sopel IRC bot framework

Installation

This package’s full name is sopel-modules.wolfram and it is listed on PyPI under that identifier.

The only supported installation method is via pip:

pip install sopel-modules.wolfram

Use pip3 as appropriate for your Python environment.

Development versions can be installed from GitHub via pip also:

pip install git+https://github.com/dgw/sopel-wolfram.git@master

Note that pip does not keep track of packages obtained from sources outside of PyPI, so pip install --upgrade sopel-modules.wolfram will not work for GitHub installations. Instead, to upgrade to the latest code, do:

pip install --upgrade git+https://github.com/dgw/sopel-wolfram.git@master

Configuration

The Wolfram|Alpha API requires a key to be added in the bot’s config. Sign up for API access at http://developer.wolframalpha.com/portal/apisignup.html and add the App ID to Sopel’s configuration file:

[wolfram]
app_id = yourappidgoeshere

Usage

<User> .wa 2+2
<Sopel> [W|A] 2+2 = 4

<User> .wa python language release date
<Sopel> [W|A] Python | date introduced = 1991

<User> .wa airspeed velocity of an unladen swallow
<Sopel> [W|A] estimated average cruising airspeed of an unladen European swallow
        = 25 mph  (miles per hour)(asked, but not answered, about a general
        swallow in the 1975 film Monty Python and the Holy Grail)

A Note About Reloading

In versions of sopel up to 6.4.0 (the last tested version), reloading a third-party module installed from pip, such as wolfram, results in duplicated output. This is a known issue in sopel and is being worked on.

Workaround: After updating sopel-wolfram through pip, restart the bot at your earliest convenience to enable the latest code.

Support

Help with installing or configuring the module is available by pinging either dgw or maxpowa in #sopel on freenode. dgw is also available in #Kaede on Rizon.

Bugs and feature requests can be submitted to the GitHub issue tracker, preferably after first bringing them up on IRC.

Changelog

Ticket numbers in changelog entries can be looked up by visiting https://github.com/dgw/sopel-wolfram/issue/<number>

sopel-wolfram v0.3.0 “So long!”

Updates:

  • Results longer than 3 lines will be sent via NOTICE instead of flooding channels (#8)

sopel-wolfram v0.2.1 “Mae shika mukanee”

Updates:

  • Output now split into multiple messages when line breaks are present (#4)

  • Tell pip we do not want wolframalpha 3.0 yet (#6)

sopel-wolfram v0.2.0 “Miraibashi”

Updates:

  • Try a lot harder to give useful output (#3)

  • Tell user to try again if an unspecified error occurs (empty error message)

Meta:

  • Cleanup: PEP8 & unused imports

  • Refactor to make future addition of integration tests easier

sopel-wolfram v0.1.2 “Switch”

Updates:

  • Shorten some error messages

  • Identify as “[W|A]” instead of “[Wolfram]” in output for brevity

  • Ensure all module output is prefixed

  • Add more examples to help output and README

Meta:

  • README now includes installation instructions and where to get help/report bugs

sopel-wolfram v0.1.1 “Already”

Updates:

  • Now outputs error if app_id is missing (#1)

Meta:

  • README reformatted (thanks @maxpowa)

  • Begin maintaining version history in NEWS file

sopel-wolfram v0.1.0 “Beginner”

Release files for sopel-modules.wolfram 0.3.0

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

Source distributions (sdists)

Source distribution for sopel-modules.wolfram 0.3.0
File Size Uploaded
sopel_modules.wolfram-0.3.0.zip 12.6 kB Details
sopel_modules.wolfram-0.3.0.tar.gz 5.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for sopel-modules.wolfram 0.3.0
File Interpreter ABI Platform
sopel_modules.wolfram-0.3.0-py3-none-any.whl Python 3 none any Details
sopel_modules.wolfram-0.3.0-py2.py3-none-any.whl Python 3, Python 2 none any Details
sopel_modules.wolfram-0.3.0-py2-none-any.whl Python 2 none any Details

Total release size:43.1 kB

Release files / sopel_modules.wolfram-0.3.0.zip

Download URL sopel_modules.wolfram-0.3.0.zip
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
51d2e78a2e90df6a789aacde5cda09c0b8828182087dc2b539a698093f963364
BLAKE2b-256 checksum
How to use checksums
cf08f17e1a66005cf1087b4750dead0947ec75629c8480b2a8516a23127c3692
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sopel_modules.wolfram-0.3.0.tar.gz

Download URL sopel_modules.wolfram-0.3.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
67916a1fcda4b8efb89d5aef3d0b9c4697543832e4932a29ad51ba71b64200f8
BLAKE2b-256 checksum
How to use checksums
f7e16154217c37d0c53448e1e59e7b77e30ff32a1f4c757abe4ae07be4a043cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sopel_modules.wolfram-0.3.0-py3-none-any.whl

Download URL sopel_modules.wolfram-0.3.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0475a8e138b0ab89c185df5c287c7caebcab3e9002e4a00d528d4711f8760483
BLAKE2b-256 checksum
How to use checksums
622f826eb5dec4b01a8a9c74384e5bbf9e8f5d6ae7ccd8fb2e63a5610c3be1a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sopel_modules.wolfram-0.3.0-py2.py3-none-any.whl

Download URL sopel_modules.wolfram-0.3.0-py2.py3-none-any.whl
Size 8.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
dd25160faa9f1b48c20a6d5227f3fe4041e52842b1047ebe5f5090c55d7fb29d
BLAKE2b-256 checksum
How to use checksums
000ee4fe16979b99172fa05a83a0235af4ff69620596514964699efa56cd3f42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sopel_modules.wolfram-0.3.0-py2-none-any.whl

Download URL sopel_modules.wolfram-0.3.0-py2-none-any.whl
Size 8.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
eb65b8ecb97f1ea026d45b7d7117765ba54f6291f38a089f39fa3c583d640d6f
BLAKE2b-256 checksum
How to use checksums
e2f1a07dbc8259b06d6ae1fe1464f63d688cbdda873c3dfd17d2308b933f2871
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
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