Computing Toolbox for Python
This is a library aiming to help programmers to sort every day tasks easily. This library contains:
- gcp
- secret-manager utils to access secret values
- gcp-storage utils to check if a file exists in Google Cloud or get a list of files in a bucket
- jsonl class able to read and write json line file very quickly
- http-request class able to get html files easily
- async-http-request class able to get multiple files easily
- utils
- deep_get function able to get dynamically values from a dictionary
- split function able to split a given interval of size n in m parts
Installation
pip install computing-toolbox
Usage
from computing_toolbox.jsonl import Jsonl
#read whole file
data0 = [x for x in Jsonl("/path/to/file")]
#alternative to read
data1 = list(Jsonl("/path/to/file"))
#read 100 rows after row 20
data2 = [x for x in Jsonl("/path/to/file", offset=20, limit=100)]
#write objects
data3=[{"name":"Newton"}, {"name":"Galileo"}]
Jsonl("/path/to/file","w").write(data3)
If the file is located in the cloud,
you only need to configure your environment
Jsonl class will handle it for aws, gcp, etc.
Jsonl can handle .zip or .gz files automatically
you only need to specify the right extension in the path
Install CLI tools
pip install .
Author
Pedro Mayorga.
Metadata
Release files for computing-toolbox 1.6.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| computing-toolbox-1.6.11.tar.gz | 29.6 kB | Without provenance | Details for computing-toolbox-1.6.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| computing_toolbox-1.6.11-py3-none-any.whl | Python 3 | none | any | Details for computing_toolbox-1.6.11-py3-none-any.whl |
Total release size: 66.5 kB
Release files / computing-toolbox-1.6.11.tar.gz
| Download URL | computing-toolbox-1.6.11.tar.gz |
|---|---|
| Size | 29.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff4286b38d5d9d2658f56c3654948f639cc8c155e1ef23d844140d7855608092
|
|
BLAKE2b-256 checksum How to use checksums |
51e444eb6ddeefaf23465692595029db2e37f3429604023725096554de416b51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / computing_toolbox-1.6.11-py3-none-any.whl
| Download URL | computing_toolbox-1.6.11-py3-none-any.whl |
|---|---|
| Size | 36.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40ef418bdf656d838473a6f789584d24d31d8842fddd323ad219ce0b184977f5
|
|
BLAKE2b-256 checksum How to use checksums |
cdb1fc03019a2b7a57c48822ef31ffd155cfe6a02b0dc968b2cd0b4e9a187e4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for computing-toolbox 1.6.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.