data-manipulation 0.54__tar.gz → 0.55__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 (73) hide show
  1. {data_manipulation-0.54 → data_manipulation-0.55}/.github/ISSUE_TEMPLATE/bug_report.md +10 -7
  2. data_manipulation-0.55/.gitignore +229 -0
  3. {data_manipulation-0.54 → data_manipulation-0.55}/PKG-INFO +3 -1
  4. {data_manipulation-0.54 → data_manipulation-0.55}/RELEASE.md +21 -4
  5. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/__init__.py +1 -0
  6. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/_version.py +3 -3
  7. data_manipulation-0.55/data_manipulation/iceberg/__init__.py +49 -0
  8. data_manipulation-0.55/data_manipulation/iceberg/catalog.py +454 -0
  9. data_manipulation-0.55/data_manipulation/iceberg/ingest.py +398 -0
  10. data_manipulation-0.55/data_manipulation/iceberg/ledger.py +876 -0
  11. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation.egg-info/PKG-INFO +3 -1
  12. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation.egg-info/SOURCES.txt +5 -1
  13. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation.egg-info/requires.txt +2 -0
  14. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation.egg-info/scm_file_list.json +46 -42
  15. data_manipulation-0.55/data_manipulation.egg-info/scm_version.json +8 -0
  16. {data_manipulation-0.54 → data_manipulation-0.55}/pyproject.toml +2 -0
  17. data_manipulation-0.55/tests/test_iceberg.py +45 -0
  18. data_manipulation-0.54/.gitignore +0 -100
  19. data_manipulation-0.54/data_manipulation.egg-info/scm_version.json +0 -8
  20. data_manipulation-0.54/setup.sh +0 -41
  21. {data_manipulation-0.54 → data_manipulation-0.55}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  22. {data_manipulation-0.54 → data_manipulation-0.55}/CHANGELOG.md +0 -0
  23. {data_manipulation-0.54 → data_manipulation-0.55}/CODE_OF_CONDUCT.md +0 -0
  24. {data_manipulation-0.54 → data_manipulation-0.55}/CONTRIBUTING.md +0 -0
  25. {data_manipulation-0.54 → data_manipulation-0.55}/LICENSE +0 -0
  26. {data_manipulation-0.54 → data_manipulation-0.55}/README.md +0 -0
  27. {data_manipulation-0.54 → data_manipulation-0.55}/conftest.py +0 -0
  28. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/base.py +0 -0
  29. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/beautifulsoup_.py +0 -0
  30. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/boto3_.py +0 -0
  31. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/cryptography_.py +0 -0
  32. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/kerberos_.py +0 -0
  33. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/mysql_connector_python_.py +0 -0
  34. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/openldap_.py +0 -0
  35. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/pandas_.py +0 -0
  36. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/polars_.py +0 -0
  37. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/postgres_.py +0 -0
  38. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/pyspark_.py +0 -0
  39. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/smtplib_.py +0 -0
  40. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation/sqlalchemy_.py +0 -0
  41. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation.egg-info/dependency_links.txt +0 -0
  42. {data_manipulation-0.54 → data_manipulation-0.55}/data_manipulation.egg-info/top_level.txt +0 -0
  43. {data_manipulation-0.54 → data_manipulation-0.55}/docs/api/base.md +0 -0
  44. {data_manipulation-0.54 → data_manipulation-0.55}/docs/api/beautifulsoup_.md +0 -0
  45. {data_manipulation-0.54 → data_manipulation-0.55}/docs/api/boto3_.md +0 -0
  46. {data_manipulation-0.54 → data_manipulation-0.55}/docs/api/cryptography_.md +0 -0
  47. {data_manipulation-0.54 → data_manipulation-0.55}/docs/api/kerberos_.md +0 -0
  48. {data_manipulation-0.54 → data_manipulation-0.55}/docs/api/mysql_connector_python_.md +0 -0
  49. {data_manipulation-0.54 → data_manipulation-0.55}/docs/api/pandas_.md +0 -0
  50. {data_manipulation-0.54 → data_manipulation-0.55}/docs/api/polars_.md +0 -0
  51. {data_manipulation-0.54 → data_manipulation-0.55}/docs/api/postgres_.md +0 -0
  52. {data_manipulation-0.54 → data_manipulation-0.55}/docs/api/pyspark_.md +0 -0
  53. {data_manipulation-0.54 → data_manipulation-0.55}/docs/api/smtplib_.md +0 -0
  54. {data_manipulation-0.54 → data_manipulation-0.55}/docs/api/sqlalchemy_.md +0 -0
  55. {data_manipulation-0.54 → data_manipulation-0.55}/docs/changelog.md +0 -0
  56. {data_manipulation-0.54 → data_manipulation-0.55}/docs/getting-started.md +0 -0
  57. {data_manipulation-0.54 → data_manipulation-0.55}/docs/hooks.py +0 -0
  58. {data_manipulation-0.54 → data_manipulation-0.55}/docs/index.md +0 -0
  59. {data_manipulation-0.54 → data_manipulation-0.55}/mkdocs.yml +0 -0
  60. {data_manipulation-0.54 → data_manipulation-0.55}/setup.cfg +0 -0
  61. {data_manipulation-0.54 → data_manipulation-0.55}/tests/conftest.py +0 -0
  62. {data_manipulation-0.54 → data_manipulation-0.55}/tests/test_base.py +0 -0
  63. {data_manipulation-0.54 → data_manipulation-0.55}/tests/test_beautifulsoup.py +0 -0
  64. {data_manipulation-0.54 → data_manipulation-0.55}/tests/test_boto3.py +0 -0
  65. {data_manipulation-0.54 → data_manipulation-0.55}/tests/test_cryptography.py +0 -0
  66. {data_manipulation-0.54 → data_manipulation-0.55}/tests/test_kerberos.py +0 -0
  67. {data_manipulation-0.54 → data_manipulation-0.55}/tests/test_mysql.py +0 -0
  68. {data_manipulation-0.54 → data_manipulation-0.55}/tests/test_openldap.py +0 -0
  69. {data_manipulation-0.54 → data_manipulation-0.55}/tests/test_pandas.py +0 -0
  70. {data_manipulation-0.54 → data_manipulation-0.55}/tests/test_postgres.py +0 -0
  71. {data_manipulation-0.54 → data_manipulation-0.55}/tests/test_pyspark.py +0 -0
  72. {data_manipulation-0.54 → data_manipulation-0.55}/tests/test_smtplib.py +0 -0
  73. {data_manipulation-0.54 → data_manipulation-0.55}/tests/test_sqlalchemy.py +0 -0
@@ -12,6 +12,7 @@ A clear and concise description of what the bug is.
12
12
 
13
13
  **To Reproduce**
14
14
  Steps to reproduce the behavior:
15
+
15
16
  1. Go to '...'
16
17
  2. Click on '....'
17
18
  3. Scroll down to '....'
@@ -24,15 +25,17 @@ A clear and concise description of what you expected to happen.
24
25
  If applicable, add screenshots to help explain your problem.
25
26
 
26
27
  **Desktop (please complete the following information):**
27
- - OS: [e.g. iOS]
28
- - Browser [e.g. chrome, safari]
29
- - Version [e.g. 22]
28
+
29
+ - OS: [e.g. iOS]
30
+ - Browser [e.g. chrome, safari]
31
+ - Version [e.g. 22]
30
32
 
31
33
  **Smartphone (please complete the following information):**
32
- - Device: [e.g. iPhone6]
33
- - OS: [e.g. iOS8.1]
34
- - Browser [e.g. stock browser, safari]
35
- - Version [e.g. 22]
34
+
35
+ - Device: [e.g. iPhone6]
36
+ - OS: [e.g. iOS8.1]
37
+ - Browser [e.g. stock browser, safari]
38
+ - Version [e.g. 22]
36
39
 
37
40
  **Additional context**
38
41
  Add any other context about the problem here.
@@ -0,0 +1,229 @@
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
+ *.lcov
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ # Pipfile.lock
97
+
98
+ # UV
99
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # uv.lock
103
+
104
+ # poetry
105
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
107
+ # commonly ignored for libraries.
108
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109
+ # poetry.lock
110
+ # poetry.toml
111
+
112
+ # pdm
113
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
115
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
116
+ # pdm.lock
117
+ # pdm.toml
118
+ .pdm-python
119
+ .pdm-build/
120
+
121
+ # pixi
122
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
123
+ # pixi.lock
124
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
125
+ # in the .venv directory. It is recommended not to include this directory in version control.
126
+ .pixi/*
127
+ !.pixi/config.toml
128
+
129
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
130
+ __pypackages__/
131
+
132
+ # Celery stuff
133
+ celerybeat-schedule*
134
+ celerybeat.pid
135
+
136
+ # Redis
137
+ *.rdb
138
+ *.aof
139
+ *.pid
140
+
141
+ # RabbitMQ
142
+ mnesia/
143
+ rabbitmq/
144
+ rabbitmq-data/
145
+
146
+ # ActiveMQ
147
+ activemq-data/
148
+
149
+ # SageMath parsed files
150
+ *.sage.py
151
+
152
+ # Environments
153
+ .env
154
+ .envrc
155
+ .venv
156
+ env/
157
+ venv/
158
+ ENV/
159
+ env.bak/
160
+ venv.bak/
161
+
162
+ # Spyder project settings
163
+ .spyderproject
164
+ .spyproject
165
+
166
+ # Rope project settings
167
+ .ropeproject
168
+
169
+ # mkdocs documentation
170
+ /site
171
+
172
+ # mypy
173
+ .mypy_cache/
174
+ .dmypy.json
175
+ dmypy.json
176
+
177
+ # Pyre type checker
178
+ .pyre/
179
+
180
+ # pytype static type analyzer
181
+ .pytype/
182
+
183
+ # Cython debug symbols
184
+ cython_debug/
185
+
186
+ # PyCharm
187
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
188
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
189
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
190
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
191
+ # .idea/
192
+
193
+ # Abstra
194
+ # Abstra is an AI-powered process automation framework.
195
+ # Ignore directories containing user credentials, local state, and settings.
196
+ # Learn more at https://abstra.io/docs
197
+ .abstra/
198
+
199
+ # Visual Studio Code
200
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
201
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
202
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
203
+ # you could uncomment the following to ignore the entire vscode folder
204
+ # .vscode/
205
+ # Temporary file for partial code execution
206
+ tempCodeRunnerFile.py
207
+
208
+ # Ruff stuff:
209
+ .ruff_cache/
210
+
211
+ # PyPI configuration file
212
+ .pypirc
213
+
214
+ # Marimo
215
+ marimo/_static/
216
+ marimo/_lsp/
217
+ __marimo__/
218
+
219
+ # Streamlit
220
+ .streamlit/secrets.toml
221
+
222
+ # custom
223
+ .claude
224
+ .opencode
225
+ .specstory
226
+ .vscode
227
+ AGENTS.md
228
+ CLAUDE.md
229
+ data_manipulation/_version.py
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: data_manipulation
3
- Version: 0.54
3
+ Version: 0.55
4
4
  Summary: Powerful data manipulation
5
5
  Author-email: Shawn Ng <shawn.coding.acc@gmail.com>
6
6
  License-Expression: BSD-3-Clause
@@ -25,7 +25,9 @@ Requires-Dist: loguru
25
25
  Requires-Dist: mysql-connector-python
26
26
  Requires-Dist: numpy
27
27
  Requires-Dist: pandas
28
+ Requires-Dist: polars
28
29
  Requires-Dist: psycopg
30
+ Requires-Dist: pyiceberg
29
31
  Requires-Dist: pyspark
30
32
  Requires-Dist: python-dotenv
31
33
  Requires-Dist: sqlalchemy
@@ -20,6 +20,16 @@ git status
20
20
 
21
21
  `git status` should report no changes before continuing.
22
22
 
23
+ ## Local Development Build
24
+
25
+ Contributors do not need PyPI credentials or this release flow. To work on the package
26
+ locally, install it editable and build with the standard tooling:
27
+
28
+ ```bash
29
+ pip install -e .
30
+ python -m build # or: uv build
31
+ ```
32
+
23
33
  ## Tag The Release
24
34
 
25
35
  Use the next release version, for example `0.50`:
@@ -41,13 +51,13 @@ environment before running them.
41
51
  Build the MkDocs documentation (local preview only):
42
52
 
43
53
  ```bash
44
- ./setup.sh create_update_docs
54
+ mkdocs build
45
55
  ```
46
56
 
47
57
  Deploy to GitHub Pages:
48
58
 
49
59
  ```bash
50
- ./setup.sh deploy_docs
60
+ mkdocs gh-deploy
51
61
  ```
52
62
 
53
63
  This publishes the contents of `site/` to the `gh-pages` branch.
@@ -67,16 +77,23 @@ This publishes the contents of `site/` to the `gh-pages` branch.
67
77
 
68
78
  ## Publish To PyPI
69
79
 
80
+ Build from a **clean checkout of the tagged commit** so the artifacts carry the tag
81
+ version. `setuptools-scm` derives the version from git, so any uncommitted tracked change
82
+ makes it emit the *next* version as `<next>.devN+d<date>` instead of the tag - confirm
83
+ `git status` is clean before building.
84
+
70
85
  Build and validate the distribution artifacts:
71
86
 
72
87
  ```bash
73
- ./setup.sh cleanup
88
+ rm -rf build dist ./*.egg-info
89
+ python -m build
90
+ python -m twine check --strict dist/*
74
91
  ```
75
92
 
76
93
  Upload the artifacts:
77
94
 
78
95
  ```bash
79
- ./setup.sh upload
96
+ python -m twine upload dist/*
80
97
  ```
81
98
 
82
99
  When prompted by `twine`, enter the PyPI API token. The token should start with
@@ -3,6 +3,7 @@ from data_manipulation import (
3
3
  beautifulsoup_,
4
4
  boto3_,
5
5
  cryptography_,
6
+ iceberg,
6
7
  kerberos_,
7
8
  mysql_connector_python_,
8
9
  openldap_,
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.54'
22
- __version_tuple__ = version_tuple = (0, 54)
21
+ __version__ = version = '0.55'
22
+ __version_tuple__ = version_tuple = (0, 55)
23
23
 
24
- __commit_id__ = commit_id = 'g7826f58d8'
24
+ __commit_id__ = commit_id = 'gb82db140a'
@@ -0,0 +1,49 @@
1
+ """Generic, framework-free Iceberg ingestion toolkit.
2
+
3
+ This subpackage has no Django or host-application dependencies, so it
4
+ can be lifted into another project as a directory copy. It provides three layers:
5
+
6
+ - :mod:`.ledger` - the S3 object registry + partition ingestion ledger (types,
7
+ the :class:`~data_manipulation.iceberg.ledger.IngestionRepository` protocol, and a psycopg
8
+ PostgreSQL adapter whose partition identity is declared per application).
9
+ - :mod:`.catalog` - :class:`~data_manipulation.iceberg.catalog.IcebergCatalog`, a PyIceberg
10
+ SQL-catalog manager, plus :class:`~data_manipulation.iceberg.catalog.TableSpec`.
11
+ - :mod:`.ingest` - :class:`~data_manipulation.iceberg.ingest.IngestionCoordinator`, the
12
+ restatement-aware state machine, driven by an injected
13
+ :class:`~data_manipulation.iceberg.ingest.SourcePlan`.
14
+ """
15
+
16
+ from .catalog import DEFAULT_MAINTENANCE_PROPERTIES, IcebergCatalog, TableSpec
17
+ from .ingest import IngestionCoordinator, SourcePlan
18
+ from .ledger import (
19
+ CONNECT_OPTION_KEYS,
20
+ ERROR_CODES,
21
+ UNVERIFIABLE_COMMIT,
22
+ DimensionColumn,
23
+ IngestionOperation,
24
+ IngestionRepository,
25
+ IngestionStatus,
26
+ IngestionTarget,
27
+ PartitionLoad,
28
+ PostgresIngestionRepository,
29
+ S3ObjectRevision,
30
+ )
31
+
32
+ __all__ = [
33
+ "CONNECT_OPTION_KEYS",
34
+ "DEFAULT_MAINTENANCE_PROPERTIES",
35
+ "ERROR_CODES",
36
+ "UNVERIFIABLE_COMMIT",
37
+ "DimensionColumn",
38
+ "IcebergCatalog",
39
+ "IngestionCoordinator",
40
+ "IngestionOperation",
41
+ "IngestionRepository",
42
+ "IngestionStatus",
43
+ "IngestionTarget",
44
+ "PartitionLoad",
45
+ "PostgresIngestionRepository",
46
+ "S3ObjectRevision",
47
+ "SourcePlan",
48
+ "TableSpec",
49
+ ]