ffb


Nameffb JSON
Version 0.0.7 PyPI version JSON
download
home_pagehttps://github.com/find-fucking-bug
SummaryFind Fucking Bug
upload_time2024-09-10 09:02:57
maintainerNone
docs_urlNone
authorAli Yaman, Umut Deniz
requires_pythonNone
licenseMIT
keywords find fucking bug error handling debugging tool
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # FFB: Find Fucking Bug
[![pypi](https://img.shields.io/pypi/v/ffb.svg?style=for-the-badge)](https://pypi.python.org/pypi/ffb)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg?style=for-the-badge)](https://www.gnu.org/licenses/gpl-3.0)
<a href="https://pypi.org/project/ffb" target="_blank">
    <img src="https://img.shields.io/pypi/pyversions/ffb.svg?style=for-the-badge" alt="Supported Python versions">
</a>
![Code Style - Ruff](https://img.shields.io/badge/code%20style-ruff-30173D.svg?style=for-the-badge)
![Pre Commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=for-the-badge)
[![ci](https://github.com/find-fucking-bug/ffb/workflows/CI/badge.svg?style=for-the-badge)](https://github.com/find-fucking-bug/ffb/actions?query=workflow:CI)

**FFB** is a Python package designed to simplify debugging by analyzing your terminal output and providing concise solutions and explanations for errors. Whether you're new to coding or an experienced developer, FFB aims to reduce the time spent deciphering cryptic error messages and helps you find solutions faster.

</hr>
<img align="left"  src="https://github.com/find-fucking-bug/ffb/blob/ffb-3/images/ffb.gif?raw=true">
</hr>


## Features

- Automatically analyzes the last terminal output.
- Provides clear explanations of errors.
- Suggests solutions with code examples.
- Easy-to-use command-line interface.

## Installation

You can install **FFB** via pip:

```bash
pip install ffb
```
## Usage

To use FFB, simply run your Python script as usual. If an error occurs, call ffb to analyze the last output.

## Example
Given the following Python code:

```python
def divide_numbers(a, b):
    result = a / b
    print(f"Result: {result}")

divide_numbers(10, 0)
```

Running this code will produce the following error:

```python
Traceback (most recent call last):
  File "/Users/aliymnx/Desktop/main.py", line 6, in <module>
    divide_numbers(10, 0)
  File "/Users/aliymnx/Desktop/main.py", line 2, in divide_numbers
    result = a / b
             ~~^~~
ZeroDivisionError: division by zero
```

To analyze this error using FFB, simply run:

```bash
ffb
```

FFB will analyze the error and provide a detailed solution:

```python
Error Summary The error occurs when attempting to divide a number by zero, which is undefined.

Solution

def divide_numbers(a, b):
   if b == 0:
      return "Error: Division by zero is not allowed."
  else:
    result = a / b
    return result

print(divide_numbers(10, 0))


Explanation To resolve this issue, we've added a simple check in the divide_numbers function to ensure that the divisor (b) is not zero. If it is zero, the function returns an error message instead of attempting the division, thus preventing the ZeroDivisionError.
```

## Contributing

If you’d like to contribute to FFB, feel free to submit issues and pull requests on the GitHub repository.

## License
The license section now reflects the GPL-3.0 license as requested.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/find-fucking-bug",
    "name": "ffb",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "Find Fucking Bug, error handling, debugging tool",
    "author": "Ali Yaman, Umut Deniz",
    "author_email": "aliymn.db@gmail.com, umutdeniz609@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a7/1b/fcaf767518893bfd19225334ec397d955f709cc57898c2def5aadc9f10f1/ffb-0.0.7.tar.gz",
    "platform": null,
    "description": "# FFB: Find Fucking Bug\n[![pypi](https://img.shields.io/pypi/v/ffb.svg?style=for-the-badge)](https://pypi.python.org/pypi/ffb)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg?style=for-the-badge)](https://www.gnu.org/licenses/gpl-3.0)\n<a href=\"https://pypi.org/project/ffb\" target=\"_blank\">\n    <img src=\"https://img.shields.io/pypi/pyversions/ffb.svg?style=for-the-badge\" alt=\"Supported Python versions\">\n</a>\n![Code Style - Ruff](https://img.shields.io/badge/code%20style-ruff-30173D.svg?style=for-the-badge)\n![Pre Commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=for-the-badge)\n[![ci](https://github.com/find-fucking-bug/ffb/workflows/CI/badge.svg?style=for-the-badge)](https://github.com/find-fucking-bug/ffb/actions?query=workflow:CI)\n\n**FFB** is a Python package designed to simplify debugging by analyzing your terminal output and providing concise solutions and explanations for errors. Whether you're new to coding or an experienced developer, FFB aims to reduce the time spent deciphering cryptic error messages and helps you find solutions faster.\n\n</hr>\n<img align=\"left\"  src=\"https://github.com/find-fucking-bug/ffb/blob/ffb-3/images/ffb.gif?raw=true\">\n</hr>\n\n\n## Features\n\n- Automatically analyzes the last terminal output.\n- Provides clear explanations of errors.\n- Suggests solutions with code examples.\n- Easy-to-use command-line interface.\n\n## Installation\n\nYou can install **FFB** via pip:\n\n```bash\npip install ffb\n```\n## Usage\n\nTo use FFB, simply run your Python script as usual. If an error occurs, call ffb to analyze the last output.\n\n## Example\nGiven the following Python code:\n\n```python\ndef divide_numbers(a, b):\n    result = a / b\n    print(f\"Result: {result}\")\n\ndivide_numbers(10, 0)\n```\n\nRunning this code will produce the following error:\n\n```python\nTraceback (most recent call last):\n  File \"/Users/aliymnx/Desktop/main.py\", line 6, in <module>\n    divide_numbers(10, 0)\n  File \"/Users/aliymnx/Desktop/main.py\", line 2, in divide_numbers\n    result = a / b\n             ~~^~~\nZeroDivisionError: division by zero\n```\n\nTo analyze this error using FFB, simply run:\n\n```bash\nffb\n```\n\nFFB will analyze the error and provide a detailed solution:\n\n```python\nError Summary The error occurs when attempting to divide a number by zero, which is undefined.\n\nSolution\n\ndef divide_numbers(a, b):\n   if b == 0:\n      return \"Error: Division by zero is not allowed.\"\n  else:\n    result = a / b\n    return result\n\nprint(divide_numbers(10, 0))\n\n\nExplanation To resolve this issue, we've added a simple check in the divide_numbers function to ensure that the divisor (b) is not zero. If it is zero, the function returns an error message instead of attempting the division, thus preventing the ZeroDivisionError.\n```\n\n## Contributing\n\nIf you\u2019d like to contribute to FFB, feel free to submit issues and pull requests on the GitHub repository.\n\n## License\nThe license section now reflects the GPL-3.0 license as requested.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Find Fucking Bug",
    "version": "0.0.7",
    "project_urls": {
        "Download": "https://github.com/find-fucking-bug",
        "Homepage": "https://github.com/find-fucking-bug"
    },
    "split_keywords": [
        "find fucking bug",
        " error handling",
        " debugging tool"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e4701445f3ec8ec7797b3e3ef162be317a516480cfa157f0734664ecb8b6b1a0",
                "md5": "ab87e2806285115d8e87372cafc5b6df",
                "sha256": "c78bec5adadbd305af93386dc89ebfff81de4b0d46b4ef471245e99fab977f12"
            },
            "downloads": -1,
            "filename": "ffb-0.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ab87e2806285115d8e87372cafc5b6df",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 18915,
            "upload_time": "2024-09-10T09:02:55",
            "upload_time_iso_8601": "2024-09-10T09:02:55.802527Z",
            "url": "https://files.pythonhosted.org/packages/e4/70/1445f3ec8ec7797b3e3ef162be317a516480cfa157f0734664ecb8b6b1a0/ffb-0.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a71bfcaf767518893bfd19225334ec397d955f709cc57898c2def5aadc9f10f1",
                "md5": "bb844cf862951d0caca955f702bd3141",
                "sha256": "eb36fcb52e3cbce7605b346c875f74d697dc19b5ed8a94371eec2a8a2181ecfc"
            },
            "downloads": -1,
            "filename": "ffb-0.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "bb844cf862951d0caca955f702bd3141",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 18541,
            "upload_time": "2024-09-10T09:02:57",
            "upload_time_iso_8601": "2024-09-10T09:02:57.027288Z",
            "url": "https://files.pythonhosted.org/packages/a7/1b/fcaf767518893bfd19225334ec397d955f709cc57898c2def5aadc9f10f1/ffb-0.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-10 09:02:57",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ffb"
}
        
Elapsed time: 0.63868s