Skip to main content

Project template cloner + code snippet library for the SciTeX ecosystem — six templates vendored, shallow-cloned on demand to ~/.scitex/template/cache/

Project description

SciTeX

SciTeX Template (scitex-template)

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

Project template cloner + code snippet library for the SciTeX ecosystem.

PyPI version Tests License: AGPL-3.0

pip install scitex-template · pip install scitex[template]


Problem

SciTeX ecosystem users need starting points for three distinct project kinds — a minimal scitex-* package, a full research project, a cloud-module plugin — plus boilerplate for pip projects, LaTeX manuscripts, singularity containers. Each of those template repos evolves independently, and the glue code that clones them (clone_research, clone_pip_project, …) has historically lived buried inside scitex-python where its release cadence doesn't match.

Solution

scitex-template is the standalone cloner. One install gives you every clone_* function, the code-snippet library for scitex idioms (session decorator, io save/load, plt subplots, …), the project-config generators (create_project_config, build_directory_tree), and the MCP server that exposes the same operations to agents.

Installation

pip install scitex-template              # core (lazy imports for scitex.git / scitex.logging / scitex.scholar)
pip install scitex-template[mcp]         # MCP server deps (fastmcp)
pip install scitex-template[dev]         # pytest + coverage

The umbrella route also works — pip install scitex[template] pulls this package transitively.

Python usage

import scitex  # noqa: F401 — ensures scitex.git / .logging are importable

from scitex_template import (
    clone_research,
    clone_pip_project,
    clone_scitex_minimal,
    get_available_templates_info,
    get_code_template,
)

# Clone a research project template
clone_research(target="my-experiment", project_name="my-experiment")

# Discover available templates
for info in get_available_templates_info():
    print(f"{info['id']:>10}  {info['description']}")

# Pull a code snippet for a scitex session script
print(get_code_template("session"))

The legacy import path from scitex.template import … also still works via a compatibility shim in scitex-python.

CLI

Entry point: scitex-template (also python -m scitex_template).

scitex-template                           # starts MCP server

CLI parity with the Python API is planned; for now the cloners are invoked programmatically.

Template repos

scitex-template clones from these external repositories:

Template id Repo
research scitex-research-template
app / pip pip-project-template
cloud-module scitex-template-cloud-module
minimal scitex-minimal-template
singularity singularity_template
paper paper-template

A future revision may vendor these as templates/<id>/ subdirs in this repo so the cloner and the templates ship in lockstep.

Dependency notes

Per the SciTeX downstream dependency rule (general/01_arch_02), this package aims to avoid a hard runtime dep on the scitex umbrella. At present three submodules are still imported lazily inside clone_* functions: scitex.git, scitex.logging, scitex.scholar.ensure_workspace. Once scitex-git is extracted as a standalone, those imports will move to the standalone equivalents (scitex_git, scitex_logging, scitex_scholar). Users running pip install scitex[template] pick up the umbrella transitively, so there is no current breakage.

License

AGPL-3.0-only.

Part of SciTeX

scitex-template 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.


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_template-0.6.1.tar.gz (139.8 kB view details)

Uploaded Source

Built Distribution

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

scitex_template-0.6.1-py3-none-any.whl (115.5 kB view details)

Uploaded Python 3

File details

Details for the file scitex_template-0.6.1.tar.gz.

File metadata

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

File hashes

Hashes for scitex_template-0.6.1.tar.gz
Algorithm Hash digest
SHA256 cf26f1953dcb34439b0ac9dbc8f8eca5457cd123091b6d65f346a33ab7ba364a
MD5 491a3da2a6eeda53aa4e84d4fb66d3d9
BLAKE2b-256 7d43ed005c6294cfe6552cfa53dcf153c730b353761948c80962a79a8ebb2f46

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_template-0.6.1.tar.gz:

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

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_template-0.6.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for scitex_template-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd4f1287c4b984c119c3d59cd09987b573fdbf4bedbf331ff5c159bb2d7574e0
MD5 75b8c81ff3a46a4acaaf205c8d956fc3
BLAKE2b-256 1079361fa864fa80ec6615b50c91a0582e169ec204dd16d65ffb1dd1c619ce1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_template-0.6.1-py3-none-any.whl:

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

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