Skip to main content

Wolfram|Alpha module for Sopel IRC bot framework

Project description

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] Result: 4

<User> .wa python language release date
<Sopel> [W|A] Result: 1991

<User> .wa airspeed velocity of an unladen swallow
<Sopel> [W|A] Result: 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.3.1 (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.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”

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

sopel_modules.wolfram-0.1.2.zip (10.9 kB view hashes)

Uploaded Source

sopel_modules.wolfram-0.1.2.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distributions

sopel_modules.wolfram-0.1.2-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

sopel_modules.wolfram-0.1.2-py2.py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 2 Python 3

sopel_modules.wolfram-0.1.2-py2-none-any.whl (7.2 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page