Skip to main content

SciTeX App (scitex-app)

SciTeX

Full Documentation · uv pip install scitex-app[all]

pypi python docs

tests cov


Problem and Solution

# Problem Solution
1 Every lab reinvents its Django "lab tools" webapp -- three months of plumbing before the first domain feature ships App scaffold -- scitex-app init <name> produces a working Django app with auth, file browser, session logging, routes, manifest
2 Apps don't compose -- each lab's app is a snowflake; can't install B into A's workspace FilesBackend plugin registry -- apps declare a manifest.json; scitex-app dev-install registers them into any SciTeX Cloud workspace
3 Local-vs-cloud storage fork -- pathlib everywhere; cloud integration means rewriting every app Auto-backend get_files(root) -- returns a FilesBackend that transparently uses local disk or cloud storage; same read/write API

Backends and Operations

Environment Backend How it works
Local FileSystemBackend pathlib-based, zero dependencies
Cloud CloudFilesBackend HTTP REST via SCITEX_API_TOKEN (injected at runtime)
Custom register_backend() S3, GCS, or any storage you need

Table 1. Three deployment modes. The SDK auto-detects cloud when SCITEX_API_TOKEN is set; otherwise defaults to local filesystem.

Every backend implements the same 7-method protocol:

Method Description
read(path) Read file content (text or binary)
write(path, content) Write content, creating parent dirs
list(directory) List files with optional extension filter
exists(path) Check if a file exists
delete(path) Delete a file
rename(old, new) Rename/move a file
copy(src, dest) Copy a file

Table 2. The FilesBackend protocol. Uses typing.Protocol for structural subtyping — backends just implement the methods, no inheritance required.

Installation

Requires Python >= 3.10. Zero dependencies — pure stdlib.

pip install scitex-app

Architecture

src/scitex_app/
├── appmaker/        # scaffold, validate, publish helpers
├── sdk/             # FilesBackend protocol + implementations
├── _cli/            # `scitex-app` Click CLI
├── _mcp/            # MCP server entry
├── _chat/           # AI backend interface
├── _django.py       # ScitexAppConfig base class
├── paths.py         # project path resolution
├── validator.py     # AppValidator (security/privilege)
└── _standalone.py   # umbrella↔standalone bridge

Demo

flowchart LR
    App[User App] --> SDK[scitex_app.sdk.get_files]
    SDK -->|local| FS[FilesBackend - filesystem]
    SDK -->|SCITEX_API_TOKEN| Cloud[FilesBackend - cloud REST]
    SDK -->|custom| Plugin[FilesBackend - plugin]
    CLI[scitex-app appmaker] --> Init[init / validate / submit]

Quickstart

from scitex_app.sdk import get_files

# Local filesystem (default)
files = get_files("./my_project")
content = files.read("config/settings.yaml")
files.write("output/result.csv", csv_text)

# List files with filter
yaml_files = files.list("config", extensions=[".yaml"])

# Cloud mode (auto-detected via SCITEX_API_TOKEN)
import os
os.environ["SCITEX_API_TOKEN"] = "your-token"
cloud_files = get_files()  # routes through cloud REST API

Three Interfaces

Python API
from scitex_app.sdk import get_files, register_backend, FilesBackend

files = get_files("./project")        # auto-detect backend
files.read("data.csv")                # read file
files.write("out.txt", "hello")       # write file
files.list(extensions=[".yaml"])       # list with filter
files.exists("config.yaml")           # check existence
files.delete("temp.txt")              # delete file
files.rename("old.txt", "new.txt")    # rename/move
files.copy("src.txt", "dst.txt")      # copy file

Full API reference

CLI Commands
scitex-app --help-recursive              # Show all commands
scitex-app read <path>                   # Read a file
scitex-app write <path> "content"        # Write to a file
scitex-app list [directory]              # List files
scitex-app exists <path>                 # Check existence
scitex-app delete <path>                 # Delete a file
scitex-app rename <old> <new>            # Rename/move a file
scitex-app copy <src> <dest>             # Copy a file
scitex-app list-python-apis              # List Python API tree
scitex-app mcp list-tools                # List MCP tools

All file commands support --json output. Destructive commands support --dry-run.

Full CLI reference

MCP Server — for AI Agents

AI agents can read, write, and manage files through the unified SDK.

Tool Description
app_read_file Read a file through the SDK backend
app_write_file Write content to a file
app_list_files List files in a directory
app_file_exists Check if a file exists
app_delete_file Delete a file
app_copy_file Copy a file
app_rename_file Rename/move a file

Table 3. Seven MCP tools mirroring the FilesBackend protocol. All tools accept JSON parameters and return JSON results.

scitex-app mcp start

Full MCP specification

App Development CLI

Create, validate, and publish SciTeX apps — no platform installation required.

# Scaffold a new app
scitex-app app init . --name my_cool_app

# Validate before submission
scitex-app app validate .

# Dev-install on your SciTeX Cloud server
scitex-app app install-dev . --server http://127.0.0.1:8000

# Submit for public review
scitex-app app submit .

Also available via the main CLI: scitex app init, scitex app validate, etc.

Role in SciTeX Ecosystem

scitex-app is the complete toolkit for app developers — runtime SDK + development CLI. It provides backend-agnostic interfaces that let apps work locally, on the cloud, or self-hosted without code changes.

scitex (orchestrator, core compute, CLI, MCP)
  |-- scitex-app (this package) -- app SDK + development CLI
  |     |-- appmaker            -- scaffold, validate, publish
  |     |-- ScitexAppConfig     -- Django base class for app integration
  |     |-- AppValidator        -- security/privilege checking
  |     |-- FilesBackend        -- unified file I/O protocol
  |     |-- paths               -- project path resolution
  |     +-- chat                -- AI backend interface
  |-- scitex-ui                 -- React/TS component library
  +-- figrecipe                 -- reference app (figures)

What this package owns:

  • App scaffolding, validation, and submission (scitex-app app init/validate/submit)
  • Dev-install workflow (scitex-app app dev-install)
  • FilesBackend protocol and implementations (filesystem, cloud, custom)
  • ScitexAppConfig Django base class (from scitex_app.embed import ScitexAppConfig)
  • AppValidator for security and privilege checking
  • Path resolution utilities for project/workspace discovery

What this package does NOT own:

Part of SciTeX

scitex-app is part of SciTeX. Install via the umbrella with pip install scitex[app] to use as scitex.app (Python) or scitex app ... (CLI).

import scitex

# Access files through the unified SDK
files = scitex.app.get_files("./project")
content = files.read("recipes/scatter.yaml")
files.write("output/figure.png", png_bytes)

Apps built with scitex-app work in all three modes:

  • Standalone: pip install figrecipe runs locally with filesystem backend
  • Cloud: Deploy to scitex.ai — cloud backend injected automatically
  • Self-hosted: Run your own instance with custom backends

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scitex_app-0.11.0.tar.gz (4.3 MB view details)

Uploaded Source

Built Distribution

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

scitex_app-0.11.0-py3-none-any.whl (4.2 MB view details)

Uploaded Python 3

File details

Details for the file scitex_app-0.11.0.tar.gz.

File metadata

  • Download URL: scitex_app-0.11.0.tar.gz
  • Upload date:
  • Size: 4.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for scitex_app-0.11.0.tar.gz
Algorithm Hash digest
SHA256 b839053735fea375b426de3c9c1c91798ad358ad3d1230c0c43ea15959feb1fa
MD5 1f9240b65853c3a20683a3e66711ac31
BLAKE2b-256 38c9bf8b5c7dd1777644d7c32d35eaccb6e1e5bcdff217ef5ec85e0b7d5adede

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_app-0.11.0.tar.gz:

Publisher: pypi-publish-and-github-release-on-tag.yml on scitex-ai/scitex-app

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_app-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: scitex_app-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for scitex_app-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f842584605994927e3ce1bdfdb6038cccfb9017b6c2dab7d19d9710d8954a757
MD5 4b67351c87f36182d3a83fd06eb19901
BLAKE2b-256 13d06d84e6ba67dab999e87fbeb4330d8365577f41b31095044886d43af3639a

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_app-0.11.0-py3-none-any.whl:

Publisher: pypi-publish-and-github-release-on-tag.yml on scitex-ai/scitex-app

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

Release history Release notifications | RSS feed

0.13.0

2 files

0.12.1

2 files

0.12.0

2 files

This release

0.11.0 This release

2 files

0.10.1

2 files

0.10.0

2 files

0.9.1

2 files

0.9.0

2 files

0.8.1

2 files

0.8.0

2 files

0.7.1

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.11

2 files

0.2.10

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page