Skip to main content

UV Devcontainer Template

This template is designed to streamline the setup of a Python development environment using the uv package manager on Debian Bookworm. It's equipped with a collection of tools and extensions specifically chosen to enhance the Python development workflow, from code writing to testing and deployment.

Features Overview

Feature Description
Operating System Debian Bookworm, providing a stable foundation for development.
Package Management uv, a lightweight and efficient package and environment manager.
Programming Language Python, ready for development right out of the box.
Version Control Git integrated for robust version control.
VSCode Extensions A curated list of VSCode extensions installed, including essentials for Python development.
Testing Framework Pytest configured to run tests from the tests directory, utilizing VSCode's test runner for ease of testing.

Getting Started

  1. Clone and Open: Clone this repository and open it in VSCode. The project will prompt to reopen in a devcontainer.
  2. Dev Environment Initialization: The uv sync task can be run manually, preparing and updating your development environment.
  3. Rename the Project Directory: Rename the /project directory to match the name of your new project to get started. Update the project name in the pyproject.toml file as well.

Managing Dependencies

  • Application Dependencies: Defined in pyproject.toml. A frozen set of these dependencies is created and stored in uv.lock for reproducible deployments.

Running Tests

Tests are run using VSCode's integrated test runner:

  1. Navigate to the testing sidebar in VSCode.
  2. You'll see your tests listed there. Test can be run directly from the UI.

Running the Application

VSCode's launch.json is configured to debug the currently open Python file, allowing you to run and debug any part of your project easily.

Note: You may need to tweak launch.json for specific project requirements, such as adding arguments or setting environment variables.

Quick Start

  • Open project/main.py or any Python file you intend to run.
  • Use F5 or the green play button in the "Run and Debug" sidebar to start debugging.

Deployment

Deploy your application using the dependencies detailed in uv.lock to guarantee that your deployment mirrors the tested state of your application.

Contributing

We welcome contributions to improve the uv-devcontainer-template. Please follow the standard fork and pull request workflow. Make sure to add tests for new features and update the documentation as necessary.

License

This project is licensed under the MIT License.

Metadata

Release files for sitewinder 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sitewinder 0.0.1
File Size Uploaded
sitewinder-0.0.1.tar.gz 11.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sitewinder 0.0.1
File Interpreter ABI Platform
sitewinder-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.0 kB

Release files / sitewinder-0.0.1.tar.gz

Download URL sitewinder-0.0.1.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a717cc048f2f73c3a4e56fa46859e4e33f59f5c120bf1acf9c8622cb30032cc9
BLAKE2b-256 checksum
How to use checksums
3db4c44a75473706ba950d97aa8cc95c45c6b65a2a72b7b43612149a5dccb5f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / sitewinder-0.0.1-py3-none-any.whl

Download URL sitewinder-0.0.1-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f8534b1b264beadaf7b339b3a7c00f4b3db9f8f97e695e93c67b6a50b38ce86
BLAKE2b-256 checksum
How to use checksums
76852faaef46932808cd47d4f029c9b83d912645af47aac916d12b9cd35dfb71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page