payloaded 0.0.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.
@@ -0,0 +1,48 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
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
+ # Virtual environments
30
+ .env
31
+ .venv
32
+ env/
33
+ venv/
34
+ ENV/
35
+ env.bak/
36
+ venv.bak/
37
+
38
+ # Testing & Coverage
39
+ .pytest_cache/
40
+ .coverage
41
+ htmlcov/
42
+
43
+ # IDE & OS
44
+ .DS_Store
45
+ .idea/
46
+ .vscode/
47
+ *.swp
48
+ *.swo
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 svr-s
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,80 @@
1
+ Metadata-Version: 2.4
2
+ Name: payloaded
3
+ Version: 0.0.1
4
+ Summary: Transform flat tabular data into nested, hierarchical API payloads with grouping and reconciliation.
5
+ Project-URL: Homepage, https://github.com/svr-s/payloaded
6
+ Project-URL: Repository, https://github.com/svr-s/payloaded
7
+ Project-URL: Issues, https://github.com/svr-s/payloaded/issues
8
+ Author: svr-s
9
+ License: MIT
10
+ License-File: LICENSE
11
+ Keywords: api,batching,data-transformation,json,pandas,payload
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Classifier: Topic :: Utilities
21
+ Requires-Python: >=3.9
22
+ Requires-Dist: pandas>=1.5.0
23
+ Provides-Extra: dev
24
+ Requires-Dist: build>=1.0.0; extra == 'dev'
25
+ Requires-Dist: pytest>=7.0.0; extra == 'dev'
26
+ Requires-Dist: twine>=4.0.0; extra == 'dev'
27
+ Description-Content-Type: text/markdown
28
+
29
+ # payloaded
30
+
31
+ [![PyPI version](https://img.shields.io/pypi/v/payloaded.svg)](https://pypi.org/project/payloaded/)
32
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
33
+
34
+ **`payloaded`** transforms flat tabular data (CSVs, DataFrames) into nested, hierarchical JSON payloads for REST/GraphQL APIs with grouping, batch chunking, and mathematical row reconciliation.
35
+
36
+ ---
37
+
38
+ ## Key Features
39
+
40
+ - **Template-Driven Payloads**: Map tabular columns directly to placeholders in complex, nested JSON skeletons.
41
+ - **Hierarchical Grouping**: Group rows by parent entities and automatically nest repeating child and grandchild elements.
42
+ - **Batch Chunking**: Split repeating entities across multiple payloads when batch limits are exceeded (e.g., max 50 line items per payload).
43
+ - **Audit & Zero-Loss Reconciliation**: Generates an auditable DataFrame containing payload indices, row tallies, source filenames, and Postman-ready payloads.
44
+
45
+ ---
46
+
47
+ ## Installation
48
+
49
+ ```bash
50
+ pip install payloaded
51
+ ```
52
+
53
+ ---
54
+
55
+ ## Quickstart
56
+
57
+ ```python
58
+ import payloaded as pl
59
+
60
+ # Coming soon in v0.1.0!
61
+ ```
62
+
63
+ ---
64
+
65
+ ## Output Structure
66
+
67
+ The output DataFrame provides complete transparency:
68
+
69
+ | Column | Description |
70
+ |---|---|
71
+ | `index` | Incremental payload identifier |
72
+ | `running_total` | Cumulative count of source rows packed (verifies zero data loss) |
73
+ | `payload` | Complete JSON payload ready to dispatch or paste into Postman |
74
+ | `source_filename` | Origin file name for multi-file traceability |
75
+
76
+ ---
77
+
78
+ ## License
79
+
80
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
@@ -0,0 +1,8 @@
1
+ """Unit test verifying payloaded package initialization and version."""
2
+
3
+ import payloaded
4
+
5
+
6
+ def test_package_version():
7
+ """Verify that payloaded exposes the correct initial version string."""
8
+ assert payloaded.__version__ == "0.0.1"
@@ -0,0 +1,52 @@
1
+ # payloaded
2
+
3
+ [![PyPI version](https://img.shields.io/pypi/v/payloaded.svg)](https://pypi.org/project/payloaded/)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+
6
+ **`payloaded`** transforms flat tabular data (CSVs, DataFrames) into nested, hierarchical JSON payloads for REST/GraphQL APIs with grouping, batch chunking, and mathematical row reconciliation.
7
+
8
+ ---
9
+
10
+ ## Key Features
11
+
12
+ - **Template-Driven Payloads**: Map tabular columns directly to placeholders in complex, nested JSON skeletons.
13
+ - **Hierarchical Grouping**: Group rows by parent entities and automatically nest repeating child and grandchild elements.
14
+ - **Batch Chunking**: Split repeating entities across multiple payloads when batch limits are exceeded (e.g., max 50 line items per payload).
15
+ - **Audit & Zero-Loss Reconciliation**: Generates an auditable DataFrame containing payload indices, row tallies, source filenames, and Postman-ready payloads.
16
+
17
+ ---
18
+
19
+ ## Installation
20
+
21
+ ```bash
22
+ pip install payloaded
23
+ ```
24
+
25
+ ---
26
+
27
+ ## Quickstart
28
+
29
+ ```python
30
+ import payloaded as pl
31
+
32
+ # Coming soon in v0.1.0!
33
+ ```
34
+
35
+ ---
36
+
37
+ ## Output Structure
38
+
39
+ The output DataFrame provides complete transparency:
40
+
41
+ | Column | Description |
42
+ |---|---|
43
+ | `index` | Incremental payload identifier |
44
+ | `running_total` | Cumulative count of source rows packed (verifies zero data loss) |
45
+ | `payload` | Complete JSON payload ready to dispatch or paste into Postman |
46
+ | `source_filename` | Origin file name for multi-file traceability |
47
+
48
+ ---
49
+
50
+ ## License
51
+
52
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
@@ -0,0 +1,44 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.26.0,<1.32.0"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "payloaded"
7
+ version = "0.0.1"
8
+ description = "Transform flat tabular data into nested, hierarchical API payloads with grouping and reconciliation."
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ license = { text = "MIT" }
12
+ authors = [
13
+ { name = "svr-s" }
14
+ ]
15
+ keywords = ["api", "payload", "json", "pandas", "data-transformation", "batching"]
16
+ classifiers = [
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3.9",
19
+ "Programming Language :: Python :: 3.10",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "License :: OSI Approved :: MIT License",
23
+ "Operating System :: OS Independent",
24
+ "Topic :: Software Development :: Libraries :: Python Modules",
25
+ "Topic :: Utilities",
26
+ ]
27
+ dependencies = [
28
+ "pandas>=1.5.0",
29
+ ]
30
+
31
+ [project.optional-dependencies]
32
+ dev = [
33
+ "pytest>=7.0.0",
34
+ "build>=1.0.0",
35
+ "twine>=4.0.0",
36
+ ]
37
+
38
+ [project.urls]
39
+ Homepage = "https://github.com/svr-s/payloaded"
40
+ Repository = "https://github.com/svr-s/payloaded"
41
+ Issues = "https://github.com/svr-s/payloaded/issues"
42
+
43
+ [tool.hatch.build.targets.wheel]
44
+ packages = ["src/payloaded"]
@@ -0,0 +1,8 @@
1
+ """payloaded.
2
+
3
+ A Python package to transform flat tabular data into nested,
4
+ hierarchical API payloads with grouping and reconciliation.
5
+ """
6
+
7
+ __version__ = "0.0.1"
8
+ __all__ = ["__version__"]
@@ -0,0 +1 @@
1
+ # Marker file for PEP 561.