# Brewify
![Brew](https://images-ext-1.discordapp.net/external/qG41hZHbsmNVc9WSE6aX3oVWi_LP39dQZjxZgdIdFLI/%3Fsize%3D1024/https/cdn.discordapp.com/avatars/1076140187471593492/bfea312390b3b52773f1358457d7261b.png?format=webp&quality=lossless&width=427&height=427)
Brewify is a Python library that provides a simple interface to interact
with various APIs, including Google Search, IMDb, Discord, and more. It
is designed to be easy to use while allowing you to extend its
functionality.
## Features
- **API Requests**: Make GET requests to various endpoints.
- **Error Handling**: Custom exceptions for better error management.
- **Multiple Services**: Access Google Images, IMDb, Discord, and
more.
- **Sentiment Analysis**: Analyze the sentiment of text.
- **Chatbot Functionality**: Engage in simple conversations.
- **Joke Generator**: Get a random joke.
## Installation
You can install Brewify via pip:
``` bash
pip install brewify
```
## Usage
**Initialize the Brewify Class**
To get started, initialize the [Brewify]{.title-ref} class with your API
key:
``` python
from brewify import Brewify
brewify = Brewify("YOUR_API_KEY")
```
**Example Methods**
*Get Google Images*
``` python
image_response = brewify.get_google_image(query="cats")
print(image_response.link)
```
*Search Google*
``` python
text_response = brewify.search_google(query="Python programming")
print(text_response.title, text_response.link, text_response.snippet)
```
*IMDb Search*
``` python
imdb_response = brewify.imdb_search(query="Inception")
print(imdb_response.plot)
```
*Discord Guild Search*
``` python
guild_response = brewify.discord_guild_search(invite_code="your_invite_code")
print(guild_response.id)
```
*Sentiment Analysis*
``` python
sentiment_response = brewify.sentiment_analysis(sentence="I love Python!")
print(sentiment_response.negative, sentiment_response.positive, sentiment_response.neutral)
```
*Get a Joke*
``` python
joke_response = brewify.joke()
print(f"{joke_response.setup} {joke_response.punchline}")
```
## Error Handling
Brewify raises a custom exception called [Brexception]{.title-ref} for
handling errors. You can catch it as follows:
``` python
try:
brewify.some_method()
except Brexception as e:
print(f"An error occurred: {e}")
```
## Contributing
Contributions are welcome! Feel free to submit a pull request or open an
issue.
## License
This project is licensed under the MIT License - see the
[LICENSE] file for details.
## Acknowledgments
- Thanks to the developers of the APIs used in this library.
- Special thanks to [FastAPI](https://fastapi.tiangolo.com/) for
making API development a breeze.
Raw data
{
"_id": null,
"home_page": "https://github.com/opexdeveloper/brewify",
"name": "brewify",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "discord, utility, socials, info, api, wrapper",
"author": "OPEX",
"author_email": "opexclaqz@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/c1/d7/59bec69c6f74fafac18b5ebc198cd56f23cfd41e1ab1b0f5f02be7c1258d/brewify-0.1.6.tar.gz",
"platform": null,
"description": "# Brewify\r\n\r\n![Brew](https://images-ext-1.discordapp.net/external/qG41hZHbsmNVc9WSE6aX3oVWi_LP39dQZjxZgdIdFLI/%3Fsize%3D1024/https/cdn.discordapp.com/avatars/1076140187471593492/bfea312390b3b52773f1358457d7261b.png?format=webp&quality=lossless&width=427&height=427)\r\n\r\nBrewify is a Python library that provides a simple interface to interact\r\nwith various APIs, including Google Search, IMDb, Discord, and more. It\r\nis designed to be easy to use while allowing you to extend its\r\nfunctionality.\r\n\r\n## Features\r\n\r\n- **API Requests**: Make GET requests to various endpoints.\r\n- **Error Handling**: Custom exceptions for better error management.\r\n- **Multiple Services**: Access Google Images, IMDb, Discord, and\r\n more.\r\n- **Sentiment Analysis**: Analyze the sentiment of text.\r\n- **Chatbot Functionality**: Engage in simple conversations.\r\n- **Joke Generator**: Get a random joke.\r\n\r\n## Installation\r\n\r\nYou can install Brewify via pip:\r\n\r\n``` bash\r\npip install brewify\r\n```\r\n\r\n## Usage\r\n\r\n**Initialize the Brewify Class**\r\n\r\nTo get started, initialize the [Brewify]{.title-ref} class with your API\r\nkey:\r\n\r\n``` python\r\nfrom brewify import Brewify\r\n\r\nbrewify = Brewify(\"YOUR_API_KEY\")\r\n```\r\n\r\n**Example Methods**\r\n\r\n*Get Google Images*\r\n\r\n``` python\r\nimage_response = brewify.get_google_image(query=\"cats\")\r\nprint(image_response.link)\r\n```\r\n\r\n*Search Google*\r\n\r\n``` python\r\ntext_response = brewify.search_google(query=\"Python programming\")\r\nprint(text_response.title, text_response.link, text_response.snippet)\r\n```\r\n\r\n*IMDb Search*\r\n\r\n``` python\r\nimdb_response = brewify.imdb_search(query=\"Inception\")\r\nprint(imdb_response.plot)\r\n```\r\n\r\n*Discord Guild Search*\r\n\r\n``` python\r\nguild_response = brewify.discord_guild_search(invite_code=\"your_invite_code\")\r\nprint(guild_response.id)\r\n```\r\n\r\n*Sentiment Analysis*\r\n\r\n``` python\r\nsentiment_response = brewify.sentiment_analysis(sentence=\"I love Python!\")\r\nprint(sentiment_response.negative, sentiment_response.positive, sentiment_response.neutral)\r\n```\r\n\r\n*Get a Joke*\r\n\r\n``` python\r\njoke_response = brewify.joke()\r\nprint(f\"{joke_response.setup} {joke_response.punchline}\")\r\n```\r\n\r\n## Error Handling\r\n\r\nBrewify raises a custom exception called [Brexception]{.title-ref} for\r\nhandling errors. You can catch it as follows:\r\n\r\n``` python\r\ntry:\r\n brewify.some_method()\r\nexcept Brexception as e:\r\n print(f\"An error occurred: {e}\")\r\n```\r\n\r\n## Contributing\r\n\r\nContributions are welcome! Feel free to submit a pull request or open an\r\nissue.\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License - see the\r\n[LICENSE] file for details.\r\n\r\n## Acknowledgments\r\n\r\n- Thanks to the developers of the APIs used in this library.\r\n- Special thanks to [FastAPI](https://fastapi.tiangolo.com/) for\r\n making API development a breeze.\r\n",
"bugtrack_url": null,
"license": null,
"summary": "A Python library for interacting with various APIs including Google Search, IMDb, and Discord.",
"version": "0.1.6",
"project_urls": {
"Homepage": "https://github.com/opexdeveloper/brewify"
},
"split_keywords": [
"discord",
" utility",
" socials",
" info",
" api",
" wrapper"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "362f7bcdabf2d65f431490d35eab71dd75355624c11da899e29ce8409bb9f760",
"md5": "ff8805cf32161c75a42f599bce0910af",
"sha256": "060ad3d9ba96b760efcdf7033b449335b7cfe67cc7409cf5dd852625fa1c8eeb"
},
"downloads": -1,
"filename": "brewify-0.1.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ff8805cf32161c75a42f599bce0910af",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 8062,
"upload_time": "2024-12-12T10:11:52",
"upload_time_iso_8601": "2024-12-12T10:11:52.916108Z",
"url": "https://files.pythonhosted.org/packages/36/2f/7bcdabf2d65f431490d35eab71dd75355624c11da899e29ce8409bb9f760/brewify-0.1.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c1d759bec69c6f74fafac18b5ebc198cd56f23cfd41e1ab1b0f5f02be7c1258d",
"md5": "2f23ae67be3aadc7ae943400f16d155d",
"sha256": "3e67b529e785b744ac6738247ebd286b7429db5581df747744634f2a91f2877f"
},
"downloads": -1,
"filename": "brewify-0.1.6.tar.gz",
"has_sig": false,
"md5_digest": "2f23ae67be3aadc7ae943400f16d155d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 7878,
"upload_time": "2024-12-12T10:11:55",
"upload_time_iso_8601": "2024-12-12T10:11:55.271162Z",
"url": "https://files.pythonhosted.org/packages/c1/d7/59bec69c6f74fafac18b5ebc198cd56f23cfd41e1ab1b0f5f02be7c1258d/brewify-0.1.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-12 10:11:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "opexdeveloper",
"github_project": "brewify",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "brewify"
}