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.2.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.2-py3-none-any.whl (57.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autoenhance-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 65fcf6fbc23f43721261e74643090bd07587a73d204ef982e8b27662c292669b
MD5 f526b140335932ef022361f000b68a08
BLAKE2b-256 30d35c2c4a25f044009eb1e870108392e8b8fa522b6c2a6216ef285cf800cbc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: autoenhance-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 210c1827a1774b872e0932327770e3f98feddfa16808d104e1ab0b54cfe6b109
MD5 4dc68d8430f96049c48bc9ee732bd141
BLAKE2b-256 356ff6c6b17ac8c195c43670713924eab2a56b6ef5bde3dbab34f72905c0e9d0

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