No project description provided
Project description
tensoul-py
Convert MahjongSoul log into tenhou.net/6 format. (Inspired by https://github.com/Equim-chan/tensoul)
Usage
You need to have an account from CN server, because only accounts from CN server have the ability to login with username and password.
import json
import sys
from tensoul import MajsoulPaipuDownloader
username = "foo@bar.com"
password = "foobar"
record_uuid = "123456-abcdefgh-1234-abcd-1234-12345678abcd" # taken from majsoul log link: https://game.maj-soul.com/1/?paipu=<this_part>_a12345678
downloader = MajsoulPaipuDownloader()
await downloader.start(username, password)
try:
logs = await downloader.download(record_uuid)
json.dump(logs, sys.stdout, ensure_ascii=False)
finally:
await downloader.close()
See example.py also
Thanks
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tensoul-0.1.8.tar.gz.
File metadata
- Download URL: tensoul-0.1.8.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23c17199dbf02df24d4b2c70febea549d854e03eef68ba3c4798713bc245b75f
|
|
| MD5 |
f2ce14677b3f478d57de735d904f8102
|
|
| BLAKE2b-256 |
047aa780b196d079a50a2f0950a7ea87653c875a69eebf94da1c3605fe893c57
|
Provenance
The following attestation bundles were made for tensoul-0.1.8.tar.gz:
Publisher:
release.yml on ssttkkl/tensoul-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tensoul-0.1.8.tar.gz -
Subject digest:
23c17199dbf02df24d4b2c70febea549d854e03eef68ba3c4798713bc245b75f - Sigstore transparency entry: 415369175
- Sigstore integration time:
-
Permalink:
ssttkkl/tensoul-py@cd40fdd6d1c0f3a305e612f5e05ea97c09a7b5e5 -
Branch / Tag:
refs/tags/v0.1.9 - Owner: https://github.com/ssttkkl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cd40fdd6d1c0f3a305e612f5e05ea97c09a7b5e5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tensoul-0.1.8-py3-none-any.whl.
File metadata
- Download URL: tensoul-0.1.8-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ee2718c4c981ebfeec3de251b7da9319d16fd2c7f815ba16350f7250dfb99d9
|
|
| MD5 |
f333037ea00b91f5de4e62296b2ff9a0
|
|
| BLAKE2b-256 |
72b176a14da86ab2392373d368f9c85ad59b0ea6a01d86d933f897961f553300
|
Provenance
The following attestation bundles were made for tensoul-0.1.8-py3-none-any.whl:
Publisher:
release.yml on ssttkkl/tensoul-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tensoul-0.1.8-py3-none-any.whl -
Subject digest:
1ee2718c4c981ebfeec3de251b7da9319d16fd2c7f815ba16350f7250dfb99d9 - Sigstore transparency entry: 415369191
- Sigstore integration time:
-
Permalink:
ssttkkl/tensoul-py@cd40fdd6d1c0f3a305e612f5e05ea97c09a7b5e5 -
Branch / Tag:
refs/tags/v0.1.9 - Owner: https://github.com/ssttkkl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cd40fdd6d1c0f3a305e612f5e05ea97c09a7b5e5 -
Trigger Event:
push
-
Statement type: