COMTool


NameCOMTool JSON
Version 3.3.1 PyPI version JSON
download
home_pagehttps://github.com/Neutree/COMTool
SummaryCross platform serial debug assistant with GUI
upload_time2023-11-15 14:16:42
maintainer
docs_urlNone
authorNeucrack
requires_python
licenseLGPL-3.0
keywords serial debug tool assistant
VCS
bugtrack_url
requirements PyQt5 pyserial requests Babel qtawesome paramiko pyte pyperclip coloredlogs pyqtgraph
Travis-CI No Travis.
coveralls test coverage No coveralls.
            COMTool
========

English | [中文](./README_ZH.MD)

 ![GitHub](https://img.shields.io/github/license/neutree/comtool) [![PyPI](https://img.shields.io/pypi/v/comtool.svg)](https://pypi.python.org/pypi/comtool/) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/neutree/comtool/pack.yml?branch=master) ![GitHub repo size](https://img.shields.io/github/repo-size/neutree/comtool) ![GitHub Repo stars](https://img.shields.io/github/stars/neutree/comtool?style=social)

 [![GitHub all releases](https://img.shields.io/github/downloads/neutree/comtool/total?label=release%20downloads)](https://github.com/Neutree/COMTool/releases) [![PyPI - Downloads](https://img.shields.io/pypi/dm/comtool?label=pypi%20downloads)](https://pypi.org/project/COMTool/) [![SourceForge](https://img.shields.io/sourceforge/dt/comtool?label=sourceforge%20downloads)](https://sourceforge.net/projects/comtool)


A cross platform serial debug tools written by python

--------

| Windows | Linux | Raspberry Pi | macOS |
| ------- | ----- | ------------ | ----- |
| ![comtool Windows screenshot](./COMTool/assets/screenshot_v2_white.png) | ![comtool linux screenshot](./COMTool/assets/screenshot_V1.4_night.png) | ![comtool Raspberry Pi screenshot](./COMTool/assets/RaspberryPiScreenshot.png) | ![](./COMTool/assets/screenshot_macos.jpg) |


| White theme | Dark theme | protocol plugin | TCP/UDP | Terminal | Graph |
| ----------- | ---------- | --------------- | ------- | -------- | ----- |
| ![comtool white theme](./COMTool/assets/screenshot_v2_white.png) | ![comtool dark theme](./COMTool/assets/screenshot_v2.png) | ![comtool protocol plugin](./COMTool/assets/screenshot_protocol_v2.3.png) | ![tcp udp plugin](./COMTool/assets/tcp_udp.png) | ![terminal](./COMTool/assets/screenshot_terminal.png) | ![plugin graph](./COMTool/assets/screenshot_graph.png) |






> screenshot maybe the old version, the latest may not the same totally! But better performance、more easy to use and more elegant

## Features

- [x] cross platform (Windows, Linux, macOS, Raspberry Pi)(code with python, only if your platform support python)
- [x] reliable stability, no UI freeze
- [x] multiple language support
- [x] configs save and auto load(auto save settings when exit)
- [x] multiple character encode support(`ASII,GBK(Chinese),UTF-8,UTF-16` etc.)
- [x] night theme and White theme(can create more theme if you want)
- [x] multiple connection type support, and support add connection plugin
  - [x] serial port
    - [x] serial auto detect, and remember last selected support
    - [x] serial offline auto reconnect support
    - [x] port baudrate(any value) bytesize parity stopbits flow control etc. settings
    - [x] rts & dtr control by hand
  - [x] TCP/UDP support, include client and server mode
  - [x] SSH client support
- [x] plugin support(Create plugin see [docs/plugins.md](./docs/plugins.md)), built-in plugin:
  - [x] dbg plugin, support basic send receive debug operation
    - [x] basic send/receive data (ascii and hex)
    - [x] send and receive data count
    - [x] clear received data area
    - [x] auto linefeed
    - [x] scheduled auto send
    - [x] send history and select send again
    - [x] custom most usage data items and one click to send
    - [x] CR LF(\r\n) or LF(\n)  support
    - [x] key shortcuts like <kbd>Ctrl+Enter</kbd> to send etc. More see help
    - [x] receive and send record support add timestamp and save log to file
    - [x] send file
    - [x] unix terminal style color support(e.g.`\x1b[33;42mhello\x1b[0mhello2`)
    - [x] escape character support, like `\r \n \t \x` etc.
  - [x] protocol plugin, customize your own protocol
    - [x] customize encoding and decoding method
    - [x] customize shortcut key
    - [x] escape character support, like `\r \n \t \x` etc.
  - [x] terminal plugin, basic terminal interaction
  - [x] graph plugin
    - [x] support dynamicly add graph widgets, add graph widgets you need
    - [x] display line chart in realtime, support customize protocol header(support escape characters)
    - [x] customable button to send data, support shortcut key

## Installation

There are two ways to install COMTool:

* [Download binary files and run](#Install-binary) : For Windows or macOS, and simple usage users
* [Install as python package(source code)](#Install-python-package) : For Linux, or need to use plugins' user, or users who know about python

## Install binary

### Windows

* Download the latest bin file at the [release page](https://github.com/Neutree/COMTool/releases) or [sourceforge](https://sourceforge.net/projects/comtool/files/)
* Unzip `.zip` file, and click `comtool.exe` to run
> And you can install by scoop, maintained by [StudentWeis](https://github.com/Neutree/COMTool/issues/50)
> ```
> scoop bucket add Nightly https://github.com/StudentWeis/Nightly
> scoop install comtool
> ```

### Linux

Linux has too much version, so we only compile binary for ubuntu.
Other distribution please [install from pypi or source code](#Install-python-package).
If you have any idea to pack cross platform binary like flatpak or appimage, you can contribute a pull request or add an issue to tell me how to

> Arch Linux and its derivative distributions can install from AUR(maintained by [taotieren](https://github.com/Neutree/COMTool/issues/44)):
> ```bash
> # Release version
> yay -S python-comtool
> # Development version
> yay -S python-comtool-git
> ```

* Download release at [release](https://github.com/Neutree/COMTool/releases) page, and extract files from `.zip` file, and click `comtool` to run

* Add current user to dialout group to avoid `sudo` command
```shell
sudo usermod -a -G dialout $USER
grep 'dialout' /etc/group
reboot #must reboot to take effect
```

### Rasberry Pi


just open terminal, type the command below:
```
sudo apt install git
git clone https://github.com/Neutree/COMTool.git --depth=1
cd COMTool
pip3 install .
# or
# python setup.py bdist_wheel
# sudo pip3 install dist/COMTool-*.*.*-py3-none-any.whl
```

* Add current user to dialout group to avoid `sudo` command
```shell
sudo usermod -a -G dialout $USER
grep 'dialout' /etc/group
reboot #must reboot to take effect
```

then enjoy by command
```
comtool
```

### macOS

* Download release at [release](https://github.com/Neutree/COMTool/releases) page or [sourceforge](https://sourceforge.net/projects/comtool/files/)
* Install dmg package

If you want to open multiple comtool, just right click dock icon, then click `New Window`.

or you can open terminal and type
```
open -n /Application/comtool.app
```
or
```
cd /Applicatioin/comtool.app/Contents/MacOS
./comtool
```

> Because the program is not signed by the developer, it will warn when you open it for the first time. You need to go to `Settings -> Security and Privacy -> General` to see the prompt `comtool` and click `Open anyway`.

## Windows defender shows comtool binary is malware?

If your program is download from [here](https://github.com/Neutree/COMTool/releases), it's ok, the error caused by [pack issue](https://github.com/pyinstaller/pyinstaller/issues/4852), all the source code and pack script is here, even the pack progress is totally automated with github action, no one manually pack.

If you remain have concern, just download source code to run with python or pack yourself.

Of course, if you find a better pack way, please open issue to tell us.


## Install python package

For developers or the binary not support your platform's, use this way to install

* Install Python3 first
  * If windows or macOS: [dowload python3](https://www.python.org/downloads/)
  * If linux: ubuntu for example `sudo apt install python3 python3-pip`, macOS `brew install python3 python3-pip`

* Ensure you have `pip`
```shell
pip3 --version
# or
pip --version
```

If no this command, install by
```shell
python3 -m ensurepip
```

* Then install from pypi:
```shell
pip3 install comtool
comtool
```

for Chinese, you can use tuna mirrors to download faster by:
```shell
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple comtool
```

* Or you can directly install from github
```
pip3 install git+https://github.com/Neutree/COMTool
```

* Or you can download source code, then install from source code
  * download source code, download [in web page](https://github.com/Neutree/COMTool) or `git clone https://github.com/Neutree/COMTool.git`
  * install
```
cd COMTool
pip install .
```
or build your own wheel binary
```
pip3 install wheel
python setup.py bdist_wheel
pip install dist/COMTool-*.*.*-py3-none-any.whl
comtool
```

* By the way, you should add current user to dialout group to avoid `sudo` command
```shell
sudo usermod -a -G dialout $USER
grep 'dialout' /etc/group
reboot #must reboot to take effect
```

## Manually add app to start menu on Linux

* Copy [tool/comtool.desktop](tool/comtool.desktop) to `/usr/share/applications` folder(may need `root` user to do this)
* Edit `/usr/share/applications/comtool.desktop`, change icon path `Icon=/usr/local/COMTool/assets/logo.ico` to actual [icon](COMTool/assets/logo.ico) path, you can also use your love icon
* Then you can find comtool app in start menu(or app center)

## Pack binary


```shell
pip3 install pyinstaller
python pack.py
cd dist
ls
```

> It's better to create a virtual environment before pack to decrease the size of binary


## Development

1. Install python(>=3.8) and pip3

Linux:
```
sudo apt install python3 python3-pip
```

Windows: 
  [dowload python3](https://www.python.org/downloads/)

2. install packages like `pyserial` and `PyQt5` etc.(list in [requirements.txt](requirements.txt))
```
cd COMTool
pip3 install -r requirements.txt
```

On Raspberry, `python3-pyqt5` can be install by `apt` command:
```
sudo pip3 install --upgrade pyserial
sudo apt install python3-pyqt5
```

3. clone project
```
git clone https://github.com/Neutree/COMTool.git
```

4. code, resolve bugs or add new reatures

Recommended `PyCharm` IDE or `vscode` to get start

How to run:
Generate translate binary files first(`.mo`)

```
python COMTool/i18n.py finish
```

Then execute main program

```
python COMTool/Main.py
```

5. pull request

## Write your own plugins in minutes

see [docs/plugins.md](./docs/plugins.md)


## Add translate

* Install environment first(python pip packages in the requirments.txt)
```shell
apt install python3 python3-pip
pip3 install -r requirements.txt
```

* If you need to add a new lanuage, or skip

Add locale in [i18n.py](./COMTool/i18n.py)
```
locales=["en", "zh_CN", "zh_TW", "ja"]
```
append your language to this list, locales can be found [here](https://www.science.co.il/language/Locale-codes.php) or [wikipedia](https://en.wikipedia.org/wiki/Language_localisation), `zh_CN` for example means China Mainland, corresponding language is simplified Chinese characters, `zh_TW` means China Taiwan, and language is traditional Chinese characters, you can also only use `zh` to use simplified Chinese characters.

* Generate translate files

```shell
python i18n.py prepare
```

This command will generate `.po` files in locales folder

* Translate mannually

Then translate `.po` files, this is a standard translate file format which named `gettext`

* Generate binary translate files

to make program read faster, the text files `.po` should be convert to binary file `.mo`, just run command:
```shell
python i18n.py finish
```
and then you can see `locales/<locale>/LC_MESSAGES/messages.mo` file

* Test

Run application, you will see the new translation

* Pull request

Create a PR to merge your changes to [this repo](https://github.com/Neutree/COMTool)




## Issue and improvement

Create issue [here](https://github.com/Neutree/COMTool/issues/new)


## License

[LGPL-3.0 License](LICENSE)

And used these open source projects as libraries:

* [PyQt5](https://www.riverbankcomputing.com/software/pyqt/): [GNU GPL v3](https://www.riverbankcomputing.com/software/pyqt/)
* [pyserial](https://github.com/pyserial/pyserial): [BSD-3-Clause](https://github.com/pyserial/pyserial/blob/master/LICENSE.txt)
* [requests](https://github.com/psf/requests): [Apache 2.0](https://github.com/psf/requests/blob/main/LICENSE)
* [Babel](https://github.com/python-babel/babel): [BSD](https://github.com/python-babel/babel/blob/master/LICENSE)
* [qtawesome](https://github.com/spyder-ide/qtawesome): [MIT](https://github.com/spyder-ide/qtawesome/blob/master/LICENSE.txt)
* [pyte](https://github.com/selectel/pyte): [LGPL 3.0](https://github.com/selectel/pyte/blob/master/LICENSE)
* [paramiko](https://github.com/paramiko/paramiko): [LGPL 2.1](https://github.com/paramiko/paramiko/blob/main/LICENSE)
* [pyperclip](https://github.com/asweigart/pyperclip): [BSD-3-Clause](https://github.com/asweigart/pyperclip/blob/master/LICENSE.txt)
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Neutree/COMTool",
    "name": "COMTool",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Serial Debug Tool Assistant",
    "author": "Neucrack",
    "author_email": "czd666666@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a9/0b/55a0badb44c0faa3de87e58cac01147f9f4e3b3155dabc7c85aace31d2c3/COMTool-3.3.1.tar.gz",
    "platform": null,
    "description": "COMTool\n========\n\nEnglish | [\u4e2d\u6587](./README_ZH.MD)\n\n ![GitHub](https://img.shields.io/github/license/neutree/comtool) [![PyPI](https://img.shields.io/pypi/v/comtool.svg)](https://pypi.python.org/pypi/comtool/) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/neutree/comtool/pack.yml?branch=master) ![GitHub repo size](https://img.shields.io/github/repo-size/neutree/comtool) ![GitHub Repo stars](https://img.shields.io/github/stars/neutree/comtool?style=social)\n\n [![GitHub all releases](https://img.shields.io/github/downloads/neutree/comtool/total?label=release%20downloads)](https://github.com/Neutree/COMTool/releases) [![PyPI - Downloads](https://img.shields.io/pypi/dm/comtool?label=pypi%20downloads)](https://pypi.org/project/COMTool/) [![SourceForge](https://img.shields.io/sourceforge/dt/comtool?label=sourceforge%20downloads)](https://sourceforge.net/projects/comtool)\n\n\nA cross platform serial debug tools written by python\n\n--------\n\n| Windows | Linux | Raspberry Pi | macOS |\n| ------- | ----- | ------------ | ----- |\n| ![comtool Windows screenshot](./COMTool/assets/screenshot_v2_white.png) | ![comtool linux screenshot](./COMTool/assets/screenshot_V1.4_night.png) | ![comtool Raspberry Pi screenshot](./COMTool/assets/RaspberryPiScreenshot.png) | ![](./COMTool/assets/screenshot_macos.jpg) |\n\n\n| White theme | Dark theme | protocol plugin | TCP/UDP | Terminal | Graph |\n| ----------- | ---------- | --------------- | ------- | -------- | ----- |\n| ![comtool white theme](./COMTool/assets/screenshot_v2_white.png) | ![comtool dark theme](./COMTool/assets/screenshot_v2.png) | ![comtool protocol plugin](./COMTool/assets/screenshot_protocol_v2.3.png) | ![tcp udp plugin](./COMTool/assets/tcp_udp.png) | ![terminal](./COMTool/assets/screenshot_terminal.png) | ![plugin graph](./COMTool/assets/screenshot_graph.png) |\n\n\n\n\n\n\n> screenshot maybe the old version, the latest may not the same totally! But better performance\u3001more easy to use and more elegant\n\n## Features\n\n- [x] cross platform (Windows, Linux, macOS, Raspberry Pi)(code with python, only if your platform support python)\n- [x] reliable stability, no UI freeze\n- [x] multiple language support\n- [x] configs save and auto load(auto save settings when exit)\n- [x] multiple character encode support(`ASII,GBK(Chinese),UTF-8,UTF-16` etc.)\n- [x] night theme and White theme(can create more theme if you want)\n- [x] multiple connection type support, and support add connection plugin\n  - [x] serial port\n    - [x] serial auto detect, and remember last selected support\n    - [x] serial offline auto reconnect support\n    - [x] port baudrate(any value) bytesize parity stopbits flow control etc. settings\n    - [x] rts & dtr control by hand\n  - [x] TCP/UDP support, include client and server mode\n  - [x] SSH client support\n- [x] plugin support(Create plugin see [docs/plugins.md](./docs/plugins.md)), built-in plugin:\n  - [x] dbg plugin, support basic send receive debug operation\n    - [x] basic send/receive data (ascii and hex)\n    - [x] send and receive data count\n    - [x] clear received data area\n    - [x] auto linefeed\n    - [x] scheduled auto send\n    - [x] send history and select send again\n    - [x] custom most usage data items and one click to send\n    - [x] CR LF(\\r\\n) or LF(\\n)  support\n    - [x] key shortcuts like <kbd>Ctrl+Enter</kbd> to send etc. More see help\n    - [x] receive and send record support add timestamp and save log to file\n    - [x] send file\n    - [x] unix terminal style color support(e.g.`\\x1b[33;42mhello\\x1b[0mhello2`)\n    - [x] escape character support, like `\\r \\n \\t \\x` etc.\n  - [x] protocol plugin, customize your own protocol\n    - [x] customize encoding and decoding method\n    - [x] customize shortcut key\n    - [x] escape character support, like `\\r \\n \\t \\x` etc.\n  - [x] terminal plugin, basic terminal interaction\n  - [x] graph plugin\n    - [x] support dynamicly add graph widgets, add graph widgets you need\n    - [x] display line chart in realtime, support customize protocol header(support escape characters)\n    - [x] customable button to send data, support shortcut key\n\n## Installation\n\nThere are two ways to install COMTool:\n\n* [Download binary files and run](#Install-binary) : For Windows or macOS, and simple usage users\n* [Install as python package(source code)](#Install-python-package) : For Linux, or need to use plugins' user, or users who know about python\n\n## Install binary\n\n### Windows\n\n* Download the latest bin file at the [release page](https://github.com/Neutree/COMTool/releases) or [sourceforge](https://sourceforge.net/projects/comtool/files/)\n* Unzip `.zip` file, and click `comtool.exe` to run\n> And you can install by scoop, maintained by [StudentWeis](https://github.com/Neutree/COMTool/issues/50)\n> ```\n> scoop bucket add Nightly https://github.com/StudentWeis/Nightly\n> scoop install comtool\n> ```\n\n### Linux\n\nLinux has too much version, so we only compile binary for ubuntu.\nOther distribution please [install from pypi or source code](#Install-python-package).\nIf you have any idea to pack cross platform binary like flatpak or appimage, you can contribute a pull request or add an issue to tell me how to\n\n> Arch Linux and its derivative distributions can install from AUR(maintained by [taotieren](https://github.com/Neutree/COMTool/issues/44))\uff1a\n> ```bash\n> # Release version\n> yay -S python-comtool\n> # Development version\n> yay -S python-comtool-git\n> ```\n\n* Download release at [release](https://github.com/Neutree/COMTool/releases) page, and extract files from `.zip` file, and click `comtool` to run\n\n* Add current user to dialout group to avoid `sudo` command\n```shell\nsudo usermod -a -G dialout $USER\ngrep 'dialout' /etc/group\nreboot #must reboot to take effect\n```\n\n### Rasberry Pi\n\n\njust open terminal, type the command below:\n```\nsudo apt install git\ngit clone https://github.com/Neutree/COMTool.git --depth=1\ncd COMTool\npip3 install .\n# or\n# python setup.py bdist_wheel\n# sudo pip3 install dist/COMTool-*.*.*-py3-none-any.whl\n```\n\n* Add current user to dialout group to avoid `sudo` command\n```shell\nsudo usermod -a -G dialout $USER\ngrep 'dialout' /etc/group\nreboot #must reboot to take effect\n```\n\nthen enjoy by command\n```\ncomtool\n```\n\n### macOS\n\n* Download release at [release](https://github.com/Neutree/COMTool/releases) page or [sourceforge](https://sourceforge.net/projects/comtool/files/)\n* Install dmg package\n\nIf you want to open multiple comtool, just right click dock icon, then click `New Window`.\n\nor you can open terminal and type\n```\nopen -n /Application/comtool.app\n```\nor\n```\ncd /Applicatioin/comtool.app/Contents/MacOS\n./comtool\n```\n\n> Because the program is not signed by the developer, it will warn when you open it for the first time. You need to go to `Settings -> Security and Privacy -> General` to see the prompt `comtool` and click `Open anyway`.\n\n## Windows defender shows comtool binary is malware?\n\nIf your program is download from [here](https://github.com/Neutree/COMTool/releases), it's ok, the error caused by [pack issue](https://github.com/pyinstaller/pyinstaller/issues/4852), all the source code and pack script is here, even the pack progress is totally automated with github action, no one manually pack.\n\nIf you remain have concern, just download source code to run with python or pack yourself.\n\nOf course, if you find a better pack way, please open issue to tell us.\n\n\n## Install python package\n\nFor developers or the binary not support your platform's, use this way to install\n\n* Install Python3 first\n  * If windows or macOS: [dowload python3](https://www.python.org/downloads/)\n  * If linux: ubuntu for example `sudo apt install python3 python3-pip`, macOS `brew install python3 python3-pip`\n\n* Ensure you have `pip`\n```shell\npip3 --version\n# or\npip --version\n```\n\nIf no this command, install by\n```shell\npython3 -m ensurepip\n```\n\n* Then install from pypi:\n```shell\npip3 install comtool\ncomtool\n```\n\nfor Chinese, you can use tuna mirrors to download faster by:\n```shell\npip install -i https://pypi.tuna.tsinghua.edu.cn/simple comtool\n```\n\n* Or you can directly install from github\n```\npip3 install git+https://github.com/Neutree/COMTool\n```\n\n* Or you can download source code, then install from source code\n  * download source code, download [in web page](https://github.com/Neutree/COMTool) or `git clone https://github.com/Neutree/COMTool.git`\n  * install\n```\ncd COMTool\npip install .\n```\nor build your own wheel binary\n```\npip3 install wheel\npython setup.py bdist_wheel\npip install dist/COMTool-*.*.*-py3-none-any.whl\ncomtool\n```\n\n* By the way, you should add current user to dialout group to avoid `sudo` command\n```shell\nsudo usermod -a -G dialout $USER\ngrep 'dialout' /etc/group\nreboot #must reboot to take effect\n```\n\n## Manually add app to start menu on Linux\n\n* Copy [tool/comtool.desktop](tool/comtool.desktop) to `/usr/share/applications` folder(may need `root` user to do this)\n* Edit `/usr/share/applications/comtool.desktop`, change icon path `Icon=/usr/local/COMTool/assets/logo.ico` to actual [icon](COMTool/assets/logo.ico) path, you can also use your love icon\n* Then you can find comtool app in start menu(or app center)\n\n## Pack binary\n\n\n```shell\npip3 install pyinstaller\npython pack.py\ncd dist\nls\n```\n\n> It's better to create a virtual environment before pack to decrease the size of binary\n\n\n## Development\n\n1. Install python(>=3.8) and pip3\n\nLinux:\n```\nsudo apt install python3 python3-pip\n```\n\nWindows: \n  [dowload python3](https://www.python.org/downloads/)\n\n2. install packages like `pyserial` and `PyQt5` etc.(list in [requirements.txt](requirements.txt))\n```\ncd COMTool\npip3 install -r requirements.txt\n```\n\nOn Raspberry, `python3-pyqt5` can be install by `apt` command:\n```\nsudo pip3 install --upgrade pyserial\nsudo apt install python3-pyqt5\n```\n\n3. clone project\n```\ngit clone https://github.com/Neutree/COMTool.git\n```\n\n4. code, resolve bugs or add new reatures\n\nRecommended `PyCharm` IDE or `vscode` to get start\n\nHow to run:\nGenerate translate binary files first(`.mo`)\n\n```\npython COMTool/i18n.py finish\n```\n\nThen execute main program\n\n```\npython COMTool/Main.py\n```\n\n5. pull request\n\n## Write your own plugins in minutes\n\nsee [docs/plugins.md](./docs/plugins.md)\n\n\n## Add translate\n\n* Install environment first(python pip packages in the requirments.txt)\n```shell\napt install python3 python3-pip\npip3 install -r requirements.txt\n```\n\n* If you need to add a new lanuage, or skip\n\nAdd locale in [i18n.py](./COMTool/i18n.py)\n```\nlocales=[\"en\", \"zh_CN\", \"zh_TW\", \"ja\"]\n```\nappend your language to this list, locales can be found [here](https://www.science.co.il/language/Locale-codes.php) or [wikipedia](https://en.wikipedia.org/wiki/Language_localisation), `zh_CN` for example means China Mainland, corresponding language is simplified Chinese characters, `zh_TW` means China Taiwan, and language is traditional Chinese characters, you can also only use `zh` to use simplified Chinese characters.\n\n* Generate translate files\n\n```shell\npython i18n.py prepare\n```\n\nThis command will generate `.po` files in locales folder\n\n* Translate mannually\n\nThen translate `.po` files, this is a standard translate file format which named `gettext`\n\n* Generate binary translate files\n\nto make program read faster, the text files `.po` should be convert to binary file `.mo`, just run command:\n```shell\npython i18n.py finish\n```\nand then you can see `locales/<locale>/LC_MESSAGES/messages.mo` file\n\n* Test\n\nRun application, you will see the new translation\n\n* Pull request\n\nCreate a PR to merge your changes to [this repo](https://github.com/Neutree/COMTool)\n\n\n\n\n## Issue and improvement\n\nCreate issue [here](https://github.com/Neutree/COMTool/issues/new)\n\n\n## License\n\n[LGPL-3.0 License](LICENSE)\n\nAnd used these open source projects as libraries:\n\n* [PyQt5](https://www.riverbankcomputing.com/software/pyqt/): [GNU GPL v3](https://www.riverbankcomputing.com/software/pyqt/)\n* [pyserial](https://github.com/pyserial/pyserial): [BSD-3-Clause](https://github.com/pyserial/pyserial/blob/master/LICENSE.txt)\n* [requests](https://github.com/psf/requests): [Apache 2.0](https://github.com/psf/requests/blob/main/LICENSE)\n* [Babel](https://github.com/python-babel/babel): [BSD](https://github.com/python-babel/babel/blob/master/LICENSE)\n* [qtawesome](https://github.com/spyder-ide/qtawesome): [MIT](https://github.com/spyder-ide/qtawesome/blob/master/LICENSE.txt)\n* [pyte](https://github.com/selectel/pyte): [LGPL 3.0](https://github.com/selectel/pyte/blob/master/LICENSE)\n* [paramiko](https://github.com/paramiko/paramiko): [LGPL 2.1](https://github.com/paramiko/paramiko/blob/main/LICENSE)\n* [pyperclip](https://github.com/asweigart/pyperclip): [BSD-3-Clause](https://github.com/asweigart/pyperclip/blob/master/LICENSE.txt)",
    "bugtrack_url": null,
    "license": "LGPL-3.0",
    "summary": "Cross platform serial debug assistant with GUI",
    "version": "3.3.1",
    "project_urls": {
        "Homepage": "https://github.com/Neutree/COMTool"
    },
    "split_keywords": [
        "serial",
        "debug",
        "tool",
        "assistant"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a90b55a0badb44c0faa3de87e58cac01147f9f4e3b3155dabc7c85aace31d2c3",
                "md5": "60d528f7c05f1579deac8730d879f28d",
                "sha256": "8a8423a8de41239f3878f79372ed29e604d7a699f25ac504c4f00fd1d810c6c7"
            },
            "downloads": -1,
            "filename": "COMTool-3.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "60d528f7c05f1579deac8730d879f28d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 823991,
            "upload_time": "2023-11-15T14:16:42",
            "upload_time_iso_8601": "2023-11-15T14:16:42.892578Z",
            "url": "https://files.pythonhosted.org/packages/a9/0b/55a0badb44c0faa3de87e58cac01147f9f4e3b3155dabc7c85aace31d2c3/COMTool-3.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-15 14:16:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Neutree",
    "github_project": "COMTool",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "PyQt5",
            "specs": [
                [
                    ">=",
                    "5.15.6"
                ]
            ]
        },
        {
            "name": "pyserial",
            "specs": [
                [
                    ">=",
                    "3.5"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    ">=",
                    "2.25.1"
                ]
            ]
        },
        {
            "name": "Babel",
            "specs": [
                [
                    ">=",
                    "2.9.1"
                ]
            ]
        },
        {
            "name": "qtawesome",
            "specs": []
        },
        {
            "name": "paramiko",
            "specs": []
        },
        {
            "name": "pyte",
            "specs": []
        },
        {
            "name": "pyperclip",
            "specs": []
        },
        {
            "name": "coloredlogs",
            "specs": []
        },
        {
            "name": "pyqtgraph",
            "specs": []
        }
    ],
    "lcname": "comtool"
}
        
Elapsed time: 0.19281s