Commit Graph
12 Commits
Author SHA1 Message Date
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