Skip to main content

tibiawiki-sql

Script that generates a sqlite database for the MMO Tibia.

Inspired in Mytherin's Tibiaylzer TibiaWiki parsing script.

This script fetches data from TibiaWiki via its API, compared to relying on database dumps that are not updated as frequently. By using the API, the data obtained is always fresh.

This script is not intended to be running constantly, it is meant to be run once, generate a sqlite database and use it externally.

If you integrate this into your project or use the generated data, make sure to credit TibiaWiki and its contributors.

GitHub (pre-)release PyPI PyPI - Python Version PyPI - License PyPI - Downloads

Requirements

  • Python 3.10 or higher

Installing

To install the latest version on PyPi:

pip install tibiawikisql

or

Install the latest version from GitHub

pip install git+https://github.com/Galarzaa90/tibiawiki-sql.git

Running

python -m tibiawikisql generate

OR

tibiawikisql

The process can be long, taking up to 10 minutes the first time. All images are saved to the images folder. On subsequent runs, images will be read from disk instead of being fetched from TibiaWiki again. If a newer version of the image has been uploaded, it will be updated.

When done, a database file called tibiawiki.db will be found on the folder.

Docker

Docker Pulls Docker Image Size (latest semver)

The database can also be generated without installing the project, it's dependencies, or Python, by using Docker. Make sure to have Docker installed, then simply run:

generateWithDocker.sh

The script will build a Docker image and run the script inside a container. The tibiawiki.db file will end up in the project's root directory as normal.

Database contents

  • Achievements
  • Charms
  • Creatures
  • Creature drop statistics
  • Houses
  • Imbuements
  • Items
  • Mounts
  • NPCs
  • NPC offers
  • Outfits
  • Quests
  • Spells
  • Updates
  • Worlds

Documentation

Check out the documentation page.

Contributing

Improvements and bug fixes are welcome, via pull requests
For questions, suggestions and bug reports, submit an issue.

The best way to contribute to this project is by contributing to TibiaWiki.

image

Release files for tibiawikisql 9.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tibiawikisql 9.0.0
File Size Uploaded
tibiawikisql-9.0.0.tar.gz 67.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tibiawikisql 9.0.0
File Interpreter ABI Platform
tibiawikisql-9.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 143.6 kB

Release files / tibiawikisql-9.0.0.tar.gz

Download URL tibiawikisql-9.0.0.tar.gz
Size 67.7 kB
Tags Source
SHA-256 checksum
How to use checksums
831f41d91cd179a52b56572412f463f99c1990379bd9b79a6f0c9e066fb6ed9a
BLAKE2b-256 checksum
How to use checksums
b1efeaee52f44f7e599558ed95dcd8757dc1fb341f1a58369e0c91e7178fc4c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Release files / tibiawikisql-9.0.0-py3-none-any.whl

Download URL tibiawikisql-9.0.0-py3-none-any.whl
Size 75.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b779871820528bb800e96a46b38efdd3cd89355985e0b406da32d838e021a5b
BLAKE2b-256 checksum
How to use checksums
e8fe5f7983f6897f13075a6ae77ab9658e1b1c060b104a40e949800350b3660d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page