cjtool-0.26
توضیحات
Provide some tools in C++ development
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cjtool-0.26 |
| نام | cjtool |
| نسخه کتابخانه | 0.26 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jun Chen |
| ایمیل نویسنده | junc76@gmail.com |
| آدرس صفحه اصلی | http://github.com/Junch/cjtool |
| آدرس اینترنتی | https://pypi.org/project/cjtool/ |
| مجوز | MIT |
# README
Provide some tools in C++ development.
- Extracted raw strings from the C++ code
The source code is [here](https://github.com/Junch/cjtool). The python package is [here](https://pypi.org/project/cjtool).
## 1. How to install
```
pip install cjtool
```
## 2. Command
A new command `stringrep.exe` is added after the installation.
- The command `stringrep` is to replace the raw string to a pointer. For example
```cpp
auto m = py::module::import("test_cmake_build");
// convert to the line below
auto m = py::module::import(pStrTest_cmake_build);
// the definiation of the string is as below
constexpr char* pStrTest_cmake_build = "test_cmake_build";
```
- Help message from the command `stringrep` is as below.
```
$ stringrep -h
usage: stringrep [-h] [-i] [-c] [-g] [-p PREFIX] file
positional arguments:
file set the cpp file name
optional arguments:
-h, --help show this help message and exit
-i, --inplace replace the file in place (default: False)
-c, --capitalize capitalize the captured word, for example,
"tom" turns to "Tom" (default: False)
-g, --generate generate the header lines for the captured
strings (default: False)
-p PREFIX, --prefix PREFIX
set the prefix for raw string (default: pStr)
```
## How to build and upload
```bash
python setup.py bdist_wheel --universal
twine upload dist/*
```
نیازمندی
| مقدار | نام |
|---|---|
| - | colorama |
| - | pyperclip |
| - | pexpect |
| - | pykd |
| - | PyYAML |
نحوه نصب
نصب پکیج whl cjtool-0.26:
pip install cjtool-0.26.whl
نصب پکیج tar.gz cjtool-0.26:
pip install cjtool-0.26.tar.gz