Skip to main content

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


Download files

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

Source Distribution

crowbar_package_manager-0.1.12.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file crowbar_package_manager-0.1.12.tar.gz.

File metadata

File hashes

Hashes for crowbar_package_manager-0.1.12.tar.gz
Algorithm Hash digest
SHA256 174ea24ee7bcdd12a4dd3d42f308539a2a84702289fd8e819fb3736f0aa67e45
MD5 618c3158a9939b9442ec3edd5ee2fbde
BLAKE2b-256 f84ec6f4780ed38d984c3f9cc60d5d8f08ca022cfd352dbe86159926685a82cf

See more details on using hashes here.

File details

Details for the file crowbar_package_manager-0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for crowbar_package_manager-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 3d7d0e07367d1963ec9f6ef39483bcf0656d2f248b7ec3d4d8ac4ffb89e9bdf0
MD5 b0e183a93ce6fb5a0ee3365a5bc870d9
BLAKE2b-256 4658d31020203682c1a11ed5a3a1fe8a37cf2d32524e76f950fa91a14359fa26

See more details on using hashes here.

Supported by

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