{"id":17003835,"url":"https://github.com/cldwalker/wolf","last_synced_at":"2026-02-16T08:31:44.649Z","repository":{"id":1366466,"uuid":"1316544","full_name":"cldwalker/wolf","owner":"cldwalker","description":"Devour computational knowledge on the commandline with wolframalpha","archived":false,"fork":false,"pushed_at":"2012-08-08T03:31:50.000Z","size":128,"stargazers_count":15,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-06T16:52:35.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cldwalker.png","metadata":{"files":{"readme":"README.rdoc","changelog":"CHANGELOG.rdoc","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-02-01T15:27:45.000Z","updated_at":"2024-11-27T13:43:02.000Z","dependencies_parsed_at":"2022-07-29T10:49:41.981Z","dependency_job_id":null,"html_url":"https://github.com/cldwalker/wolf","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cldwalker/wolf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fwolf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fwolf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fwolf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fwolf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cldwalker","download_url":"https://codeload.github.com/cldwalker/wolf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fwolf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29503809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T08:14:25.707Z","status":"ssl_error","status_checked_at":"2026-02-16T08:14:25.334Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T04:32:50.307Z","updated_at":"2026-02-16T08:31:44.633Z","avatar_url":"https://github.com/cldwalker.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"== Description\nDevour computational knowledge on the commandline with {wolframalpha}[http://wolframalpha.com].\n\n== Install\n\nTo install this gem:\n\n    gem install wolf\n\n== Setup\n\nGet a free Wolfram Appid (api key) by {creating an account\nhere}[http://developer.wolframalpha.com/portal/apisignup.html] and\nthen clicking on the 'Get an APPID' button.\n\nOnce you have your own appid, set it in your shell, preferably in your ~/.zshrc or ~/.bashrc:\n\n    export WOLFRAM_APPID='YOURKEY'\n\nOr you can set your appid in your ~/.wolfrc:\n  \n    Wolfram.appid = \"YOURKEY\"\n\n== Usage\n\nwolf displays results to wolfram queries as tables:\n\n    # Calculate distance and travel time between places\n    $ wolf boston to new york\n    Distance\n    +-------------+\n    | 184.3 miles |\n    +-------------+\n\n    Direct travel times\n    +---------------------+-------------------------+\n    | aircraft  (550 mph) | 20 minutes              |\n    | sound               | 14 minutes  30 seconds  |\n    | light in fiber      | 1.39 ms  (milliseconds) |\n    | light in vacuum     | 0.99 ms  (milliseconds) |\n    +---------------------+-------------------------+\n    ...\n\n    # Solve an equation\n    ru wolf 'x^3 - sinx = e^-x'\n    +--------------------+---------------------------+\n    | Input              | x^3-sin(x) = e^(-x)       |\n    | Numerical solution | x ~~ 1.068531813164789... |\n    +--------------------+---------------------------+\n\n    # Compare stocks\n    $ wolf goog, apple, microsoft\n    Latest trades\n    +------+---------------+--------+----------------+--------------------+\n    | GOOG | $600.30 (GOOG | NASDAQ | 4:02:42 pm EST | 5 hrs 41 mins ago) |\n    | AAPL | $339.30 (AAPL | NASDAQ | 4:21:45 pm EST | 5 hrs 22 mins ago) |\n    | MSFT | $27.73 (MSFT  | NASDAQ | 4:00:00 pm EST | 5 hrs 43 mins ago) |\n    +------+---------------+--------+----------------+--------------------+\n\n    Fundamentals and financials\n    +--------------------------+----------------+----------------+----------------+\n    |                          | Google         | Apple          | Microsoft      |\n    +--------------------------+----------------+----------------+----------------+\n    | market cap               | $192 billion   | $312.6 billion | $233 billion   |\n    | revenue                  | $27.55 billion | $76.28 billion | $66.69 billion |\n    | employees                | 23331          | 49400          | 89000          |\n    ...\n\n    # Display local weather info\n    $ wolf weather\n    Latest recorded weather for boston, massachusetts\n    +-------------------+----------------------------+\n    | temperature       | 34 °F  (wind chill: 25 °F) |\n    | conditions        | cloudy                     |\n    | relative humidity | 47%  (dew point: 16 °F)    |\n    | wind speed        | 12 mph                     |\n    +-------------------+----------------------------+\n    ...\n\nIn some cases wolf displays information more concisely than the website itself. Compare {the\nwebsite}[http://www.wolframalpha.com/input/?i=pi] to:\n \n    $ wolf pi\n    +-----------------------------+---------------------------------------------------------------------------------------+\n    | Input                       | pi                                                                                    |\n    | Decimal approximation       | 3.1415926535897932384626433832795028841971693993751058209749...                       |\n    | Property                    | pi is a transcendental number                                                         |\n    | Continued fraction          | [3; 7, 15, 1, 292, 1, 1, 1, 2, 1, 3, 1, 14, 2, 1, 1, 2, 2, 2, 2, 1, 84, 2, 1, 1, ...] |\n    | Alternative representations | pi = 180 °                                                                            |\n    | Series representations      | pi = 4 sum_(k=0)^infinity(-1)^k/(2 k+1)                                               |\n    | Integral representations    | pi = 2 integral_0^infinity1/(t^2+1) dt                                                |\n    +-----------------------------+---------------------------------------------------------------------------------------+\n\nIf you clicked on the previous link, you'll notice links to more information about the current result.\nwolf makes this available via the menu option (-m):\n\n    $ wolf pi -m\n\n    +-----------------------------+---------------------------------------------------------------------------------------+\n    | Input                       | pi                                                                                    |\n    | Decimal approximation       | 3.1415926535897932384626433832795028841971693993751058209749...                       |\n    | Property                    | pi is a transcendental number                                                         |\n    | Continued fraction          | [3; 7, 15, 1, 292, 1, 1, 1, 2, 1, 3, 1, 14, 2, 1, 1, 2, 2, 2, 2, 1, 84, 2, 1, 1, ...] |\n    | Alternative representations | pi = 180 °                                                                            |\n    | Series representations      | pi = 4 sum_(k=0)^infinity(-1)^k/(2 k+1)                                               |\n    | Integral representations    | pi = 2 integral_0^infinity1/(t^2+1) dt                                                |\n    +-----------------------------+---------------------------------------------------------------------------------------+\n\n    ** LINKS **\n    +--------+-----------------------------+---------------+\n    | number | Section                     | Choice        |\n    +--------+-----------------------------+---------------+\n    | 1      | Decimal approximation       | More digits   |\n    | 2      | Continued fraction          | Fraction form |\n    | 3      | Continued fraction          | More terms    |\n    | 4      | Alternative representations | More          |\n    | 5      | Series representations      | More          |\n    | 6      | Integral representations    | More          |\n    +--------+-----------------------------+---------------+\n    Choose one link to requery: \n\n    # User types '1'\n    Choose one link to requery: 1\n\n    # To get back\n    +-----------------------------+-------------------------------------------------------------------------------------------------------------------------+\n    | Input                       | pi                                                                                                                      |\n    | Decimal approximation       | 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282... |\n    | Property                    | pi is a transcendental number                                                                                           |\n    | Continued fraction          | [3; 7, 15, 1, 292, 1, 1, 1, 2, 1, 3, 1, 14, 2, 1, 1, 2, 2, 2, 2, 1, 84, 2, 1, 1, ...]                                   |\n    | Alternative representations | pi = 180 °                                                                                                              |\n    | Series representations      | pi = 4 sum_(k=0)^infinity(-1)^k/(2 k+1)                                                                                 |\n    | Integral representations    | pi = 2 integral_0^infinity1/(t^2+1) dt                                                                                  |\n    +-----------------------------+-------------------------------------------------------------------------------------------------------------------------+\n\nwolf has more options you can explore with:\n\n    $ wolf -h\n\nSome examples of options:\n\n    # Only display tables whose titles match the case insensitive regex\n    $ wolf .me -t=name\n    Name\n    +------------------+------------------------+\n    | full name        | Republic of Montenegro |\n    | full native name | Republika Crna Gora    |\n    | internet code    | .me                    |\n    +------------------+------------------------+\n\n    # Print a query's xml response\n    $ wolf -x 4th monday in march\n    \u003cqueryresult success=\"true\" error=\"false\" numpods=\"9\" datatypes=\"CalendarEvent,City\" timedout=\"\"\n    timing=\"1.985\" parsetiming=\"0.559\" parsetimedout=\"false\" recalculate=\"\" version=\"2.0\"\u003e\n    ...\n\n    # Load local xml file(s) to read in console\n    $ wolf -l fourth_monday.xml\n    Result\n    +------------------------+\n    | Monday, March 28, 2011 |\n    +------------------------+\n    ...\n\n    # Append additional params to a query with --PARAM=VALUE\n    # Read API docs for available query params\n    $ wolf --format=html 50 euros\n    \u003cqueryresult success=\"true\" error=\"false\" numpods=\"4\" datatypes=\"Quantity\" timedout=\"\"\n    timing=\"2.566\" parsetiming=\"0.115\" parsetimedout=\"false\" recalculate=\"\" version=\"2.0\"\u003e\n     \u003cpod title=\"Input interpretation\" scanner=\"Identity\" id=\"Input\" position=\"100\" error=\"false\"\n     numsubpods=\"0\"\u003e\n       \u003cmarkup\u003e\n       ...\n\n== Links\n* {Many query examples}[http://www.wolframalpha.com/examples/]\n* {API docs (pdf)}[https://products.wolframalpha.com/docs/WolframAlpha-API-Reference.pdf]\n\n== Todo\n* Tests!\n* Better aliasing of commands\n* option to tab delimit results for easy nix slicing + dicing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcldwalker%2Fwolf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcldwalker%2Fwolf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcldwalker%2Fwolf/lists"}