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
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
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.1.tar.gz
(65.2 kB
view hashes)
Built Distribution
Close
Hashes for bb_pycodeview-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7644b152e476366f6d9984dd089c715b43da6648804d0abb811fc3ca0e040ba8 |
|
MD5 | 7d994a664be0164e169c05612fff7301 |
|
BLAKE2b-256 | 58f103d0033a0be58dd78df11f6ec9a018d12c00fb9f39b3fe5a91237918e417 |