Skip to main content

Integrate AI into Python projects easily.

Project description

#AI2PY

AI2PY is an OpenAI-powered Python module created to help developers easily integrate artificial intelligence into their Python projects. AI2PY provides a comprehensive set of tools for creating AI-generated text, images, and image variations. An OpenAI API Key is required.

The module contains functions to create text, create text commands, create images, and create image variations. The init function initializes the class with an api_key. The create_text function takes in data and a word count and uses the OpenAI API to generate text based on the data. The create_text_command function takes in a command, data, and a word count and uses the OpenAI API to generate text based on the command and data. The create_image function takes in prompt text and an image size and uses the OpenAI API to generate an image based on the prompt text. The create_image_variation function takes in data and an image size and uses the OpenAI API to generate an image variation based on the data. The options class contains two functions: display_imagesizes and image_resize. The display_imagesizes function prints out the required image sizes for the OpenAI API. The image_resize function takes in an image and a size and resizes the image to the specified size.

In addition, AI2PY also provides a set of pre-trained models that can be used for various tasks such as natural language processing, computer vision, and more. These models can be used to quickly build AI applications without having to train your own models from scratch.

If you have any questions, feel free to ask them in the GitHub Discussion tab. If you need help with a project or want to show off a project made with AI2PY, you can also do so in the Discussion tab. If you find a bug, please report it in the GitHub Issues tab and provide the complete error message and a minimal example code that reproduces the error. If you have ideas for improvements or requests for new functions, you can also report these in the GitHub Issues tab, but please check for previous requests to prevent duplicates.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai2py-0.1.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

ai2py-0.1.1-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page