Skip to main content

Shared developer utilities for the SciTeX ecosystem

Project description

SciTeX Dev (scitex-dev)

SciTeX

Shared developer utilities for the SciTeX ecosystem

PyPI version Documentation Tests License: AGPL-3.0

Full Documentation · pip install scitex-dev


Problem

The SciTeX ecosystem spans multiple packages (scitex-clew, scitex-writer, scitex-stats, figrecipe, etc.), each with their own documentation, versions, APIs, and CLI commands. Keeping them in sync, discovering what's available, and maintaining consistency across the ecosystem becomes increasingly difficult as it grows.

Solution

scitex-dev provides a unified toolkit for developing and maintaining the SciTeX ecosystem:

  • Docs aggregation — discover, build, and search documentation across all packages from a single entry point
  • Unified search — search Python APIs, CLI commands, MCP tools, and docs with fuzzy matching and Google-like syntax
  • Version management — track, compare, and fix version mismatches across pyproject.toml, __init__.py, git tags, PyPI, and RTD
  • Bulk rename — safe, preview-able renaming with cross-reference updates across the entire codebase
  • LLM-friendly typesResult, ErrorCode, @supports_return_as for consistent structured responses

Zero runtime dependencies. Pure stdlib.

Installation

pip install scitex-dev

# With CLI support:
pip install scitex-dev[cli]

# With MCP server:
pip install scitex-dev[mcp]

# Everything:
pip install scitex-dev[all]

Quick Start

import scitex_dev

# Unified search across the ecosystem
results = scitex_dev.search("save figure")

# Version management
versions = scitex_dev.list_versions()
mismatches = scitex_dev.get_mismatches()

# Documentation aggregation
docs = scitex_dev.get_docs(package="scitex-writer", format="json")

Three Interfaces

Python API
import scitex_dev

# Search
scitex_dev.search("ttest", scope="api")
scitex_dev.search('+required -excluded "exact phrase"')

# Docs
scitex_dev.get_docs()
scitex_dev.get_docs(package="scitex-writer", format="json")
scitex_dev.build_docs(package="scitex-writer")
scitex_dev.search_docs("installation")

# Versions
scitex_dev.list_versions()
scitex_dev.check_versions(["scitex", "figrecipe"])
scitex_dev.get_mismatches()
scitex_dev.fix_mismatches(dry_run=True)

# LLM-friendly types
from scitex_dev import Result, supports_return_as

@supports_return_as
def my_function(x: int) -> int:
    return x * 2

result = my_function(5, return_as="result")
# Result(success=True, data=10)
CLI Commands
# Ecosystem management
scitex-dev ecosystem list
scitex-dev ecosystem list --versions
scitex-dev ecosystem fix-mismatches --dry-run
scitex-dev ecosystem sync

# Documentation
scitex-dev docs --package scitex-writer
scitex-dev search "save figure"

# Bulk rename
scitex-dev rename old_name new_name --dry-run

# See all commands
scitex-dev --help
scitex-dev --help-recursive
MCP Server
# Start server
scitex-dev mcp start

# Check setup
scitex-dev mcp doctor
scitex-dev mcp list-tools

# Installation info
scitex-dev mcp installation

Claude Code Setup — add .mcp.json to your project root. Use SCITEX_DEV_ENV_SRC to load configuration from a .src file:

{
  "mcpServers": {
    "scitex-dev": {
      "command": "scitex-dev",
      "args": ["mcp", "start"],
      "env": {
        "SCITEX_DEV_ENV_SRC": "${SCITEX_DEV_ENV_SRC}"
      }
    }
  }
}

Switch environments via your shell profile:

# Local machine
export SCITEX_DEV_ENV_SRC=~/.scitex/dev/local.src

# Remote server
export SCITEX_DEV_ENV_SRC=~/.scitex/dev/remote.src

Part of SciTeX

scitex-dev is part of SciTeX. It provides the shared infrastructure that keeps the ecosystem consistent and discoverable. When used with the orchestrator package scitex, it enables unified version management and documentation across all modules:

import scitex_dev

# See the entire ecosystem at a glance
versions = scitex_dev.list_versions()
mismatches = scitex_dev.get_mismatches()

# Search across all installed SciTeX packages
scitex_dev.search("statistical test")

The SciTeX system follows the Four Freedoms for Research below, inspired by the Free Software Definition:

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_dev-0.3.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

scitex_dev-0.3.0-py3-none-any.whl (124.0 kB view details)

Uploaded Python 3

File details

Details for the file scitex_dev-0.3.0.tar.gz.

File metadata

  • Download URL: scitex_dev-0.3.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scitex_dev-0.3.0.tar.gz
Algorithm Hash digest
SHA256 61cf4754938b1a9d93a8c1652320aa1a783307f020c8c1de4c85fe780639f8fa
MD5 73a424fdbac4f3e38cec835e45b2478b
BLAKE2b-256 34f50f06baba5e201f0cd5d417dc3ee436eeb5d2b9bf40996b0752117b927ee1

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_dev-0.3.0.tar.gz:

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

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_dev-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: scitex_dev-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 124.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scitex_dev-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53c1808e19931c2fa72f2db21fb497244108d4fbd2b22d242f36caaef4f0eabe
MD5 d3ce424289af20d7cc61e7a274782a07
BLAKE2b-256 927c7b0cc5d0df0e1a4ec1455da9dd3fc282fd1e7eae4ab2869519bbe7251687

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_dev-0.3.0-py3-none-any.whl:

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

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