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|--functionare 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
- comments are not removed when
--no-highlightingoption is used- syntax highlighter is what removed them - might rewrite this
ChangeLog
v0.1.0
- initial release
v0.1.1
- added html output
- added licenses
v0.1.2
- added `--version` option
v0.1.3
- made html look nicer
- fixed `--no-highlighting` option for html output
- `--no-highlighting` option now skips syntax highlighter processing
- added `__call__` method to SyntaxHighlighter
- same as calling `SyntaxHighlighter.highlight()`
- fixes for method lookup
- added `-a`|`--attribute` options for searching attributes
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.3.tar.gz
(67.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bb_pycodeview-0.1.3.tar.gz.
File metadata
- Download URL: bb_pycodeview-0.1.3.tar.gz
- Upload date:
- Size: 67.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.7.1 CPython/3.11.7 Linux/6.7.4-zen1-1-zen
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e64f06e175fe0da616616b1273cf089d18a8bb3e04b76fe37e56507c66c50345
|
|
| MD5 |
7a65557ec850dd170f17d386480f520f
|
|
| BLAKE2b-256 |
7fed7a171e14c09efbad9c9f51b9090cedbb120dc96a2c0d818257aa64a51280
|
File details
Details for the file bb_pycodeview-0.1.3-py3-none-any.whl.
File metadata
- Download URL: bb_pycodeview-0.1.3-py3-none-any.whl
- Upload date:
- Size: 68.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.7.1 CPython/3.11.7 Linux/6.7.4-zen1-1-zen
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06f7d16950ec9ba91aac855b406354aae458c071ad742f39f8b09ed33e3a75f7
|
|
| MD5 |
6d30ba86ee49b80d257846688ad0edf1
|
|
| BLAKE2b-256 |
4021397f200c35c9a91c315a5c15db242bb27c5bbb647c56517f5101479dc268
|