Metadata-Version: 2.4
Name: lame-project-cli
Version: 1.1.1
Summary: Python client library and local-first CLI for Lame cloud projects
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# Lame Python client

The `lame` package is a typed, standard-library Python client for the Lame
project API. It is included in the `lame-project-cli` distribution.

Install from a source checkout with:

```console
python -m pip install .
```

Once the distribution is published to PyPI, install it with:

```console
python -m pip install lame-project-cli
```

Generate a short-lived CLI token from the signed-in Projects page and keep it
private:

```python
from lame import LameClient

client = LameClient("https://your-lame-server.example", token="YOUR_TOKEN")
projects = client.list_projects()
project = client.create_project("research-notes")
client.rename_project(project.id, "research")
```

`LameClient` also provides `storage_connections()`, `delete_project(id)`,
`push_archive(id, bytes_or_file)`, and `pull_archive(id)`. The server validates
archive paths and size limits and syncs files to the storage connection assigned
to the project. The client does not execute project code.

Run `lame` with no arguments to open its interactive terminal menu. It lists all
CLI actions and also accepts normal command lines, such as `push project-name`.
Use the `lame` command-line entry point for local project sync:

```console
lame login
lame projects
lame project -c "research notes"
lame add *
lame commit "first upload"
lame collect "research notes" --path .\research-copy
lame switch storage
lame switch storage "My Drive"

# Existing explicit commands remain available
lame push research
lame pull research --path .\research
```

`add` records local paths in `.lame` and `commit` uploads those staged files to
the project created in the current folder. The server currently stores the
uploaded files but does not keep commit history or commit messages. `collect`
downloads a cloud project. `switch storage` lists configured connections; add
a connection name or ID to make it the default for newly created projects.

The token is a bearer credential. Do not hard-code it or include it in source
control, and revoke it from Projects when it is no longer needed.
