Lightware LW2 API
Project description
LW2
Lightware LW2 API
Overview
This project provides the lw2 Python package, a lightweight wrapper for the Lightware LW2 API.
Prerequisites
Before you begin, ensure you have the following installed on your system:
- Python: Version 3.10 or higher
- pip: The Python package manager (comes with Python)
- uv: A CLI tool for running project-specific commands (see below)
macOS
brew install uv
Setting Up a Development Environment
Follow these steps to set up the project for development:
-
Install environment
uv sync
Running tests
The project uses tox to run pytest for testing and ruff for linting. To run the tasks:
uv run pytest
If you want to run manual integration tests you have to install and run:
npm -i -g mountebank
mb --configfile imposter.json
and in another terminal window:
uv run test.py
To fix linting errors you can run:
uv run ruff check . --fix
Update dependencies
To update the lockfile run
uv sync
Building the Package
To build the package (wheel and source distribution), run:
uv build
This will generate the following files in the dist/ directory:
Source distribution: lw2-<version>.tar.gz
Wheel file: lw2-<version>-py3-none-any.whl
Publishing the Package
uv publish
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lw2-0.1.0.tar.gz.
File metadata
- Download URL: lw2-0.1.0.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1d5d558f04c8fefe9e99dd29237ef0ed47dd8cb1cf6bf8f529716b89dc2eea4
|
|
| MD5 |
090a3314b865a8f8ecc88ac64576ba58
|
|
| BLAKE2b-256 |
d3a733c0d0bee8eb92bedb4feb04ae0027f0a8212c2882153456c3dc6454bdbb
|
File details
Details for the file lw2-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lw2-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2039be3c40a6cc2c5a7a769efb97c30275ec9156e75b03aa1c10b5e430a26a60
|
|
| MD5 |
875d5a9a794db9d320d5977926b5afa1
|
|
| BLAKE2b-256 |
700ac227d244b255656bdd1570c685466370c07d7503cb074defab758e68ede9
|