cyberboysumanjay / Carbon Api
Licence: lgpl-3.0
Unofficial API for generating beautiful images of your source code using Carbon.
Stars: ✭ 89
Programming Languages
Projects that are alternatives of or similar to Carbon Api
Up
Up focuses on deploying "vanilla" HTTP servers so there's nothing new to learn, just develop with your favorite existing frameworks such as Express, Koa, Django, Golang net/http or others.
Stars: ✭ 8,439 (+9382.02%)
Mutual labels: api, heroku
Docker Examples
There are many like it, but this one is mine.
Stars: ✭ 66 (-25.84%)
Mutual labels: flask, image
Flask Restx
Fork of Flask-RESTPlus: Fully featured framework for fast, easy and documented API development with Flask
Stars: ✭ 1,050 (+1079.78%)
Mutual labels: api, flask
Deploying Flask To Heroku
Deploying a Flask App To Heroku Tutorial
Stars: ✭ 81 (-8.99%)
Mutual labels: heroku, flask
Graphql Server
This is the core package for using GraphQL in a custom server easily
Stars: ✭ 65 (-26.97%)
Mutual labels: api, flask
Social Listener
Python project used to collect tweets and social-network data from Social's API
Stars: ✭ 9 (-89.89%)
Mutual labels: api, flask
Blog api tutorial
Blog API Written in Python Flask- Part 1: https://www.codementor.io/olawalealadeusi896/restful-api-with-python-flask-framework-and-postgres-db-part-1-kbrwbygx5 Part 2: https://www.codementor.io/olawalealadeusi896/building-a-restful-blog-apis-using-python-and-flask-part-2-l9y8awusp Part 3: https://www.codementor.io/olawalealadeusi896/building-a-restful-blog-apis-using-python-and-flask-part-3-lx7rt8pfk
Stars: ✭ 74 (-16.85%)
Mutual labels: api, flask
Auth0 Python Api Samples
Auth0 Integration Samples for Python REST API Services using Flask
Stars: ✭ 70 (-21.35%)
Mutual labels: api, flask
Duckduckgo Images Api
DuckDuckGo Image Search Resuts - Programatically download Image Search Results
Stars: ✭ 48 (-46.07%)
Mutual labels: api, image
Bhagavadgita
A non-profit initiative to help spread the transcendental wisdom from the Bhagavad Gita to people around the world.
Stars: ✭ 84 (-5.62%)
Mutual labels: api, flask
Python Api Development Fundamentals
Develop a full-stack web application with Python and Flask
Stars: ✭ 44 (-50.56%)
Mutual labels: api, flask
Flask Tutorial
A tutorial to build your first flask application
Stars: ✭ 58 (-34.83%)
Mutual labels: api, flask
Best Of Web Python
🏆 A ranked list of awesome python libraries for web development. Updated weekly.
Stars: ✭ 1,118 (+1156.18%)
Mutual labels: api, flask
Apispec
A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification)..
Stars: ✭ 831 (+833.71%)
Mutual labels: api, flask
Heroku Buildpack Python
The official Heroku buildpack for Python apps.
Stars: ✭ 849 (+853.93%)
Mutual labels: heroku, flask
Terraformize
Apply\Destory Terraform modules via a simple REST API endpoint.
Stars: ✭ 84 (-5.62%)
Mutual labels: api, flask
Carbon API [Unofficial]
Show some ❤️ and ⭐️ the repo
Carbon API written in Python using Flask and Pyppeteer
Carbon makes it easy to create and share beautiful images of your source code
Usage
You can use the API by sending a GET or a POST request using these params
parameter | default | type | description |
---|---|---|---|
code (required) |
string | Code snippet | |
backgroundColor |
"rgba(171, 184, 195, 1)" |
string | Hex or rgba color |
dropShadow |
true |
boolean | Turn on/off shadow |
dropShadowBlurRadius |
"68px" |
string | shadow blur radius |
dropShadowOffsetY |
"20px" |
string | shadow offset y |
exportSize |
"2x" |
string | resolution of exported image, e.g. 1x , 3x
|
fontSize |
"14px" |
string | font size |
fontFamily |
"Hack" |
string | font family, e.g. JetBrains Mono , Fira Code . |
firstLineNumber |
1 |
number | first line number |
language |
"auto" |
string | programing language for properly highlighting |
lineNumbers |
false |
boolean | turn on/off line number |
paddingHorizontal |
"56px" |
string | horizontal padding |
paddingVertical |
"56px" |
string | vertical padding |
theme |
"seti" |
string | code theme |
watermark |
false |
boolean | turn on/off watermark |
widthAdjustment |
true |
boolean | turn on/off width adjustment |
windowControls |
true |
boolean | turn on/off window controls |
windowTheme |
"none" |
string | window theme |
/
GET Params are encoded in url
https://carbonnowsh.herokuapp.com/?code=Made+with+Love+in+India+by+Sumanjay&theme=darcula&backgroundColor=rgba(144, 19, 254, 100)
/
POST Body is JSON with these params:
{
"backgroundColor": "rgba(144, 19, 254, 100)",
"code": "Made with Love in India by Sumanjay",
"theme": "dracula"
}
RESPONSE
Response is an image of a code or text snippet.
Deploy Option
-
Heroku Method
-
Other Method
# Clone the repo git clone https://github.com/cyberboysumanjay/Carbon-API cd Carbon-API # Create virtualenv virtualenv -p /usr/bin/python3 venv ../venv/bin/activate # Install requirements pip3 install -r requirements.txt # Finally run the app python3 app.py
Made with ❤️️ in India
Copyright & License
- Copyright (C) 2020 by Sumanjay
- Licensed under the terms of the GNU GPL Version 3
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].