Metadata-Version: 2.4
Name: goldfish-backend
Version: 0.1.5
Summary: AI-First Personal Knowledge Management - Shared Backend
Project-URL: Homepage, https://github.com/linxichen/goldfish
Project-URL: Repository, https://github.com/linxichen/goldfish
Project-URL: Documentation, https://github.com/linxichen/goldfish/tree/main/goldfish-backend
Project-URL: Bug Reports, https://github.com/linxichen/goldfish/issues
Author: Goldfish Team
License: MIT License
        
        Copyright (c) 2025 Goldfish Team
        
        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
Keywords: ai,backend,entities,knowledge,management,notes
Classifier: Development Status :: 3 - Alpha
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: Topic :: Office/Business :: Scheduling
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Text Processing
Requires-Python: >=3.11
Requires-Dist: alembic>=1.16.2
Requires-Dist: passlib[bcrypt]>=1.7.4
Requires-Dist: pydantic[email]>=2.11.7
Requires-Dist: python-jose[cryptography]>=3.5.0
Requires-Dist: sqlmodel>=0.0.24
Provides-Extra: dev
Requires-Dist: black>=24.0.0; extra == 'dev'
Requires-Dist: faker>=37.4.0; extra == 'dev'
Requires-Dist: httpx>=0.27.0; extra == 'dev'
Requires-Dist: mypy>=1.8.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=1.0.0; extra == 'dev'
Requires-Dist: pytest-cov>=6.2.1; extra == 'dev'
Requires-Dist: pytest>=8.4.1; extra == 'dev'
Requires-Dist: ruff>=0.6.0; extra == 'dev'
Requires-Dist: types-passlib>=1.7.7.20250602; extra == 'dev'
Requires-Dist: types-python-jose>=3.5.0.20250531; extra == 'dev'
Description-Content-Type: text/markdown

# Goldfish Backend

Shared backend package for the Goldfish AI-First Personal Knowledge Management system.

## Overview

This package contains the core shared components used by both the Goldfish CLI and web application:

- **Models**: SQLModel database models for all entities
- **Services**: Business logic layer for entity recognition and management
- **Core**: Database connection, authentication, and utility functions
- **CLI**: Command-line interface components

## Installation

```bash
pip install goldfish-backend
```

## Usage

This package is designed to be used as a dependency by the Goldfish CLI and web application. It provides the shared data layer and business logic.

### In your code:

```python
from goldfish_backend.models import User, Person, Project, Task
from goldfish_backend.services import EntityRecognitionService
from goldfish_backend.core.database import get_session
```

## Development

```bash
# Install with development dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run type checking
mypy src/

# Format code
black src/ tests/
```

## Architecture

- `models/`: SQLModel database models
- `services/`: Business logic services
- `core/`: Core utilities (database, auth)
- `cli/`: Command-line interface components

## License

MIT License