lexica-api


Namelexica-api JSON
Version 1.5.9 PyPI version JSON
download
home_pagehttps://github.com/Qewertyy/LexicaAPI
SummaryThe python package for api.qewertyy.dev
upload_time2024-04-30 20:39:57
maintainerNone
docs_urlNone
authorQewertyy
requires_python>=3.8
licenseNone
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
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## 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), [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.palm2)
    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/a8/08/e433a6f9b107777571d0014197c9a8129f92eb75258dea6425d898dd78b3/lexica-api-1.5.9.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), [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.palm2)\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.5.9",
    "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": "a808e433a6f9b107777571d0014197c9a8129f92eb75258dea6425d898dd78b3",
                "md5": "669f95bcdea567a746fdbdfde55fe086",
                "sha256": "6d873cf0008cff25465bd79ce62892329d380dd485a0cfc2849d9ae97567b9de"
            },
            "downloads": -1,
            "filename": "lexica-api-1.5.9.tar.gz",
            "has_sig": false,
            "md5_digest": "669f95bcdea567a746fdbdfde55fe086",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 7074,
            "upload_time": "2024-04-30T20:39:57",
            "upload_time_iso_8601": "2024-04-30T20:39:57.842867Z",
            "url": "https://files.pythonhosted.org/packages/a8/08/e433a6f9b107777571d0014197c9a8129f92eb75258dea6425d898dd78b3/lexica-api-1.5.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-30 20:39:57",
    "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"
}
        
Elapsed time: 0.24288s