Skip to main content

🔮 Gacha

Project description

gacha

🔮 Gacha

language license

📑 Table of Contents

📦 Installation

🐍 PyPi

pip install gacha

🔎 Examples

🧾 Basic

examples/basic.py

from gacha import Engine, Banner, Character

engine = Engine(
    [
        Banner(
            "Wanderlust_Invocation",
            characters=[
                Character(
                    0.003,
                    name="Jean",
                    description="https://genshin-impact.fandom.com/wiki/Jean",
                ),
                Character(
                    0.003,
                    name="Qiqi",
                    description="https://genshin-impact.fandom.com/wiki/Qiqi",
                ),
                Character(
                    0.003,
                    name="Tighnari",
                    description="https://genshin-impact.fandom.com/wiki/Tighnari",
                ),
                Character(
                    0.003,
                    name="Keqing",
                    description="https://genshin-impact.fandom.com/wiki/Keqing",
                ),
                Character(
                    0.003,
                    name="Mona",
                    description="https://genshin-impact.fandom.com/wiki/Mona",
                ),
                Character(
                    0.003,
                    name="Dehya",
                    description="https://genshin-impact.fandom.com/wiki/Dehya",
                ),
                Character(
                    0.003,
                    name="Diluc",
                    description="https://genshin-impact.fandom.com/wiki/Diluc",
                ),
                ...,
            ],
            name="Wanderlust_Invocation",
            description="https://genshin-impact.fandom.com/wiki/Wanderlust_Invocation",
        ),
    ]
)

character = engine.roll()

print(character.name)  # Jean
print(character.description)  # https://genshin-impact.fandom.com/wiki/Jean

✨ Links

🐍 PyPi
🏠 Homepage
🐱 Repository

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

gacha-1.0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

gacha-1.0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file gacha-1.0.1.tar.gz.

File metadata

  • Download URL: gacha-1.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Windows/10

File hashes

Hashes for gacha-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8344fafe2dbf9c8860d9423dc1f8226a9e1a9ee5147ba9a7e756b9fdfdda4892
MD5 11542afb6a0240f01c368904d9980278
BLAKE2b-256 b101fe975a9ad0971076b1422bc3253a63dc7d58de19f47fffca14148054f864

See more details on using hashes here.

File details

Details for the file gacha-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: gacha-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Windows/10

File hashes

Hashes for gacha-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2fbeff10dd689f3123256b360b1ec348e84bacf421edafa4589150a620b31ab4
MD5 cf768532a15228b093b631be14bdaf3d
BLAKE2b-256 2fd691e1096078d99ae47d022f052c9e12143b32f6d6f5831eb2b8395c122417

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page