Client library for interacting with MemeDeck's public API
Project description
To test on MacOS
mkdir test_memedeck_api && cd test_memedeck_api
python3.12 -m venv ./venv
source ./venv/bin/activate
python3.12 -m pip install requests
python3.12 -m pip install --index-url https://test.pypi.org/simple/ --no-deps pyapi-memedeck
python3.12
>>> from pyapi_memedeck import apiclient
>>> client = apiclient.MemeDeckClient(api_key="your_api_key", deck_id="your_deck_id")
To use
from pyapi_memedeck import apiclient
client = apiclient.MemeDeckClient(api_key="your_api_key", deck_id="your_deck_id")
# Generate an image
request = apiclient.GenerateImageRequest(
prompt="eating ice cream",
character="pepe",
aspect_ratio=apiclient.AspectRatios.SQUARE
)
# Generate and wait for the result
result = client.generate_image(request, wait=True)
print(f"Generated image URL: {result.url}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyapi_memedeck-0.0.1.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyapi_memedeck-0.0.1.tar.gz.
File metadata
- Download URL: pyapi_memedeck-0.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdfb1cac66937d28229226d9502ba1d9c5480aa11817194f57bb871caaa12dda
|
|
| MD5 |
95990d2337e0651320cab0824751b0f4
|
|
| BLAKE2b-256 |
1e2cccfd6af970178789366b7d5f694c909ebcb0a48d0757d72a59085e117473
|
File details
Details for the file pyapi_memedeck-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pyapi_memedeck-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca6f1e337356f50d53f92fa0ab0aecba05e5636310cf427c4de5277adc122b7a
|
|
| MD5 |
04858854df6baf82016ad4597dfae767
|
|
| BLAKE2b-256 |
4f71375535663e69935f329f33b002790ae5a36701ad881846f52d43a376a29e
|