Python Diagrams - Make incredible Diagrams using Python

  Рет қаралды 58,790

DevOps Journey

DevOps Journey

Күн бұрын

Пікірлер: 39
@yogeshdharya3857
@yogeshdharya3857 2 жыл бұрын
I don't know if u people ever watched AWS Power Hour Series on Twitch or not but there those technical trainers used to work with some diagrams it looked so cool to me; and now that i know that i can create such diagrams programmatically , cloud computing looks even more attractive to me
@YasserAder
@YasserAder 3 жыл бұрын
exactly what i was looking for .. thank you for sharing
@tomjohn4183
@tomjohn4183 21 күн бұрын
Awesome content! Thank you so much! It helps a lot!
@andres777video
@andres777video Жыл бұрын
Nice tool, thanks for the video. Next step, make it data driven and export automatically to PDF, PNG, etc
@kevon217
@kevon217 Жыл бұрын
Wow, this was great. Going to give this a try.
@737SFP3
@737SFP3 Жыл бұрын
what file formats can you output these to? html, png, jpeg?
@wesleyboyd2714
@wesleyboyd2714 3 жыл бұрын
It would be great if you could get the file to generate from a metadata store and them wrap it in a pipeline that writes to your wiki. That way the documentation and diagrams are done as part of the agile development.
@eltreum1
@eltreum1 3 жыл бұрын
It's not uncommon or difficult to do this if you have a clean and consistent structured data source. In his program he is just defining the variables and objects in his code manually. What you would do instead is call a database/web API or load some file like a CSV and the script populates the objects as you define how you want source data expressed in your diagram and output it to whatever format you want on screen, a local file, or drop it off an a remote server. You could also make dynamic diagrams if for instance you use your VM/container hypervisor API and query a worker for its state and take the return data and translate it to define a diagram of its state in a style you desire. Have a linux server run the query on a time schedule that dumps the output to a html file on a webserver and make a dashboard or state snapshots for your customers without exposing the VM system to the customer portal directly. In your case for agile development its common to have a process that queries the version control system daily to show all push/pull/merge activity. That is what github does to draw its diagrams. You could also query the project and generate a hierarchy diagram. There are comment formats and libs that can scan the code itself and auto build library docs if you left good comments on your code in the right format. The python.org web manual is autogenerated this way from the comments in their classes and functions/methods to populate a formatted web template. I work in telco ISP implementation. We have a hardware configuration database we made that lets us define/edit our devices via a webform and custom APIs our order system can push templated products into and a matrix chart to define hierarchy when needed. When we want to install that hardware and the work order is generated for a field tech it fills out a document template with the right reference pictures of the equipment model on the order and a simple block diagram of what plugs into what based on the config database and matrix. Some variables like serial numbers or license keys are auto populated from another inventory DB if needed and It also has sections for custom instructions we can add to a single order or all orders for that parent client or specific site like local access person/admin to contact. The tech does not configure the device. Its plugged into a linux station in the warehouse that we say make whatever is plugged into port X configure it as defined by order Y. It runs tests that it can actually do that to what's plugged in then hits the config database and file servers for whatever it needs. It loads the device with files and fills out config templates we define on a Git server and pushes them into the device via console or network port and ship it. We also made a script that can update one or many devices in the field on a scheduler for scheduled upgrades or fired manually on a live install. If the order was made right the tech shows up and follows the instructions and it just works. Its actually an army of worker scripts on various systems. This vid would represent the microservice that generates diagrams that another system adds to a document package template or webpage.
@BrianThomas
@BrianThomas Жыл бұрын
I love this. I have a very large diagram that I need laid out in a geographical order. Would it be possible to use Latitude and longitude coordinates to make this happen? Or is there an easier way?
@hjuilkable
@hjuilkable 2 жыл бұрын
I have a two cluster Cluster 1: A,B,C and Cluster 2: D,E,F . I want to connect in this order : A to D , B to F , C to E When I connect Cluster 1 to Cluster 2, Cluster 2 nodes/elements order changes. How to fix this issue
@RodrigoRossiMeneses
@RodrigoRossiMeneses Жыл бұрын
Process terminated with exit code 0, but no png diagram created. All installations were successfully performed (graphviz and diagrams). What could have happened?
@tracygao5763
@tracygao5763 2 жыл бұрын
Thank you so much ! trying to generate topology diagram from variable data input automatically
@timothysuhr7903
@timothysuhr7903 Ай бұрын
This is an interesting approach to creating diagrams. I am wondering if anybody has developed the pennings for Express-G diagrams. If they could also support HTML hyperlinks this would be an added benefit. Do you know of anything like this? Note: Express-G is ISO 10303-11.
@Pat12-w9f
@Pat12-w9f 3 жыл бұрын
I liked for the algorithm
@DevOpsJourney
@DevOpsJourney 3 жыл бұрын
🍻🍻🍻
@neptunesun278
@neptunesun278 Жыл бұрын
How to adjust border space of square of cluster to its icon inside it
@khalidelgazzar
@khalidelgazzar Жыл бұрын
Great video. Thank you
@learntechwithabderrezak2507
@learntechwithabderrezak2507 Жыл бұрын
Thanks. Is there any solution to make it interactive, dynamic?
@DevOpsJourney
@DevOpsJourney Жыл бұрын
If you implement logic in your python code you can make it dynamic. Every use-caste/situation would be different so it would be difficult to demonstrate in a video
@DevOpsJourney
@DevOpsJourney 3 жыл бұрын
Have you used the Python Diagrams module?
@Pat12-w9f
@Pat12-w9f 3 жыл бұрын
no but good vid
@PeriMCS
@PeriMCS 3 жыл бұрын
No, but I'm going to check it out for Azure
@michelematozza7801
@michelematozza7801 Жыл бұрын
when i write the same exact code and foillow all the steps i get an error and it does not let me see the output
@DevOpsJourney
@DevOpsJourney Жыл бұрын
Whats the error? My guess is you need to install the dependancy of graphiz
@galbudip8196
@galbudip8196 3 жыл бұрын
Will diagrams support bpmn 2.0?
@DevOpsJourney
@DevOpsJourney 3 жыл бұрын
I don't think so, but you could make a request on their Git repo or you could try using custom and just use your own PNG images diagrams.mingrammer.com/docs/nodes/custom
@zakariaj9080
@zakariaj9080 2 жыл бұрын
is it posible also for Azure ?
@maddelish
@maddelish 3 жыл бұрын
Can we read input from text file and draw diagrams?
@DevOpsJourney
@DevOpsJourney 2 жыл бұрын
Yup! Look up python file i/o and see if you can make it happen! :)
@luiscasillas9032
@luiscasillas9032 2 жыл бұрын
Can anyone tell me why I get a message that states pip is not recognized as the name of a cmdlet, function, script file or operable program? I apologize for the newb question, but any help would be greatly appreciated.
@DevOpsJourney
@DevOpsJourney 2 жыл бұрын
Try pip3 or try to google a command to install pip on your os
@neptunesun278
@neptunesun278 Жыл бұрын
How to reduce icon size
@manfredchong2783
@manfredchong2783 2 жыл бұрын
hi great video! however im facing some issues i am unable to visualise the diagram after running the code on pycharm! do you have any advice?
@DevOpsJourney
@DevOpsJourney 2 жыл бұрын
I don't use pycharm. Do you get the same problem when running from just a shell? Did you install the prerequirements mentioned in the video?
@trondlillebo
@trondlillebo 3 жыл бұрын
Anyone implented this in a django project and could share how to make it work? I.e. would it automatically save it to the media folder when running the code?
@jorgedemacedo
@jorgedemacedo 2 жыл бұрын
Very good! Congratulations! This will make my job easier
@todlazarov432
@todlazarov432 3 жыл бұрын
Has anybody been able to find nodes that can represent VMs inside of a Hypervisor?
@eltreum1
@eltreum1 3 жыл бұрын
The Diagrams package demoed has many icon sets including AWS and Azure icons with some VMs, virtual containers, hosted apps, databases, and OSs. If you have a PNG image you would like to use most of the diagram libraries let you add custom icons or make your own sets.
Python Logging Made Easy
9:11
DevOps Journey
Рет қаралды 39 М.
Modern Python logging
21:32
mCoding
Рет қаралды 198 М.
Каха и лужа  #непосредственнокаха
00:15
У вас там какие таланты ?😂
00:19
Карина Хафизова
Рет қаралды 17 МЛН
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 60 МЛН
Wait… Maxim, did you just eat 8 BURGERS?!🍔😳| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 6 МЛН
Mermaid JS: Finally There's A Great UML & Diagram Drawing Tool
28:35
Here's The Secret How To Create These Animated Diagrams
11:12
Amigoscode
Рет қаралды 478 М.
Python SSH Client - Paramiko. SSH with Python.
7:21
DevOps Journey
Рет қаралды 76 М.
Никита Харичкин - PlantUML с нуля до гуру: учимся «кодить» sequence-диаграммы
46:07
Flow — конференция про системный и бизнес-анализ
Рет қаралды 15 М.
How I make science animations
43:39
Artem Kirsanov
Рет қаралды 755 М.
Mermaid vs PlantUML vs HackerDraw: Which One Is Best For You?
13:37
How to design a modern CI/CD Pipeline
9:59
DevOps Journey
Рет қаралды 159 М.
Automating My Life with Python: The Ultimate Guide | Code With Me
11:26
What do DevOps/SRE Engineers actually do?
21:39
DevOps Journey
Рет қаралды 8 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 590 М.
Каха и лужа  #непосредственнокаха
00:15