Skip to main content

Core infrastructure and fundamental utilities for the SciTeX ecosystem

Project description

scitex-core

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

SciTeX

Bundled foundation utilities (logging, errors, sh, path, str, dict, types, dt, parallel, repro) for the SciTeX ecosystem.

Full Documentation · pip install scitex-core


Problem and Solution

# Problem Solution
1 10 separate scitex- utility packages for dev tooling* — pip install scitex-str, scitex-dict, scitex-path, ... gets tedious Bundled foundationimport scitex_core exposes logging, errors, sh, path, str, dict, types, dt, parallel, repro in one install

Installation

pip install scitex-core

Quick Start

from scitex_core import logging, path, repro

logger = logging.getLogger(__name__)
logger.info("Hello from scitex-core!")

git_root = path.find_git_root()
exp_id   = repro.gen_id()

1 Interfaces

Python API
# Logging
from scitex_core import logging
logger = logging.getLogger(__name__)
logger.info("Hello"); logger.success("Done")

# Path
from scitex_core import path
path.find_file("/home/user/project", "*.py")
path.this_path()
path.find_git_root()

# Reproducibility
from scitex_core.repro import RandomStateManager, gen_id
rng = RandomStateManager(seed=42)
data = rng("data").random(100)
rng.verify(data, "my_data")

# Types
from scitex_core.types import ArrayLike, is_array_like, is_list_of_type
is_list_of_type([1, 2, 3], int)

# Datetime
from scitex_core.dt import linspace
import datetime
linspace(datetime.datetime(2026, 1, 1), datetime.datetime(2026, 1, 2),
         n_samples=24)

# Parallel
from scitex_core.parallel import run
run(my_func, [(arg1,), (arg2,)], n_jobs=4)

# Dict
from scitex_core.dict import DotDict
d = DotDict({"a": {"b": 1}})
d.a.b  # 1

Status

Foundation package — used by scitex-writer, scitex-scholar, scitex-io, and the umbrella scitex distribution.

Part of SciTeX

scitex-core is part of SciTeX.

Four Freedoms for Research

  1. The freedom to run your research anywhere — your machine, your terms.
  2. The freedom to study how every step works — from raw data to final manuscript.
  3. The freedom to redistribute your workflows, not just your papers.
  4. The freedom to modify any module and share improvements with the community.

AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.

License

AGPL-3.0-only (see LICENSE).


SciTeX

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_core-0.2.8.tar.gz (9.6 MB view details)

Uploaded Source

Built Distribution

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

scitex_core-0.2.8-py3-none-any.whl (112.7 kB view details)

Uploaded Python 3

File details

Details for the file scitex_core-0.2.8.tar.gz.

File metadata

  • Download URL: scitex_core-0.2.8.tar.gz
  • Upload date:
  • Size: 9.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_core-0.2.8.tar.gz
Algorithm Hash digest
SHA256 e1b2642184c1612f3a43f4ca5689e61e1068c46f8d1be9adbc9121baf06ae83b
MD5 1a0425262ffd7f1da70a11af0764356c
BLAKE2b-256 5c40549b822e5d566976aa849b06cb601016b3b82d6978d76d7c7b743a5363e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_core-0.2.8.tar.gz:

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

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_core-0.2.8-py3-none-any.whl.

File metadata

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

File hashes

Hashes for scitex_core-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7db8b02389f07f9cdca0d195215ed3683b47cc752573c2fb65d4f42dfaf39f12
MD5 edfdf2298b589958f7a9154264162c16
BLAKE2b-256 b29db0e77a67c50036f9b2df33eb3e9a5410444c87b333fdf9f54cb89ad2472f

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_core-0.2.8-py3-none-any.whl:

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

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