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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file ai2py-0.1.1.tar.gz.

File metadata

  • Download URL: ai2py-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for ai2py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 987afa1cd91fb670e59e564f3e47b8f931d074a1be9152c466e201eb2108098c
MD5 35c9138eb150315f4b5c2097c290b4d8
BLAKE2b-256 58643957c549de8662b73b5975ea8e0d3a2f5a8583eaba6d247ac8fc5bf5a32d

See more details on using hashes here.

File details

Details for the file ai2py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ai2py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for ai2py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db076be29f260bd317a3cedc522bf18d7227e36b6fbb471890697e8ec41d6999
MD5 702f690ff2e6c4be2be41db7135ea1d4
BLAKE2b-256 15df1becf66bc92476d2a77cf4fecccee6cae2e939b5abb3099494630e32fce5

See more details on using hashes here.

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