Commit Graph

94 Commits

Author SHA1 Message Date
Jason R. Coombs bee228a1d5 Provide an interface to supply multiple parameters (even with the same name) to the query. Renamed 'query' to 'input' for clarity and to align with the API. 2016-09-03 11:18:40 -04:00
Jason R. Coombs 788746c595 Allow other query parameters to be passed 2016-09-03 11:08:41 -04:00
Jason R. Coombs e98b5d74ca Trim whitespace 2016-09-03 11:05:48 -04:00
Jason R. Coombs 43f656f296 Merge pull request #7 from Zenohm/master
Restructuring
2016-09-03 10:55:50 -04:00
Isaac Smith 7d3453ec9a Grouped Pod and Subpod classes. 2016-05-14 20:19:16 -04:00
Isaac Smith 13c2f7700d Update CHANGES.rst 2016-05-14 20:12:18 -04:00
Isaac Smith 570998719b Fix unseen error.
Result of one of the previous changes. Almost didn't notice it.
2016-05-14 20:08:00 -04:00
Isaac Smith 1d8d2451bb Fix unseen error.
Praised be rubber ducky.
2016-05-14 20:00:16 -04:00
Isaac Smith 5675e1ec2c Nevermind.
Yeah, it'll break some stuff.
2016-05-14 19:33:27 -04:00
Isaac Smith 07a8a2d804 Update example 2016-05-14 19:28:50 -04:00
Isaac Smith d3046c7ede Make tests reflect changes 2016-05-14 19:24:48 -04:00
Isaac Smith a784c88fa1 Simplify naming convetion
Aligns more with the original implementation.
2016-05-14 19:23:50 -04:00
Isaac Smith 9331558340 Align with original methods
Rewrote the results method a bit so it returned something similar to the original result, which will make the transition easier.
2016-05-14 19:13:58 -04:00
Zenohm 48ff24daa9 It's a change. :D
Contrary to what I thought, this update appears to be mostly compatible with all the code listed that came before. All generators have been switched out for lists so that information can be used from one location. If this is determined to somehow have an impact despite Wolfram Alpha not being expected to return oodles of information, then the code can be easily rewritten to use generators instead of lists. Lists are simply more convenient when experimenting with the source code.
2016-05-14 18:50:56 -04:00
Zenohm 643934b950 Explained limitations, offered alternative
Added a section at the bottom explaining what a developer should do if they need access to information that the Wolfram Alpha API provides but that isn't built into the interface. Because of the way this update handles the API's replies the information is easy to access using builtin data types.
2016-05-14 18:37:44 -04:00
Zenohm 363ccf248d Noted severe change.
These changes will most likely break most code that relies on this library.
Using generators is great and all, but if you want to query Wolfram Alpha for more complex information with
more context this library needs to be able to do that and be expandable at the same time. There's a lot more to Wolfram Alpha and the Python API should be able to access that content in a uniform way.
2016-05-14 18:27:38 -04:00
Zenohm 8ee1dd0e09 Update readme and add information. 2016-05-14 18:09:28 -04:00
Zenohm bb3ee3cdc3 Documentation 2016-05-14 17:49:26 -04:00
Zenohm 8b31e9701d Merge pull request #1 from Zenohm/Zenohm-redesign
Consistency matters.
2016-05-14 17:28:24 -04:00
Zenohm 55567d4732 Add dependency 2016-05-14 17:28:10 -04:00
Zenohm f653d1e3a9 Consistency matters.
Redesign how information is stored and accessed. This way code can be written once. A developer using this API should not have to build contingencies just because Wolfram Alpha changes its output. The API should handle that.
These changes move the parsing of the tree out of the Wolfram API's returned XML and into Python dictionaries. This allows the full suite of tools that work with Python dictionaries to be used as well as simplifying and unifying how the responses should be handled.
In addition, I have added consistencies in certain areas that allow information to be accessed in one, unified way; regardless of how it would otherwise have been formatted by the library.
With this I want to encourage simplicity. You shouldn't have to look back through the code to figure out exactly what is being iterated over when someone decided to write iter(self) instead of simply iter(self.pods).
Also moved the Client class to the top of the file where it can be immediately seen.
2016-05-14 17:24:48 -04:00
Jason R. Coombs bcd372031d Replace latent Bitbucket reference. 2016-04-29 10:48:12 -04:00
Jason R. Coombs 4dfb36ed22 Added tag 2.4 for changeset 877f5698c7e7 2016-04-29 10:35:06 -04:00
Jason R. Coombs d773062978 Add password for deployment 2016-04-29 10:12:34 -04:00
Jason R. Coombs 8c81096e91 Update changelog 2016-04-29 10:07:21 -04:00
Jason R. Coombs bf3ab00e18 Fix package name and description 2016-04-29 10:31:36 -04:00
Jason R. Coombs 4366902589 Merge with latest skeleton 2016-04-29 10:06:30 -04:00
Jason R. Coombs 29d9ebee01 Update comment to reflect the Github-backed skeleton model (preferred to the generation library-backed model). 2016-04-29 09:32:33 -04:00
Jason R. Coombs 6bb210af63 Merge pull request #6 from dgw/https-api
Switch to HTTPS API URL
2016-04-29 08:43:57 -04:00
dgw 55c362187b Switch to HTTPS API URL
This alphabet soup closes #5.
2016-04-29 07:00:55 -05:00
Jason R. Coombs 04528bdf29 Move Python 3.5 condition to 'on' section 2016-04-16 15:22:52 +01:00
Jason R. Coombs 01e953bac9 Add support for linking to issues and adding datestamps to changelog entries. 2016-04-02 22:23:15 -04:00
Jason R. Coombs 58f71d1e2b Remove duplicate provider line 2016-04-02 22:03:05 -04:00
Jason R. Coombs 752b1096b8 Add PyPI deployment 2016-04-02 21:46:39 -04:00
Jason R. Coombs 40f63d7ff8 Added tag 2.3 for changeset 8e390f13f30a 2016-03-10 22:14:39 -05:00
Jason R. Coombs ac1789f815 Update changelog 2016-03-10 22:14:31 -05:00
Jason R. Coombs 65b649869b Derive description, url, and namespace_packages from name 2016-03-05 08:56:02 -05:00
Jason R. Coombs b5982a5472 Learning from lessons in the keyring 8.4 release (https://github.com/jaraco/keyring/issues/210), always clean the build artifacts before cutting a release. 2016-02-15 04:59:44 -05:00
Jason R. Coombs 9f142dd564 Added tag 2.2 for changeset 306d995b9d93 2016-01-23 09:41:47 -05:00
Jason R. Coombs 0aa45b748e Update changelog 2016-01-23 09:41:22 -05:00
Jason R. Coombs 86c5a3fcb6 Merge pull request #4 from Milek7/master
support for images
2016-01-23 08:50:15 -05:00
milek7 7c2f7ebb23 support for images 2016-01-23 13:09:26 +01:00
Jason R. Coombs 2269227321 Added tag 2.1 for changeset bf4915f3ec24 2016-01-18 17:03:14 -05:00
Jason R. Coombs cff8e08013 Use simpler syntax now supported by pmxbot. 2016-01-18 17:02:58 -05:00
Jason R. Coombs 21f4044ef1 Added tag 2.0 for changeset 06fa3ceb4662 2016-01-18 16:25:44 -05:00
Jason R. Coombs 1299a03618 Merge skeleton updates 2016-01-18 16:22:17 -05:00
Jason R. Coombs 648a4b5aac For tests, also disable the API key. This is the API key that was seeing high usage. 2016-01-18 16:21:00 -05:00
Jason R. Coombs 5fc802f6e7 Remove hard-coded API key from the library. 2016-01-18 16:07:31 -05:00
Jason R. Coombs 6d571b47f8 Update copyright 2016-01-01 09:03:11 -05:00
Jason R. Coombs 8277707492 Upon further reading, hg-git supports .gitignore, so omit .hgignore. 2016-01-01 08:35:39 -05:00