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

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

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.7.tar.gz (131.3 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.7-py3-none-any.whl (51.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_gen-0.1.7.tar.gz
  • Upload date:
  • Size: 131.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_gen-0.1.7.tar.gz
Algorithm Hash digest
SHA256 4f0b286064df67c7a288f31851f9b0d428f32287c8a4d6b3de1a655400e35fdc
MD5 783122415a55a5aeb7e628562e0eb5f6
BLAKE2b-256 eea6a12c3b2a3c850787bee545ff842c5d85417c8d4c411ca785ed663b58971d

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_gen-0.1.7.tar.gz:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-gen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: scitex_gen-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 51.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_gen-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0e91fe9d2428da750ebba2beca4a4eb64ddfc83868e1c26e12449217471fbab0
MD5 e18963e2b39262da0c0c5ddadea09c70
BLAKE2b-256 ec59bb6ed9980a010e75b4c975c9418dde42cf9707e9906d827e2dd1be6d742c

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_gen-0.1.7-py3-none-any.whl:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-gen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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