ialdev-core 0.1.0__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 (85) hide show
  1. ialdev_core-0.1.0/.gitignore +71 -0
  2. ialdev_core-0.1.0/.pixi/config.toml +1 -0
  3. ialdev_core-0.1.0/PKG-INFO +73 -0
  4. ialdev_core-0.1.0/README.md +29 -0
  5. ialdev_core-0.1.0/pyproject.toml +78 -0
  6. ialdev_core-0.1.0/src/iad/core/__init__.py +9 -0
  7. ialdev_core-0.1.0/src/iad/core/array.py +1961 -0
  8. ialdev_core-0.1.0/src/iad/core/binary.py +377 -0
  9. ialdev_core-0.1.0/src/iad/core/cache.py +903 -0
  10. ialdev_core-0.1.0/src/iad/core/codetools.py +203 -0
  11. ialdev_core-0.1.0/src/iad/core/datatools.py +671 -0
  12. ialdev_core-0.1.0/src/iad/core/docs/locators.ipynb +754 -0
  13. ialdev_core-0.1.0/src/iad/core/dotstyle.py +99 -0
  14. ialdev_core-0.1.0/src/iad/core/env.py +271 -0
  15. ialdev_core-0.1.0/src/iad/core/events.py +650 -0
  16. ialdev_core-0.1.0/src/iad/core/filesproc.py +1046 -0
  17. ialdev_core-0.1.0/src/iad/core/fnctools.py +390 -0
  18. ialdev_core-0.1.0/src/iad/core/label.py +240 -0
  19. ialdev_core-0.1.0/src/iad/core/logs.py +182 -0
  20. ialdev_core-0.1.0/src/iad/core/nptools.py +449 -0
  21. ialdev_core-0.1.0/src/iad/core/one_dark.puml +881 -0
  22. ialdev_core-0.1.0/src/iad/core/param/__init__.py +17 -0
  23. ialdev_core-0.1.0/src/iad/core/param/confargparse.py +55 -0
  24. ialdev_core-0.1.0/src/iad/core/param/paramaze.py +339 -0
  25. ialdev_core-0.1.0/src/iad/core/param/tbox.py +277 -0
  26. ialdev_core-0.1.0/src/iad/core/paths.py +563 -0
  27. ialdev_core-0.1.0/src/iad/core/pdtools.py +2570 -0
  28. ialdev_core-0.1.0/src/iad/core/pydantools/__init__.py +5 -0
  29. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/__init__.py +32 -0
  30. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/compat/__init__.py +0 -0
  31. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/compat/hacks.py +76 -0
  32. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/compat/old_enums.py +37 -0
  33. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/compat/representers.py +92 -0
  34. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/compat/types.py +122 -0
  35. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/compat/yaml_lib.py +104 -0
  36. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/ext/__init__.py +1 -0
  37. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/ext/semver.py +152 -0
  38. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/ext/versioned_model.py +113 -0
  39. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/main.py +30 -0
  40. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/mixin.py +281 -0
  41. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/model.py +20 -0
  42. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/py.typed +1 -0
  43. ialdev_core-0.1.0/src/iad/core/pydantools/fixed_pydantic_yaml/version.py +1 -0
  44. ialdev_core-0.1.0/src/iad/core/pydantools/models.py +560 -0
  45. ialdev_core-0.1.0/src/iad/core/regexp.py +348 -0
  46. ialdev_core-0.1.0/src/iad/core/short.py +308 -0
  47. ialdev_core-0.1.0/src/iad/core/strings.py +635 -0
  48. ialdev_core-0.1.0/src/iad/core/unc_panda.py +270 -0
  49. ialdev_core-0.1.0/src/iad/core/units.py +58 -0
  50. ialdev_core-0.1.0/src/iad/core/wrap.py +420 -0
  51. ialdev_core-0.1.0/tests/array.ipynb +1477 -0
  52. ialdev_core-0.1.0/tests/conftest.py +34 -0
  53. ialdev_core-0.1.0/tests/data/.env +25 -0
  54. ialdev_core-0.1.0/tests/dot_styles_examples.ipynb +673 -0
  55. ialdev_core-0.1.0/tests/param/__init__.py +0 -0
  56. ialdev_core-0.1.0/tests/param/data/dump.json +1 -0
  57. ialdev_core-0.1.0/tests/param/data/dump.yaml +4 -0
  58. ialdev_core-0.1.0/tests/param/data/example_yaml.yml +41 -0
  59. ialdev_core-0.1.0/tests/param/test_param.py +99 -0
  60. ialdev_core-0.1.0/tests/param/test_tbox.py +184 -0
  61. ialdev_core-0.1.0/tests/pydantools_merged/fixed_pydantic_yaml/__init__.py +1 -0
  62. ialdev_core-0.1.0/tests/pydantools_merged/fixed_pydantic_yaml/recursive.yaml +5 -0
  63. ialdev_core-0.1.0/tests/pydantools_merged/fixed_pydantic_yaml/test_advanced_yaml.py +40 -0
  64. ialdev_core-0.1.0/tests/pydantools_merged/fixed_pydantic_yaml/test_basic.py +67 -0
  65. ialdev_core-0.1.0/tests/pydantools_merged/fixed_pydantic_yaml/test_io.py +52 -0
  66. ialdev_core-0.1.0/tests/pydantools_merged/fixed_pydantic_yaml/test_resursive.py +27 -0
  67. ialdev_core-0.1.0/tests/pydantools_merged/fixed_pydantic_yaml/test_secret_types.py +60 -0
  68. ialdev_core-0.1.0/tests/pydantools_merged/fixed_pydantic_yaml/test_sorting.py +17 -0
  69. ialdev_core-0.1.0/tests/pydantools_merged/fixed_pydantic_yaml/test_types.py +71 -0
  70. ialdev_core-0.1.0/tests/pydantools_merged/fixed_pydantic_yaml/test_versioned.py +72 -0
  71. ialdev_core-0.1.0/tests/pydantools_merged/fixed_pydantic_yaml/versioned.yaml +2 -0
  72. ialdev_core-0.1.0/tests/test_array.py +411 -0
  73. ialdev_core-0.1.0/tests/test_binar.py +90 -0
  74. ialdev_core-0.1.0/tests/test_cachepipe.py +39 -0
  75. ialdev_core-0.1.0/tests/test_codetools.py +93 -0
  76. ialdev_core-0.1.0/tests/test_coltools.py +13 -0
  77. ialdev_core-0.1.0/tests/test_datatools.py +55 -0
  78. ialdev_core-0.1.0/tests/test_dotstyle.py +268 -0
  79. ialdev_core-0.1.0/tests/test_events.py +97 -0
  80. ialdev_core-0.1.0/tests/test_filesproc.py +97 -0
  81. ialdev_core-0.1.0/tests/test_nptools.py +72 -0
  82. ialdev_core-0.1.0/tests/test_paths.py +91 -0
  83. ialdev_core-0.1.0/tests/test_pdtools.py +579 -0
  84. ialdev_core-0.1.0/tests/test_regexp.py +94 -0
  85. ialdev_core-0.1.0/tests/test_shorts.py +18 -0
@@ -0,0 +1,71 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ pip-wheel-metadata/
20
+ share/python-wheels/
21
+ *.egg-info/
22
+ .installed.cfg
23
+ *.egg
24
+ MANIFEST
25
+
26
+ # Virtual environments
27
+ .pixi/
28
+ venv/
29
+ env/
30
+ ENV/
31
+ .venv
32
+
33
+ # IDEs
34
+ .vscode/
35
+ .idea/
36
+ *.swp
37
+ *.swo
38
+ *~
39
+
40
+ # Testing
41
+ .pytest_cache/
42
+ .coverage
43
+ htmlcov/
44
+ .tox/
45
+ .hypothesis/
46
+
47
+ # Type checking
48
+ .mypy_cache/
49
+ .dmypy.json
50
+ dmypy.json
51
+
52
+ # Jupyter
53
+ .ipynb_checkpoints/
54
+
55
+ # Documentation
56
+ docs/_build/
57
+ docs/.doctrees/
58
+
59
+ # Distribution
60
+ dist/
61
+ *.tar.gz
62
+ *.whl
63
+
64
+ # OS
65
+ .DS_Store
66
+ Thumbs.db
67
+
68
+ # pixi environments
69
+ .pixi/*
70
+ !.pixi/config.toml
71
+ /algutils/.pixi/
@@ -0,0 +1 @@
1
+ run-post-link-scripts = "insecure"
@@ -0,0 +1,73 @@
1
+ Metadata-Version: 2.4
2
+ Name: ialdev-core
3
+ Version: 0.1.0
4
+ Summary: iad.core — algorithmic utilities: data tools, parameters, paths, caching, and more
5
+ Author-email: Your Name <your.email@example.com>
6
+ Requires-Python: >=3.10
7
+ Description-Content-Type: text/markdown
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Intended Audience :: Science/Research
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.8
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Requires-Dist: ialdev-io
18
+ Requires-Dist: pydantic>=2.0
19
+ Requires-Dist: pandas>=1.3.0
20
+ Requires-Dist: numpy>=1.20.0
21
+ Requires-Dist: pyyaml>=5.4.0
22
+ Requires-Dist: ruamel.yaml>=0.15.0
23
+ Requires-Dist: regex>=2021.0.0
24
+ Requires-Dist: rapidfuzz>=3.0
25
+ Requires-Dist: tqdm>=4.60.0
26
+ Requires-Dist: frozendict>=2.0.0
27
+ Requires-Dist: python-box>=6.0.0
28
+ Requires-Dist: joblib>=1.0.0
29
+ Requires-Dist: configargparse>=1.0.0
30
+ Requires-Dist: deprecated>=1.2.0
31
+ Requires-Dist: semver>=2.13.0
32
+ Requires-Dist: uncertainties>=3.1.0
33
+ Requires-Dist: pint>=0.20.0
34
+ Requires-Dist: zfpy
35
+ Requires-Dist: xxhash>=3.0.0
36
+ Requires-Dist: toolz>=0.11.0
37
+ Requires-Dist: numba>=0.55.0
38
+ Requires-Dist: scikit-learn>=1.0.0
39
+ Requires-Dist: python-dotenv>=0.19.0
40
+ Project-URL: Homepage, https://github.com/yourusername/toolbox
41
+ Project-URL: Issues, https://github.com/yourusername/toolbox/issues
42
+ Project-URL: Repository, https://github.com/yourusername/toolbox
43
+
44
+ # algutils
45
+
46
+ Algorithmic utilities: data tools, I/O, parameters, paths, caching, image transforms, and math (hist, geom, regress).
47
+
48
+ Extracted from the toolbox project as a standalone, installable package.
49
+
50
+ ## Installation
51
+
52
+ ```bash
53
+ # From this directory (editable)
54
+ pip install -e .
55
+
56
+ # With optional extras
57
+ pip install -e ".[io,units,dev]"
58
+ ```
59
+
60
+ ## Usage
61
+
62
+ ```python
63
+ from algutils import logger, as_list
64
+ from algutils.param import TBox, YamlModel
65
+ from algutils.io.format import FileFormat
66
+ from algutils.io.imread import imread
67
+ ```
68
+
69
+ ## Development
70
+
71
+ - **pixi**: `pixi install` then `pixi run test` or `pixi run lint`
72
+ - **pip**: `pip install -e ".[dev]"` then `pytest src/algutils -v`
73
+
@@ -0,0 +1,29 @@
1
+ # algutils
2
+
3
+ Algorithmic utilities: data tools, I/O, parameters, paths, caching, image transforms, and math (hist, geom, regress).
4
+
5
+ Extracted from the toolbox project as a standalone, installable package.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ # From this directory (editable)
11
+ pip install -e .
12
+
13
+ # With optional extras
14
+ pip install -e ".[io,units,dev]"
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```python
20
+ from algutils import logger, as_list
21
+ from algutils.param import TBox, YamlModel
22
+ from algutils.io.format import FileFormat
23
+ from algutils.io.imread import imread
24
+ ```
25
+
26
+ ## Development
27
+
28
+ - **pixi**: `pixi install` then `pixi run test` or `pixi run lint`
29
+ - **pip**: `pip install -e ".[dev]"` then `pytest src/algutils -v`
@@ -0,0 +1,78 @@
1
+ [build-system]
2
+ requires = ["flit_core>=3.11,<4"]
3
+ build-backend = "flit_core.buildapi"
4
+
5
+ [project]
6
+ name = "ialdev-core"
7
+ version = "0.1.0"
8
+ description = "iad.core — algorithmic utilities: data tools, parameters, paths, caching, and more"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = {text = "MIT"}
12
+ authors = [
13
+ {name = "Your Name", email = "your.email@example.com"}
14
+ ]
15
+ classifiers = [
16
+ "Development Status :: 4 - Beta",
17
+ "Intended Audience :: Developers",
18
+ "Intended Audience :: Science/Research",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3.8",
21
+ "Programming Language :: Python :: 3.9",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ ]
26
+
27
+ dependencies = [
28
+ "ialdev-io",
29
+ "pydantic>=2.0",
30
+ "pandas>=1.3.0",
31
+ "numpy>=1.20.0",
32
+ "pyyaml>=5.4.0",
33
+ "ruamel.yaml>=0.15.0",
34
+ "regex>=2021.0.0",
35
+ "rapidfuzz>=3.0",
36
+ "tqdm>=4.60.0",
37
+ "frozendict>=2.0.0",
38
+ "python-box>=6.0.0",
39
+ "joblib>=1.0.0",
40
+ "configargparse>=1.0.0",
41
+ "deprecated>=1.2.0",
42
+ "semver>=2.13.0",
43
+ "uncertainties>=3.1.0",
44
+ "pint>=0.20.0",
45
+ "zfpy",
46
+ "xxhash>=3.0.0",
47
+ "toolz>=0.11.0",
48
+ "numba>=0.55.0",
49
+ "scikit-learn>=1.0.0",
50
+ "python-dotenv>=0.19.0",
51
+ ]
52
+
53
+ [project.urls]
54
+ Homepage = "https://github.com/yourusername/toolbox"
55
+ Repository = "https://github.com/yourusername/toolbox"
56
+ Issues = "https://github.com/yourusername/toolbox/issues"
57
+
58
+ # Distribution name (ialdev-core) ≠ import name (iad.core)
59
+ [tool.flit.module]
60
+ name = "iad.core"
61
+
62
+ [tool.pytest.ini_options]
63
+ testpaths = ["tests"]
64
+ python_files = ["test_*.py"]
65
+ python_classes = ["Test*"]
66
+ python_functions = ["test_*"]
67
+ pythonpath = ["src"]
68
+
69
+ [tool.black]
70
+ line-length = 100
71
+ target-version = ["py310", "py311", "py312"]
72
+ include = '\.pyi?$'
73
+
74
+ [tool.mypy]
75
+ python_version = "3.8"
76
+ warn_return_any = true
77
+ warn_unused_configs = true
78
+ disallow_untyped_defs = false
@@ -0,0 +1,9 @@
1
+ """iad.core — core algorithmic utilities (data, param, paths, caching, etc.)."""
2
+
3
+ from . import logs
4
+ from .short import *
5
+
6
+ logger = logs.logger
7
+
8
+
9
+