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] 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.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.2.1

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

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”

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.2.1.zip (12.4 kB view details)

Uploaded Source

sopel_modules.wolfram-0.2.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distributions

sopel_modules.wolfram-0.2.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

sopel_modules.wolfram-0.2.1-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2 Python 3

sopel_modules.wolfram-0.2.1-py2-none-any.whl (8.2 kB view details)

Uploaded Python 2

File details

Details for the file sopel_modules.wolfram-0.2.1.zip.

File metadata

File hashes

Hashes for sopel_modules.wolfram-0.2.1.zip
Algorithm Hash digest
SHA256 7806b1399bd20b4f2ba78178e7f51ce783f7e26ccb9fd574f928c750c81e6cff
MD5 1d5bbc9cd486a8d866cce508a94bdcf6
BLAKE2b-256 bb55e01c0d23c14516b6159aa46e561e66e594045750c3f29c98c0cef2231122

See more details on using hashes here.

Provenance

File details

Details for the file sopel_modules.wolfram-0.2.1.tar.gz.

File metadata

File hashes

Hashes for sopel_modules.wolfram-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ee385d43dcdecbd29d8b64d20c023738494a96f2371193f67b1defe250b38787
MD5 384f9dc67ef698bc1d6936a8fab0cb1b
BLAKE2b-256 04638c27d16ff72e205847975b80666a43d3520c3e04a52e44cf48c68620d409

See more details on using hashes here.

Provenance

File details

Details for the file sopel_modules.wolfram-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sopel_modules.wolfram-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17c6434508cb200f5b59128a78935657f64319fdf2285b9934cdd48201871451
MD5 ca3126f7b360824a9a694fa6b8549828
BLAKE2b-256 35ef2c78c138939668e9323532788ef1bc2474cb83ba4d5a9b7d5d9fc8c4e050

See more details on using hashes here.

Provenance

File details

Details for the file sopel_modules.wolfram-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sopel_modules.wolfram-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e55bec91458c9fcd67124e3e34f03637b217b4055fcef604adf1d638ffd68c8f
MD5 0a20bebf68a73dab60f0afa627f1b20d
BLAKE2b-256 f5b6939d82290860f8d008ecc1975eb9abf68dd799b3e804d723c8b7e5b06e45

See more details on using hashes here.

Provenance

File details

Details for the file sopel_modules.wolfram-0.2.1-py2-none-any.whl.

File metadata

File hashes

Hashes for sopel_modules.wolfram-0.2.1-py2-none-any.whl
Algorithm Hash digest
SHA256 c723741eb683a918e31e063ed2882d97ac07c739b95847ff961ce4cbb2014ec3
MD5 985429968d842719dca6f95247de1bc3
BLAKE2b-256 a21fbacd91423bd350382243b59178553e3549ce2d88b9503479216d5315b23a

See more details on using hashes here.

Provenance

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