Skip to main content

Picwish Photo Enhancer

Project description

PicWish Photo Enhancer for Python

Usage

1. Install

pip install picwish

2. Obtain Your API Token

  • 1 Log in to your PicWish account
  • 2 Open the console and enter localStorage['passport_api_token'].
  • 3 Copy the API token displayed.

3. Write the Code

import asyncio
from picwish import Enhancer

# Replace '<Your-token-here>' with your actual API token
enhancer = Enhancer('<Your-token-here>')

async def main():
    enhanced_image = await enhancer.enhance('/path/to/input.jpg')
    await enhanced_image.download('output.jpg')

asyncio.run(main())

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

picwish-0.0.4.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

picwish-0.0.4-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file picwish-0.0.4.tar.gz.

File metadata

  • Download URL: picwish-0.0.4.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for picwish-0.0.4.tar.gz
Algorithm Hash digest
SHA256 696026b595c4b61ece0255df52676c680e5092faddd25da9af82f1d06dae3b17
MD5 62a8a100c3e2fe5265fe945d764117bb
BLAKE2b-256 37584349e6e09638e630fc8e26fb22927896fa23d3e217526b24f18b077c1c58

See more details on using hashes here.

File details

Details for the file picwish-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: picwish-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for picwish-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 47992f0e4f0e5f34f6225a67aa66575ee2a12e11f4ae2f858e6ba1bdc6cf4a56
MD5 6a9aed00da7af4682596be85f2aa3c7c
BLAKE2b-256 711f3dbb8c7c5402df3089b33ac0bfcde69d8705c61e6eb50f884c5fa098e69c

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