Skip to main content

The idea of repository based on https://github.com/chaserhkj/PyMajSoul/

Python wrappers for Majsoul allow you to interact with their servers from Python scripts.

For User

  1. Install uv
  2. uv run example.py -u username -p password

The example logs in and lists your latest 30 games. Pass -l <game uuid> to load one game log instead.

This example is working only with Python3.9+.

Also, you need to have an account from CN server to run this example, because only accounts from CN server has the ability to login with login and password.

If you want to login to EN or JP servers you need to write your code to authenticate via email code or social network. Protobuf wrapper from this repository contains all needed API objects for that.

For Developer

Requirements

  1. uv sync
  2. Install protobuf compiler sudo apt install protobuf-compiler

How to update protocol files to the new version

It was tested on Ubuntu.

  1. Download the new liqi.json file from MS (find it in the network tab of your browser) and put it to ms/liqi.json
  2. python generate_proto_file.py
  3. protoc --python_out=. protocol.proto
  4. chmod +x ms-plugin.py
  5. sudo cp ms-plugin.py /usr/bin/ms-plugin.py
  6. protoc --custom_out=. --plugin=protoc-gen-custom=ms-plugin.py ./protocol.proto

How to release new version

  1. Bump version in pyproject.toml
  2. uv build
  3. uv publish

Metadata

Release files for ms_api 0.11.252

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

Source distribution (sdist)

Source distribution for ms_api 0.11.252
File Size Uploaded Provenance Actions
ms_api-0.11.252.tar.gz 84.4 kB Without provenance Details for ms_api-0.11.252.tar.gz

Built distribution (wheel)

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

Total release size: 169.8 kB

Release files / ms_api-0.11.252.tar.gz

Download URL ms_api-0.11.252.tar.gz
Size 84.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b088087670b3cc32ebd58e6617873ec6d3d2cb001db248f12dceb1bc09ae0b78
BLAKE2b-256 checksum
How to use checksums
81f273bcce2b2d3979771f587a5a89dfadf82e8debaa565c440caa373b0a17d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ms_api-0.11.252-py3-none-any.whl

Download URL ms_api-0.11.252-py3-none-any.whl
Size 85.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df2651167edd2094d3fc6a13ccca2721784d3fc8c5a5dc958ca8148d82eabb90
BLAKE2b-256 checksum
How to use checksums
2a2de7fb548bd0055369cdf676734c83321f881773d31048cb44456fa59cf254
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for ms_api 0.11.252

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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