No project description provided
Project description
QQ's "Different Dimension Me" Animefier Python library
Python wrapper for QQ's "Different Dimension Me" AI, that applies an anime-theme to any given picture.
Installing
This package was developed & tested under Python 3.9. Available on PyPI:
pip install --user qqddm
Usage
Check the example code.
Known issues and limitations of the API
- Only available from China: since 2022-12-06, the API requires requests being performed from China, thus using a chinese proxy is required (you can see some public free servers here, or use proxybroker2).
- Only pictures with human faces: since 2022-12-06, the API became stricter with the pictures being converted, and requires them to have a human face.
- Forbidden images: the API refuses to convert images with sensible or political content.
Changelog
Versions 0.y.z are expected to be unstable, and the API may change on Minor (y) releases.
- 0.0.3
- Add new custom exception
ParamInvalidQQDDMApiResponseException
- Refactor mapping of API response codes with custom exceptions, now done programatically, defining the corresponding response code on each exception class
- Add new custom exception
- 0.0.2
- Add new
x-sign
headers required by the API since 2022-12-06. - Add new custom exceptions based on errors returned by the API:
VolumnLimitQQDDMApiResponseException
,AuthFailedQQDDMApiResponseException
,NotAllowedCountryQQDDMApiResponseException
,NoFaceInPictureQQDDMApiResponseException
.
- Add new
- 0.0.1
- Initial release:
- Class-based interface.
- Pass an image (as bytes) and send it to QQ API, returning the resulting images URLs.
- Download the returned images URLs.
- Requests settings (different for QQ API and for downloading result images): request timeouts, proxy, user-agents.
- Initial release:
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
qqddm-0.0.3.tar.gz
(7.5 kB
view details)
File details
Details for the file qqddm-0.0.3.tar.gz
.
File metadata
- Download URL: qqddm-0.0.3.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f03e37aa5454e06780ba0ed4f10495d78062fbb42166fb5860783273faf4263f |
|
MD5 | 93ce50d93180fef19fc8e18985ca2a50 |
|
BLAKE2b-256 | 0384e6f34fa221469986d4dc81ab8f69ea886dbb03a1787f2081ebe92234eb5e |