python系统架构_Diagram - 实现利用Python代码绘制云系统架构

diagrams.png

Diagrams

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e73766768747470733a2f2f62616467652e667572792e696f2f70792f6469616772616d732e73766768747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d332e36253243332e37253243332e382d626c75653f6c6f676f3d707974686f6ebadge.svg?branch=master68747470733a2f2f62616467656e2e6e65742f68747470732f6170692e7469636b6769742e636f6d2f62616467656e2f6769746875622e636f6d2f6d696e6772616d6d65722f6469616772616d733f6c6162656c3d746f646f73

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f76696465722d4f6e5072656d6973652d6f72616e67653f636f6c6f723d35663837626668747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f76696465722d4157532d6f72616e67653f6c6f676f3d616d617a6f6e2d61777326636f6c6f723d66663939303068747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f76696465722d417a7572652d6f72616e67653f6c6f676f3d6d6963726f736f66742d617a75726526636f6c6f723d30303839643668747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f76696465722d4743502d6f72616e67653f6c6f676f3d676f6f676c652d636c6f756426636f6c6f723d34323835663468747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f76696465722d4b756265726e657465732d6f72616e67653f6c6f676f3d6b756265726e6574657326636f6c6f723d33323663653568747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f76696465722d416c6962616261436c6f75642d6f72616e676568747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f76696465722d4f7261636c65436c6f75642d6f72616e67653f6c6f676f3d6f7261636c6526636f6c6f723d66383030303068747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f76696465722d50726f6772616d6d696e672d6f72616e67653f636f6c6f723d35663837626668747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f76696465722d46697265626173652d6f72616e67653f6c6f676f3d666972656261736526636f6c6f723d46464341323868747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f76696465722d456c61737469632d6f72616e67653f6c6f676f3d656c617374696326636f6c6f723d30303535373168747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f76696465722d536161532d6f72616e67653f636f6c6f723d356638376266

68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67

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.

Getting Started

It requires Python 3.6 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

68747470733a2f2f6469616772616d732e6d696e6772616d6d65722e636f6d2f696d672f6576656e745f70726f63657373696e675f6469616772616d2e706e67

68747470733a2f2f6469616772616d732e6d696e6772616d6d65722e636f6d2f696d672f737461746566756c5f6172636869746563747572655f6469616772616d2e706e67

68747470733a2f2f6469616772616d732e6d696e6772616d6d65722e636f6d2f696d672f616476616e6365645f7765625f736572766963655f776974685f6f6e2d7072656d6973652e706e67

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 use it?

68747470733a2f2f67697470697463682e636f6d2f6770696d672f6c6f676f2e706e67

GitPitch is a markdown presentation service for developers. Diagrams is now integrated as Cloud Diagram Widget of GitPitch, so you can use the Diagrams when to create slide decks for Tech Conferences, Meetups, and Training with GitPitch.

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 the your existing cloud infratructure with Cloudicovery.

License

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值