Metadata-Version: 2.4
Name: lightly-mundig
Version: 0.1.3b1
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Rust
Requires-Dist: pyjwt[crypto]>=2.9 ; extra == 'dev'
Requires-Dist: pytest>=6.0 ; extra == 'dev'
Requires-Dist: maturin>=1.0,<2.0 ; extra == 'dev'
Requires-Dist: ruff-lsp ; extra == 'lsp'
Requires-Dist: pylsp-mypy ; extra == 'lsp'
Provides-Extra: dev
Provides-Extra: lsp
License-File: LICENSE.md
Summary: Python bindings for selection
Author: Lightly Inc.
Author-email: team@lightly.ai
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# Lightly Mundig

A Rust package with Python bindings for sample selection using weighting strategies. More strategies will be added later.

## Prerequisites

- Python 3.8+
- Rust (with Cargo)
- pip or uv

## Quick Start

1. **Build and install the package:**
   ```bash
   python -m venv venv
   source .venv/bin/activate
   make install
   ```
2. **Test the package, both Rust and Python:**
   ```bash
   source venv/bin/activate
   make test
   ```

## How to generate a license token for customers or developers

Currently the license generating token is in the `tests` directory, so that it's not shipped into the final wheel. We'll try to find a better location for it later.

You should pass the number of weeks for which the token will be valid, otherwise a default value of 13 (roughtly 3 months) will be used.

```bash
source venv/bin/activate
make install
cd tests
python license_util.py --weeks 3
```

