Skip to main content

A static library of Genshin item/char info. (WIP) - Albedo added.

Project description

GI Static Data Library

-Update-

  • Renamed the repo to genshin impact.
  • Version reset to 0.0.1

-Update 0.1.0 to 0.1.5-

* Trying to fix the talent retrieve function.
* Added a print system temporarily to help me debug

-Update 0.0.9-

* Fixing the lib issues

-Update 0.0.8-

* Trying a new json retreval system using lib

-Update 0.0.7-

* Trying to fix the same error that I tried to fix on 0.0.6.

-Update 0.0.6-

* Fixed an issue with retrieving character list by mats/element/weapon.

-Update 0.0.3 to 0.0.5-

* Fixed a json error.
* Fixed multiple json errors. :<
* I FORGOT TO SAVE THE ERROR FIXES

-Update 0.0.2-

* Added Albedo
* Changed the gisl.py lookup system

*** Major disclaimer: I did use AI for this. I'm new, but I will slowly change the code using my knowledge as I continue adding more stuff to this library :3

A simple Python library for retrieving Genshin Impact character and material data from a JSON file.

Features Character Data: Access detailed information about characters including their stats, talents, and constellations.

Material Lookup: Find which characters use a specific ascension or talent material.

Data-driven: The library's data is stored in a JSON file (gisl_data.json), making it easy to update and extend.

Installation You can install this library directly from your local repository using pip.

pip install .

Usage Here is a quick example of how to use the library to access character data.

Example: Getting Albedo's Talents from gisl_data_library import get_character_data import json

albedo_talents = get_character_data("albedo", "talents") print(json.dumps(albedo_talents, indent=2))

This will output all the talent data for Albedo, which is useful for figuring out which materials you need for your character.

Example: Finding characters by material from gisl_data_library import find_characters_by_material import json

characters_with_cecilia = find_characters_by_material("Cecilia") print(json.dumps(characters_with_cecilia, indent=2))

License This project is licensed under the MIT License.

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

genshin_impact-0.0.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

genshin_impact-0.0.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file genshin_impact-0.0.1.tar.gz.

File metadata

  • Download URL: genshin_impact-0.0.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for genshin_impact-0.0.1.tar.gz
Algorithm Hash digest
SHA256 60f62fc083e82682a3704bbc69baa9b0a7a414a925168c18e9253f07f05d448e
MD5 dc91785439d091de7f25bf281208e91e
BLAKE2b-256 6cb215d9e421ef5e972de0f71a4969c59dc49402c8470e6db6ba7bcc1a775581

See more details on using hashes here.

File details

Details for the file genshin_impact-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: genshin_impact-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for genshin_impact-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a142c86b3add6a8e747b115fed895f1a29cc59d7d64374a38cbd543588bcaa73
MD5 63628a7d4061ab3a9edb685fb71238d8
BLAKE2b-256 07e52658539c3c561dca1ba16049d013ef78676c19eda65efbda177e092ae06d

See more details on using hashes here.

Supported by

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