WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

wallaceespindola/PythonRuns

Repository files navigation

Python

PythonRuns

Apache 2.0 License Python Pytest CI

Tests on Python Code Examples.

Installation

This project uses uv for fast and reliable Python package management.

Installing uv

If you don't have uv installed yet:

# On macOS and Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# On Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

# Or with pip
pip install uv

Setting up the project

Create and activate a virtual environment, then install dependencies:

# Create a virtual environment and install dependencies (one step)
uv sync

# Or manually:
# 1. Create a virtual environment
uv venv

# 2. Activate it
# On Linux/macOS:
source .venv/bin/activate
# On Windows:
# .venv\Scripts\activate

# 3. Sync all dependencies
uv sync

Alternatively, you can use the provided makefile:

make install

Working with uv

Common uv commands:

# Sync dependencies from uv.lock (recommended for consistent environments)
uv sync

# Sync with all dependency groups (including dev)
uv sync --all-groups

# Update dependencies and regenerate lockfile
uv lock --upgrade
uv sync

# Add a new dependency
# (Edit pyproject.toml, then run:)
uv lock
uv sync

# Run a command in the virtual environment
uv run python -m pythonruns
uv run pytest

# Use pip if needed for one-off packages (not recommended for project deps)
uv pip install package-name

How to Run

To run some function:

python3 -m sources.file_to_run

To run all the tests in directory 'tests':

python -m unittest discover -s tests

Examples

📝 Latest Articles, Publications and Tech-Talks

Author

License

  • This project is released under the Apache 2.0 License.
  • See the LICENSE file for details.
  • Copyright © 2025 Wallace Espindola.

About

Python Code & Tests

Resources

License

Stars

Watchers

Forks

Packages

No packages published