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-0.2.6.tar.gz (20.8 kB view details)

Uploaded Source

Built Distributions

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

py_lootbox-0.2.6-py3-none-win_amd64.whl (3.0 MB view details)

Uploaded Python 3Windows x86-64

py_lootbox-0.2.6-py3-none-manylinux_2_34_x86_64.whl (4.0 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ x86-64

File details

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

File metadata

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

File hashes

Hashes for py_lootbox-0.2.6.tar.gz
Algorithm Hash digest
SHA256 0d07e388ceb44e11bb580b98dfa1811034fffcdd31f88cfb053608dd6088ce6f
MD5 815fa57df54254958ed8082445c93406
BLAKE2b-256 54e5d8bf9c260321c7d19bcf0533b4b9a8258b6dee264cb692750156fd4264a3

See more details on using hashes here.

File details

Details for the file py_lootbox-0.2.6-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for py_lootbox-0.2.6-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f11ddf44ef9cb1ed13169808ea2d88e946686720fc3bbac94560ed33576fa1b2
MD5 c699dd7a69723306f6ad980ddd0d0acf
BLAKE2b-256 9322279913971cdb4782302f51017ac2133ce25d273a0fa7aff29e26a5b6ba6d

See more details on using hashes here.

File details

Details for the file py_lootbox-0.2.6-py3-none-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for py_lootbox-0.2.6-py3-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3c2b25bb177efcdcf1cde548b71137582f49ab5bc7d2cfa32fdb1c1db9c931d7
MD5 eae1aa30c9f6c49bb5c81d5c34c43fdb
BLAKE2b-256 64b18e34edfcf967ada87523dc7baabe84fb7bafc6f4a9e43c541f02c88e1753

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