freeplane-and-yaml 0.1.2__tar.gz → 0.1.3__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: freeplane-and-yaml
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: A tool to convert YAML files to Freeplane MM format
5
5
  Home-page: https://github.com/romilly/freeplane-and-yaml
6
6
  Author: Romilly Cocking
@@ -37,7 +37,86 @@ pip install freeplane-and-yaml
37
37
 
38
38
  ## Usage
39
39
 
40
- Your YAML file should follow [this schema](src/schema/mindmap-schema.json). Here's an example structure:
40
+ Your YAML file should follow this schema:
41
+
42
+ ```json
43
+ {
44
+ "$schema": "http://json-schema.org/draft-07/schema#",
45
+ "title": "Mind Map Schema",
46
+ "description": "Schema for Freeplane-compatible mind map YAML format",
47
+
48
+ "definitions": {
49
+ "node": {
50
+ "type": "object",
51
+ "required": ["title"],
52
+ "properties": {
53
+ "title": {
54
+ "type": "string",
55
+ "description": "The display text for the node"
56
+ },
57
+ "note": {
58
+ "type": "string",
59
+ "description": "Rich text note attached to the node"
60
+ },
61
+ "children": {
62
+ "type": "object",
63
+ "description": "Child nodes of this node",
64
+ "patternProperties": {
65
+ "^[a-zA-Z0-9_]+$": {
66
+ "$ref": "#/definitions/node"
67
+ }
68
+ },
69
+ "additionalProperties": false
70
+ }
71
+ },
72
+ "additionalProperties": false
73
+ }
74
+ },
75
+
76
+ "type": "object",
77
+ "required": ["root"],
78
+ "properties": {
79
+ "root": {
80
+ "allOf": [
81
+ { "$ref": "#/definitions/node" },
82
+ {
83
+ "required": ["children"],
84
+ "description": "The root node must have at least one child"
85
+ }
86
+ ]
87
+ }
88
+ },
89
+ "additionalProperties": false,
90
+
91
+ "examples": [
92
+ {
93
+ "root": {
94
+ "title": "Example Mind Map",
95
+ "note": "This is the root node",
96
+ "children": {
97
+ "topic1": {
98
+ "title": "First Topic",
99
+ "note": "Note for first topic",
100
+ "children": {
101
+ "subtopic1": {
102
+ "title": "Subtopic 1",
103
+ "note": "Note for subtopic"
104
+ }
105
+ }
106
+ },
107
+ "topic2": {
108
+ "title": "Second Topic",
109
+ "note": "Note for second topic"
110
+ }
111
+ }
112
+ }
113
+ }
114
+ ]
115
+ }
116
+
117
+ ```
118
+
119
+ Here's an example structure:
41
120
 
42
121
  ```yaml
43
122
  root:
@@ -73,13 +152,13 @@ The YAML must conform to these rules:
73
152
  - Child node keys must be alphanumeric (including underscores)
74
153
  - No additional properties are allowed beyond title, note, and children
75
154
 
76
- For full schema details, see [schema](src/schema/mindmap-schema.json).
155
+ For full schema details, see above.
77
156
 
78
157
  ### Converting Documents to YAML using Claude AI
79
158
 
80
159
  You can use Claude Sonnet to automatically convert documents (PDFs, articles, specifications, etc.) into the required YAML format. Here's the workflow:
81
160
 
82
- 1. Share your document and the [schema](src/schema/mindmap-schema.json) with Claude Sonnet.
161
+ 1. Share your document and the schema (above) with Claude Sonnet.
83
162
  2. Use this prompt:
84
163
  ```
85
164
  I've uploaded a document and a schema file. I'd like you to summarise the document as a yaml file following the schema that I uploaded.
@@ -21,7 +21,86 @@ pip install freeplane-and-yaml
21
21
 
22
22
  ## Usage
23
23
 
24
- Your YAML file should follow [this schema](src/schema/mindmap-schema.json). Here's an example structure:
24
+ Your YAML file should follow this schema:
25
+
26
+ ```json
27
+ {
28
+ "$schema": "http://json-schema.org/draft-07/schema#",
29
+ "title": "Mind Map Schema",
30
+ "description": "Schema for Freeplane-compatible mind map YAML format",
31
+
32
+ "definitions": {
33
+ "node": {
34
+ "type": "object",
35
+ "required": ["title"],
36
+ "properties": {
37
+ "title": {
38
+ "type": "string",
39
+ "description": "The display text for the node"
40
+ },
41
+ "note": {
42
+ "type": "string",
43
+ "description": "Rich text note attached to the node"
44
+ },
45
+ "children": {
46
+ "type": "object",
47
+ "description": "Child nodes of this node",
48
+ "patternProperties": {
49
+ "^[a-zA-Z0-9_]+$": {
50
+ "$ref": "#/definitions/node"
51
+ }
52
+ },
53
+ "additionalProperties": false
54
+ }
55
+ },
56
+ "additionalProperties": false
57
+ }
58
+ },
59
+
60
+ "type": "object",
61
+ "required": ["root"],
62
+ "properties": {
63
+ "root": {
64
+ "allOf": [
65
+ { "$ref": "#/definitions/node" },
66
+ {
67
+ "required": ["children"],
68
+ "description": "The root node must have at least one child"
69
+ }
70
+ ]
71
+ }
72
+ },
73
+ "additionalProperties": false,
74
+
75
+ "examples": [
76
+ {
77
+ "root": {
78
+ "title": "Example Mind Map",
79
+ "note": "This is the root node",
80
+ "children": {
81
+ "topic1": {
82
+ "title": "First Topic",
83
+ "note": "Note for first topic",
84
+ "children": {
85
+ "subtopic1": {
86
+ "title": "Subtopic 1",
87
+ "note": "Note for subtopic"
88
+ }
89
+ }
90
+ },
91
+ "topic2": {
92
+ "title": "Second Topic",
93
+ "note": "Note for second topic"
94
+ }
95
+ }
96
+ }
97
+ }
98
+ ]
99
+ }
100
+
101
+ ```
102
+
103
+ Here's an example structure:
25
104
 
26
105
  ```yaml
27
106
  root:
@@ -57,13 +136,13 @@ The YAML must conform to these rules:
57
136
  - Child node keys must be alphanumeric (including underscores)
58
137
  - No additional properties are allowed beyond title, note, and children
59
138
 
60
- For full schema details, see [schema](src/schema/mindmap-schema.json).
139
+ For full schema details, see above.
61
140
 
62
141
  ### Converting Documents to YAML using Claude AI
63
142
 
64
143
  You can use Claude Sonnet to automatically convert documents (PDFs, articles, specifications, etc.) into the required YAML format. Here's the workflow:
65
144
 
66
- 1. Share your document and the [schema](src/schema/mindmap-schema.json) with Claude Sonnet.
145
+ 1. Share your document and the schema (above) with Claude Sonnet.
67
146
  2. Use this prompt:
68
147
  ```
69
148
  I've uploaded a document and a schema file. I'd like you to summarise the document as a yaml file following the schema that I uploaded.
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="freeplane-and-yaml", # Your package name (it must be unique on PyPI)
5
- version="0.1.2", # Initial release version
5
+ version="0.1.3", # Initial release version
6
6
  description="A tool to convert YAML files to Freeplane MM format",
7
7
  long_description=open("README.md").read(),
8
8
  long_description_content_type="text/markdown", # Use Markdown for PyPI description
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: freeplane-and-yaml
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: A tool to convert YAML files to Freeplane MM format
5
5
  Home-page: https://github.com/romilly/freeplane-and-yaml
6
6
  Author: Romilly Cocking
@@ -37,7 +37,86 @@ pip install freeplane-and-yaml
37
37
 
38
38
  ## Usage
39
39
 
40
- Your YAML file should follow [this schema](src/schema/mindmap-schema.json). Here's an example structure:
40
+ Your YAML file should follow this schema:
41
+
42
+ ```json
43
+ {
44
+ "$schema": "http://json-schema.org/draft-07/schema#",
45
+ "title": "Mind Map Schema",
46
+ "description": "Schema for Freeplane-compatible mind map YAML format",
47
+
48
+ "definitions": {
49
+ "node": {
50
+ "type": "object",
51
+ "required": ["title"],
52
+ "properties": {
53
+ "title": {
54
+ "type": "string",
55
+ "description": "The display text for the node"
56
+ },
57
+ "note": {
58
+ "type": "string",
59
+ "description": "Rich text note attached to the node"
60
+ },
61
+ "children": {
62
+ "type": "object",
63
+ "description": "Child nodes of this node",
64
+ "patternProperties": {
65
+ "^[a-zA-Z0-9_]+$": {
66
+ "$ref": "#/definitions/node"
67
+ }
68
+ },
69
+ "additionalProperties": false
70
+ }
71
+ },
72
+ "additionalProperties": false
73
+ }
74
+ },
75
+
76
+ "type": "object",
77
+ "required": ["root"],
78
+ "properties": {
79
+ "root": {
80
+ "allOf": [
81
+ { "$ref": "#/definitions/node" },
82
+ {
83
+ "required": ["children"],
84
+ "description": "The root node must have at least one child"
85
+ }
86
+ ]
87
+ }
88
+ },
89
+ "additionalProperties": false,
90
+
91
+ "examples": [
92
+ {
93
+ "root": {
94
+ "title": "Example Mind Map",
95
+ "note": "This is the root node",
96
+ "children": {
97
+ "topic1": {
98
+ "title": "First Topic",
99
+ "note": "Note for first topic",
100
+ "children": {
101
+ "subtopic1": {
102
+ "title": "Subtopic 1",
103
+ "note": "Note for subtopic"
104
+ }
105
+ }
106
+ },
107
+ "topic2": {
108
+ "title": "Second Topic",
109
+ "note": "Note for second topic"
110
+ }
111
+ }
112
+ }
113
+ }
114
+ ]
115
+ }
116
+
117
+ ```
118
+
119
+ Here's an example structure:
41
120
 
42
121
  ```yaml
43
122
  root:
@@ -73,13 +152,13 @@ The YAML must conform to these rules:
73
152
  - Child node keys must be alphanumeric (including underscores)
74
153
  - No additional properties are allowed beyond title, note, and children
75
154
 
76
- For full schema details, see [schema](src/schema/mindmap-schema.json).
155
+ For full schema details, see above.
77
156
 
78
157
  ### Converting Documents to YAML using Claude AI
79
158
 
80
159
  You can use Claude Sonnet to automatically convert documents (PDFs, articles, specifications, etc.) into the required YAML format. Here's the workflow:
81
160
 
82
- 1. Share your document and the [schema](src/schema/mindmap-schema.json) with Claude Sonnet.
161
+ 1. Share your document and the schema (above) with Claude Sonnet.
83
162
  2. Use this prompt:
84
163
  ```
85
164
  I've uploaded a document and a schema file. I'd like you to summarise the document as a yaml file following the schema that I uploaded.