space-tracer


Namespace-tracer JSON
Version 4.11.0 PyPI version JSON
download
home_pagehttps://donkirkby.github.io/live-py-plugin/
SummaryTrade time for space when debugging your code.
upload_time2023-10-04 04:57:40
maintainer
docs_urlNone
authorDon Kirkby
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Space Tracer
============
Trade Time for Space When You Debug
-----------------------------------
The Space Tracer displays what happens to your code so you can read through it
like a book, instead of stepping through it like most debuggers. For example,
here's a simple script that assigns a variable, then loops a few times making
changes to that variable, before printing out the final message.

    message = 'Hello, World'
    for i in range(3):
        message += '!'
    print(message)
   
A regular debugger would let you set break points, look at variable values, and
step through the code. Space Tracer shows you the code with all of the
variable assignments, and the loop iterations in columns. Here, you see the
script on the left, and the variable values and loops on the right, so you can
read through what happened, like reading a book.

    message = 'Hello, World' | message = 'Hello, World' 
    for i in range(3):       | i = 0                     | i = 1                      | i = 2 
        message += '!'       | message = 'Hello, World!' | message = 'Hello, World!!' | message = 'Hello, World!!!' 
    print(message)           | print('Hello, World!!!') 

You can run Space Tracer as a command-line tool, or you can use it in the
[Live Coding in Python] plugins for PyCharm, Emacs, and Sublime Text. See the
[Getting Started] page for a full introduction.

Installing Space Tracer
-----------------------
Space Tracer is a regular Python package, so you can install it with
`pip install space_tracer`. If you haven't installed Python packages before,
read Brett Cannon's [quick-and-dirty guide].

Then copy the script above into a file called `hello.py`, and run it with the
`space_tracer` command:

    $ space_tracer hello.py
    message = 'Hello, World' | message = 'Hello, World' 
    for i in range(3):       | i = 0                     | i = 1                      | i = 2 
        message += '!'       | message = 'Hello, World!' | message = 'Hello, World!!' | message = 'Hello, World!!!' 
    print(message)           | print('Hello, World!!!') 
    $

[Live Coding in Python]: https://donkirkby.github.io/live-py-plugin/
[Getting Started]: https://donkirkby.github.io/live-py-plugin/starting_space_tracer.html
[quick-and-dirty guide]: https://snarky.ca/a-quick-and-dirty-guide-on-how-to-install-packages-for-python/

            

Raw data

            {
    "_id": null,
    "home_page": "https://donkirkby.github.io/live-py-plugin/",
    "name": "space-tracer",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Don Kirkby",
    "author_email": "donkirkby@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6f/76/a612f7c3e644994d9d02392bd48e735c8050d37b843f6a6231d7035b6faf/space_tracer-4.11.0.tar.gz",
    "platform": null,
    "description": "Space Tracer\n============\nTrade Time for Space When You Debug\n-----------------------------------\nThe Space Tracer displays what happens to your code so you can read through it\nlike a book, instead of stepping through it like most debuggers. For example,\nhere's a simple script that assigns a variable, then loops a few times making\nchanges to that variable, before printing out the final message.\n\n    message = 'Hello, World'\n    for i in range(3):\n        message += '!'\n    print(message)\n   \nA regular debugger would let you set break points, look at variable values, and\nstep through the code. Space Tracer shows you the code with all of the\nvariable assignments, and the loop iterations in columns. Here, you see the\nscript on the left, and the variable values and loops on the right, so you can\nread through what happened, like reading a book.\n\n    message = 'Hello, World' | message = 'Hello, World' \n    for i in range(3):       | i = 0                     | i = 1                      | i = 2 \n        message += '!'       | message = 'Hello, World!' | message = 'Hello, World!!' | message = 'Hello, World!!!' \n    print(message)           | print('Hello, World!!!') \n\nYou can run Space Tracer as a command-line tool, or you can use it in the\n[Live Coding in Python] plugins for PyCharm, Emacs, and Sublime Text. See the\n[Getting Started] page for a full introduction.\n\nInstalling Space Tracer\n-----------------------\nSpace Tracer is a regular Python package, so you can install it with\n`pip install space_tracer`. If you haven't installed Python packages before,\nread Brett Cannon's [quick-and-dirty guide].\n\nThen copy the script above into a file called `hello.py`, and run it with the\n`space_tracer` command:\n\n    $ space_tracer hello.py\n    message = 'Hello, World' | message = 'Hello, World' \n    for i in range(3):       | i = 0                     | i = 1                      | i = 2 \n        message += '!'       | message = 'Hello, World!' | message = 'Hello, World!!' | message = 'Hello, World!!!' \n    print(message)           | print('Hello, World!!!') \n    $\n\n[Live Coding in Python]: https://donkirkby.github.io/live-py-plugin/\n[Getting Started]: https://donkirkby.github.io/live-py-plugin/starting_space_tracer.html\n[quick-and-dirty guide]: https://snarky.ca/a-quick-and-dirty-guide-on-how-to-install-packages-for-python/\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Trade time for space when debugging your code.",
    "version": "4.11.0",
    "project_urls": {
        "Bug Reports": "https://github.com/donkirkby/live-py-plugin/issues",
        "Homepage": "https://donkirkby.github.io/live-py-plugin/",
        "Source": "https://github.com/donkirkby/live-py-plugin"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "29a8775d37e292234b321635ef3a0a993a929760e9e770d6fa431093c42ecd7c",
                "md5": "6263c05ebda40fedc8fee82ceae028fb",
                "sha256": "fd938bc13640032c1ded6663bb71c3559340f1e481ffcee8444a5d194ab61581"
            },
            "downloads": -1,
            "filename": "space_tracer-4.11.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6263c05ebda40fedc8fee82ceae028fb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 42486,
            "upload_time": "2023-10-04T04:57:38",
            "upload_time_iso_8601": "2023-10-04T04:57:38.837829Z",
            "url": "https://files.pythonhosted.org/packages/29/a8/775d37e292234b321635ef3a0a993a929760e9e770d6fa431093c42ecd7c/space_tracer-4.11.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6f76a612f7c3e644994d9d02392bd48e735c8050d37b843f6a6231d7035b6faf",
                "md5": "4c78bcac28f63b85bdb738a3533cc608",
                "sha256": "be9e81ae0ee9e77a387ebd6e429e19a6f51a31b59e5ea84c870941180da4f82f"
            },
            "downloads": -1,
            "filename": "space_tracer-4.11.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4c78bcac28f63b85bdb738a3533cc608",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 79436,
            "upload_time": "2023-10-04T04:57:40",
            "upload_time_iso_8601": "2023-10-04T04:57:40.710245Z",
            "url": "https://files.pythonhosted.org/packages/6f/76/a612f7c3e644994d9d02392bd48e735c8050d37b843f6a6231d7035b6faf/space_tracer-4.11.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-04 04:57:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "donkirkby",
    "github_project": "live-py-plugin",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "space-tracer"
}
        
Elapsed time: 0.11243s