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
code = """
defmodule Something do
def anything() do
IO.puts "Hello, World"
end
end
""" # Any kind of code-block in any language
async def main():
cb = carbon.Carbon() # Create a Carbon instance
opts = carbon.CarbonOptions(code=code) # Set the options for the image
image = await cb.generate(opts) # Generate the image
await image.save('hello') # Save the image in png format
asyncio.run(main())
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 - paul@przybyszew.ski
Discord - wulf
Metadata
Release files for py-carbon 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py-carbon-1.0.4.tar.gz | 5.3 kB | Without provenance | Details for py-carbon-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_carbon-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for py_carbon-1.0.4-py3-none-any.whl |
Total release size: 13.8 kB
Release files / py-carbon-1.0.4.tar.gz
| Download URL | py-carbon-1.0.4.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8aa7da66ec9ab3cbc36cd03b58b6ce23bfa8b565756040124158c7757712627
|
|
BLAKE2b-256 checksum How to use checksums |
a0e08fd85b41ab6deef48f774fea9193a9116c5a41294ad93a20d173769ab4a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / py_carbon-1.0.4-py3-none-any.whl
| Download URL | py_carbon-1.0.4-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa7a1398e3abc7ca8ca58fe091d19edbf55ebeea765c57ccfe1a4eadeffe2508
|
|
BLAKE2b-256 checksum How to use checksums |
ab1abfa4424027bd80f3966d20c46f09b3663be7d90b180249686a2f27e0c2da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for py-carbon 1.0.4
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.