RCLCO Python library
Project description
RCLCO Python Library
A Python library for RCLCO.
Installation
Install from PyPI:
pip install rclco
Or using uv:
uv pip install rclco
Development
This project uses uv for dependency management. uv is an extremely fast Python package manager written in Rust that replaces pip, poetry, pyenv, and virtualenv.
Installing uv
Windows (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Alternative (via pip):
pip install uv
After installation, restart your terminal or run refreshenv to ensure uv is available in your PATH.
Getting Started (Full Workflow)
- Clone the repository:
git clone https://github.com/your-org/python-rclco.git
cd python-rclco
- Install all dependencies (including dev dependencies):
uv sync --all-extras
This command will:
- Create a virtual environment in
.venv(if it doesn't exist) - Install all project dependencies
- Install the package in editable mode
- Activate the virtual environment (optional):
uv commands automatically use the virtual environment, but if you want to activate it manually:
# Windows PowerShell
.venv\Scripts\Activate.ps1
# Windows Command Prompt
.venv\Scripts\activate.bat
# macOS/Linux
source .venv/bin/activate
Common uv Commands
| Task | Command |
|---|---|
| Install all dependencies | uv sync |
| Install with dev dependencies | uv sync --all-extras |
| Add a new dependency | uv add <package> |
| Add a dev dependency | uv add --dev <package> |
| Remove a dependency | uv remove <package> |
| Update all dependencies | uv lock --upgrade then uv sync |
| Run a command in the venv | uv run <command> |
| Run Python | uv run python |
| Run tests | uv run pytest |
Adding Dependencies
Add a runtime dependency:
uv add requests
Add a dev-only dependency:
uv add --dev black ruff mypy
Add a dependency with version constraints:
uv add "pandas>=2.0"
After adding dependencies, the pyproject.toml and uv.lock files will be updated automatically. Commit both files to version control.
Running Tests
uv run pytest
To run with verbose output:
uv run pytest -v
Building and Publishing
Build the package:
uv build
This creates distribution files in the dist/ directory.
Publish to PyPI:
uv publish --token YOUR_PYPI_TOKEN
To publish to TestPyPI first:
uv publish --publish-url https://test.pypi.org/legacy/ --token YOUR_TEST_PYPI_TOKEN
Workflow Summary
1. Clone repo → git clone ... && cd python-rclco
2. Install deps → uv sync --all-extras
3. Make changes → edit code
4. Add dependencies → uv add <package> or uv add --dev <package>
5. Run tests → uv run pytest
6. Commit changes → git add . && git commit -m "..."
7. Build (for release) → uv build
8. Publish (release) → uv publish --token ...
License
See LICENSE file for details.
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 rclco-0.1.2.tar.gz.
File metadata
- Download URL: rclco-0.1.2.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed864ccb270b67f37ebee6d4a627a55ff80da8f887e0bacc1c8993ebafe49c28
|
|
| MD5 |
8d3933ca1594fba14ea343f68a82e914
|
|
| BLAKE2b-256 |
340edeb6a1d2ea4c8c2fcff31c7bb1e3a41d50559398b590f48a28adde21ab4f
|
File details
Details for the file rclco-0.1.2-py3-none-any.whl.
File metadata
- Download URL: rclco-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93f24fb44e4bdf27e63a44129b9a900d798f1de436cc41441c6e52bf4e727cac
|
|
| MD5 |
333c0ac15a08b5a20c129a9bc3e90243
|
|
| BLAKE2b-256 |
c0ef407b319755aac39baacd110229b2809486e9406529b2d7f3bddf5d6eb0c0
|