Skip to main content

maimai llc tool box

Project description

mailoxy

  1. Installation
  2. Example

Installation

Python 3.11.0 or higher is required

pypi

pip install mailoxy

Pre-start

manual compile the db_file

from mailoxy.dmr import export_dict_all

export_dict_all("path/to/sdgb/StreamingAssets", "out_file_name.py")

Example

The following is a simple example.

from mailoxy.db_types import other_db
from mailoxy.dmr import RegionEnum
from mailoxy.maimanager import MaiManager
from mailoxy.maitypes import MaiConfig, MusicDetailRecord

import db  # manual compiled file

other_db.db_module = db

g_config = MaiConfig(
    mai2_salt='mai2_salt',
    region='your region',
    placeId='your placeId',
    placeName='your placeName',
    aes_key=b"aes_key",
    aes_iv=b"aes_iv",
    chime_salt='chime_salt',
    keychip='your keychip',
    romVersion='current rom version',
    dataVersion='current_data version',
)
manager = MaiManager(g_config)


def user_id_test():
    qrcode_data = "SWGCMAID2410311010106396A001F06D1AFD5565FBBD1B03BAAF254B413D08B8BE6125E087E91D303AHS"
    mai2 = manager.generate_mai2(manager.generate_user_id(qrcode_data))
    try:
        mai2.send_ticket(5)
    finally:
        o = mai2.user_logout()
    pass

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

mailoxy-1.0.0-py3-none-any.whl (437.4 kB view details)

Uploaded Python 3

File details

Details for the file mailoxy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mailoxy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 437.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for mailoxy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c466c1431d3dc4d9013c0814e8340ec5265f8ace45b9d3febe2abc09d974ebfd
MD5 5835f608fba05033eaae6c5dabfffbfa
BLAKE2b-256 d2f9ddf393bc5ba5d02dbfc515b8754968a1bee809122d0614a9d18477542404

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