Kaydet (Commit) ac7ef3ca authored tarafından Batuhan Taşkaya's avatar Batuhan Taşkaya

update desc

üst bc6dae0b
# Karavana # Karavana
Object Visualization
...@@ -5,9 +5,11 @@ from dataclasses import dataclass, field ...@@ -5,9 +5,11 @@ from dataclasses import dataclass, field
from enum import Enum, auto from enum import Enum, auto
from typing import Any, Optional from typing import Any, Optional
class Display(Enum): class Display(Enum):
COLLECTION = auto() COLLECTION = auto()
@dataclass @dataclass
class Node: class Node:
value: Display value: Display
...@@ -16,11 +18,13 @@ class Node: ...@@ -16,11 +18,13 @@ class Node:
def add_child(self, child): def add_child(self, child):
self.children.append(child) self.children.append(child)
@dataclass @dataclass
class ConnectedNode: class ConnectedNode:
lhs: Any lhs: Any
rhs: Any rhs: Any
class Viz: class Viz:
typeregs = {} typeregs = {}
...@@ -48,6 +52,7 @@ def mapping(self, obj): ...@@ -48,6 +52,7 @@ def mapping(self, obj):
node.add_child(child) node.add_child(child)
return node return node
viz = Viz() viz = Viz()
node = viz.visit({1: 1, 2: 2, 3: {1: 2}}) node = viz.visit({1: 1, 2: 2, 3: {1: 2}})
print(node) print(node)
...@@ -11,7 +11,7 @@ setup( ...@@ -11,7 +11,7 @@ setup(
version="0.1", version="0.1",
packages=find_packages(), packages=find_packages(),
url="https://github.com/karavana", url="https://github.com/karavana",
description = "Karavana", description = "Object Visualization",
long_description = long_description, long_description = long_description,
long_description_content_type = "text/markdown", long_description_content_type = "text/markdown",
) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment