Metadata-Version: 2.4
Name: bazaar-contrib-server-management
Version: 0.3.0rc1
Summary: The server's default configuration, its composition and the import of 0.2's ~/.bcs
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Dist: bazaar-core~=0.3.0rc1
Requires-Dist: bazaar-contrib-config~=0.3.0rc1
Requires-Dist: bazaar-contrib-http~=0.3.0rc1
Requires-Dist: bazaar-contrib-schema~=0.3.0rc1
Requires-Dist: bazaar-contrib-server-migrations~=0.3.0rc1
Requires-Dist: bazaar-contrib-storage~=0.3.0rc1
Requires-Dist: pydantic>=2.12.0
Requires-Python: >=3.15
Project-URL: Repository, https://github.com/open-bazaar/contrib-server-management
Description-Content-Type: text/markdown

# bazaar-contrib-server-management

Run a Bazaar Compute host as the server. The package registers the server's default configuration under `bazaar_compute_node.defaults` and assembles the server composition with private bindings, on a sqlite database of its own at `~/.bcn/bcs.sqlite3`. On the first start it brings a 0.2 server's settings, signing key and database over from `~/.bcs`, which stays as it was.

```sh
uv tool install bazaar-compute --with bazaar-contrib-server-management
bcn run
```

A new host installed with this package runs as the server; installed beside `bazaar-compute-node`, it runs both. The `server-management` entry in `config.toml` keeps 0.2's settings and their defaults:

```toml
[[contribs]]
package = "bazaar-contrib-server-management~=0.3.0rc1"
[[contribs.enabled]]
entry = "server-management"
[contribs.enabled.config]
listen = "127.0.0.1:8765"
session_minutes = 10
retention_days = 30
storage = "sqlite"
```
