Paifulogger

Latest version: v0.4.2

Safety actively analyzes 701563 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.4.0

* Since v0.4.0 there are some new information logged, before logging new paifu, please ***remake*** the paifu first. Please remake the log file by

plog -f [format] -l [lang] -o [output] -r

or

python -m paifulogger plog -f [format] -l [lang] -o [output] -r

manually. Or it will raise a `KeyError`. (This would be handled in this release. User still need to manually remake the paifu.)

We offered a remake template (`remake.bat`) for windows users, before executing the script please edit it to your preference and place it at the same directory as the `Tenhou-Paifu-Logger.exe`.

**Full Changelog**: https://github.com/Jim137/Tenhou-Paifu-Logger/compare/CLI-0.4.0...CLI-0.4.1

CLI-0.4.0
New Features

* New information logged:
* The change of rates レート変化
* Number of rounds 局数
* Number of wins 和了数
* Numbers of deal-ins 放銃数
* Add subparser `plog` and `pdl` to `__main__.py` while using `python -m paifulogger`

Important Notice

* Since there are some new information logged, before logging new paifu, please ***remake*** the paifu first. Please remake the log file by

plog -f [format] -l [lang] -o [output] -r

or

python -m paifulogger plog -f [format] -l [lang] -o [output] -r

manually. Or it will raise a `KeyError`.

We offered a remake template (`remake.bat`) for windows users, before executing the script please edit it to your preference and place it at the same directory as the `Tenhou-Paifu-Logger.exe`.

* The default logging format is switched to csv since last release(v0.3.9). If you want to keep using xlsx, please manually edit the script or edit config.json to use xlsx.



For developers

* Better API
* A publish tool and workflow

**Full Changelog**: https://github.com/Jim137/Tenhou-Paifu-Logger/compare/CLI-0.3.9...CLI-0.4.0

CLI-0.3.9
New Features
* Implemented support for reading config.json to save configurations, replacing the method of using batch scripts.

Note
Placing config.json in the same directory as the execution enables local configuration. For global configuration, place it in the following directories:
* Windows: `%localappdata%\Jim137\paifulogger\config.json`
* macOS: `/Users/{UserName}/Library/Application Support/paifulogger/config.json`
* Linux: `~/.local/share/paifulogger/config.json`

Important Notice
Now the default logging format is switched to csv. If you want to keep using xlsx, please manually edit the script or edit config.json to use xlsx.

**Full Changelog**: https://github.com/Jim137/Tenhou-Paifu-Logger/compare/CLI-0.3.7...CLI-0.3.9

CLI-0.3.7
New Features
* Add support for multiple output formats
*Note: The default script does not support outputing multiple formats. You have to manually modify the script.*

Bug Fixes
* Add exception handling for empty data in log_into_csv function

**Full Changelog**: https://github.com/Jim137/Tenhou-Paifu-Logger/compare/CLI-0.3.6.1...CLI-0.3.7

CLI-0.3.6.1
Bug Fixes
* Remake function fix

**Full Changelog**: https://github.com/Jim137/Tenhou-Paifu-Logger/compare/CLI-0.3.6...CLI-0.3.6.1

CLI-0.3.6
New Features
* Add CSV format output (-f csv)

**Full Changelog**: https://github.com/Jim137/Tenhou-Paifu-Logger/compare/CLI-0.3.4...CLI-0.3.6

CLI-0.3.4
There is no big change in this release.

But we add the file version info embebed in the exe file.
Now, you can keep the old configuration with old `run_TPL.bat` file.

---

For pip user, we add another scripts `plog` in case that `log` is duplicated.
The usage method of `plog` is same as `log`:

plog -l [language] -o [output directory] [paifu URLs]


**Full Changelog**: https://github.com/Jim137/Tenhou-Paifu-Logger/compare/CLI-0.3.3a...CLI-0.3.4

CLI-0.3.3a
New Features
- Added support for mjai format paifu output. (--mjai)

Important Note
We have rebranded the project on PyPI from "Tenhou-Paifu-Logger" to "PaifuLogger". If you had previously installed "Tenhou-Paifu-Logger", please follow these steps to transition to the new version:


pip uninstall Tenhou-Paifu-Logger
pip install PaifuLogger


We apologize for any confusion this may cause. While this decision was not easy, it aims to simplify the distribution and upgrade process for this project.

Thank you for your understanding and support.

**Full Changelog**: https://github.com/Jim137/Tenhou-Paifu-Logger/compare/CLI-0.3.2..CLI-0.3.3a


CLI-0.3.2
New Features

* New args flags
* check the version (-v, --version)
* ignore duplicated skip (for debugging) (--ignore-duplicated)

**Full Changelog**: https://github.com/Jim137/Tenhou-Paifu-Logger/compare/CLI-0.3.0...CLI-0.3.2

CLI-0.3.0
New Features
* Customized output directory (-o DIR, --output DIR)
* Localization for simplified Chinese (-l zh) and Japanese (-l ja) with ChatGPT

Bug Fixes
* Input choice for --format

**Full Changelog**: https://github.com/Jim137/Tenhou-Paifu-Logger/compare/CLI-0.2.5...CLI-0.3.0

CLI-0.2.5
Bug Fixes
* Multi urls error in input session

Note: You can input multiple URLs at once, separated by whatever you like. If you are lazy, you can just paste w/o anything.
Hint: With the combo of logged check, you don't have to worry about the duplication. You can feel free to paste all urls at once!

**Full Changelog**: https://github.com/Jim137/Tenhou-Paifu-Logger/compare/CLI-0.2.4...CLI-0.2.5

CLI-0.2.4
Bugs Fixes
* Support http input (link copy from tenhou 4k)
* Remake bug fixed (due to hdf5 dataframe change to be capable of http input)

**Full Changelog**: https://github.com/Jim137/Tenhou-Paifu-Logger/compare/CLI-0.2.3...CLI-0.2.4

CLI-0.2.3
New feature
* Remaking paifu method (-r, --remake)

Bugs Fixes
* Only skip the last logged paifu
(Note: if you have used CLI-0.2.2, you have to delete the log_url.h5 under paifu folder, since we have updated the dataframe of hdf5 file.)
* html has mojibake for localization user

**Full Changelog**: https://github.com/Jim137/Tenhou-Paifu-Logger/compare/CLI-0.2.2...CLI-0.2.3

CLI-0.2.2
New Features

* New output format: html
* Skip duplicated paifu
(*Only skip the last paifu*, it has been fix in CLI-0.2.3)

Note: you can decide the language, output format in `TPLv022.bat`.

**Full Changelog**: https://github.com/Jim137/Tenhou-Paifu-Logger/compare/CLI-0.2.1...CLI-0.2.2

CLI-0.2.1
We renamed the project from Tenhou-Haifu-Logger into Tenhou-Paifu-Logger. To maintain consistency throughout the project, we are making a new release here.

Note1: This release does not include any new features or changes, aside from the correction of the project name.
Note2: If you want to preserve your previously logged paifu, you have two options. First, you can manually rename the old directory and files to match the new name. Alternatively, you can use the "loop_and_local_lang_usage.bat" file to automatically log every paifu URL into new files.

CLI-0.2.0
New Feature
* Now Tenhou-Haifu-Logger can log Sanma(3p) haifu and distinguish it from Yonma(4p) haifu.

**Full Changelog**: https://github.com/Jim137/Tenhou-Haifu-Logger/compare/CLI-0.1.1...CLI-0.2.0

CLI-0.1.1
Bug Fixed
[Fix Error: 'cp950' codec can't encode](https://github.com/Jim137/Tenhou-Haifu-Logger/commit/6679ce6a6c71f87aa717965ba6a7185894442103)

Now, local language user will no longer encounter with "'cp950' codec can't encode" error.

CLI-0.1.0
Features
Enter the haifu URL, the program will log the following information.
* Game time
* Placing
* URL
* Rate before the game

By running `loop_and_local_lang_usage.bat`, it can keep running the program without opening a new one.

Supported Language
* English
* Traditional Chinese
中文用戶請編輯`loop_and_local_lang_usage.bat`檔案,在set LANG=後加上zh_tw,如`set LANG=zh_tw`。

Links

Releases

Has known vulnerabilities

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.