Skip to main content

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 - default = False
    ( -f |    --function     ):  Function name - same as adding ':function' after module name
    ( -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
    ( -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.

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.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bb_pycodeview-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file bb_pycodeview-0.1.0.tar.gz.

File metadata

  • Download URL: bb_pycodeview-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.6.10-arch1-1

File hashes

Hashes for bb_pycodeview-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e816283a02e6402d799e48053c4ebfcab11f768ca80f4cea60118b08583a5be1
MD5 62cf672ea4b9b384e2a3aacd67282e19
BLAKE2b-256 f369273cb7ef95db6eba11f77f395f4f7e72b78c54fc4f979d5d9ba6ecf898ca

See more details on using hashes here.

File details

Details for the file bb_pycodeview-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bb_pycodeview-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.6.10-arch1-1

File hashes

Hashes for bb_pycodeview-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9d185d967cef83ba36d59dfbc7a0934a5a0f575df5f6b9788ce7b537851aa1b
MD5 d8cdb607bdeee9d046b49a75d9743a0e
BLAKE2b-256 fc73f9cba041cefcc5b504ad4813c6cc82358e1e0b1ffd180d06f4ecf7fd5f3f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page