a local-first tool for managing python dependencies with pip
Project description
crowbar
Note: any instance of crowbar
can be replaced with cb
crowbar install <package_name> <package_name>
-Checks to see if there is an environment folder based on the name you've set (venv is the default) in the current directory or in directories above
-Creates a virtual environment called venv if it does not exist
-Installs a package (or packages) from pypi into venv
-Updates requirements.txt and creates one if it does not exist
crowbar uninstall <package_name> <package_name>
-Uninstalls a package (or packages) from venv -Updates requirements.txt
crowbar install
-Installs all packages listed in requirements.txt
crowbar run <file_name>.py
-Runs a python file using the contents of the local venv
crowbar show name
-Lists the current name of the environment folder that crowbar creates (venv is the default)
crowbar name <environment name>
-Changes the name of the environment folder that crowbar creates (venv is the default)
crowbar check env
-Checks to see if there is an environment folder based on the name you've set (venv is the default) in the current directory or in directories above
crowbar create env
-Creates an environment folder in the current directory based on the name you've set (venv is the default)
crowbar show gitignore
-Indicates whether Crowbar is set to create a .gitignore file when it creates an environment folder (default is not to create .gitignore)
crowbar gitignore on
-Instructs Crowbar to create a .gitignore file when it creates an environment folder and add the name of that folder to the .gitignore file
crowbar gitignore off
-Instructs Crowbar not to create a .gitignore file when it creates an environment folder (this is the default)
Warning – you may have pip muscle memory which may cause you to accidentally install globally. Use crowbar/cb and not pip if you are not in an active virtual environment.
global flag
crowbar --global install <package_name>
cb -g uninstall <package_name>
-installs or uninstalls a package globally
running package commands
With the crowbar command you can run any commands installed in the virtual environment.
Example - starting a new Django project:
cb django-admin startproject django_project .
Use crowbar run
to run any commands surfaced by files within your Python program.
Example - running the Django development server:
cb run manage.py runserver
package managers other than pip
Crowbar does not support Conda. Crowbar has plans to support UV eventually.
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
File details
Details for the file crowbar_package_manager-0.1.11.tar.gz
.
File metadata
- Download URL: crowbar_package_manager-0.1.11.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7d1352149a0baa9757f6e506f04af8ad3f5abb1276f331da97886b1465c3f95 |
|
MD5 | 66528f581ab924e67500f787ca5d1545 |
|
BLAKE2b-256 | ed8a28846a69542cf2a8782e46df70553b6e292df8b24a79c10c595ca8928114 |
File details
Details for the file crowbar_package_manager-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: crowbar_package_manager-0.1.11-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 061b88380946f2d91575f7133a3e68e06565fa8cd0ce6f58c03856221c2df38e |
|
MD5 | b57616bc718db8f8188fe497bd8e4d2d |
|
BLAKE2b-256 | f3d30120946439e32ca425e0c7e044c493133670304169cd1a8bb93c7d6319e8 |