{"action":"created","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/15582","repository_url":"https://api.github.com/repos/sympy/sympy","labels_url":"https://api.github.com/repos/sympy/sympy/issues/15582/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/15582/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/15582/events","html_url":"https://github.com/sympy/sympy/issues/15582","id":387290448,"node_id":"MDU6SXNzdWUzODcyOTA0NDg=","number":15582,"title":"Non-private/hidden way of getting sympy version","user":{"login":"MichaelClerx","id":517644,"node_id":"MDQ6VXNlcjUxNzY0NA==","avatar_url":"https://avatars1.githubusercontent.com/u/517644?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaelClerx","html_url":"https://github.com/MichaelClerx","followers_url":"https://api.github.com/users/MichaelClerx/followers","following_url":"https://api.github.com/users/MichaelClerx/following{/other_user}","gists_url":"https://api.github.com/users/MichaelClerx/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelClerx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelClerx/subscriptions","organizations_url":"https://api.github.com/users/MichaelClerx/orgs","repos_url":"https://api.github.com/users/MichaelClerx/repos","events_url":"https://api.github.com/users/MichaelClerx/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelClerx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-04T13:39:58Z","updated_at":"2018-12-04T15:41:10Z","closed_at":"2018-12-04T15:22:10Z","author_association":"NONE","body":"Hi all,\r\n\r\nAs far as I've been able to figure out, the only way to get Sympy's version number from within Python is to use the double underscore `.__version__` property (see for example the top google result for [\"sympy version\"](https://stackoverflow.com/questions/29824790)).\r\n\r\nAs double underscore properties are often \"touch at your own risk\" and/or undocumented, it'd be good to have some public way of accessing the sympy version, e.g. a `version()` method.\r\n\r\nSorry if this has already been done / discussed before!"},"comment":{"url":"https://api.github.com/repos/sympy/sympy/issues/comments/444145485","html_url":"https://github.com/sympy/sympy/issues/15582#issuecomment-444145485","issue_url":"https://api.github.com/repos/sympy/sympy/issues/15582","id":444145485,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDE0NTQ4NQ==","user":{"login":"moorepants","id":276007,"node_id":"MDQ6VXNlcjI3NjAwNw==","avatar_url":"https://avatars0.githubusercontent.com/u/276007?v=4","gravatar_id":"","url":"https://api.github.com/users/moorepants","html_url":"https://github.com/moorepants","followers_url":"https://api.github.com/users/moorepants/followers","following_url":"https://api.github.com/users/moorepants/following{/other_user}","gists_url":"https://api.github.com/users/moorepants/gists{/gist_id}","starred_url":"https://api.github.com/users/moorepants/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moorepants/subscriptions","organizations_url":"https://api.github.com/users/moorepants/orgs","repos_url":"https://api.github.com/users/moorepants/repos","events_url":"https://api.github.com/users/moorepants/events{/privacy}","received_events_url":"https://api.github.com/users/moorepants/received_events","type":"User","site_admin":false},"created_at":"2018-12-04T15:41:10Z","updated_at":"2018-12-04T15:41:10Z","author_association":"MEMBER","body":"Yes, really. I've been using all these packages for over 10 years and it has been the standard. Using `__version__` is perfectly ok:\r\n\r\n```\r\n\r\nIn [1]: import numpy                                                                                                                                                                                               \r\n\r\nIn [2]: import scipy                                                                                                                                                                                               \r\n\r\nIn [3]: import sympy                                                                                                                                                                                               \r\nim\r\nIn [4]: import pandas                                                                                                                                                                                              \r\n\r\nIn [5]: numpy.__version__                                                                                                                                                                                          \r\nOut[5]: '1.15.2'\r\n\r\nIn [6]: scipy.__version__                                                                                                                                                                                          \r\nOut[6]: '1.1.0'\r\n\r\nIn [7]: sympy.__version__                                                                                                                                                                                          \r\nOut[7]: '1.3'\r\n\r\nIn [8]: pandas.__version__                                                                                                                                                                                         \r\nOut[8]: '0.23.4'\r\n```\r\n\r\nIt is undocumented because it is an informal standard in Python libraries."}}
{"actor":{"display_login":"moorepants"}}