Fully asynchronous Python library for carbon.now.sh
Project description
py-carbon
Fully asynchronous Python library for carbon.now.sh ✨🚀
Installation
pip install py-carbon
A quick example
In this example we'll create a carbon image and save it to disk.
import carbon
import asyncio
loop = asyncio.get_event_loop() # Setting up asyncio
code = """
defmodule Something do
def anything() do
IO.puts "Hello, World"
end
end
""" # Any kind of code-block in any language
options = carbon.CarbonOptions(code)
cb = carbon.Carbon()
image = loop.run_until_complete(cb.generate(options)) # Returns a CarbonImage object
loop.run_until_complete(image.save('something-script'))
And it'll output something like this:
Contributing
This package is opensource so anyone with adequate python experience can contribute to this project!
Reporting Issues
If you find any error/bug/mistake with the package or in the code feel free to create an issue and report it here.
Fixing/Editing Content
If you want to contribute to this package, fork the repository, make your changes and then simply create a Pull Request!
Contact
If you want to contact me:
Mail - wulf.developer@gmail.com
Discord - wulf#9632
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
py-carbon-1.0.1.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for py_carbon-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f5dbfb7e933b9fffae3b0dbc51c0b77a040aacace4991fe6041c3cb6a60deb9 |
|
MD5 | 1fe74b83afe0016980575e34c58dbc38 |
|
BLAKE2b-256 | 150cdb432f98b15e4f22532dc7bb942a2295a6ca4d5f19ab4be9672482c0e03a |