bugprint


Namebugprint JSON
Version 0.3.3 PyPI version JSON
download
home_pagehttps://github.com/erikluu/bugprint
SummaryDebug printing made easy.
upload_time2024-05-07 02:08:55
maintainerNone
docs_urlNone
authorErik Luu
requires_pythonNone
licenseMIT
keywords python debug print
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Bugprint Package

You may call `bp_setup(verbose=True)` to buffer the printed message with dashes (`-`) to 80 characters.

**Example Usage**

```python
from bugprint import bp

def add(x, y):
    print(f"Adding {x} + {y} = {x + y}")
    bp()

def subtract(x, y):
    print(f"Subtracting {x} - {y} = {x - y}")
    bp()

# Call bp() at specific lines in your code
bp()
add(1, 2)
bp("Addition Complete")
subtract(5, 4)
bp()
```

**Output**

```
DEBUG: tests.py:14
Adding 1 + 2 = 3
DEBUG: tests.py:7
DEBUG: tests.py:16 Addition Complete
Subtracting 5 - 4 = 1
DEBUG: tests.py:11
DEBUG: tests.py:18
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/erikluu/bugprint",
    "name": "bugprint",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, debug, print",
    "author": "Erik Luu",
    "author_email": "eeluu19@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/97/b9/18ae00aa41ab397c1a7220d07f8cba86b927c492be03d9482459b48c4b46/bugprint-0.3.3.tar.gz",
    "platform": null,
    "description": "\n# Bugprint Package\n\nYou may call `bp_setup(verbose=True)` to buffer the printed message with dashes (`-`) to 80 characters.\n\n**Example Usage**\n\n```python\nfrom bugprint import bp\n\ndef add(x, y):\n    print(f\"Adding {x} + {y} = {x + y}\")\n    bp()\n\ndef subtract(x, y):\n    print(f\"Subtracting {x} - {y} = {x - y}\")\n    bp()\n\n# Call bp() at specific lines in your code\nbp()\nadd(1, 2)\nbp(\"Addition Complete\")\nsubtract(5, 4)\nbp()\n```\n\n**Output**\n\n```\nDEBUG: tests.py:14\nAdding 1 + 2 = 3\nDEBUG: tests.py:7\nDEBUG: tests.py:16 Addition Complete\nSubtracting 5 - 4 = 1\nDEBUG: tests.py:11\nDEBUG: tests.py:18\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Debug printing made easy.",
    "version": "0.3.3",
    "project_urls": {
        "Homepage": "https://github.com/erikluu/bugprint"
    },
    "split_keywords": [
        "python",
        " debug",
        " print"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3d410e714b402ad23393d08b4c4bbb42939fbf5304e2eed7621d745b3e3840e9",
                "md5": "ab1df303a3e3880076929612d691a380",
                "sha256": "a296358de03a04aa766b8dd884e9065f8bb29400e07b9472d93fef70b5d20657"
            },
            "downloads": -1,
            "filename": "bugprint-0.3.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ab1df303a3e3880076929612d691a380",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3751,
            "upload_time": "2024-05-07T02:08:52",
            "upload_time_iso_8601": "2024-05-07T02:08:52.971326Z",
            "url": "https://files.pythonhosted.org/packages/3d/41/0e714b402ad23393d08b4c4bbb42939fbf5304e2eed7621d745b3e3840e9/bugprint-0.3.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97b918ae00aa41ab397c1a7220d07f8cba86b927c492be03d9482459b48c4b46",
                "md5": "7440efb1a722337998cf33401ff714d9",
                "sha256": "179718f6c39b568b58e016c1020dae8d9ef7e9dcc670fe8714576c6d205b6251"
            },
            "downloads": -1,
            "filename": "bugprint-0.3.3.tar.gz",
            "has_sig": false,
            "md5_digest": "7440efb1a722337998cf33401ff714d9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2712,
            "upload_time": "2024-05-07T02:08:55",
            "upload_time_iso_8601": "2024-05-07T02:08:55.099905Z",
            "url": "https://files.pythonhosted.org/packages/97/b9/18ae00aa41ab397c1a7220d07f8cba86b927c492be03d9482459b48c4b46/bugprint-0.3.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-07 02:08:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "erikluu",
    "github_project": "bugprint",
    "github_not_found": true,
    "lcname": "bugprint"
}
        
Elapsed time: 0.28857s