WuWaImaGen - is a Python module that allows you to generate images for projects based on the game Wuthering Waves
Project description
WuWaImaGen.py
WuWaImaGen - is a Python module that allows you to generate images for projects based on the game Wuthering Waves
Possibilities:
- Generate card Gacha
- Counting Gacha history
- Automatically receive a link to the journal
- Counting history
- Generating a calendar of events in the game
Helpful information:
Install:
pip install wuwaimagen
Launch:
import asyncio
import wuwaimagen
'''
This example allows you to generate a gacha card and calculate your luck.
More examples here: https://github.com/Wuthery/WuWaImaGen.py/tree/main/Example
'''
client = wuwaimagen.ClientWuWa(assets=True)
async def main():
async with client:
data = await client.get_gacha_info("YOU_LINK", 1, lang= 'en', generator=True)
for key in data.data:
icon = await key.get_icon()
if key.typeRecord == 1:
print(f"==[{key.resourceType}] ({key.qualityLevel}) {key.name} - {key.time} [{key.drop}]\nICON: {icon.icon}\nBANNER: {icon.banner}\n")
else:
print(f"[{key.resourceType}] ({key.qualityLevel}) {key.name} - {key.time}[{key.drop}]\nICON: {icon.icon}\n")
print(f"Total Spin: {data.info.total_spin}\nAstrite: {data.info.astrite}\n==|Five Stars: {data.info.five_stars.resonator} | {data.info.five_stars.weapon}\n==|Four Stars: {data.info.four_stars.resonator} | {data.info.four_stars.weapon}\n==Three Stars: {data.info.three_stars.weapon}")
print(f"Card: {data.card}")
asyncio.run(main())
[!NOTE]
The module is still under development, this is not the final version, so stay tuned for updates
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
wuwaimagen-0.1.2.tar.gz
(124.4 kB
view hashes)
Built Distribution
wuwaimagen-0.1.2-py3-none-any.whl
(132.2 kB
view hashes)
Close
Hashes for wuwaimagen-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94a290f8aa0004405f758f1d0b218a6457be60856da3d3a0c426b0514e6a74e5 |
|
MD5 | 2b5309b7fd24635ceb1a1eb63fd21573 |
|
BLAKE2b-256 | ce302918aee88c65638dea8d3a4495ba4f19aab85fd88a08c5649034898e66b7 |