GithubHelp home page GithubHelp logo

bratah123 / swordiedb Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 90 KB

A Maplestory Database API for SwordieMS-based sources written in Python

License: MIT License

Python 100.00%
maplestory spiritms pip database

swordiedb's Introduction

SwordieDB

Downloads Downloads Downloads

SwordieDB is a pip-compatible Python package designed for use in development of SwordieMS-based MapleStory private server tools (e.g. Discord bots).

The SwordieDB API allows access to character stats in the form of objects, for easy manipulation.

Current Status: Fully Released

Overall Developmental Progress:

Character Handling:
User Handling:
Inventory Handling:

Installation

Note: You are recommended to install to the project virtual environment.

  • In the terminal type the follow command: pip install swordiedb
    • Note: use system shell and not the Python REPL for pip!
    • To avoid any issues make sure to have these commands run prior to installing SwordieDB:
      • pip install -U setuptools
      • pip install -U wheel
  • Now to verify that you have access to the swordie_db module:
    • Try this import statement in the Python terminal: from swordie_db.database import SwordieDB
  • Then you are done! Refer to examples on how to use them. :octocat:

Examples

See the Code Examples page for sample code fragments.

Technical Details

Please refer to the Technical Details page for details, as well as detailed instructions for how to build this package for testing.

API Docs

The API Docs have been split out into a sister project here.

Suggestions

Suggestions for new features/functionality can be written as an issue from the "Issues" tab on github.

Credits

  • Credits to the original swordie devs!

swordiedb's People

Contributors

bratah123 avatar kookiiestudios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

swordiedb's Issues

Raise Minor version to 3

Suggestion:
Raise minor version to 3: v0.3.0

Rationale:
All core unit tests passed from Python 3.6.12 to Python 3.9.0

Python 3.6.12
ver3612

Python 3.9.0
ver390

Catch for non-existent jobs

Overview:

The following error was received when attempting to get job name of invalid ID:

image

Job ID is 0. Details extracted from DB for reference:

id characterid characteridforlog worldidforlog name gender skin face hair mixbasehaircolor mixaddhaircolor mixhairbaseprob level job str dex inte luk hp maxhp mp maxmp ap sp exp pop money wp extendsp posmap portal subjob deffaceacc fatigue lastfatigueupdatetime charismaexp insightexp willexp craftexp senseexp charmexp noncombatstatdaylimit pvpexp pvpgrade pvppoint pvpmodelevel pvpmodetype eventpoint albaactivityid albastarttime albaduration albaspecialreward burning charactercard accountlastlogout lastlogout gachexp honorexp nextavailablefametime
4 4 4 1 Kookiiee 0 0 23300 36786 0 0 0 1 0 12 5 4 4 50 50 0 0 0 0 0 0 0 0 4 4000011 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 1601-01-01 11:13:45.000 0 0 0 4 4 1601-01-01 11:13:45.000 0 0 1601-01-01 11:13:45.000

Suggested solutions

3 plausible solutions:

  1. Use of try-except
    • To catch the error
  2. Use of if-else
    • To handle job ID of 0 without raising error
  3. Add 0 to jobs.json
    • Easiest circumvention
    • May cause further problems down the line

Raise Minor version to 2

Suggestion:
Raise Minor version to 2: v0.2.0

Rationale:
All known features (with the exception of the incomplete/insecure password change method) of User handler has been tested for correctness.
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.