Skip to main content

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 via try/except with a torch-only fallback (only matters for _norm.to_z / to_nanz).
  • import scitex removed from _less.py (was unused in module body).
  • self-references in _norm_cache.py rewritten to scitex_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

scitex_gen-0.1.1.tar.gz (128.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scitex_gen-0.1.1-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

Details for the file scitex_gen-0.1.1.tar.gz.

File metadata

  • Download URL: scitex_gen-0.1.1.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

Hashes for scitex_gen-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1978d993c7bc21c393fc7e3d608825de4a453349689dd4ebb84cb9019ba0eb9f
MD5 4999ac0cb9cb8f7024bf5cf3a7972586
BLAKE2b-256 8be90572c4c261fa2561539a7e0f5cfdbf7f4ad219d408910d2003374456a884

See more details on using hashes here.

File details

Details for the file scitex_gen-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: scitex_gen-0.1.1-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

Hashes for scitex_gen-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 38aec400958305fa67fc3d1306d720031ddd682e96a6a0f44fb7bc739ca7fec8
MD5 82a11aff219a6b545c0de02cc11a609b
BLAKE2b-256 0f68dee46a845bb24d73f975bf3abc9555fbc077972c34d8a4a423e9a35973f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page