InlineGPT


NameInlineGPT JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/rahulaauji-30/InlineGPT.git
SummaryA Python package designed to provide direct inline support for developers. It integrates GPT (Generative Pre-trained Transformer) functionality directly into Python applications, enabling developers to handle errors effectively by suggesting appropriate changes.
upload_time2024-07-13 20:28:33
maintainerNone
docs_urlNone
authorRahul Parihar
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # InlineGPT

InlineGPT is a Python package that integrates Google's Generative AI models directly into your Python applications to provide inline error handling and suggestions for code corrections.

## Installation

You can install InlineGPT via pip:

```bash
pip install InlineGPT
```

## Getting Started

To use InlineGPT, you need to obtain an API key from [Google AI Studio](https://aistudio.google.com/app/apikey).

### Example Usage

```python
from inline.inlinegpt import InlineGPT
import os

# Initialize your API KEY
gpt = InlineGPT(os.environ.get('G_API_KEY')) 

try:
    result = 10 / 0
except ZeroDivisionError as e:
    print(f"Error: {e}")
    gpt.get_solution("test.py", e)

```

### Output

The `get_solution` method analyzes the code in `file_name` and the provided `error_message`, then generates a response suggesting how to resolve the error using Google's Generative AI models.

## Contributing

We welcome contributions to InlineGPT! Please fork the repository and submit pull requests to contribute.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## Issues

If you encounter any issues with InlineGPT or have suggestions for improvements, please open an issue on [GitHub](https://github.com/yourusername/InlineGPT/issues).

---

### Additional Notes:

- **Dependencies**: InlineGPT relies on `google.generativeai` for its AI capabilities. Ensure you have the necessary permissions and API key from Google AI Studio.
- **Error Handling**: If the API key is invalid or not provided, InlineGPT will raise an initialization error.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rahulaauji-30/InlineGPT.git",
    "name": "InlineGPT",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Rahul Parihar",
    "author_email": "rahulaauji71@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f6/6b/6e018d8f8cc18e1438ea8b8d66912f211334dc953ecc497905ce859a8bfa/inlinegpt-0.1.0.tar.gz",
    "platform": null,
    "description": "# InlineGPT\n\nInlineGPT is a Python package that integrates Google's Generative AI models directly into your Python applications to provide inline error handling and suggestions for code corrections.\n\n## Installation\n\nYou can install InlineGPT via pip:\n\n```bash\npip install InlineGPT\n```\n\n## Getting Started\n\nTo use InlineGPT, you need to obtain an API key from [Google AI Studio](https://aistudio.google.com/app/apikey).\n\n### Example Usage\n\n```python\nfrom inline.inlinegpt import InlineGPT\nimport os\n\n# Initialize your API KEY\ngpt = InlineGPT(os.environ.get('G_API_KEY')) \n\ntry:\n    result = 10 / 0\nexcept ZeroDivisionError as e:\n    print(f\"Error: {e}\")\n    gpt.get_solution(\"test.py\", e)\n\n```\n\n### Output\n\nThe `get_solution` method analyzes the code in `file_name` and the provided `error_message`, then generates a response suggesting how to resolve the error using Google's Generative AI models.\n\n## Contributing\n\nWe welcome contributions to InlineGPT! Please fork the repository and submit pull requests to contribute.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Issues\n\nIf you encounter any issues with InlineGPT or have suggestions for improvements, please open an issue on [GitHub](https://github.com/yourusername/InlineGPT/issues).\n\n---\n\n### Additional Notes:\n\n- **Dependencies**: InlineGPT relies on `google.generativeai` for its AI capabilities. Ensure you have the necessary permissions and API key from Google AI Studio.\n- **Error Handling**: If the API key is invalid or not provided, InlineGPT will raise an initialization error.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python package designed to provide direct inline support for developers. It integrates GPT (Generative Pre-trained Transformer) functionality directly into Python applications, enabling developers to handle errors effectively by suggesting appropriate changes.",
    "version": "0.1.0",
    "project_urls": {
        "Bug Reports": "https://github.com/rahulaauji-30/InlineGPT/issues",
        "Homepage": "https://github.com/rahulaauji-30/InlineGPT.git",
        "Source": "https://github.com/rahulaauji-30/InlineGPT"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8cc27f795a366b88f5a4b46d645760d5439e7511c9398c1ba15d964023a6fde3",
                "md5": "479daf5b6726a8fd2ff6a3fd4e64c4e7",
                "sha256": "c1b6febb4f05a5eef7a036d488e74a658af896ce3e862a060a2c8711e3d7eae8"
            },
            "downloads": -1,
            "filename": "InlineGPT-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "479daf5b6726a8fd2ff6a3fd4e64c4e7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 2941,
            "upload_time": "2024-07-13T20:28:31",
            "upload_time_iso_8601": "2024-07-13T20:28:31.863595Z",
            "url": "https://files.pythonhosted.org/packages/8c/c2/7f795a366b88f5a4b46d645760d5439e7511c9398c1ba15d964023a6fde3/InlineGPT-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f66b6e018d8f8cc18e1438ea8b8d66912f211334dc953ecc497905ce859a8bfa",
                "md5": "56f98d6dfe92f2364e9725bbf3c80862",
                "sha256": "52e5829c5802ee2480ab2640c6375afce0bebfdef1c2e911c0d9696348e5519f"
            },
            "downloads": -1,
            "filename": "inlinegpt-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "56f98d6dfe92f2364e9725bbf3c80862",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2809,
            "upload_time": "2024-07-13T20:28:33",
            "upload_time_iso_8601": "2024-07-13T20:28:33.890705Z",
            "url": "https://files.pythonhosted.org/packages/f6/6b/6e018d8f8cc18e1438ea8b8d66912f211334dc953ecc497905ce859a8bfa/inlinegpt-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-13 20:28:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rahulaauji-30",
    "github_project": "InlineGPT",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "inlinegpt"
}
        
Elapsed time: 0.42125s