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.3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

picwish-0.0.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: picwish-0.0.3.tar.gz
  • Upload date:
  • Size: 4.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.3.tar.gz
Algorithm Hash digest
SHA256 fa63eedb62a3dad95d458c773cfc1b0aadc664c2a927b6b281c90c2b0b1701b0
MD5 601dfb07646f432f7c1388c95fedb7ef
BLAKE2b-256 c95160afe9b95d369cf3f26f587e0c783912717ce91dd651411479b5a632918f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: picwish-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 18544f536e38b803f69edf5ab4eeb2812d957a215df67b8142155f7cc6cc6d8a
MD5 4960f93c65b4fa36e2f666e24e4ec1bf
BLAKE2b-256 b846e4235bc20c3960642e0390436081d0838cd1ffcf5f7aa0e9a5be190230b9

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