{"id":27196208,"url":"https://github.com/luizfilipezs/lets-debug","last_synced_at":"2025-07-13T13:41:13.559Z","repository":{"id":62575712,"uuid":"270230595","full_name":"luizfilipezs/lets-debug","owner":"luizfilipezs","description":"Public pip package written in Python for debugging code using terminal or cmd.","archived":false,"fork":false,"pushed_at":"2020-07-13T20:51:10.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T18:19:17.400Z","etag":null,"topics":["debugging-tools","pip","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/luizfilipezs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-07T07:35:13.000Z","updated_at":"2020-07-13T20:51:13.000Z","dependencies_parsed_at":"2022-11-03T18:55:45.768Z","dependency_job_id":null,"html_url":"https://github.com/luizfilipezs/lets-debug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luizfilipezs/lets-debug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizfilipezs%2Flets-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizfilipezs%2Flets-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizfilipezs%2Flets-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizfilipezs%2Flets-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luizfilipezs","download_url":"https://codeload.github.com/luizfilipezs/lets-debug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizfilipezs%2Flets-debug/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265151841,"owners_count":23719123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["debugging-tools","pip","python3"],"created_at":"2025-04-09T19:59:40.045Z","updated_at":"2025-07-13T13:41:13.539Z","avatar_url":"https://github.com/luizfilipezs.png","language":"Python","readme":"# lets-debug\n\n[![Build Status](https://img.shields.io/pypi/v/lets-debug.svg)](https://pypi.org/project/lets-debug/)\n\n\n## Introduction\n\nThis package allows you to debug your Python code using terminal tools.\n\n## Installation\n\n`pip install lets-debug`\n\n### Imports\n\n```python\nfrom lets_debug import terminal, DecoratorTools\n```\n\n## Reference\n\n### `terminal`\n\nThese are the available methods from `terminal`:\n\n#### `log(*args)`\n\nPrints every element passed in `*args` using blue color.\n\n#### `warn(*args)`\n\nPrints every element passed in `*args` using orange color.\n\n#### `error(*args)`\n\nPrints every element passed in `*args` using red color.\n\n#### `success(*args)`\n\nPrints every element passed in `*args` using green color.\n\n#### `clear()`\n\nClear terminal or command prompt screen.\n\n#### `count(name='counter')`\n\nCounts number of times that `name` was called using this method. It is useful for couting number of times that a function is called. See the example bellow:\n\n```python\ndef greet():\n    terminal.log('Welcome!')\n    terminal.count('greet')\n\ngreet()\ngreet()\n```\n\nThe output will be:\n\n```bash\ngreet: 1\ngreet: 2\n```\n\n#### `check_bool(boolean: bool, callback: Any)`\n\nPrints `callback` if `boolean` is `False`.\n\n#### `table(dictionary_list: List[Dict])`\n\nPrints `dictionary_list` as table.\n\n### `DecoratorTools`\n\nThese are the available methods from `DecoratorTools` class (all methods are static):\n\n#### `log(*args, type='log')`\n\nPrints every element passed in `*args` using custom color. `type` argument defines the color. The available types are `'log'`, `'warn'`, `'error'`, and `'success'`. \n\n#### `count(*args)`\n\nCounts number of times that a function was called.\n\n#### `stopwatch(*args)`\n\nCounts how long a function takes to run.\n\n#### `override(*args, **kwargs)`\n\nCheck if the current method exists in its parent object. See the example bellow:\n\n```python\nfrom lets_debug import DecoratorTools as debug\n\nclass Human:\n\n    def walk(self):\n        terminal.log('Human is walking...')\n\nclass Person(Human):\n\n    @debug.override\n    def walk(self):\n        terminal.log('Person is walking...')\n```\n\nThis code is OK. But if you remove `walk()` from `Human` class, an error message will appear in the output.\n\nIf you want the program to stop in this situations, set `get_error` option to `True`:\n\n```python\n@debug.override(get_error=True)\ndef walk(self):\n```\n\n## Contributions\n\nFeel free to use this package and to contribute on this repository with your ideas!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluizfilipezs%2Flets-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluizfilipezs%2Flets-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluizfilipezs%2Flets-debug/lists"}