General utilities (caching, env detection, normalization, mat→npy, xml→dict, TimeStamper, …) — standalone module from the SciTeX ecosystem
Project description
scitex-gen
General-purpose utilities (caching, environment detection, normalization, mat→npy, xml→dict, TimeStamper, etc.) extracted from the SciTeX ecosystem as a standalone package.
Install
pip install scitex-gen
API
import scitex_gen as gen
gen.cache(...)
gen.TimeStamper()
gen.xml2dict(...)
gen.to_z(tensor) # requires torch
gen.to_even(n)
gen.to_odd(n)
gen.transpose(...)
Status
Standalone fork of scitex.gen. The umbrella package's scitex.gen import path
is preserved via a sys.modules-alias bridge.
Decoupling notes:
scitex.{decorators,str,os,introspect,session,context,sh,dict}→scitex_*direct imports (peer packages).scitex.torch.nanstd→ optional viatry/exceptwith a torch-only fallback (only matters for_norm.to_z / to_nanz).import scitexremoved from_less.py(was unused in module body).- self-references in
_norm_cache.pyrewritten toscitex_gen.*.
License
AGPL-3.0-only (see LICENSE).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scitex_gen-0.1.2.tar.gz.
File metadata
- Download URL: scitex_gen-0.1.2.tar.gz
- Upload date:
- Size: 128.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daf5ffa1cd23a638e87a44ccfd598773e7194dce5bca99a063e14faa30700430
|
|
| MD5 |
99e5f0259e4379300670352cb337b84c
|
|
| BLAKE2b-256 |
fbca69cb78e6718105d694c1e6bb24d2c481af2e411a789275541ff4afe7c521
|
File details
Details for the file scitex_gen-0.1.2-py3-none-any.whl.
File metadata
- Download URL: scitex_gen-0.1.2-py3-none-any.whl
- Upload date:
- Size: 49.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64f9adbb5a203333655d87f4985c9181fbafac5c2c859ead8c907e9fdc4bd0c4
|
|
| MD5 |
c6f84904fbec089b8801353a032eb6f3
|
|
| BLAKE2b-256 |
39631b3415cf8dbcaad0be7c77069d332b8ce5f8af8daa220b66200a208cbb4a
|