Skip to content

Add utility function to render dependency graph via mermaid #59

Description

@maldoinc

A module can be added that can also be invoked from the CLI able to

  • Output raw mermaid diagram code.
  • Render into a html file which includes mermaid js renderer.

Sample with details

graph LR
    redis_url[⚙️ redis_url]
    weather_api_key[⚙️ weather_api_key]
    aiohttp_client_ClientSession["🏭 ClientSession via make_http_client"]
    __main___WeatherService[🐍 WeatherService]
    weather_api_key --> |api_key| __main___WeatherService
    __main___KeyValueStore --> |kv_store| __main___WeatherService
    aiohttp_client_ClientSession --> |client| __main___WeatherService
    __main___KeyValueStore[🐍 KeyValueStore]
    redis_url --> |dsn| __main___KeyValueStore
Loading

Legend

  • 🏭 Created via factory
  • 🐍 Class service
  • ⚙️ Parameter

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions