ipa-python-kit 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl

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.
ipa/_version.py CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.1.1'
32
- __version_tuple__ = version_tuple = (0, 1, 1)
31
+ __version__ = version = '0.1.2'
32
+ __version_tuple__ = version_tuple = (0, 1, 2)
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ipa-python-kit
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: kit for python
5
5
  Author-email: xdewx <present150608@sina.com>
6
6
  Keywords: python,kit,lib,util
@@ -10,6 +10,7 @@ Requires-Dist: deprecated>=1.3.1
10
10
  Requires-Dist: pint>=0.21.1
11
11
  Requires-Dist: pydantic>=2.10.6
12
12
  Requires-Dist: pyhumps>=3.8.0
13
+ Requires-Dist: typer>=0.20.1
13
14
  Provides-Extra: system
14
15
  Requires-Dist: psutil>=7.2.1; extra == "system"
15
16
  Provides-Extra: i18n
@@ -27,6 +28,7 @@ Provides-Extra: visualization
27
28
  Requires-Dist: matplotlib>=3.7.5; extra == "visualization"
28
29
  Requires-Dist: pyecharts>=2.0.9; extra == "visualization"
29
30
  Provides-Extra: orm
31
+ Requires-Dist: alembic>=1.14.1; extra == "orm"
30
32
  Requires-Dist: sqlmodel>=0.0.29; extra == "orm"
31
33
  Provides-Extra: network
32
34
  Requires-Dist: networkx>=3.1; extra == "network"
@@ -50,18 +52,38 @@ Requires-Dist: simpy>=4.1.1; extra == "des"
50
52
  3. darker for code format
51
53
  4. ruff for lint
52
54
  5. commitlint for commit message format
55
+ 6. typer for cli
56
+ 7. sqlmodel for database ORM
57
+ 8. alembic for database migration
53
58
 
54
- ## 使用方式
59
+ ## introduction
55
60
 
56
- - 初始化环境:`./scripts/setup`
61
+ the project uses `src-layout`, includes `sdk` (for publish) and `biz` (for business logic).
62
+ `sdk` is designed for publish and no need to rename, we use file/folder mapping `mylib=src/sdk` in `pyproject.toml`.
57
63
 
58
- - 执行测试:`uv run -m pytest`
64
+ ### dev
59
65
 
60
- - 启动服务:`uv run main.py`
66
+ before you start:
61
67
 
62
- - 构建发布:`./scripts/publish`
68
+ 1. must run `./scripts/setup`
69
+ 1. just replace `mylib` with `[the name you want]` in the whole project
70
+ 1. remember to `uv pip install -e .[all]` to make sure `mylib` is available in development.
63
71
 
72
+ ### unit test
64
73
 
65
- ## TODO
74
+ `uv run -m pytest`
66
75
 
67
- - [ ] 处理自身与依赖的最低python版本要求关系
76
+ ### run cli
77
+
78
+ `uv run main.py --help`
79
+
80
+ ### release sdk
81
+
82
+ 1. `cp .pypirc.example .pypirc`
83
+ 2. replace your token in `.pypirc`
84
+ 3. `git tag vx.y.z`
85
+ 4. `./scripts/publish`
86
+
87
+ ### build executable file
88
+
89
+ `./scripts/build`
@@ -1,5 +1,5 @@
1
1
  ipa/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- ipa/_version.py,sha256=qS3Rb8IU851vIlLXMW4dseE1Fx3Ssytyif_1QTy34YM,738
2
+ ipa/_version.py,sha256=UPabfftDNarXNRt7p9IXx9_aYhCVscDiY35GxOcfT8s,738
3
3
  ipa/cli/__init__.py,sha256=YYZYz2QwK34Ro-EBrEDd4sZJ6IeqvUCP-b2cjPWbPa8,44
4
4
  ipa/cli/model.py,sha256=Tdvn8XWcJ_aoghf5N8PlLc38-O01_XPlef66i_--z08,2584
5
5
  ipa/cli/proxy.py,sha256=rEqxH9RacIrb2lxglCnihmF2RooT719WE3NGur5hIfE,7131
@@ -68,7 +68,7 @@ ipa/visualization/__init__.py,sha256=FnTG9eLlbkd4vPyyzteOMjrm3IEtdOYYRUAg0hw-ejg
68
68
  ipa/visualization/_networkx.py,sha256=5bUbKTtTwdFYgEY1ww99-fvVjvWhJkfTf1sVYfUax8k,1598
69
69
  ipa/websocket/__init__.py,sha256=nE8jJjGJaKuJKCyuf6QLfrj8xPj8IqGKeH2VXP3FMzY,21
70
70
  ipa/websocket/core/__init__.py,sha256=1nSItnQzfZt2bBJ8NGeKEZdAuAhnFloSCr28hZpqgTo,4805
71
- ipa_python_kit-0.1.1.dist-info/METADATA,sha256=Gq41esjgfufROO-SfeyUXOAyHOk1J3zC53FK3uc-1x4,2029
72
- ipa_python_kit-0.1.1.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
73
- ipa_python_kit-0.1.1.dist-info/top_level.txt,sha256=jpjQhUSwP61wKQAysY61KwKKom42vtQTiJNXMT6AyCc,4
74
- ipa_python_kit-0.1.1.dist-info/RECORD,,
71
+ ipa_python_kit-0.1.2.dist-info/METADATA,sha256=F4b6MXC1GB01gfJmnOIjcKrhca1iTOqeJlJ4SJeHAq8,2666
72
+ ipa_python_kit-0.1.2.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
73
+ ipa_python_kit-0.1.2.dist-info/top_level.txt,sha256=jpjQhUSwP61wKQAysY61KwKKom42vtQTiJNXMT6AyCc,4
74
+ ipa_python_kit-0.1.2.dist-info/RECORD,,