semvec/pypi-packages huggingface dataset:
stoplight-fastapi 0.1.0
Seamlessly integrate Stoplight Elements for beautiful, interactive API documentation in FastAPI.
Requires Python: >=3.10
Keywords: fastapi, api, documentation, stoplight, openapi, interactive-docs, api-docs, rest-api, swagger

# Stoplight Elements API Documentation Plugin for FastAPI

[![Package - Version](https://img.shields.io/pypi/v/stoplight-fastapi)](https://pypi.python.org/pypi/stoplight-fastapi)
[![Package - Supported Python Versions](https://img.shields.io/pypi/pyversions/stoplight-fastapi)](https://codeberg.org/naiwaaa/stoplight-fastapi)
[![Package - License](https://img.shields.io/pypi/l/stoplight-fastapi)](https://codeberg.org/naiwaaa/stoplight-fastapi/src/branch/main/LICENSE)

## Installation

Install `stoplight-fastapi` using your preferred package manager:

### Using uv (recommended)

```bash
uv add stoplight-fastapi
```

### Using pip

```bash
pip install stoplight-fastapi
```

### Requirements

- Python 3.10 or higher
- FastAPI 0.115.0 or higher

## Quick Start

### Basic Setup

```python
from fastapi import FastAPI
from stoplight_fastapi import get_stoplight_api_reference

app = FastAPI(
  title="My API",
  description="Welcome to My Awesome API.",
  version="1.0.0",
)

@app.get("/items/{item_id}")
def read_item(item_id: int, q: str = None):
  """Get an item by ID."""
  return {"item_id": item_id, "q": q}

@app.get("/stoplight", include_in_schema=False)
def get_stoplight_html():
  """Render API documentation with Stoplight Elements."""
  return get_stoplight_api_reference(
    openapi_url=app.openapi_url,
    title=app.title,
  )

if __name__ == "__main__":
  import uvicorn
  uvicorn.run(app, host="0.0.0.0", port=8000)
```

Then visit `http://localhost:8000/stoplight` to view your API documentation.

### Advanced Configuration

Customize the Stoplight Elements UI with
[advanced options](https://docs.stoplight.io/docs/elements/b074dc47b2826-elements-configuration-options):

```python
from stoplight_fastapi import get_stoplight_api_reference, StoplightConfig

@app.get("/docs", include_in_schema=False)
def get_stoplight_html():
  """Advanced Stoplight Elements configuration."""
  return get_stoplight_api_reference(
    openapi_url=app.openapi_url,
    stoplight_config=StoplightConfig(
      router="hash",  # Enable hash-based routing for shareable links
      layout="stacked",  # Choose between 'sidebar', 'responsive', and 'stacked' layouts
      # Additional Stoplight configuration options available
    ),
  )
```

## Live Example

![demo](https://codeberg.org/naiwaaa/stoplight-fastapi/raw/branch/main/assets/screenshot.png)

```bash
uv run https://codeberg.org/naiwaaa/stoplight-fastapi/raw/branch/main/scripts/playground.py
```

Visit `http://localhost:8000/stoplight` to see Stoplight Elements in action.

## Resources

- [FastAPI Documentation](https://fastapi.tiangolo.com)
- [Stoplight Elements Documentation](https://docs.stoplight.io/docs/elements/d6a8ba3f3c186-stoplight-elements)
dlubal.api 2.13.6
Python Client Library for Dlubal Software APIs powered by gRPC
Requires Python: >=3.10

# Dlubal API

![PyPI](https://img.shields.io/pypi/v/dlubal.api)
![Python](https://img.shields.io/badge/Python-3.7%2B-blue)
![License](https://img.shields.io/badge/License-Proprietary-red)

## Compatibility

This package version is fully compatible with the following **Dlubal App version**:

✅ **X.13.0006.218.5c6c59debba**

## Overview
The `dlubal.api` package is the next-generation Python client library for interacting with Dlubal Software APIs, leveraging modern **gRPC technology** to deliver high-speed communication, scalability, and improved performance. This API enables **seamless automation** and **remote access** to Dlubal software **RFEM 6** and **RSTAB 9**, with plans for near-future support for additional products in the Dlubal portfolio.

---

## Installation

Ensure you have **Python 3.10+** installed. Then, install the package via **pip**:

```sh
pip install dlubal.api
```

For additional installation options, refer to the **official documentation**.

---

## Quick Start

### Authentication & Authorization
To use the API, you need:
- **API Key**: Obtainable via your **Extranet | API & Cloud** dashboard.
- **API Subscription**: [Dlubal API Subscriptions](https://www.dlubal.com/en/webshop/online-service)

---

### Example Usage
```python
from dlubal.api import rfem

with rfem.Application(api_key="your_api_key") as rfem_app:
    # Example API call
    rfem_app.create_model("MyModel")
    rfem_app.create_object(
        rfem.structure_core.Node(coordinate_1=2)
    )
```

## Documentation & Support
- 📖 **API Documentation**: [API Docs](https://www.dlubal.com/en/solutions/dlubal-api/api-documentation/index)
- 💬 **Support**: Contact [Dlubal Support](https://www.dlubal.com/en/support-and-learning)
- 🔑 **Extranet**: [API & Cloud Dashboard](https://www.dlubal.com/en/extranet/my-account)

---

## License
This package is proprietary software and requires an **active API Service subscription**. Unauthorized use is prohibited.
latitude-sdk 5.7.0
Latitude SDK for Python
Requires Python: <3.15,>=3.9

# Latitude SDK for Python

```sh
pip install latitude-sdk
```

Requires Python `3.9` through `3.14`.

Go to the [documentation](https://docs.latitude.so/guides/sdk/python) to learn more.

## Usage

```python
from latitude_sdk import Latitude, LatitudeOptions, RunPromptOptions

sdk = Latitude("my-api-key", LatitudeOptions(
    project_id="my-project-id",
    version_uuid="my-version-uuid",
))

await sdk.prompts.run("joke-teller", RunPromptOptions(
    parameters={"topic": "Python"},
    on_event=lambda event: print(event),
    on_finished=lambda event: print(event),
    on_error=lambda error: print(error),
    stream=True,
))
```

Find more [examples](https://docs.latitude.so/examples/sdk).

## Development

Requires uv `0.8.17` or higher.

- Install dependencies: `uv venv && uv sync --all-extras --all-groups`
- Add [dev] dependencies: `uv add [--dev] <package>`
- Run linter: `uv run scripts/lint.py`
- Run formatter: `uv run scripts/format.py`
- Run tests: `uv run scripts/test.py`
- Build package: `uv build`
- Publish package: `uv publish`

### Running only a specific test

Specify the test inline:

```python
uv run scripts/test.py <test_path>::<test_case>::<test_name>
```

Or mark the test with an `only` marker:

```python
import pytest

@pytest.mark.only
async def my_test(self):
    # ... your code
```

...and then run the tests with the marker `only`:

```sh
uv run scripts/test.py -m only
```

## Releases

This SDK is automatically published to pypi and GitHub releases when changes are pushed to the main branch with a new version number.

### Creating a Release

1. **Update the changelog**: Edit `CHANGELOG.md` to add your new version with release notes
2. **Bump the version**: Update the version in `pyproject.toml`
3. **Push to main**: The GitHub Action will automatically:
   - Build and test the package
   - Publish to pypi
   - Create a GitHub release with changelog content
   - Tag the release as `python-sdk-VERSION`

See `CHANGELOG_TEMPLATE.md` for detailed instructions on updating the changelog.

## License

The SDK is licensed under the [MIT License](https://opensource.org/licenses/MIT) - read the [LICENSE](/LICENSE) file for details.