## Here are some projects which utilizes the LexicaAPI.
### AverageAI
- **Name:** [AverageAI](https://ai.qewertyy.dev)
- **Description:** Image Generations and LLMs.
### AverageImages
- **Name:** [AverageImages](https://images.qewertyy.dev)
- **Description:** Search Images on google and bing.
### Upscale
- **Name:** [Upscale](https://upscale.qewertyy.dev)
- **Description:** Upscale Images.
### AverageNews
- **Name:** [AverageNews](https://news.qewertyy.dev)
- **Description:** News App.
### Social-DL
- **Name:** [Social-DL](https://social-dl.vercel.app)
- **Description:** Download Videos/Images from social media.
### TelegramBots
[Miko](https://github.com/Awesome-Tofu/miko-bot), [AntiNSFWBot](https://telegram.me/ProtectYourGroupsRobot), [Sung](https://github.com/Dhruv-Tara/Sung), [GameInfoBot](https://github.com/barryspacezero/Telegram-GameInfoBot), [YaeMiko](https://github.com/Infamous-Hydra/YaeMiko), [FilterBot](https://github.com/Codeflix-Bots/AutoFilter), [News](https://github.com/SOMEH1NG/TechNewsDigest) [etc..](https://github.com/search?q=https%3A%2F%2Fapi.qewertyy.dev&type=code)
## Usages
LLM's
```python
from lexica import Client, languageModels
def main(prompt: str) -> dict:
client = Client()
response = client.palm(prompt,languageModels.gemini)
return response
if __name__ == "__main__":
print(main("hello world"))
```
Upscale an image.
```python
from lexica import Client
def main(image: bytes) -> bytes:
client = Client()
imageBytes = client.upscale(image)
with open('upscaled.png', 'wb') as f:
f.write(imageBytes)
if __name__ == "__main__":
image = open('examples/images/image.png', 'rb').read()
main(image)
```
Anti-NSFW
```python
from lexica import Client
def main(image_url: str) -> dict:
client = Client()
response = client.AntiNsfw(image_url)
if response['content']['sfw'] == True:
return "This image is safe for work."
else:
return "This image is not safe for work."
if __name__ == "__main__":
print(main("https://graph.org/file/13e95c6cc932530823391.png"))
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Qewertyy/LexicaAPI",
"name": "lexica-api",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "Python, API, Bard, Google Bard, Large Language Model, Chatbot API, Google API, Chatbot, Image Generations, Latent Diffusion, State of Art, Image Reverse Search, Reverse Image Search",
"author": "Qewertyy",
"author_email": "Qewertyy.irl@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/1d/c8/d2084a2edbadc27e40f4268303b292dae753fbacd29b83f5bc1fdf4b728a/lexica-api-1.6.0.tar.gz",
"platform": null,
"description": "## Here are some projects which utilizes the LexicaAPI.\n\n### AverageAI\n- **Name:** [AverageAI](https://ai.qewertyy.dev)\n- **Description:** Image Generations and LLMs.\n\n### AverageImages\n- **Name:** [AverageImages](https://images.qewertyy.dev)\n- **Description:** Search Images on google and bing.\n\n### Upscale\n- **Name:** [Upscale](https://upscale.qewertyy.dev)\n- **Description:** Upscale Images.\n\n### AverageNews\n- **Name:** [AverageNews](https://news.qewertyy.dev)\n- **Description:** News App.\n\n### Social-DL\n- **Name:** [Social-DL](https://social-dl.vercel.app)\n- **Description:** Download Videos/Images from social media.\n\n### TelegramBots\n[Miko](https://github.com/Awesome-Tofu/miko-bot), [AntiNSFWBot](https://telegram.me/ProtectYourGroupsRobot), [Sung](https://github.com/Dhruv-Tara/Sung), [GameInfoBot](https://github.com/barryspacezero/Telegram-GameInfoBot), [YaeMiko](https://github.com/Infamous-Hydra/YaeMiko), [FilterBot](https://github.com/Codeflix-Bots/AutoFilter), [News](https://github.com/SOMEH1NG/TechNewsDigest) [etc..](https://github.com/search?q=https%3A%2F%2Fapi.qewertyy.dev&type=code)\n## Usages\nLLM's\n```python\nfrom lexica import Client, languageModels\n\ndef main(prompt: str) -> dict:\n client = Client()\n response = client.palm(prompt,languageModels.gemini)\n return response\n\nif __name__ == \"__main__\":\n print(main(\"hello world\"))\n```\n\nUpscale an image.\n```python\nfrom lexica import Client\n\ndef main(image: bytes) -> bytes:\n client = Client()\n imageBytes = client.upscale(image)\n with open('upscaled.png', 'wb') as f:\n f.write(imageBytes)\n\nif __name__ == \"__main__\":\n image = open('examples/images/image.png', 'rb').read()\n main(image)\n```\n\nAnti-NSFW\n```python\nfrom lexica import Client\n\ndef main(image_url: str) -> dict:\n client = Client()\n response = client.AntiNsfw(image_url)\n if response['content']['sfw'] == True:\n return \"This image is safe for work.\"\n else:\n return \"This image is not safe for work.\"\n\nif __name__ == \"__main__\":\n print(main(\"https://graph.org/file/13e95c6cc932530823391.png\"))\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "The python package for api.qewertyy.dev",
"version": "1.6.0",
"project_urls": {
"Homepage": "https://github.com/Qewertyy/LexicaAPI"
},
"split_keywords": [
"python",
" api",
" bard",
" google bard",
" large language model",
" chatbot api",
" google api",
" chatbot",
" image generations",
" latent diffusion",
" state of art",
" image reverse search",
" reverse image search"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1dc8d2084a2edbadc27e40f4268303b292dae753fbacd29b83f5bc1fdf4b728a",
"md5": "8b8fa6a37e8af8a893e19ffc78d7fc8c",
"sha256": "733eeb3fee75f264e46019c660392f0a96164e77f5993f5cbb8857722c229972"
},
"downloads": -1,
"filename": "lexica-api-1.6.0.tar.gz",
"has_sig": false,
"md5_digest": "8b8fa6a37e8af8a893e19ffc78d7fc8c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 7418,
"upload_time": "2024-11-05T11:19:08",
"upload_time_iso_8601": "2024-11-05T11:19:08.397274Z",
"url": "https://files.pythonhosted.org/packages/1d/c8/d2084a2edbadc27e40f4268303b292dae753fbacd29b83f5bc1fdf4b728a/lexica-api-1.6.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-05 11:19:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Qewertyy",
"github_project": "LexicaAPI",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "lexica-api"
}