Metadata-Version: 2.5
Name: lupaxa-ghostport
Version: 0.1.0
Summary: Simulate HTTP APIs from declarative YAML projects.
Project-URL: Homepage, https://github.com/lupaxa-developers-toolbox/ghostport
Project-URL: Documentation, https://ghostport.thelupaxaproject.org/
Project-URL: Repository, https://github.com/lupaxa-developers-toolbox/ghostport
Project-URL: Issues, https://github.com/lupaxa-developers-toolbox/ghostport/issues
Author: The Lupaxa Project
License: MIT License
        
        Copyright (c) The Lupaxa Project
        
        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: LICENCE
Keywords: api,cli,http,mock,yaml
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.11
Requires-Dist: pyyaml>=6.0
Requires-Dist: textual>=1.0
Provides-Extra: dev
Requires-Dist: bump-my-version>=1.2.0; extra == 'dev'
Requires-Dist: hatch>=1.12.0; extra == 'dev'
Requires-Dist: mkdocs-material==9.7.7; extra == 'dev'
Requires-Dist: mkdocs==1.6.1; extra == 'dev'
Requires-Dist: mypy>=1.12.0; extra == 'dev'
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.6.0; extra == 'dev'
Provides-Extra: test
Requires-Dist: pytest-cov>=5.0; extra == 'test'
Requires-Dist: pytest>=8.0; extra == 'test'
Description-Content-Type: text/markdown

<p align="center">
  <a href="https://github.com/lupaxa-developers-toolbox">
    <img src="https://raw.githubusercontent.com/the-lupaxa-project/brand-assets/master/logos/organisations/developers-toolbox/readme-logo.png" alt="Developers Toolbox" />
  </a>
</p>

<h1 align="center">Ghostport</h1>

Ghost Port simulates HTTP APIs from declarative YAML or JSON. A project can
be one file or a directory of routes, fixtures, and scenarios. The same
project and the same requests produce the same responses.

The PyPI name is `lupaxa-ghostport`. The import path is `lupaxa.ghostport`.
The console script is `ghostport`.

## Install

```bash
pip install lupaxa-ghostport
```

Python 3.11 or newer is required.

## Quick Start

The repository has three ready-to-run projects under `samples/`. This is
the smallest:

```bash
ghostport validate samples/hello-api
ghostport serve samples/hello-api
curl http://127.0.0.1:8080/health
curl http://127.0.0.1:8080/users/7
```

`samples/task-board` adds stored records and a scenario. It listens on
port `8090`. `samples/checkout` adds a fixture, a response sequence, and
SQLite. It listens on port `8100`.

## Documentation

The guide lives in `mkdocs/` and publishes to
<https://ghostport.thelupaxaproject.org/>.
It has install steps, the project format, a key reference, and a
walkthrough of each sample with commands you can paste.

```bash
pip install -r requirements.txt
mkdocs serve
```

## Development

```bash
make init
make python-install-dev
make python-check
```

<a href="https://github.com/the-lupaxa-project">
    <img src="https://raw.githubusercontent.com/the-lupaxa-project/brand-assets/master/logos/components/footer-for-child-orgs.svg" alt="The Lupaxa Project Footer" width="100%" />
</a>
