ai69


Nameai69 JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/sr2echa/ai69
SummaryAn AI function generator for runtime
upload_time2024-01-07 11:48:48
maintainer
docs_urlNone
authorSreecharan S.
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![image](https://github.com/sr2echa/ai69/assets/65058816/57eb644c-e3b9-4810-9050-9cd52abc486d)


`ai69` is a Python package to dynamically generate and execute Python functions for any occation. It's designed to simplify the process of integrating AI-powered functions for anything you want.

---

## Installation

To install `ai69`, run the following command in your terminal:

```bash
pip install ai69
```

Ensure you have Python 3.6 or later installed on your system.


## Usage

### Setting Up

First, import `ai69` and set your OpenAI API key:

```python
from ai69 import ai

ai.set_key("your-openai-api-key")
```

> [!IMPORTANT]
> <samp> You must obtain an API key from OpenAI. You can get it from [here](https://platform.openai.com/api-keys). </samp>

Alternatively, If you have an environment variable `OPENAI_API_KEY` set, you need not use **ai.set()** to set up the key. ai69 will auto import the key for you 


### Calling Functions

With `ai69`, you can call functions dynamically. The package will attempt to generate the appropriate Python code using OpenAI's Codex:

```python
from ai69 import ai

await ai.getWeather('Chennai') # 'sunny'
await ai.randomNumberBetween(1, 10) #6
await ai.slugify('My Article') # 'my-article'
await ai.hasProfanityRegex('f*ck this lol') # False
await ai.extractHashtags('this is #really cool! #ai #code') # ['really', 'ai', 'code']
await ai.getProgrammerJoke() # 'What do you call a programmer from Finland? Nerdic.'

```



## Features

- **Dynamic Function Generation:** Create functions on the fly based on method names and arguments.
- **AI-Powered Code Generation:** Utilizes OpenAI's GPT-3.5 Turbo model for generating Python code.
- **Flexible and Easy to Use:** Designed to be intuitive and straightforward, requiring minimal setup.




## Important Notes

- **Security:** Executing dynamically generated code can be risky. Always validate and sanitize inputs and use `ai69` in a secure environment.
- **API Key:** Your OpenAI API key should be kept confidential. Do not expose it in publicly accessible areas like GitHub repositories.

>[!NOTE]
> The responses from the AI can vary, and the generated code's quality depends on the model's current capabilities and understanding.




## Disclaimer

> `ai69` is an experimental tool that relies on AI to generate code. The developers of `ai69` are not responsible for any consequences arising from the use of this package, including but not limited to generated code quality, security vulnerabilities, or AI model inaccuracies.<br>
> Currently only OpenAI's GPT-3.5 Turbo model is supported. Support for other models may be added in the future. For this reason, we use openai's api rather than openai's python package.

>UwU we ***totally**** recommend you to use in production *lmaow*




## Contributing

Contributions to `ai69` are welcome! Please feel free to open a pull request or issue on GitHub. All contributions must be released under the [MIT](LICENSE).

---

###### `ai69` is released under the [MIT License](LICENSE).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sr2echa/ai69",
    "name": "ai69",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Sreecharan S.",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/c5/b9/4571452eb8d91a047744d4034f60f7e3af6f075fb364a6257a85e835ae2a/ai69-0.1.1.tar.gz",
    "platform": null,
    "description": "![image](https://github.com/sr2echa/ai69/assets/65058816/57eb644c-e3b9-4810-9050-9cd52abc486d)\n\n\n`ai69` is a Python package to dynamically generate and execute Python functions for any occation. It's designed to simplify the process of integrating AI-powered functions for anything you want.\n\n---\n\n## Installation\n\nTo install `ai69`, run the following command in your terminal:\n\n```bash\npip install ai69\n```\n\nEnsure you have Python 3.6 or later installed on your system.\n\n\n## Usage\n\n### Setting Up\n\nFirst, import `ai69` and set your OpenAI API key:\n\n```python\nfrom ai69 import ai\n\nai.set_key(\"your-openai-api-key\")\n```\n\n> [!IMPORTANT]\n> <samp> You must obtain an API key from OpenAI. You can get it from [here](https://platform.openai.com/api-keys). </samp>\n\nAlternatively, If you have an environment variable `OPENAI_API_KEY` set, you need not use **ai.set()** to set up the key. ai69 will auto import the key for you \n\n\n### Calling Functions\n\nWith `ai69`, you can call functions dynamically. The package will attempt to generate the appropriate Python code using OpenAI's Codex:\n\n```python\nfrom ai69 import ai\n\nawait ai.getWeather('Chennai') # 'sunny'\nawait ai.randomNumberBetween(1, 10) #6\nawait ai.slugify('My Article') # 'my-article'\nawait ai.hasProfanityRegex('f*ck this lol') # False\nawait ai.extractHashtags('this is #really cool! #ai #code') # ['really', 'ai', 'code']\nawait ai.getProgrammerJoke() # 'What do you call a programmer from Finland? Nerdic.'\n\n```\n\n\n\n## Features\n\n- **Dynamic Function Generation:** Create functions on the fly based on method names and arguments.\n- **AI-Powered Code Generation:** Utilizes OpenAI's GPT-3.5 Turbo model for generating Python code.\n- **Flexible and Easy to Use:** Designed to be intuitive and straightforward, requiring minimal setup.\n\n\n\n\n## Important Notes\n\n- **Security:** Executing dynamically generated code can be risky. Always validate and sanitize inputs and use `ai69` in a secure environment.\n- **API Key:** Your OpenAI API key should be kept confidential. Do not expose it in publicly accessible areas like GitHub repositories.\n\n>[!NOTE]\n> The responses from the AI can vary, and the generated code's quality depends on the model's current capabilities and understanding.\n\n\n\n\n## Disclaimer\n\n> `ai69` is an experimental tool that relies on AI to generate code. The developers of `ai69` are not responsible for any consequences arising from the use of this package, including but not limited to generated code quality, security vulnerabilities, or AI model inaccuracies.<br>\n> Currently only OpenAI's GPT-3.5 Turbo model is supported. Support for other models may be added in the future. For this reason, we use openai's api rather than openai's python package.\n\n>UwU we ***totally**** recommend you to use in production *lmaow*\n\n\n\n\n## Contributing\n\nContributions to `ai69` are welcome! Please feel free to open a pull request or issue on GitHub. All contributions must be released under the [MIT](LICENSE).\n\n---\n\n###### `ai69` is released under the [MIT License](LICENSE).\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "An AI function generator for runtime",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/sr2echa/ai69"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "09d90701003edf49dd34351bc30ccd0d271c80ac98b5e38a8b99b287f52c6941",
                "md5": "2657f5f1627273d0eee2b24d77ddd07d",
                "sha256": "9bc26be6914882555afbdc48c27f61631582527a302f9f254a9d480d7853dca2"
            },
            "downloads": -1,
            "filename": "ai69-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2657f5f1627273d0eee2b24d77ddd07d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 5196,
            "upload_time": "2024-01-07T11:48:47",
            "upload_time_iso_8601": "2024-01-07T11:48:47.392505Z",
            "url": "https://files.pythonhosted.org/packages/09/d9/0701003edf49dd34351bc30ccd0d271c80ac98b5e38a8b99b287f52c6941/ai69-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c5b94571452eb8d91a047744d4034f60f7e3af6f075fb364a6257a85e835ae2a",
                "md5": "5774fd0de29f4fe8402a868696b1d340",
                "sha256": "f7f13d54d6f052966e4c56c548ccd9e142dd0025303f6b03798d59b17a28c1e3"
            },
            "downloads": -1,
            "filename": "ai69-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "5774fd0de29f4fe8402a868696b1d340",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 5255,
            "upload_time": "2024-01-07T11:48:48",
            "upload_time_iso_8601": "2024-01-07T11:48:48.841062Z",
            "url": "https://files.pythonhosted.org/packages/c5/b9/4571452eb8d91a047744d4034f60f7e3af6f075fb364a6257a85e835ae2a/ai69-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-07 11:48:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sr2echa",
    "github_project": "ai69",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "requests",
            "specs": []
        }
    ],
    "lcname": "ai69"
}
        
Elapsed time: 0.21164s