Utilities for records pipeline processing
Project description
Package for taking an array of records (utf-8 strings) and splitting it to batches of records, for a delivery system with following limits:
- max size of a record is 1MB (otherwise discarded)
- max size of a batch is 5MB (otherwise an additional batch created)
- max number of records in a batch is 500 (otherwise an additional batch created)
Input is in format: [rec1, rec2, rec3, ..., recN] Output is ini format: [batch1, batch2, batch3, ..., batchN] where each batch is array of records like input.
To run unittests:
python -m unittest -v test/test_records.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pphw-utils-1.0.0.tar.gz
(2.6 kB
view details)
File details
Details for the file pphw-utils-1.0.0.tar.gz.
File metadata
- Download URL: pphw-utils-1.0.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17f3fb274193305b2ad6708429b2d5418b306b528686167ccaae5cb430d7832e
|
|
| MD5 |
7a975bb3830dd6af2f65dab2087e5b2b
|
|
| BLAKE2b-256 |
15de26c7cc558337c548b7c6322a7b2df5059d98b84b63196400b31f5801c91f
|