Helpingai-T2


NameHelpingai-T2 JSON
Version 0.4 PyPI version JSON
download
home_pagehttps://github.com/HelpingAI/Helpingai_T2.git
SummaryA simple module to use Perplexity AI in Python.
upload_time2024-05-03 05:01:17
maintainerNone
docs_urlNone
authorOEvortex
requires_python>=3.6
licenseGPLv3
keywords artificial-intelligence perplexityai perplexity python api ai
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Helpingai_T2

Helpingai_T2 is a Python module that allows you to interact with the Perplexity AI. It's simple to use and can be easily integrated into your Python projects.

## Installation

You can install Helpingai_T2 using pip. Run the following command in your terminal:

```bash
python -m pip install -U Helpingai-T2
```

Join our [Discord server](https://discord.gg/3fJENZMzqY) for live chat, support, or if you have any issues with this package.

## Support this repository:
- ⭐ **Star the project:** Star this repository. It means a lot to us! 💕
- 🎉 **Join our Discord Server:** Chat with us and others. [Join here](https://discord.gg/3fJENZMzqY)
- 📺 **Subscribe to our YouTube channel:** Stay updated with our latest tutorials and updates. [Subscribe here](https://youtube.com/@OEvortex?si=-NVlePE4S6jFAVBx)
- 📬 **Join our Telegram group:** Join our community for discussions and support. [Join here](https://t.me/+DjtjCbsEV7k3NDll)


## Usage

Here are some examples of how you can use the Helpingai_T2 module in your code:

### Single Prompt Example

This example takes a single input from the user and generates a response using the Perplexity AI.

```python
from Helpingai_T2 import Perplexity

# Get a prompt from the user
prompt = input("👦: ")

# Generate a response using the Perplexity AI
for a in Perplexity().generate_answer(prompt):
    print(f"🤖: {a['answer']}")
```

### Continuous Conversation Example

This example continuously takes input from the user and generates responses, creating an ongoing conversation with the Perplexity AI.

```python
from Helpingai_T2 import Perplexity

# Start a continuous conversation with the user
while True:
    # Get a prompt from the user
    prompt = input("👦: ")

    # Generate a response using the Perplexity AI
    for a in Perplexity().generate_answer(prompt):
        print(f"🤖: {a['answer']}")
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/HelpingAI/Helpingai_T2.git",
    "name": "Helpingai-T2",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "artificial-intelligence, perplexityai, perplexity, python, api, ai",
    "author": "OEvortex",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/44/94/97ee86a52d34188cad2c94bc71f804e9854a16ec187c3ed77be7107bacab/Helpingai_T2-0.4.tar.gz",
    "platform": null,
    "description": "# Helpingai_T2\r\n\r\nHelpingai_T2 is a Python module that allows you to interact with the Perplexity AI. It's simple to use and can be easily integrated into your Python projects.\r\n\r\n## Installation\r\n\r\nYou can install Helpingai_T2 using pip. Run the following command in your terminal:\r\n\r\n```bash\r\npython -m pip install -U Helpingai-T2\r\n```\r\n\r\nJoin our [Discord server](https://discord.gg/3fJENZMzqY) for live chat, support, or if you have any issues with this package.\r\n\r\n## Support this repository:\r\n- \u2b50 **Star the project:** Star this repository. It means a lot to us! \ud83d\udc95\r\n- \ud83c\udf89 **Join our Discord Server:** Chat with us and others. [Join here](https://discord.gg/3fJENZMzqY)\r\n- \ud83d\udcfa **Subscribe to our YouTube channel:** Stay updated with our latest tutorials and updates. [Subscribe here](https://youtube.com/@OEvortex?si=-NVlePE4S6jFAVBx)\r\n- \ud83d\udcec **Join our Telegram group:** Join our community for discussions and support. [Join here](https://t.me/+DjtjCbsEV7k3NDll)\r\n\r\n\r\n## Usage\r\n\r\nHere are some examples of how you can use the Helpingai_T2 module in your code:\r\n\r\n### Single Prompt Example\r\n\r\nThis example takes a single input from the user and generates a response using the Perplexity AI.\r\n\r\n```python\r\nfrom Helpingai_T2 import Perplexity\r\n\r\n# Get a prompt from the user\r\nprompt = input(\"\ud83d\udc66: \")\r\n\r\n# Generate a response using the Perplexity AI\r\nfor a in Perplexity().generate_answer(prompt):\r\n    print(f\"\ud83e\udd16: {a['answer']}\")\r\n```\r\n\r\n### Continuous Conversation Example\r\n\r\nThis example continuously takes input from the user and generates responses, creating an ongoing conversation with the Perplexity AI.\r\n\r\n```python\r\nfrom Helpingai_T2 import Perplexity\r\n\r\n# Start a continuous conversation with the user\r\nwhile True:\r\n    # Get a prompt from the user\r\n    prompt = input(\"\ud83d\udc66: \")\r\n\r\n    # Generate a response using the Perplexity AI\r\n    for a in Perplexity().generate_answer(prompt):\r\n        print(f\"\ud83e\udd16: {a['answer']}\")\r\n```\r\n\r\n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "A simple module to use Perplexity AI in Python.",
    "version": "0.4",
    "project_urls": {
        "Homepage": "https://github.com/HelpingAI/Helpingai_T2.git",
        "Source": "https://github.com/HelpingAI/Helpingai_T2.git"
    },
    "split_keywords": [
        "artificial-intelligence",
        " perplexityai",
        " perplexity",
        " python",
        " api",
        " ai"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f1aa4e8b6dd2c97f601ed2d66fe377373cbdfacafabee47b07641dd170c8683a",
                "md5": "28c40b52aba5aeede145b83fc4f5b5ef",
                "sha256": "b67c6f9890f3604d07e7c940bf18125d87716b7efef81eb1621fd7739307be9b"
            },
            "downloads": -1,
            "filename": "Helpingai_T2-0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "28c40b52aba5aeede145b83fc4f5b5ef",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 18165,
            "upload_time": "2024-05-03T05:01:14",
            "upload_time_iso_8601": "2024-05-03T05:01:14.833543Z",
            "url": "https://files.pythonhosted.org/packages/f1/aa/4e8b6dd2c97f601ed2d66fe377373cbdfacafabee47b07641dd170c8683a/Helpingai_T2-0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "449497ee86a52d34188cad2c94bc71f804e9854a16ec187c3ed77be7107bacab",
                "md5": "1588a38209e6894bc04513ecce9e4bb1",
                "sha256": "8a59694af5316ed035379706a25bfcd3fffe9301d222b4fdaa9484a99ff9dd22"
            },
            "downloads": -1,
            "filename": "Helpingai_T2-0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "1588a38209e6894bc04513ecce9e4bb1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 18424,
            "upload_time": "2024-05-03T05:01:17",
            "upload_time_iso_8601": "2024-05-03T05:01:17.200963Z",
            "url": "https://files.pythonhosted.org/packages/44/94/97ee86a52d34188cad2c94bc71f804e9854a16ec187c3ed77be7107bacab/Helpingai_T2-0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-03 05:01:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "HelpingAI",
    "github_project": "Helpingai_T2",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "helpingai-t2"
}
        
Elapsed time: 0.71439s