Skip to content
Open
57 changes: 57 additions & 0 deletions recipes/toy_api/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
context:
version: "0.0.4"
python_min: "3.11"

package:
name: "toy_api"
version: ${{ version }}

source:
url: https://pypi.org/packages/source/t/toy-api/toy_api-${{ version }}.tar.gz
sha256: 08dc561e4fefc4acc3501f127086c17962e8b7cb6ad93900b2c13f8ff51e4b27

build:
number: 0
noarch: python
script: python -m pip install . -vv --no-deps --no-build-isolation

requirements:
host:
- python ${{ python_min }}.*
- pip
- python-build
run:
- python >=${{ python_min }}
- flask
- click
- pyyaml
- pyarrow >=21.0.0,<22

tests:
- python:
imports:
- toy_api
python_version: ${{ python_min }}.*


about:
license: BSD-3-Clause
license_file: LICENSE.md
homepage: https://github.com/brookisme/toy_api
documentation: https://github.com/brookisme/toy_api/wiki
repository: https://github.com/brookisme/toy_api
summary: Easily configurable test API servers and dummy Database generation for development and testing
description: |
Easily configurable test API servers and dummy Database generation for development and testing:

- Configurable Test APIs: Launch Flask-based test APIs with YAML configuration
- Dummy Data Generation: Generate realistic test data for users, posts, permissions, and more
- Multiple Output Formats: Export data as Parquet, CSV, JSON, or line-delimited JSON
- Background Server Management: Start/stop multiple servers with process tracking
- Version Support: Handle multiple API versions in subdirectories
- Port Auto-Selection: Automatic port selection when configured port is unavailable
- Flexible Responses: Built-in response types with dynamic data generation

extra:
recipe-maintainers:
- brookisme