{"id":15593765,"url":"https://github.com/seven7ty/py-carbon","last_synced_at":"2026-02-13T20:02:19.021Z","repository":{"id":62579170,"uuid":"372062577","full_name":"seven7ty/py-carbon","owner":"seven7ty","description":"Fully asynchronous Python library for carbon.now.sh ✨🚀","archived":false,"fork":false,"pushed_at":"2023-10-08T22:00:33.000Z","size":161,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T06:12:10.502Z","etag":null,"topics":["aiohttp","api","async","async-await","asynchronous","asyncio","carbon","http","py-carbon","python","python-package","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/py-carbon","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seven7ty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-05-29T20:18:11.000Z","updated_at":"2024-02-21T02:48:31.000Z","dependencies_parsed_at":"2023-07-28T00:31:17.278Z","dependency_job_id":"aed4ca38-162b-4d21-84bb-f600420bde63","html_url":"https://github.com/seven7ty/py-carbon","commit_stats":{"total_commits":20,"total_committers":4,"mean_commits":5.0,"dds":0.5,"last_synced_commit":"5991ef0b73d9792e125d407424797f25a229cf89"},"previous_names":["paulnewcomer/py-carbon","itsmewulf/py-carbon","bwv2/py-carbon","seven7ty/py-carbon"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven7ty%2Fpy-carbon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven7ty%2Fpy-carbon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven7ty%2Fpy-carbon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven7ty%2Fpy-carbon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seven7ty","download_url":"https://codeload.github.com/seven7ty/py-carbon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250573354,"owners_count":21452352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aiohttp","api","async","async-await","asynchronous","asyncio","carbon","http","py-carbon","python","python-package","python3"],"created_at":"2024-10-03T00:21:23.499Z","updated_at":"2026-02-13T20:02:13.967Z","avatar_url":"https://github.com/seven7ty.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-carbon [![Badge](https://img.shields.io/pypi/v/py-carbon?color=3776AB\u0026logo=python\u0026style=for-the-badge)](https://pypi.org/project/py-carbon/)  [![Badge 2](https://img.shields.io/pypi/dm/py-carbon?color=3776AB\u0026logo=python\u0026style=for-the-badge)](https://pypi.org/project/py-carbon/)\nFully asynchronous Python library for [carbon.now.sh](https://carbon.now.sh)\n\n## Installation\n```\n$ pip install py-carbon\n```\n\n## A quick example\nIn this example we'll create a carbon image and save it to disk.\n```py\nimport carbon\nimport asyncio\n\ncode = \"\"\"\ndefmodule Something do\n    def anything() do\n        IO.puts \"Hello, World\"\n    end\nend\n\"\"\"  # Any kind of code-block in any language\n\n\nasync def main():\n    cb = carbon.Carbon()  # Create a Carbon instance\n    opts = carbon.CarbonOptions(code=code)  # Set the options for the image\n    image = await cb.generate(opts)  # Generate the image\n    await image.save('hello')  # Save the image in png format\n\n\nasyncio.run(main())\n```\n\nAnd it'll output something like this:  \n  \n\u003cimg src=\"https://github.com/itsmewulf/py-carbon/blob/main/examples/something-script.png?raw=true\" alt=\"Carbon Image\" width=\"400\"/\u003e\n\n### Contributing\nThis package is opensource so anyone with adequate python experience can contribute to this project!\n\n### Reporting Issues\nIf you find any error/bug/mistake with the package or in the code feel free to create an issue and report\nit [here.](https://github.com/itsmewulf/py-carbon/issues)\n\n### Fixing/Editing Content\nIf you want to contribute to this package, fork the repository, make your changes and then simply create a Pull Request!\n\n### Contact\nIf you want to contact me:  \n**Mail -** ```paul@przybyszew.ski```  \n**Discord -** [wulf](https://dsc.bio/wulf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven7ty%2Fpy-carbon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseven7ty%2Fpy-carbon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven7ty%2Fpy-carbon/lists"}