Skip to main content

README

Provide some tools in C++ development.

  • Extracted raw strings from the C++ code

The source code is here. The python package is here.

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
    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

python -m build --sdist --wheel
twine upload dist/*

Test on local machine

python -m pip install --editable .

Metadata

Release files for cjtool 0.29.10

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

Source distribution (sdist)

Source distribution for cjtool 0.29.10
File Size Uploaded Provenance Actions
cjtool-0.29.10.tar.gz 23.6 kB Without provenance Details for cjtool-0.29.10.tar.gz

Built distribution (wheel)

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

Total release size: 45.9 kB

Release files / cjtool-0.29.10.tar.gz

Download URL cjtool-0.29.10.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3fdd01c3edb6569032d39cd428c29a7f9981dcf20016c1bbd27433d5d3e500fa
BLAKE2b-256 checksum
How to use checksums
ba9fdf3118a869113633d1083ef5490d4dd1d64fbda5cdb059e387180ea3df7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / cjtool-0.29.10-py3-none-any.whl

Download URL cjtool-0.29.10-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e71a845329f20e235bf4b3dba444dd21d3b101fa4f516ae250cc8f62fdf866c5
BLAKE2b-256 checksum
How to use checksums
08af5de4346eeeb89988456cabc1eb525928d93fb7dcf58798ffdc3733ef8d8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for cjtool 0.29.10

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.

Release history Release notifications | RSS feed

This release

0.29.10 This release

2 release files No provenance

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