Skip to main content

Code to image from the command line

Project description

🔥Code Nitro: Code to Image from the Command Line

Ever want to share your code as an image? Code Nitro can do that. Code Nitro is lightweight, has minimal dependencies, and works online and offline.

Don't send your code to third parties, use Code Nitro.

🛠️Installation

You can install the nitro command with pip.

pip install codenitro

And that's it.

🎬 Demo

demonstration of the capabilities of code nitro

Source

⭐Features

There are three main features. (There are four items because the last one isn't really a feature.)

  1. Convert an entire file to an image. Code Nitro will save it in the same directory with the same name (but with .png).
nitro my_code.py
  1. Convert only part of a file by using --lines. For example, --lines=5-10 will print lines 5 through 10, inclusive.
nitro my_code.py --lines=5-10
  1. Download a file from GitHub and convert it to an image. You don't need to do anything special, just include the url in place of the filename.
nitro https://github.com/lukesalamone/code_nitro/blob/master/nitro.py
  1. You can remove the shadow and gradient by passing --plain.

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

codenitro-1.0.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

codenitro-1.0.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

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