QQ's "Different Dimension Me" Animefier Python library
Python wrapper for QQ's "Different Dimension Me" AI API, 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 pictures with human faces: since 2022-12-06, the QQ's API became stricter with the pictures being converted, and requires them to have a human face.
- Forbidden images: the QQ's API refuses to convert images with sensible or political content.
Changelog
Versions 0.y.z are expected to be unstable, and the library API may change on Minor (y) releases.
- 0.1.1
- Update to the new "overseas" API, which can be used from outside China
- Fix how images are downloaded using threads
- 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-signheaders 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:
Metadata
Release files for qqddm 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qqddm-0.1.1.tar.gz | 7.4 kB | Without provenance | Details for qqddm-0.1.1.tar.gz |
Release files / qqddm-0.1.1.tar.gz
| Download URL | qqddm-0.1.1.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6dfdd0235b5326d1ef0db34aa1d012becae647dae7e9f511b92765e28c74d03e
|
|
BLAKE2b-256 checksum How to use checksums |
ab1d178549c45a1ce10525af88b8b3894ca70834d29630421fd6f40eee83e2b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for qqddm 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.