Skip to main content

bindings for interacting with the imager200 API in Python

Project description

PyPI version

client

This package provides bindings for interacting with the imager200 API. It is auto-generated from the official open api specs: https://www.imager200.io/imager200.json

It is automatically generated by the OpenAPI Generator project:

  • API version: 1.0
  • Package version: 1.0.0
  • Generator version: 7.8.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install imager200-python-sdk

Then import the package:

import imager200_python_sdk

Getting Started

Please follow the installation procedure and then run the following:

import imager200_python_sdk
from imager200_python_sdk.rest import ApiException



configuration = imager200_python_sdk.Configuration(
    host = "https://api.imager200.io"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = "YOUR_API_KEY"

# Enter a context with an instance of the API client
with imager200_python_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = imager200_python_sdk.BlurhashApi(api_client)
    with open("/some/path/image.jpeg", "rb") as f:
        body = f.read() # bytearray | image binary data

    try:
        api_response = api_instance.blurhash_sync_post(body)
        with open("/some/path/result.jpeg", "wb") as result:
            result.write(api_response)
    except Exception as e:
        print("Exception when calling BlurhashApi->blurhash_sync_post: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.imager200.io

Class Method HTTP request Description
BlendApi blend_async_post POST /blend
BlendApi blend_sync_post POST /blend/sync
BlurApi blur_async_get GET /blur
BlurApi blur_async_post POST /blur
BlurApi blur_sync_get GET /blur/sync
BlurApi blur_sync_post POST /blur/sync
BlurhashApi blurhash_async_get GET /blurhash
BlurhashApi blurhash_async_post POST /blurhash
BlurhashApi blurhash_sync_get GET /blurhash/sync
BlurhashApi blurhash_sync_post POST /blurhash/sync
BlurpartialApi blurpartial_async_get GET /blurpartial
BlurpartialApi blurpartial_async_post POST /blurpartial
BlurpartialApi blurpartial_sync_get GET /blurpartial/sync
BlurpartialApi blurpartial_sync_post POST /blurpartial/sync
BrightnessApi brightness_async_get GET /brightness
BrightnessApi brightness_async_post POST /brightness
BrightnessApi brightness_sync_get GET /brightness/sync
BrightnessApi brightness_sync_post POST /brightness/sync
CompressApi compress_async_get GET /compress
CompressApi compress_async_post POST /compress
CompressApi compress_sync_get GET /compress/sync
CompressApi compress_sync_post POST /compress/sync
ConcatApi concat_async_post POST /concat
ConcatApi concat_sync_post POST /concat/sync
ContrastApi contrast_async_get GET /contrast
ContrastApi contrast_async_post POST /contrast
ContrastApi contrast_sync_get GET /contrast/sync
ContrastApi contrast_sync_post POST /contrast/sync
ConvertApi convert_async_get GET /convert
ConvertApi convert_async_post POST /convert
ConvertApi convert_sync_get GET /convert/sync
ConvertApi convert_sync_post POST /convert/sync
CropApi crop_async_get GET /crop
CropApi crop_async_post POST /crop
CropApi crop_sync_get GET /crop/sync
CropApi crop_sync_post POST /crop/sync
EqualizeApi equalize_async_get GET /equalize
EqualizeApi equalize_async_post POST /equalize
EqualizeApi equalize_sync_get GET /equalize/sync
EqualizeApi equalize_sync_post POST /equalize/sync
GrayscaleApi grayscale_async_get GET /grayscale
GrayscaleApi grayscale_async_post POST /grayscale
GrayscaleApi grayscale_sync_get GET /grayscale/sync
GrayscaleApi grayscale_sync_post POST /grayscale/sync
ImageinfoApi imageinfo_sync_get GET /imageinfo
ImageinfoApi imageinfo_sync_post POST /imageinfo
PipelineApi pipeline_get GET /pipeline/{name}
PipelineApi pipeline_get_status GET /pipeline/{execution_id}/status
PipelineApi pipeline_post POST /pipeline/{name}
ResizeApi resize_async_get GET /resize
ResizeApi resize_async_post POST /resize
ResizeApi resize_sync_get GET /resize/sync
ResizeApi resize_sync_post POST /resize/sync
RotateApi rotate_async_get GET /rotate
RotateApi rotate_async_post POST /rotate
RotateApi rotate_sync_get GET /rotate/sync
RotateApi rotate_sync_post POST /rotate/sync
TextApi text_async_get GET /text
TextApi text_async_post POST /text
TextApi text_sync_get GET /text/sync
TextApi text_sync_post POST /text/sync

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

ApiKeyAuth

  • Type: API key
  • API key parameter name: X-Imager-Key
  • Location: HTTP header

Author

contact@imager200.io

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

imager200_python_sdk-1.0.1.tar.gz (80.2 kB view details)

Uploaded Source

Built Distribution

imager200_python_sdk-1.0.1-py3-none-any.whl (142.4 kB view details)

Uploaded Python 3

File details

Details for the file imager200_python_sdk-1.0.1.tar.gz.

File metadata

  • Download URL: imager200_python_sdk-1.0.1.tar.gz
  • Upload date:
  • Size: 80.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for imager200_python_sdk-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5a0119ffa44262604770b0f1c92fdab39274a3ac81d61bf915dab8f206317621
MD5 f84228c4075f7282e56b49f44c69d4fc
BLAKE2b-256 e657527fdccd8413857a0e41430ebd967646236bea2c696e5c8682dfe178bb39

See more details on using hashes here.

File details

Details for the file imager200_python_sdk-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for imager200_python_sdk-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec4180f7fc9e134a1916d8a83510cf99ad7d614c5c32155d7a62617b0f6a4152
MD5 0e2d61be18c8387abd67bf3973875e10
BLAKE2b-256 435834648c2b246541810f826c7863d3a553adea23b6cfe3c51de0d8e2f5587e

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