Skip to main content

Code2img

Use code2img from terminal to generate images of your source code

GitHub Contributor Covenant GitHub languages GitHub repo size Github last-commit maintenance

           _     ___ _           
 ___ ___ _| |___|_  |_|_____ ___ 
|  _| . | . | -_|  _| |     | . |
|___|___|___|___|___|_|_|_|_|_  |
                            |___|

code2img is a simple tool to generate an image from a local file or from a GitHub repository. It can also be used to send the source code to carbon.now.sh and generate the image there.

Installation

code2img is available on PyPi (MIT license) and installation can be performed by running pip

python -m pip install code2img

To upgrade the package:

python -m pip install code2img --upgrade

To delete the package:

python -m pip uninstall code2img

Example

To generate an image from a local file:

> python -m code2img main.py -s
Done!
Image created in current directory: main.png

To generate an image from a GitHub repository:

> python -m code2img soluciones/fibonacci.py -g
Done!
Image created in current directory: fibonacci.png

You can also send the content of the source code to carbon.now.sh:

> python -m code2img main.py -c
Sent to Carbon.now.sh

> python -m code2img soluciones/fibonacci.py -gc
Sent to Carbon.now.sh

Help command:

> code2img -h

or:

> code2img --help

Contribution

If you'd like to contribute, fork the repository, commit your changes to main branch and send a pull request. Make sure you add yourself to authors.

Metadata

Release files for code2img 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for code2img 0.0.3
File Size Uploaded Provenance Actions
code2img-0.0.3.tar.gz 5.3 kB Without provenance Details for code2img-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for code2img 0.0.3
File Interpreter ABI Platform Actions
code2img-0.0.3-py3-none-any.whl Python 3 none any Details for code2img-0.0.3-py3-none-any.whl

Total release size: 12.5 kB

Release files / code2img-0.0.3.tar.gz

Download URL code2img-0.0.3.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9cf2053a71b707a7efe351da612bdda6e01b51a57c207acc6030c7d6b37991e7
BLAKE2b-256 checksum
How to use checksums
c285f0b726a454c91b68e41144b3bcff0f849e1f0862d25d76987c171f0f2e86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.61.2 importlib-metadata/3.10.0 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.7.9

Release files / code2img-0.0.3-py3-none-any.whl

Download URL code2img-0.0.3-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1388ab304b5da2da9cdd513223ae14f07528aa75f0df666bd98b438c476cfa0c
BLAKE2b-256 checksum
How to use checksums
8a8c89e4536a9702effa7d866d74f17166da57f12dc0f995c92726fc52c38d1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.61.2 importlib-metadata/3.10.0 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.7.9

Security for code2img 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page