Installation ------------ `Source code `_ (requires git cli to be installed) .. code-block:: bash $ python -m pip install ptcx Usage ----- .. literalinclude:: usage.txt :language: text Or over python: .. autofunction:: ptcx.patch.path .. autofunction:: ptcx.patch.reset Patch configuration ------------------- | Example ptcx file: `patch/main.py.ptcx `_ | Extra file to add: `patch/extra.py `_ | Source file to patch: `src/main.py `_ .. literalinclude:: ../patch/main.py.ptcx :language: python Language support ----------------- .. list-table:: :header-rows: 1 * - Language - python package * - cpp - `tree-sitter-python `_ * - python - `tree-sitter-cpp `_ Reference ------------------- .. autoclass:: ptcx.BasePTC :members: .. toctree:: :glob: :maxdepth: 2 reference/*