View highlighted python code
Project description
BB-PyCodeView
View syntax highlighted code from a filename or module name
Options
$ code-view --help
code-view - view highlighted python code
( -c | --comments ): Show comments in output
- default = False
( -f | --function ): Function name - same as adding ':function' after module name
( -H | --html ): Output an html string
( -h | --help ): Print help message
( -m | --module ): View code from a module
- will attempt to automagically parse this without the option given
( -n | --no-highlighting ): Disable syntax highlighting in output
- only effects output - string data is still processed
- default = False
( -p | --filepath ): View file contents
- path can also be provided without this option
( -s | --string ): Code view from a provided string
( | --version ): Print version info and exit
If the options
-p|--filepath
,-m|--module
, or-f|--function
are ommitted, it will attempt to automatically assign the arguments properly. May not work depending on the module name/path. Pathnames are almost guaranteed to work on their own.
TODO
- theming
ChangeLog
v0.1.0
- initial release
v0.1.1
- added html output
- added licenses
v0.1.2
- added `--version` option
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bb_pycodeview-0.1.2.tar.gz
(65.3 kB
view hashes)
Built Distribution
Close
Hashes for bb_pycodeview-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3b38d62b9bd6cb25ebbfdc03fcdf124ed4e1755a299fb909e42238af41d0583 |
|
MD5 | 52fc55db1d2d7c2a325af3f0c7a8d6d9 |
|
BLAKE2b-256 | 6054683a76f93be89dae7f99c7e4db5e8919431e545ed7b96f03413f63d5b19b |