Skip to main content

Python versions and dependency management made easy.

Project description

Lootbox

Lootbox creates isolated Python installations to easily manage multiple Python versions on your computer. It allows you to create projects with its CLI and add and manage dependencies for them. It was created by a student, and for serious usage, you should probably check out Poetry instead. It is also written in Rust, so it's automatically faster and better than Poetry. ;)

Usage

You can create and manage project dependencies and install Python versions right now. It also provides a simple utility for bundling the project if you want to get a simpler version with requirements.txt. If I have time, I might even add the option to use it to publish packages to PyPI (adding the functionality of "pyproject.toml", "setup.py", etc., directly to Lootbox).

Installation

pip install py-lootbox

Install Python Version

This works differently on Linux and Windows to avoid the weird behaviors of the Python installer. On Windows, the version is installed using NuGet, and on Linux (and maybe macOS, though I haven't tested it), it builds the Python version from source (Python tarball), so the installation can be quite slow.

loot install {version_to_install}
loot install 3.10.0

Create project

loot new {name} {python_version}
loot new test 3.10.0

cd {name}
cd test

Run project

loot run

Add dependency

loot add {package_name}
loot add bs4

Bundle

loot bundle

Run command inside venv

In some cases you might want to run a command inside the projects venv. This is common if one of your dependencies provides a cli.

loot exec {command_to_run}
loot exec alembic -h

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_lootbox-1.1.0.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_lootbox-1.1.0-cp311-none-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.11Windows x86-64

File details

Details for the file py_lootbox-1.1.0.tar.gz.

File metadata

  • Download URL: py_lootbox-1.1.0.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.6.0

File hashes

Hashes for py_lootbox-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7d66e97cd34865c0cc078242d91ab8fe354027bed89b662eb04a9bcd4125bfdf
MD5 b4c15c3bdd07fa94daff34ce1bf2c042
BLAKE2b-256 8f3fbfdc4bb02f1d3caa6e81c216745cddaf6b074f2f66a061551d8f1072c8d4

See more details on using hashes here.

File details

Details for the file py_lootbox-1.1.0-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for py_lootbox-1.1.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 27938b25771e551cd6b8238ceecea4f677684ec368905499b9c6e94fc31ac025
MD5 0db48bb6d9336dd3be2a9231c5e9d562
BLAKE2b-256 812ec3281e67f53b964c249020336ca9b8c51ab1917fb996503d9671e2b72b02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page