• Stars
    star
    37,551
  • Rank 394 (Top 0.01 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 5 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ðŸŽĻ Diagram as Code for prototyping cloud system architectures

diagrams logo

Diagrams

license pypi version python version Run tests todos contributors

Buy Me A Coffee

Diagram as Code.

Diagrams lets you draw the cloud system architecture in Python code. It was born for prototyping a new system architecture design without any design tools. You can also describe or visualize the existing system architecture as well. Diagrams currently supports main major providers including: AWS, Azure, GCP, Kubernetes, Alibaba Cloud, Oracle Cloud etc... It also supports On-Premise nodes, SaaS and major Programming frameworks and languages.

Diagram as Code also allows you to track the architecture diagram changes in any version control system.

NOTE: It does not control any actual cloud resources nor does it generate cloud formation or terraform code. It is just for drawing the cloud system architecture diagrams.

Providers

aws provider azure provider gcp provider ibm provider kubernetes provider alibaba cloud provider oracle cloud provider openstack provider firebase provider digital ocean provider elastic provider outscale provider on premise provider generic provider programming provider saas provider c4 provider

Getting Started

It requires Python 3.7 or higher, check your Python version first.

It uses Graphviz to render the diagram, so you need to install Graphviz to use diagrams. After installing graphviz (or already have it), install the diagrams.

macOS users can download the Graphviz via brew install graphviz if you're using Homebrew.

# using pip (pip3)
$ pip install diagrams

# using pipenv
$ pipenv install diagrams

# using poetry
$ poetry add diagrams

You can start with quick start. Check out guides for more details, and you can find all available nodes list in here.

Examples

Event Processing Stateful Architecture Advanced Web Service
event processing stateful architecture advanced web service with on-premise

You can find all the examples on the examples page.

Contributing

To contribute to diagram, check out contribution guidelines.

Let me know if you are using diagrams! I'll add you in showcase page. (I'm working on it!) :)

Who uses it?

Apache Airflow is the most popular data workflow Orchestrator. Airflow uses Diagrams to generate architecture diagrams in their documentation.

Cloudiscovery helps you to analyze resources in your cloud (AWS/GCP/Azure/Alibaba/IBM) account. It allows you to create a diagram of analyzed cloud resource map based on this Diagrams library, so you can draw your existing cloud infrastructure with Cloudiscovery.

Airflow Diagrams is an Airflow plugin that aims to easily visualise your Airflow DAGs on service level from providers like AWS, GCP, Azure, etc. via diagrams.

Other languages

  • If you are familiar with Go, you can use go-diagrams as well.

License

MIT

More Repositories

1

go-web-framework-stars

⭐ Web frameworks for Go, most starred on GitHub
Go
3,555
star
2

flog

ðŸŽĐ A fake log generator for common log formats
Go
1,108
star
3

git-tips

📚 Git 팁 ëŠĻėŒė§‘ (https://github.com/git-tips/tips 한ęĩ­ė–ī ëē„ė „)
1,022
star
4

commonregex

ðŸŦ A collection of common regular expressions for Go
Go
861
star
5

go-todo-rest-api-example

📚 A RESTful API example for simple todo application with Go
Go
523
star
6

awesome-finder

😎 Search the awesome curated list without browser
Python
275
star
7

blockchain-tutorial

ëļ”록ėēīėļ 튜토ëĶŽė–ž (Building Blockchain in Go 한ęĩ­ė–ī ëē„ė „)
106
star
8

cfmt

ðŸŽĻ Contextual fmt inspired by bootstrap color classes
Go
103
star
9

pyreportcard

ðŸšĨ A report card for Python application
Python
100
star
10

funmath

☔ Implementations of mathematical functions, formulas and concepts
Python
91
star
11

python-web-framework-stars

⭐ïļ Web frameworks for Python, most starred on Github
Python
73
star
12

round

🌀 A command-line for rounding the images
Go
59
star
13

gobyexample

🎁 Go By Example 한ęĩ­ė–ī ëē„ė „
HTML
57
star
14

gosearch

🔍 Search the Go packages via command-line
Go
55
star
15

python-curses-scroll-example

📚 How to implement the scroll and paging in Python curses
Python
48
star
16

redis-migrate

ðŸ“Ū Simple command line tool for redis data migration (minimal functionality)
Python
40
star
17

gomo

🍔 Terminal based memo application written in Go
Go
40
star
18

sorting

ðŸĄ Visualize the process of sorting algorithms simply
Python
25
star
19

mingrammer

mingrammer
25
star
20

go-codelab

🍰 Simple codelab for learning Go language (simple and tiny IoT service)
Go
20
star
21

sheet2db

A tiny python library for syncing data from google spreadsheet to database
Python
20
star
22

casec

🌈 A text case converter
Go
14
star
23

clip

📎 A simple key-value store for clipboard
Go
11
star
24

architecture-by-me

A collection of architectures made by myself
10
star
25

fitter

🍭 An on-demand image server for generating dynamic images
Python
10
star
26

cs231n-numpy-tutorial

IPython notebook for cs231n python numpy tutorial
Jupyter Notebook
7
star
27

tyfy

Truthy and falsy text validators
Go
6
star
28

docker-complex-app

Example repository for testing the CI/CD flow with multi-docker
JavaScript
5
star
29

os-assign

OS programming assignment
C
5
star
30

homebrew-flog

Homebrew tap repository for github.com/mingrammer/flog
Ruby
4
star
31

dynamodb-toolkit

A command line toolkit for aws dynamodb
Go
4
star
32

dotfiles

mingrammer's dotfiles
Vim Script
3
star
33

mingrammer.github.io

ðŸģ mingrammer's note
CSS
3
star
34

python-practices

🐍 A cureated collection of python practices for various topics
Python
3
star
35

go-mod-onbuild

ðŸģ Go + module onbuild image
Dockerfile
3
star
36

problem-solving

A collection of problem solving solutions
Python
2
star
37

bit-counter

ðŸ’Ą A simple bit counter
Python
2
star
38

go-simple-crawler-practice

Simple crawler for learning go
Go
2
star
39

meetup-api

API & Slack bot RTM server for 9XD meetup service
Go
2
star
40

deep-learning-from-scratch

Jupyter notebooks for "deep learning from scratch" book
Jupyter Notebook
1
star
41

atom-settings

my settings for atom editor
CoffeeScript
1
star
42

wiki

My personal wiki
1
star
43

project-euler

A collection of project euler solutions
Python
1
star
44

go-simple-chat-practice

Simple chat server for learning go
Go
1
star
45

coursera-machine-learning

Exercises for coursera machine learning course
MATLAB
1
star
46

docker-react

Example repository for testing the CI/CD flow with docker
JavaScript
1
star