This Tool made for CJE(Chishiki Joho Enshu 3) class at Univ. of Tsukuba, KLIS. This package converts source code comment to markdown text using split words.
Project description
cjeReportingTool
This Tool made for CJE(Chishiki Joho Enshu 3) class at Univ. Tsukuba, klis.
This package converts source code comment to markdown text using split words.
ja: 筑波大学 KLISのCJE3のマークダウン形式の小レポート用ライブラリです。特定の文字列
##
や#$
等をコメントに用いると,その記号を用いたコード行末に書いたコメントのみを行番号と合わせて出力します。
Usage
Require
This package does not require on other any packages.
Installation
This package runs on Python 3.6 or higher version. You can install it from PyPI via pip:
pipからインストールすることができます。インストールするには以下のコマンドを使用します。
pip install cjeReportingTool
to install.
Documentation
To use the package, load as a function.
cjeReportingTool(path, outpath, split_str, prefix)
Args
path
Read file pathoutpaht
Export file pathsplit_str
A symbol or string that separates comments from source codeprefix
Prefixes to be written out
Example
- Read file
Usr/home/sample.py
1 # num
2 i = 1 ##number
3 n = i * 2
4 # output
5 print(n) ##2
- Main program
1 cjeReportingTool('Usr/home/sample.py', 'Usr/home/out.md', '##', '>')
- Output file
Usr/home/out.md
1 > 2: number
2
3 > 5: 2
Point
split_str
uses a string other than the spelling of the symbols used your python code.
- Good:
##
,#&
,#$
,#%
- Bad:
#
No difference from other comments$
That's not comment
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for cjeReportingTool-1.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cba2a68148eced8bf43bedbe5d52db18987aa292652da7b81c4392e739cfc358 |
|
MD5 | 96b94b2d3203c76ca78187f128823846 |
|
BLAKE2b-256 | b85d2e763d666c20adeefa3f8e1815d2a181c815728c5c37e6e4618247e8c4e2 |