The Asynchronous web-scraper for carbon.now.sh which helps to create and share beautiful pics of your code!
For support using PyCarbonSh, please join the official support server on Discord.
The following commands are currently the valid ways of installing PyCarbonSh.
Windows
py -3 -m pip install pycarbonsh
Linux/MacOS
python3 -m pip install pycarbonsh
Windows
py -3 -m pip install -U git+https://github.com/Pranav-Saxena/PyCarbonSh@master
Linux/MacOS
python3 -m pip install -U git+https://github.com/Pranav-Saxena/PyCarbonSh@master
Note
Ensure that an up-to-date version of setuptools is installed.
python -m pip install --upgrade setuptools
git clone https://github.com/Pranav-Saxena/PyCarbonSh/
cd PyCarbonSh
python3 setup.py install
Note
Use
sudo python3 setup.py install
on linux if some error pops up
Note
When you run pycarbonsh for the first time, it downloads the latest version of Chromium (~150MB) if it is not found on your system. If you don't prefer this behavior, ensure that a suitable Chrome binary is installed. One way to do this is to run
pyppeteer-install
command before prior to using this library.
A quick and easy example to get started with PyCarbonSh
from pycarbonsh import generatecarbon
import asyncio
loop = asyncio.get_event_loop()
loop.run_until_complete(generatecarbon(code="Made with ❤ by Pranav Saxena"))
Support Me by adding my bot to your server :) Invite Inferno Here
Any contributions you make are greatly appreciated.
- PRs are accepted!!
- If you have some ideas for new features and you don't have time to implement them please open an issue with the tag new_feature.
- Please don't forget to comment (document) your code!