All Projects → cyberboysumanjay → Carbon Api

cyberboysumanjay / Carbon Api

Licence: lgpl-3.0
Unofficial API for generating beautiful images of your source code using Carbon.

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

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
Gaanaapi
Unofficial Gaana API
Stars: ✭ 59 (-33.71%)
Mutual labels:  api, flask
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
Flask Vuejs Template
Flask + Vue JS Template
Stars: ✭ 1,074 (+1106.74%)
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
Nucleus
Platform as a Service API abstraction layer.
Stars: ✭ 28 (-68.54%)
Mutual labels:  api, heroku
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
Flask Heroku Sample
Flask Heroku Sample Application
Stars: ✭ 68 (-23.6%)
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]


Carbon
Unofficial API

Show some ❤️ and ⭐️ the repo

GitHub stars GitHub followers Telegram Channel

Carbon API written in Python using Flask and Pyppeteer

made-with-python Open Source Love svg1

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.

Response

Deploy Option

  • Heroku Method Deploy

  • 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

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].