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.s3_put_object_url,
      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 = 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.3.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoenhance-1.0.3-py3-none-any.whl (57.5 kB view details)

Uploaded Python 3

File details

Details for the file autoenhance-1.0.3.tar.gz.

File metadata

  • Download URL: autoenhance-1.0.3.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for autoenhance-1.0.3.tar.gz
Algorithm Hash digest
SHA256 542cf269105133faa29c0b1324ad445b202ea26bda224a8e8eec0e1c0b508385
MD5 c61bab87f363c16435f32ee2000e08ad
BLAKE2b-256 0514f7629d08114ef36dd7bef9c63e8bec4e17d6d891ad2e7310f0df394bd4ce

See more details on using hashes here.

File details

Details for the file autoenhance-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: autoenhance-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 57.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for autoenhance-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fbb7286205fc4fbd2bc6cedabd6a631dd70e89b3432e01b16ba2998fdc19d4b2
MD5 49ed0ab0a076a1fdfe2cf43376a87cab
BLAKE2b-256 f75538149dc174b1eb80c98b68fe056b4d040647fd2c868e31864b98030cf60e

See more details on using hashes here.

Supported by

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