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.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”
Initial release
Adopted from https://github.com/maxpowa/inumuta-modules/blob/e0b195c/wolfram.py with permission
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file sopel_modules.wolfram-0.2.0.zip
.
File metadata
- Download URL: sopel_modules.wolfram-0.2.0.zip
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8edd5a6db4f1ae72ba0d59fe39ea719d153a3133861a462b28a9c941ecde391d |
|
MD5 | db52bdf95d18592378874dbe1a2cdf3d |
|
BLAKE2b-256 | 5d93b72e811b53b1ec5f60064da55d89ce66421bb3cda4c9207ebb2359395227 |
Provenance
File details
Details for the file sopel_modules.wolfram-0.2.0.tar.gz
.
File metadata
- Download URL: sopel_modules.wolfram-0.2.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0948c585aa61ee75457ca94815bab9f78a4f511d1c25da41549df52a4405f69b |
|
MD5 | 93df5226f5f66ec009f70bc2ca81bf31 |
|
BLAKE2b-256 | c1572a26b32d0484c5a560f4d12c05b0b4b245eea4af569ebcaeb468ac59017d |
Provenance
File details
Details for the file sopel_modules.wolfram-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: sopel_modules.wolfram-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7896fa6b60525e03e00bdd4cd92ef60b038fc446154a26d8740c609aad29c46b |
|
MD5 | 8fa26ada4eec98fe0093bc35be8d9bd0 |
|
BLAKE2b-256 | 2ce3659d8a40f09799e8d065640c31efa522421aaeb6b8389f64c815b4e269b6 |
Provenance
File details
Details for the file sopel_modules.wolfram-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: sopel_modules.wolfram-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93c2b1d63bda1aa860a9f1ee4b5f37b7a906586080fc80ea6a37dbf43034ba10 |
|
MD5 | 6491e40684cb0c360ef238139765506f |
|
BLAKE2b-256 | 6a0ff41c885e889eb59c5d2e84307c0292ba4f6a6701542b9319d8126550079a |
Provenance
File details
Details for the file sopel_modules.wolfram-0.2.0-py2-none-any.whl
.
File metadata
- Download URL: sopel_modules.wolfram-0.2.0-py2-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64f49dcd54bfbf264805f5960d63e088aad2de47438dd231b7a300aa2f33890b |
|
MD5 | a44ee2395bc2d1a2ef2abe76611400af |
|
BLAKE2b-256 | 635d6f995a6f654740f3278c7df0e97b584cfc69f1608d9cc0c732c9a9fcebd7 |