spring-dancer-sikits 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. spring_dancer_sikits-0.1.1/.gitignore +218 -0
  2. spring_dancer_sikits-0.1.1/LICENSE +21 -0
  3. spring_dancer_sikits-0.1.1/PKG-INFO +221 -0
  4. spring_dancer_sikits-0.1.1/README.md +196 -0
  5. spring_dancer_sikits-0.1.1/pyproject.toml +42 -0
  6. spring_dancer_sikits-0.1.1/src/sikits/__init__.py +30 -0
  7. spring_dancer_sikits-0.1.1/src/sikits/database/__init__.py +90 -0
  8. spring_dancer_sikits-0.1.1/src/sikits/database/core/__init__.py +1 -0
  9. spring_dancer_sikits-0.1.1/src/sikits/database/core/constraint_naming.py +81 -0
  10. spring_dancer_sikits-0.1.1/src/sikits/database/core/identifier.py +89 -0
  11. spring_dancer_sikits-0.1.1/src/sikits/database/core/topology.py +52 -0
  12. spring_dancer_sikits-0.1.1/src/sikits/database/core/type_mapping.py +187 -0
  13. spring_dancer_sikits-0.1.1/src/sikits/database/core/value_render.py +76 -0
  14. spring_dancer_sikits-0.1.1/src/sikits/database/errors.py +75 -0
  15. spring_dancer_sikits-0.1.1/src/sikits/database/handler.py +4 -0
  16. spring_dancer_sikits-0.1.1/src/sikits/database/io/__init__.py +5 -0
  17. spring_dancer_sikits-0.1.1/src/sikits/database/io/markdown.py +80 -0
  18. spring_dancer_sikits-0.1.1/src/sikits/database/model/__init__.py +65 -0
  19. spring_dancer_sikits-0.1.1/src/sikits/database/model/diff.py +77 -0
  20. spring_dancer_sikits-0.1.1/src/sikits/database/model/migration.py +170 -0
  21. spring_dancer_sikits-0.1.1/src/sikits/database/model/query.py +148 -0
  22. spring_dancer_sikits-0.1.1/src/sikits/database/model/schema.py +129 -0
  23. spring_dancer_sikits-0.1.1/src/sikits/database/service/__init__.py +1 -0
  24. spring_dancer_sikits-0.1.1/src/sikits/database/service/data_profiler.py +76 -0
  25. spring_dancer_sikits-0.1.1/src/sikits/database/service/data_reader.py +76 -0
  26. spring_dancer_sikits-0.1.1/src/sikits/database/service/diff_handler.py +293 -0
  27. spring_dancer_sikits-0.1.1/src/sikits/database/service/migration_handler.py +290 -0
  28. spring_dancer_sikits-0.1.1/src/sikits/database/service/name_resolver.py +113 -0
  29. spring_dancer_sikits-0.1.1/src/sikits/database/service/query_builder.py +227 -0
  30. spring_dancer_sikits-0.1.1/src/sikits/database/service/query_handler.py +321 -0
  31. spring_dancer_sikits-0.1.1/src/sikits/database/service/schema_handler.py +189 -0
  32. spring_dancer_sikits-0.1.1/src/sikits/database/service/schema_migration_handler.py +158 -0
  33. spring_dancer_sikits-0.1.1/src/sikits/database/service/table_handler.py +528 -0
  34. spring_dancer_sikits-0.1.1/src/sikits/database/service/type_validator.py +178 -0
  35. spring_dancer_sikits-0.1.1/src/sikits/dataframe/__init__.py +1 -0
  36. spring_dancer_sikits-0.1.1/src/sikits/decotextual/__init__.py +39 -0
  37. spring_dancer_sikits-0.1.1/src/sikits/decotextual/_linear.py +23 -0
  38. spring_dancer_sikits-0.1.1/src/sikits/decotextual/_stop.py +51 -0
  39. spring_dancer_sikits-0.1.1/src/sikits/decotextual/deco_app.py +417 -0
  40. spring_dancer_sikits-0.1.1/src/sikits/decotextual/decorators.py +46 -0
  41. spring_dancer_sikits-0.1.1/src/sikits/excel/__init__.py +1 -0
  42. spring_dancer_sikits-0.1.1/src/sikits/github/__init__.py +78 -0
  43. spring_dancer_sikits-0.1.1/src/sikits/github/core/__init__.py +1 -0
  44. spring_dancer_sikits-0.1.1/src/sikits/github/core/conflict.py +124 -0
  45. spring_dancer_sikits-0.1.1/src/sikits/github/core/manifest.py +81 -0
  46. spring_dancer_sikits-0.1.1/src/sikits/github/core/parser.py +149 -0
  47. spring_dancer_sikits-0.1.1/src/sikits/github/core/repository.py +64 -0
  48. spring_dancer_sikits-0.1.1/src/sikits/github/core/runner.py +44 -0
  49. spring_dancer_sikits-0.1.1/src/sikits/github/core/snapshot.py +185 -0
  50. spring_dancer_sikits-0.1.1/src/sikits/github/core/validation.py +131 -0
  51. spring_dancer_sikits-0.1.1/src/sikits/github/errors.py +254 -0
  52. spring_dancer_sikits-0.1.1/src/sikits/github/model.py +253 -0
  53. spring_dancer_sikits-0.1.1/src/sikits/github/service/__init__.py +1 -0
  54. spring_dancer_sikits-0.1.1/src/sikits/github/service/branch_aggregation.py +238 -0
  55. spring_dancer_sikits-0.1.1/src/sikits/github/service/gh_integration.py +566 -0
  56. spring_dancer_sikits-0.1.1/src/sikits/github/service/git_integration.py +227 -0
  57. spring_dancer_sikits-0.1.1/src/sikits/image/__init__.py +1 -0
  58. spring_dancer_sikits-0.1.1/src/sikits/image/image_to_ico.py +42 -0
  59. spring_dancer_sikits-0.1.1/src/sikits/json_diff/__init__.py +25 -0
  60. spring_dancer_sikits-0.1.1/src/sikits/json_diff/core/__init__.py +3 -0
  61. spring_dancer_sikits-0.1.1/src/sikits/json_diff/core/differ.py +178 -0
  62. spring_dancer_sikits-0.1.1/src/sikits/json_diff/core/key_detector.py +46 -0
  63. spring_dancer_sikits-0.1.1/src/sikits/json_diff/core/strategies.py +120 -0
  64. spring_dancer_sikits-0.1.1/src/sikits/json_diff/exceptions.py +6 -0
  65. spring_dancer_sikits-0.1.1/src/sikits/json_diff/io/__init__.py +4 -0
  66. spring_dancer_sikits-0.1.1/src/sikits/json_diff/io/json_writer.py +19 -0
  67. spring_dancer_sikits-0.1.1/src/sikits/json_diff/io/markdown_writer.py +56 -0
  68. spring_dancer_sikits-0.1.1/src/sikits/json_diff/schema/__init__.py +10 -0
  69. spring_dancer_sikits-0.1.1/src/sikits/json_diff/schema/config.py +31 -0
  70. spring_dancer_sikits-0.1.1/src/sikits/json_diff/schema/result.py +86 -0
  71. spring_dancer_sikits-0.1.1/src/sikits/serialization/__init__.py +0 -0
  72. spring_dancer_sikits-0.1.1/src/sikits/serialization/base.py +119 -0
  73. spring_dancer_sikits-0.1.1/src/sikits/serialization/setting.py +318 -0
  74. spring_dancer_sikits-0.1.1/src/sikits/textcraft/__init__.py +6 -0
  75. spring_dancer_sikits-0.1.1/src/sikits/textcraft/class_str.py +51 -0
  76. spring_dancer_sikits-0.1.1/src/sikits/textcraft/string_nameing.py +349 -0
  77. spring_dancer_sikits-0.1.1/src/sikits/wbs/__init__.py +33 -0
  78. spring_dancer_sikits-0.1.1/src/sikits/wbs/core/__init__.py +4 -0
  79. spring_dancer_sikits-0.1.1/src/sikits/wbs/core/base.py +79 -0
  80. spring_dancer_sikits-0.1.1/src/sikits/wbs/core/mapping.py +16 -0
  81. spring_dancer_sikits-0.1.1/src/sikits/wbs/dashboard/__init__.py +10 -0
  82. spring_dancer_sikits-0.1.1/src/sikits/wbs/dashboard/calc/__init__.py +6 -0
  83. spring_dancer_sikits-0.1.1/src/sikits/wbs/dashboard/calc/assignee.py +32 -0
  84. spring_dancer_sikits-0.1.1/src/sikits/wbs/dashboard/calc/burndown.py +54 -0
  85. spring_dancer_sikits-0.1.1/src/sikits/wbs/dashboard/calc/funnel.py +36 -0
  86. spring_dancer_sikits-0.1.1/src/sikits/wbs/dashboard/calc/review_lag.py +31 -0
  87. spring_dancer_sikits-0.1.1/src/sikits/wbs/dashboard/writer.py +36 -0
  88. spring_dancer_sikits-0.1.1/src/sikits/wbs/io/__init__.py +6 -0
  89. spring_dancer_sikits-0.1.1/src/sikits/wbs/io/csv_reader.py +11 -0
  90. spring_dancer_sikits-0.1.1/src/sikits/wbs/io/csv_writer.py +8 -0
  91. spring_dancer_sikits-0.1.1/src/sikits/wbs/io/excel_writer.py +44 -0
  92. spring_dancer_sikits-0.1.1/src/sikits/wbs/io/json_reader.py +11 -0
  93. spring_dancer_sikits-0.1.1/src/sikits/wbs/io/json_writer.py +8 -0
  94. spring_dancer_sikits-0.1.1/src/sikits/wbs/schema/__init__.py +4 -0
  95. spring_dancer_sikits-0.1.1/src/sikits/wbs/schema/backend.py +7 -0
  96. spring_dancer_sikits-0.1.1/src/sikits/wbs/schema/frontend.py +36 -0
  97. spring_dancer_sikits-0.1.1/src/sikits/wbs/snapshot/__init__.py +3 -0
  98. spring_dancer_sikits-0.1.1/src/sikits/wbs/snapshot/snapshot.py +79 -0
@@ -0,0 +1,218 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ # .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ # .vscode/
203
+ # Temporary file for partial code execution
204
+ tempCodeRunnerFile.py
205
+
206
+ # Ruff stuff:
207
+ .ruff_cache/
208
+
209
+ # PyPI configuration file
210
+ .pypirc
211
+
212
+ # Marimo
213
+ marimo/_static/
214
+ marimo/_lsp/
215
+ __marimo__/
216
+
217
+ # Streamlit
218
+ .streamlit/secrets.toml
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 luvMagi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,221 @@
1
+ Metadata-Version: 2.4
2
+ Name: spring-dancer-sikits
3
+ Version: 0.1.1
4
+ Summary: A modular Python toolkit
5
+ Project-URL: Homepage, https://github.com/luvMagi/Spring-Dancer-SI-Kits
6
+ Project-URL: Repository, https://github.com/luvMagi/Spring-Dancer-SI-Kits
7
+ Project-URL: Issues, https://github.com/luvMagi/Spring-Dancer-SI-Kits/issues
8
+ Project-URL: Documentation, https://github.com/luvMagi/Spring-Dancer-SI-Kits#readme
9
+ Author-email: luvmagi <luvmagi@outlook.com>
10
+ License: MIT
11
+ License-File: LICENSE
12
+ Keywords: toolkit
13
+ Requires-Python: >=3.13
14
+ Requires-Dist: coverage>=7.14.0
15
+ Requires-Dist: numpy>=2.4.5
16
+ Requires-Dist: openpyxl>=3.1.5
17
+ Requires-Dist: pandas>=3.0.3
18
+ Requires-Dist: pydantic>=2.0.0
19
+ Requires-Dist: pytest-cov>=7.1.0
20
+ Requires-Dist: pytest>=9.0.3
21
+ Requires-Dist: pyyaml>=6.0.3
22
+ Requires-Dist: sqlglot>=23.0.0
23
+ Requires-Dist: xlwings>=0.35.3
24
+ Description-Content-Type: text/markdown
25
+
26
+ # Spring-Dancer-SI-Kits
27
+
28
+ A modular Python utility library for internal tooling.
29
+ Covers string manipulation, WBS project management, JSON diffing, typed settings, serialization, and more.
30
+
31
+ - **Python >= 3.13**
32
+ - **License:** MIT
33
+ - **Author:** luvmagi
34
+
35
+ ---
36
+
37
+ ## Project Structure
38
+
39
+ ```
40
+ Spring-Dancer-SI-Kits/
41
+
42
+ ├── src/sikits/ # Library source
43
+ │ ├── textcraft/ # Text & string utilities
44
+ │ │ ├── string_nameing.py # CaseUtils — naming convention converter & branch-name generator
45
+ │ │ └── class_str.py # class_str() — recursive pretty-printer for plain classes
46
+ │ │
47
+ │ ├── serialization/ # Serialization & settings
48
+ │ │ ├── base.py # JsonMixin — dataclass JSON/YAML serialization mixin
49
+ │ │ └── setting.py # SettingRegister — generates typed Python class from config file
50
+ │ │
51
+ │ ├── wbs/ # Work Breakdown Structure
52
+ │ │ ├── core/
53
+ │ │ │ ├── base.py # WBS base models
54
+ │ │ │ └── mapping.py # Field mapping logic
55
+ │ │ ├── schema/
56
+ │ │ │ ├── backend.py # Backend WBS schema
57
+ │ │ │ └── frontend.py # Frontend WBS schema
58
+ │ │ ├── io/
59
+ │ │ │ ├── csv_reader.py # Read WBS from CSV
60
+ │ │ │ ├── csv_writer.py # Write WBS to CSV
61
+ │ │ │ ├── excel_writer.py # Write WBS to Excel
62
+ │ │ │ ├── json_reader.py # Read WBS from JSON
63
+ │ │ │ └── json_writer.py # Write WBS to JSON
64
+ │ │ ├── dashboard/
65
+ │ │ │ ├── calc/
66
+ │ │ │ │ ├── assignee.py # Per-assignee metrics
67
+ │ │ │ │ ├── burndown.py # Burndown chart data
68
+ │ │ │ │ ├── funnel.py # Status funnel
69
+ │ │ │ │ └── review_lag.py # Review lag analysis
70
+ │ │ │ └── writer.py # Dashboard output writer
71
+ │ │ └── snapshot/
72
+ │ │ └── snapshot.py # WBS snapshot
73
+ │ │
74
+ │ ├── json_diff/ # JSON diff engine
75
+ │ │ ├── core/
76
+ │ │ │ ├── differ.py # Core diff logic
77
+ │ │ │ ├── key_detector.py # Key detection strategies
78
+ │ │ │ └── strategies.py # Diff strategies
79
+ │ │ ├── schema/
80
+ │ │ │ ├── config.py # Diff configuration schema
81
+ │ │ │ └── result.py # Diff result schema
82
+ │ │ ├── io/
83
+ │ │ │ ├── json_writer.py # Write diff as JSON
84
+ │ │ │ └── markdown_writer.py # Write diff as Markdown
85
+ │ │ └── exceptions.py # Diff exceptions
86
+ │ │
87
+ │ ├── decotextual/ # Decorator utilities
88
+ │ │ ├── decorators.py # Decorator definitions
89
+ │ │ ├── deco_app.py # Decorator application helpers
90
+ │ │ ├── _linear.py # Linear execution helper
91
+ │ │ └── _stop.py # Stop condition helper
92
+ │ │
93
+ │ ├── database/ # Database access helpers
94
+ │ │ ├── handler.py # TableHandler
95
+ │ │ └── model/ # DB schema models
96
+ │ │ └── schema.py # Table, Column, Index
97
+ │ ├── dataframe/ # DataFrame utilities
98
+ │ ├── excel/ # Excel read/write helpers
99
+ │ └── image/
100
+ │ └── image_to_ico.py # Image → ICO converter
101
+
102
+ ├── tests/ # Test suite
103
+ │ ├── sikits/
104
+ │ │ ├── textcraft/
105
+ │ │ │ └── test_string_nameing.py
106
+ │ │ └── serialization/
107
+ │ │ └── test_setting.py
108
+ │ └── resource/ # Test input/output fixtures
109
+ │ └── serialization/setting/
110
+ │ ├── input.toml / .yaml / .yml / .json / empty.json
111
+ │ └── output_*.py # Generated files (inspectable)
112
+
113
+ ├── docs/Project-SpringDancer-Sikits/ # Module documentation
114
+ │ ├── serialization/
115
+ │ │ ├── base.md
116
+ │ │ └── setting.md
117
+ │ └── textcraft/
118
+ │ └── string_nameing.md (utils-string_nameing.md)
119
+
120
+ ├── pyproject.toml # Project metadata & pytest config
121
+ ├── CLAUDE.md # AI assistant context
122
+ └── README.md
123
+ ```
124
+
125
+ ---
126
+
127
+ ## Modules
128
+
129
+ ### `sikits.textcraft`
130
+
131
+ | File | Class / Function | Description |
132
+ |---|---|---|
133
+ | `string_nameing.py` | `CaseUtils` | Convert strings between 11 naming conventions (snake_case, camelCase, PascalCase, kebab-case …). Handles full-width (全角) characters and Japanese punctuation. |
134
+ | `string_nameing.py` | `CaseUtils.to_branch_name` | Convert a GitHub issue title to a valid git branch name. Strips illegal chars, normalizes separators, supports Japanese input. |
135
+ | `class_str.py` | `class_str` | Recursive pretty-printer for plain Python objects — used by generated settings classes. |
136
+
137
+ ### `sikits.serialization`
138
+
139
+ | File | Class | Description |
140
+ |---|---|---|
141
+ | `base.py` | `JsonMixin` | `@dataclass` mixin that adds `load_dict`, `load_file`, `save_file`, `to_json_string`. Supports nested `JsonMixin`, `Enum`, `Optional[T]`, `list[JsonMixin]`. |
142
+ | `setting.py` | `SettingRegister` | Reads a TOML / YAML / JSON config file and generates a fully-typed Python class. The generated class loads from the config file at runtime — no values are baked in. |
143
+
144
+ **Settings workflow:**
145
+
146
+ ```python
147
+ from pathlib import Path
148
+ from sikits.serialization.setting import SettingRegister
149
+
150
+ # Generate once (during development / CI)
151
+ SettingRegister(Path("config/settings.toml")).to_class_file(Path("src/myapp/settings.py"))
152
+ ```
153
+
154
+ ```python
155
+ # Use everywhere — dynamically loaded at startup
156
+ from myapp.settings import Setting
157
+
158
+ print(Setting.db.host)
159
+ print(Setting.servers[0].name)
160
+ ```
161
+
162
+ ### `sikits.wbs`
163
+
164
+ Work Breakdown Structure toolkit. Reads/writes project task data (CSV, JSON, Excel) and computes dashboard metrics (burndown, assignee load, review lag, status funnel).
165
+
166
+ ### `sikits.json_diff`
167
+
168
+ JSON diff engine with pluggable key-detection and output strategies. Produces structured diff results exportable as JSON or Markdown.
169
+
170
+ ### `sikits.decotextual`
171
+
172
+ Decorator utilities for contextual text processing pipelines.
173
+
174
+ ### `sikits.database`
175
+
176
+ Database modeling toolkit for PostgreSQL and Oracle.
177
+
178
+ | File | Class / Function | Description |
179
+ |---|---|---|
180
+ | `model/schema.py` | `Table`, `Column`, `Index` | Unified Pydantic Dataclass models for database objects. Compatible with `JsonMixin`. |
181
+ | `handler.py` | `TableHandler` | Converts between DDL (Postgres/Oracle) and internal models. Supports multi-statement DDL and index extraction. |
182
+
183
+ ---
184
+
185
+ ## Installation
186
+
187
+ ```bash
188
+ # Install from PyPI
189
+ pip install spring-dancer-sikits
190
+
191
+ # Editable install (development)
192
+ pip install -e .
193
+
194
+ # Or with uv
195
+ uv sync
196
+ ```
197
+
198
+ ## Quickstart
199
+
200
+ ```python
201
+ from sikits import CaseUtils, JsonDiffer, SettingRegister, TableHandler
202
+ ```
203
+
204
+ ## Release
205
+
206
+ ```bash
207
+ python -m build
208
+ twine upload dist/*
209
+ ```
210
+
211
+ ## Running Tests
212
+
213
+ ```bash
214
+ pytest
215
+ ```
216
+
217
+ ---
218
+
219
+ ## Documentation
220
+
221
+ Full module docs: [`docs/Project-SpringDancer-Sikits/`](docs/Project-SpringDancer-Sikits/)
@@ -0,0 +1,196 @@
1
+ # Spring-Dancer-SI-Kits
2
+
3
+ A modular Python utility library for internal tooling.
4
+ Covers string manipulation, WBS project management, JSON diffing, typed settings, serialization, and more.
5
+
6
+ - **Python >= 3.13**
7
+ - **License:** MIT
8
+ - **Author:** luvmagi
9
+
10
+ ---
11
+
12
+ ## Project Structure
13
+
14
+ ```
15
+ Spring-Dancer-SI-Kits/
16
+
17
+ ├── src/sikits/ # Library source
18
+ │ ├── textcraft/ # Text & string utilities
19
+ │ │ ├── string_nameing.py # CaseUtils — naming convention converter & branch-name generator
20
+ │ │ └── class_str.py # class_str() — recursive pretty-printer for plain classes
21
+ │ │
22
+ │ ├── serialization/ # Serialization & settings
23
+ │ │ ├── base.py # JsonMixin — dataclass JSON/YAML serialization mixin
24
+ │ │ └── setting.py # SettingRegister — generates typed Python class from config file
25
+ │ │
26
+ │ ├── wbs/ # Work Breakdown Structure
27
+ │ │ ├── core/
28
+ │ │ │ ├── base.py # WBS base models
29
+ │ │ │ └── mapping.py # Field mapping logic
30
+ │ │ ├── schema/
31
+ │ │ │ ├── backend.py # Backend WBS schema
32
+ │ │ │ └── frontend.py # Frontend WBS schema
33
+ │ │ ├── io/
34
+ │ │ │ ├── csv_reader.py # Read WBS from CSV
35
+ │ │ │ ├── csv_writer.py # Write WBS to CSV
36
+ │ │ │ ├── excel_writer.py # Write WBS to Excel
37
+ │ │ │ ├── json_reader.py # Read WBS from JSON
38
+ │ │ │ └── json_writer.py # Write WBS to JSON
39
+ │ │ ├── dashboard/
40
+ │ │ │ ├── calc/
41
+ │ │ │ │ ├── assignee.py # Per-assignee metrics
42
+ │ │ │ │ ├── burndown.py # Burndown chart data
43
+ │ │ │ │ ├── funnel.py # Status funnel
44
+ │ │ │ │ └── review_lag.py # Review lag analysis
45
+ │ │ │ └── writer.py # Dashboard output writer
46
+ │ │ └── snapshot/
47
+ │ │ └── snapshot.py # WBS snapshot
48
+ │ │
49
+ │ ├── json_diff/ # JSON diff engine
50
+ │ │ ├── core/
51
+ │ │ │ ├── differ.py # Core diff logic
52
+ │ │ │ ├── key_detector.py # Key detection strategies
53
+ │ │ │ └── strategies.py # Diff strategies
54
+ │ │ ├── schema/
55
+ │ │ │ ├── config.py # Diff configuration schema
56
+ │ │ │ └── result.py # Diff result schema
57
+ │ │ ├── io/
58
+ │ │ │ ├── json_writer.py # Write diff as JSON
59
+ │ │ │ └── markdown_writer.py # Write diff as Markdown
60
+ │ │ └── exceptions.py # Diff exceptions
61
+ │ │
62
+ │ ├── decotextual/ # Decorator utilities
63
+ │ │ ├── decorators.py # Decorator definitions
64
+ │ │ ├── deco_app.py # Decorator application helpers
65
+ │ │ ├── _linear.py # Linear execution helper
66
+ │ │ └── _stop.py # Stop condition helper
67
+ │ │
68
+ │ ├── database/ # Database access helpers
69
+ │ │ ├── handler.py # TableHandler
70
+ │ │ └── model/ # DB schema models
71
+ │ │ └── schema.py # Table, Column, Index
72
+ │ ├── dataframe/ # DataFrame utilities
73
+ │ ├── excel/ # Excel read/write helpers
74
+ │ └── image/
75
+ │ └── image_to_ico.py # Image → ICO converter
76
+
77
+ ├── tests/ # Test suite
78
+ │ ├── sikits/
79
+ │ │ ├── textcraft/
80
+ │ │ │ └── test_string_nameing.py
81
+ │ │ └── serialization/
82
+ │ │ └── test_setting.py
83
+ │ └── resource/ # Test input/output fixtures
84
+ │ └── serialization/setting/
85
+ │ ├── input.toml / .yaml / .yml / .json / empty.json
86
+ │ └── output_*.py # Generated files (inspectable)
87
+
88
+ ├── docs/Project-SpringDancer-Sikits/ # Module documentation
89
+ │ ├── serialization/
90
+ │ │ ├── base.md
91
+ │ │ └── setting.md
92
+ │ └── textcraft/
93
+ │ └── string_nameing.md (utils-string_nameing.md)
94
+
95
+ ├── pyproject.toml # Project metadata & pytest config
96
+ ├── CLAUDE.md # AI assistant context
97
+ └── README.md
98
+ ```
99
+
100
+ ---
101
+
102
+ ## Modules
103
+
104
+ ### `sikits.textcraft`
105
+
106
+ | File | Class / Function | Description |
107
+ |---|---|---|
108
+ | `string_nameing.py` | `CaseUtils` | Convert strings between 11 naming conventions (snake_case, camelCase, PascalCase, kebab-case …). Handles full-width (全角) characters and Japanese punctuation. |
109
+ | `string_nameing.py` | `CaseUtils.to_branch_name` | Convert a GitHub issue title to a valid git branch name. Strips illegal chars, normalizes separators, supports Japanese input. |
110
+ | `class_str.py` | `class_str` | Recursive pretty-printer for plain Python objects — used by generated settings classes. |
111
+
112
+ ### `sikits.serialization`
113
+
114
+ | File | Class | Description |
115
+ |---|---|---|
116
+ | `base.py` | `JsonMixin` | `@dataclass` mixin that adds `load_dict`, `load_file`, `save_file`, `to_json_string`. Supports nested `JsonMixin`, `Enum`, `Optional[T]`, `list[JsonMixin]`. |
117
+ | `setting.py` | `SettingRegister` | Reads a TOML / YAML / JSON config file and generates a fully-typed Python class. The generated class loads from the config file at runtime — no values are baked in. |
118
+
119
+ **Settings workflow:**
120
+
121
+ ```python
122
+ from pathlib import Path
123
+ from sikits.serialization.setting import SettingRegister
124
+
125
+ # Generate once (during development / CI)
126
+ SettingRegister(Path("config/settings.toml")).to_class_file(Path("src/myapp/settings.py"))
127
+ ```
128
+
129
+ ```python
130
+ # Use everywhere — dynamically loaded at startup
131
+ from myapp.settings import Setting
132
+
133
+ print(Setting.db.host)
134
+ print(Setting.servers[0].name)
135
+ ```
136
+
137
+ ### `sikits.wbs`
138
+
139
+ Work Breakdown Structure toolkit. Reads/writes project task data (CSV, JSON, Excel) and computes dashboard metrics (burndown, assignee load, review lag, status funnel).
140
+
141
+ ### `sikits.json_diff`
142
+
143
+ JSON diff engine with pluggable key-detection and output strategies. Produces structured diff results exportable as JSON or Markdown.
144
+
145
+ ### `sikits.decotextual`
146
+
147
+ Decorator utilities for contextual text processing pipelines.
148
+
149
+ ### `sikits.database`
150
+
151
+ Database modeling toolkit for PostgreSQL and Oracle.
152
+
153
+ | File | Class / Function | Description |
154
+ |---|---|---|
155
+ | `model/schema.py` | `Table`, `Column`, `Index` | Unified Pydantic Dataclass models for database objects. Compatible with `JsonMixin`. |
156
+ | `handler.py` | `TableHandler` | Converts between DDL (Postgres/Oracle) and internal models. Supports multi-statement DDL and index extraction. |
157
+
158
+ ---
159
+
160
+ ## Installation
161
+
162
+ ```bash
163
+ # Install from PyPI
164
+ pip install spring-dancer-sikits
165
+
166
+ # Editable install (development)
167
+ pip install -e .
168
+
169
+ # Or with uv
170
+ uv sync
171
+ ```
172
+
173
+ ## Quickstart
174
+
175
+ ```python
176
+ from sikits import CaseUtils, JsonDiffer, SettingRegister, TableHandler
177
+ ```
178
+
179
+ ## Release
180
+
181
+ ```bash
182
+ python -m build
183
+ twine upload dist/*
184
+ ```
185
+
186
+ ## Running Tests
187
+
188
+ ```bash
189
+ pytest
190
+ ```
191
+
192
+ ---
193
+
194
+ ## Documentation
195
+
196
+ Full module docs: [`docs/Project-SpringDancer-Sikits/`](docs/Project-SpringDancer-Sikits/)
@@ -0,0 +1,42 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.27.0"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "spring-dancer-sikits"
7
+ version = "0.1.1"
8
+ requires-python = ">=3.13"
9
+ dependencies = [
10
+ "numpy>=2.4.5",
11
+ "openpyxl>=3.1.5",
12
+ "pydantic>=2.0.0",
13
+ "pandas>=3.0.3",
14
+ "pytest>=9.0.3",
15
+ "pyyaml>=6.0.3",
16
+ "sqlglot>=23.0.0",
17
+ "xlwings>=0.35.3",
18
+ "coverage>=7.14.0",
19
+ "pytest-cov>=7.1.0",
20
+ ]
21
+ description = "A modular Python toolkit"
22
+ readme = "README.md"
23
+ license = { text = "MIT" }
24
+ authors = [{ name = "luvmagi", email = "luvmagi@outlook.com" }]
25
+ keywords = ["toolkit"]
26
+
27
+ [project.urls]
28
+ Homepage = "https://github.com/luvMagi/Spring-Dancer-SI-Kits"
29
+ Repository = "https://github.com/luvMagi/Spring-Dancer-SI-Kits"
30
+ Issues = "https://github.com/luvMagi/Spring-Dancer-SI-Kits/issues"
31
+ Documentation = "https://github.com/luvMagi/Spring-Dancer-SI-Kits#readme"
32
+
33
+ [tool.pytest.ini_options]
34
+ testpaths = ["test", "tests"]
35
+ pythonpath = ["src"]
36
+ addopts = "-v --tb=short"
37
+
38
+ [tool.hatch.build.targets.wheel]
39
+ packages = ["src/sikits"]
40
+
41
+ [tool.hatch.build.targets.sdist]
42
+ include = ["src/", "README.md", "LICENSE"]