Recipes and Demos #74
thorwhalen
started this conversation in
General
Replies: 1 comment
-
Graphing attribute dependenciesGraphing the dependencies of attributes of a class (that is, what methods or properties use what other methods or properties to do their work). See the "Graph the attribute dependencies of an object" section of the [i2 recipes](https://github.com/i2mint/i2//blob/9672f244b980e84d59ad10b251d726b52f3e9526/misc/i2 recipes.ipynb#L1-L5) notebook. from i2 import Pipe
from i2.footprints import attribute_dependencies
from meshed.itools import graphviz_digraph
attribute_dependency_graph = Pipe(attribute_dependencies, dict, graphviz_digraph)# Defines classes for implementing web servers.
from http.server import HTTPServer
attribute_dependency_graph(HTTPServer)# Represents an entire XML document as a tree and provides a simple and efficient API for parsing and creating XML data.
from json import JSONDecoder
attribute_dependency_graph(JSONDecoder)And a more complicated one now... # Implements a decoder for JSON, which can parse JSON from strings or files.
from logging import Logger
attribute_dependency_graph(Logger)
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
-
Informal documentation.
A place to dump example code, to demo some functionality or recipe.
Beta Was this translation helpful? Give feedback.
All reactions