Skip to content

Repository files navigation

ENCard

ENCard - Add-on for module: https://github.com/DEViantUA/EnkaCard

Example run is in the file: Example.py

To run: Download the folder: encard and put it together with the file Example.py in the same directory, then run the code through the file: Example.py

Card Example:

asyncdefgenerator_card(uid): asyncwithencard.ENCard(lang="en") asenc:
result=awaitenc.create_cards(uid)
print("―"*(len(f"✦ {result.name}{result.uid}〕✦")+10))
print("―"*4+f"✦ {result.name}{result.uid}〕✦"+"―"*4)
print("―"*(len(f"✦ {result.name}{result.uid}〕✦")+10)+"\n")
forcharacterinresult.card:
print("―"*4+f"✦ {character.name}{character.id}〕✦"+"―"*4)
print("―"*6+f"✦〔{character.element}〕✦"+"―"*6)
print(f"Image: {character.card}\n\n")
asyncio.run(generator_card(724281429)) 

Profile Example:

asyncdefgenerator_profile(uid): asyncwithencard.ENCard(lang="en") asenc:
result=awaitenc.create_profile(uid)
print("―"*(len(f"✦ {result.name}{result.uid}〕✦")+10))
print("―"*4+f"✦ {result.name}{result.uid}〕✦"+"―"*4)
print("―"*(len(f"✦ {result.name}{result.uid}〕✦")+10))
print(f"✦Charter: {result.charter_name[:-2]}{len(result.charter)}〕✦\n")
ifresult.charter!= []:
forcharacterinresult.charter:
print("―"*4+f"✦ {character.name}{character.id}〕✦"+"―"*4)
print("―"*4+f"✦ {character.icon}〕✦"+"―"*4)
print("―"*6+f"✦〔{character.element}〕✦"+"―"*6)
print("\n\n")
else:
print("―"*6+f"✦〔Make the character stand visible〕✦"+"―"*6)
print(f"Image: {result.card}")
asyncio.run(generator_profile(724281429)) 

Result:

Card:

Баннер

Profile:

Баннер

About

ENCard resources

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages