Metadata-Version: 2.4
Name: stapel-booking
Version: 0.1.4
Summary: Composite: bookable resources — calendar + listings
License: MIT
Project-URL: Homepage, https://github.com/usestapel/stapel-booking
Project-URL: Repository, https://github.com/usestapel/stapel-booking
Project-URL: Documentation, https://github.com/usestapel/stapel-booking#readme
Project-URL: Changelog, https://github.com/usestapel/stapel-booking/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/usestapel/stapel-booking/issues
Keywords: django,stapel,booking,composite,calendar
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: stapel-core<1.0,>=0.10
Requires-Dist: stapel-calendar<0.4,>=0.3
Requires-Dist: stapel-listings<0.4,>=0.3
Requires-Dist: stapel-attributes<0.5,>=0.3
Provides-Extra: all
Dynamic: license-file

# stapel-booking

[![license](https://img.shields.io/github/license/usestapel/stapel-booking)](https://github.com/usestapel/stapel-booking/blob/main/LICENSE)
[![status](https://img.shields.io/badge/status-unreleased-orange)](https://github.com/usestapel/stapel-booking)
[![llms.txt](https://img.shields.io/badge/llms.txt-blue)](https://github.com/usestapel/stapel-booking/blob/main/docs/llms.txt)

Не опубликовано на PyPI. Установка из исходников: `pip install git+https://github.com/usestapel/stapel-booking`
Composite: bookable resources — calendar + listings.

## Assemble (one line)

```bash
pip install stapel-tools
stapel-assemble mybooking --libs booking
cd mybooking && make test
```

That expands `booking` through the STAPEL_LIBS `requires`
closure and wires every member module into INSTALLED_APPS,
requirements.txt, urls.py and CONFIG.MD, then runs the verify gates.

## Manual wiring (no scaffold)

```python
# settings.py
from stapel_booking import preset

INSTALLED_APPS = [
    # ... django/stapel-core baseline (incl. stapel_core.django.projections)
    "stapel_calendar",
    "stapel_listings",
    "stapel_booking",
]
for _k, _v in preset.SETTINGS_DEFAULTS.items():
    globals().setdefault(_k, _v)

# urls.py
from django.urls import include, path

urlpatterns = [
    path("calendar/", include("stapel_calendar.urls")),
    path("listings/", include("stapel_listings.urls")),
]
```

## Config checklist (fill these, in the generated project's CONFIG.MD too)

| Key | Note |
|-----|------|
| `STAPEL_CALENDAR[...]` | presets/slots — see stapel-calendar CONFIG.MD |
| `STAPEL_LISTINGS["BASE_CURRENCY"]` | default `USD` — set your currency |
| `STAPEL_LISTINGS["DEFAULT_LISTING_TTL_DAYS"]` | default 30 (a bookable resource usually wants `None`) |
