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
⭐Features
There are three main features. (There are four items because the last one isn't really a feature.)
- 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
- 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
- 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
- You can remove the shadow and gradient by passing
--plain
.
Project details
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file codenitro-1.0.1.tar.gz
.
File metadata
- Download URL: codenitro-1.0.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c207f7d5ae20446bfdc5b8040154f28fcab1aa708a9e468b277c6f72f48a0200 |
|
MD5 | 851a5c464f29e84b6d27764a42be0f64 |
|
BLAKE2b-256 | 845fec5b5cdabaacbdecdbd59d96371c18b6887fa24b825592017c160097cff9 |
File details
Details for the file codenitro-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: codenitro-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 622390f37e5302a1f4bd76ab6b7b944ce4b1a25c23ffc9aebdbd0303e7c30813 |
|
MD5 | ce4b8eaabe05d52368703eaae8609bbe |
|
BLAKE2b-256 | 6652407b7c81d34e3a5195e9b7c473c995f682b991d2bdc3240f2211fede21ca |