This is cool! I was hoping it would look something like: ‘’’ import diagrams calc_d = diagrams.new_diagram(“calculator_123”) calc_d.Datum("SuperNumber") class SuperNumber(int): pass @calc_d.Service(“Calculator”, “takes numbers and operations and operates”) class Calculator(object): @calc_d.Endpoint("Add", calls=["Increment"], main_data={"b": "SuperNumber}) def add(self, a, b: SuperNumber): out = a for i in range(b):…
Diagram as Code
61–70 of 77 posts
Re: Diagram as Code
#62Re: Diagram as Code
#63This looks really neat! Is it possible to have embedded diagrams. For example, Gitlab lets you embed a PlantUML[1] diagram in any Markdown or ADoc file using a proxy server. This makes it really easy to write and serve documentation. Personally, I'm a fan of PlantUML. Having an svg served in a browser that has labels linking directly to the relevant entity (code, resource etc) is a huge plus for new hire onboarding.…
Re: Diagram as Code
#64Re: Diagram as Code
#651. https://github.com/Netflix/vizceral/wiki
2. https://link.medium.com/LY2vw4Rsr6
(Sorry about the Medium.com link; all I could grab on the spot on phone)
Re: Diagram as Code
#66> from diagrams import Diagram Slightly off-topic, but I wish JavaScript's import syntax was designed to be this way around, for better autocomplete in your editor.
Re: Diagram as Code
#67This looks really neat! Is it possible to have embedded diagrams. For example, Gitlab lets you embed a PlantUML[1] diagram in any Markdown or ADoc file using a proxy server. This makes it really easy to write and serve documentation. Personally, I'm a fan of PlantUML. Having an svg served in a browser that has labels linking directly to the relevant entity (code, resource etc) is a huge plus for new hire onboarding.…
I wish plantUML would update it's default theme, I feel like more people would use it if it didn't look ancient.
Re: Diagram as Code
#68> from diagrams import Diagram Slightly off-topic, but I wish JavaScript's import syntax was designed to be this way around, for better autocomplete in your editor.
:(
Re: Diagram as Code
#69Python can lend itself to horrific abuses through shenanigans like this. I sometimes feel that siren call myself, and usually regret it.
So by default I'm pretty skeptical of this kind of thing, but I'm actually on the fence about this one.
Re: Diagram as Code
#70This looks really neat! Is it possible to have embedded diagrams. For example, Gitlab lets you embed a PlantUML[1] diagram in any Markdown or ADoc file using a proxy server. This makes it really easy to write and serve documentation. Personally, I'm a fan of PlantUML. Having an svg served in a browser that has labels linking directly to the relevant entity (code, resource etc) is a huge plus for new hire onboarding.…
It feels like I'm missing something with this tool if one's already aware of Mermaid (and PlantUML)