Metadata-Version: 2.1
Name: BB-PyCodeView
Version: 0.1.3
Summary: View highlighted python code
License: MIT
Author: Erik Beebe
Author-email: beebeapps_debugging@tuta.io
Requires-Python: >=3.11,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: bb-apputils (>=0.5.2,<0.6.0)
Description-Content-Type: text/markdown

# BB-PyCodeView

> View syntax highlighted code from a filename or module name

### Options

```console
$ 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
- comments are not removed when `--no-highlighting` option 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

