Metadata-Version: 2.4
Name: paper-scoring-pipeline
Version: 0.1.1
Summary: Cross-platform pipeline for Paper Scoring
Project-URL: Repository, https://github.com/maikeruSan/paper-scoring-pipeline
Author: Paper Scoring contributors
License: MIT License
        
        Copyright (c) 2026 Paper Scoring contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.11
Requires-Dist: paper-scoring-connectors[all]<0.2.0,>=0.1.0
Requires-Dist: paper-scoring-core<0.2.0,>=0.1.0
Requires-Dist: paper-scoring-reporting<0.2.0,>=0.1.0
Requires-Dist: pydantic<3,>=2.11
Requires-Dist: python-dotenv<2,>=1.1
Provides-Extra: security
Requires-Dist: bandit[toml]<2,>=1.8; extra == 'security'
Requires-Dist: detect-secrets<2,>=1.5; extra == 'security'
Provides-Extra: test
Requires-Dist: build<2,>=1.3; extra == 'test'
Requires-Dist: coverage[toml]<8,>=7.10; extra == 'test'
Requires-Dist: mypy<2,>=1.18; extra == 'test'
Requires-Dist: pip-audit<3,>=2.9; extra == 'test'
Requires-Dist: pytest<10,>=9.0.3; extra == 'test'
Requires-Dist: ruff<1,>=0.12; extra == 'test'
Requires-Dist: twine<7,>=6.2; extra == 'test'
Description-Content-Type: text/markdown

# Paper Scoring Pipeline

Cross-platform composition layer for Paper Scoring. It combines the core,
connectors, and reporting distributions without introducing Git or local-path
dependencies.

Configuration is injected at process start. The package never automatically
loads `.env` during import.

```shell
pip install paper-scoring-pipeline==0.1.1
paper-scoring-pipeline --env-file .env score-json paper.json --output score.json
```

## Public Python API

Applications that compose the pipeline can import runtime configuration and
service construction directly from the package root:

```python
from paper_scoring_pipeline import (
    PipelineSettings,
    apply_env_file,
    build_scoring_service,
)

apply_env_file(".env")
settings = PipelineSettings.from_environment()
service = build_scoring_service(settings)
```

`apply_env_file` loads only the explicitly supplied file and preserves values
already present in the process environment. Passing `None` performs no action.
Importing `paper_scoring_pipeline` never loads an environment file.

Score a local PDF:

```shell
paper-scoring-pipeline --env-file .env score-pdf paper.pdf --author "Example Researcher"
```

Run the arXiv workflow without shell-specific date commands:

```shell
paper-scoring-pipeline --env-file .env arxiv --category cs.AI --days-ago 2 --max-results 10
```

The same command works in Ubuntu shells, Windows PowerShell, and the provided
Docker image.

All inter-repository dependencies resolve from PyPI. `uv.lock` records hashes
for development and CI, and the container installs its locked runtime set with
hash verification before installing the local pipeline wheel.

Configuration is read only from the process environment and an explicitly
selected `--env-file`; importing the package never reads `.env`. Errors in a
provider, source, report, or SMTP operation are returned as bounded structured
failure metadata. Exception messages and tracebacks are not written to the JSON
output.

The image runs as UID/GID 65532. Compose also drops all capabilities, enables a
read-only root filesystem, and prevents privilege escalation. To verify an
offline command with networking disabled:

```shell
docker run --rm --network none --read-only --cap-drop ALL \
  paper-scoring-pipeline:0.1.1 --help
```

The pipeline needs network access for arXiv, OpenAI, OpenAlex, Ollama, or SMTP.
For an entirely offline invocation, set
`PAPER_SCORING_NETWORK_MODE=none` when using Docker Compose.
