payloaded 0.0.1__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.
payloaded/__init__.py ADDED
@@ -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__"]
payloaded/py.typed ADDED
@@ -0,0 +1 @@
1
+ # Marker file for PEP 561.
@@ -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,6 @@
1
+ payloaded/__init__.py,sha256=Hn9Ty8FB1NDjyOeVt4PfZzCtZNsSZndvxl2TJPi8sxM,189
2
+ payloaded/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
3
+ payloaded-0.0.1.dist-info/METADATA,sha256=1YRI8XuQLRJy_-e27nOSjmaFQ0eYQC9zqfsdjpjCjCk,2779
4
+ payloaded-0.0.1.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
5
+ payloaded-0.0.1.dist-info/licenses/LICENSE,sha256=y08kaCi2qvP1f-Zb-K1nL62ra-p6aJU7moEjQBAh0sI,1062
6
+ payloaded-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.31.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -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.