Skip to main content

Autoenhance API

Project description

Autoenhance.ai logo

Autoenhance.ai Python SDK

The AI photo editor that enhances your workflow now available with easy and quick Python SDK

👋 Navigation

✨ Description

Our SDK will help you easily integrate Autoenhance.ai into your codebase in a matter of minutes. We've prepared methods for interacting with our API in all possible ways you might need.

⚠️ Requirements

  • Basic Python knowledge and a project set up
  • Autoenhance.ai API key Don't have an API key ? Sign up in our Webapp, and you will find it on the API page!

🔧 Installation

Install Autoenhance.ai SDK with a simple CLI command

With pip:

pip install autoenhance

With poetry:

poetry add autoenhance

⚙️ Configuration

Follow these simple steps in order to implement and configure our SDK

Import Autoenhance SDK package:

import autoenhance

Create a constant, and add your API key

autoenhance = autoenhance.Autoenhance('YOUR API KEY');

Boom, that's it! Now you can interact with our API in a matter of seconds.

💎 Examples

Uploading image

  import requests

  def upload_image(image_properties: dict, image_buffer):

    response = autoenhance.create_image(**image_properties)
    requests.put(
      response.s3PutObjectUrl,
      headers={
        "Content-Type": "image/jpeg",
      },
      body=image_buffer
    )

Retrieving order

  def get_order(order_id):
    order = autoenhance.retrieve_order(orderId)

Retrieving list of orders

  def get_orders():
    response = await autoenhance.list_orders()
    orders = response.orders

Downloading enhanced image

  def download_image(image_id):
    image_url = autoenhance.download_enhanced_image(image_url, size="large")
    return image_url.url

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

autoenhance-1.0.0.tar.gz (30.9 kB view hashes)

Uploaded Source

Built Distribution

autoenhance-1.0.0-py3-none-any.whl (57.5 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