{ "info": { "author": "Ryan Kulla", "author_email": "rkulla@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "====\nvsrc\n====\n\nVsrc is a developer tool that finds and displays a module's Python source\nfile by searching the Module Search Path, which means the list of directories\ngiven by sys.path, the current directory, PYTHONPATH, and the installation-\ndependent default path. Therefore, Vsrc can find standard modules (like \n'string' and 'os.path'), 3rd-party modules (like pygame), and user-defined \nmodules. Vsrc works from both the command-line and from inside of Python's\ninteractive mode.\n\nNote that not all modules include Python source, for example, 'sys' is a \nC Built-in. If a .py file for the module is found, it's displayed after first\nchecking the value of the optional environment variable VSRC_VIEWER. If \nVSRC_VIEWER isn't set, then Vsrc will attempt to use the \"less\" pager (if it\nexists in the system PATH), otherwise it uses \"more\".\n\nThe value of VSRC_VIEWER can be any viewer you like, such as a normal text \neditor like vim or notepad, or a pager program like less or more. \n\nVsrc is platform-independent.\n\nSince Vsrc 0.1 (which was created July 16th, 2003) Vsrc has been rewritten\nas of July 30th, 2009 and includes some changes...\n\nIt now uses VSRC_VIEWER as an environment variable, instead of PAGER.\n\nIt now will work in Windows using cmd.exe. The default viewer it uses is\nless.exe, if you have it in your path, otherwise it uses more.exe (which \ncomes with Windows) but you can also create a VSRC_VIEWER environment \nvariable to use another viewer, such as notepad. To get less.exe, visit\nhttp://gnuwin32.sourceforge.net/packages/less.htm. If you get the setup\nprogram it will install less.exe into C:\\Program Files\\GnuWin32\\bin. Make\nsure you add this directory to your Windows %PATH%. \n\nInstalling\n==========\nThe preferred way is to use install it from pypi using pip::\n\n $ pip install vsrc\n\nthis way you can install it into any virtualenv's you might have. Or into\nyour main python installation (by running: sudo pip install vsrc). And you'll\nalso be able to uninstall it with:\n\n $ pip uninstall vsrc\n\nIf you want to run it manually from source code, you can download the tarball\nfrom pypi or clone from https://github.com/rkulla/vsrc.git and run::\n\n $ sudo python setup.py install\n\nthis will install the command-line script 'vsrc' in your bin directory and it\nwill install the vsrc.py module into your dist-packages directory.\n\nUsage\n=====\nTypical usage looks like this::\n\n Command-line: $ vsrc \n\n Interactive mode: >>> import vsrc\n >>> vsrc.vsrc('')\n\n\nExamples\n========\nTo see the \"socket\" module's corresponding socket.py source file, type::\n\n $ vsrc socket\n\nor from within Python's interactive-mode, type::\n\n >>> import vsrc\n >>> vsrc.vsrc('socket')\n\nand vsrc will automatically find socket.py--which, if you use Linux, would \nbe something like /usr/lib/python/socket.py-- and load in your viewer.\n\nTo seek out and view Pygame's sprite module's source code, type::\n\n $ vsrc pygame.sprite\n\nor::\n\n >>> from vsrc import vsrc\n >>> vsrc('pygame.sprite')\n\nTo view a Python source file from the current directory, do::\n\n >>> vsrc('foo')\n\nas long as you have a file called 'foo.py' in the current dir.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rkulla/vsrc", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "vsrc", "package_url": "https://pypi.org/project/vsrc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/vsrc/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rkulla/vsrc" }, "release_url": "https://pypi.org/project/vsrc/1.1.1/", "requires_dist": null, "requires_python": null, "summary": "Easily find and view a Python module's source code", "version": "1.1.1" }, "last_serial": 537323, "releases": { "0.1": [], "1.0": [], "1.1.1": [ { "comment_text": "", "digests": { "md5": "f92fdb019941be02eb3ce46af81dcaaf", "sha256": "815390c4bd2fa9c3771a95b933d04adad65c7d143380524be837ebb5cd9f6872" }, "downloads": -1, "filename": "vsrc-1.1.1.tar.gz", "has_sig": false, "md5_digest": "f92fdb019941be02eb3ce46af81dcaaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5015, "upload_time": "2013-01-07T01:08:48", "url": "https://files.pythonhosted.org/packages/9b/6a/ecd847dedca40a8abdd33390646f17a6bd741937b9ee67c4d1db9d904066/vsrc-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f92fdb019941be02eb3ce46af81dcaaf", "sha256": "815390c4bd2fa9c3771a95b933d04adad65c7d143380524be837ebb5cd9f6872" }, "downloads": -1, "filename": "vsrc-1.1.1.tar.gz", "has_sig": false, "md5_digest": "f92fdb019941be02eb3ce46af81dcaaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5015, "upload_time": "2013-01-07T01:08:48", "url": "https://files.pythonhosted.org/packages/9b/6a/ecd847dedca40a8abdd33390646f17a6bd741937b9ee67c4d1db9d904066/vsrc-1.1.1.tar.gz" } ] }