Skip to main content

A Python project manager.

Project description

ppm Package

ppm is a Python Project Manager CLI tool that simplifies project setup, dependency management, environment configuration, and running projects from the command line. This tool is especially useful for developers who want a streamlined way to manage project dependencies, run scripts, and configure environment variables without manually editing multiple files.

Overview

The ppm tool provides a set of commands to help manage Python projects efficiently. With ppm, you can:

  • Initialize Projects: Set up a new project structure with default or custom configurations.
  • Install Dependencies: Install multiple Python packages in your project with ease.
  • Uninstall Packages: Remove packages, with options to uninstall dependencies as well.
  • Manage Environment Variables: Add or modify environment variables directly from the command line.
  • Run Project Scripts: Execute the project’s main script or any other configured command.

Designed to reduce repetitive setup tasks, ppm enables you to focus more on coding and less on project management.

Installation

To install ppm, clone the repository and run:

pip install .

Usage

Use the ppm command followed by any of the subcommands listed below to perform various actions.

ppm <command> [options]

Important Notes

  1. Using ppm as a Dependency Manager: If you choose to use ppm as your dependency manager, you must specify a run script (e.g., the main Python file name or any other script you wish to run) in the project’s configuration. Without this, the run command will throw an error as it won’t know which script to execute.

  2. Using ppm with an Existing Project: If you’re applying ppm to an existing project, ensure you specify ppm as the dependency manager when running the ppm init command. This will set up ppm to manage dependencies within your project.


Commands

1. init

Initializes a new project configuration.

Usage:

ppm init

Options:

  • -d: Enable default configuration.

Example:

ppm init -d

This command initializes the project with the default configuration.

2. install

Installs specified packages in the project.

Usage:

ppm install <package1> <package2> ...

Example:

ppm install requests flask

This command installs the requests and flask packages in the project.

3. uninstall

Uninstalls specified packages from the project.

Usage:

ppm uninstall <package1> <package2> ...

Options:

  • -d: Uninstall packages along with their dependencies.

Example:

ppm uninstall requests -d

This command uninstalls the requests package along with any dependencies it may have.

4. run

Runs the project using the configuration specified in the project.

Usage:

ppm run

This command runs the project. Note: Ensure that a run script is specified in your project configuration when using ppm as a dependency manager; otherwise, this command will throw an error.

5. add_env

Adds environment variables to an .env file in the project.

Usage:

ppm add_env <KEY=VALUE> <KEY2=VALUE2> ...

Example:

ppm add_env DATABASE_URL=mysql://user:password@localhost/dbname SECRET_KEY=your_secret_key

This command adds the specified key-value pairs to the project's environment file.

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

ppm3-0.0.6.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

ppm3-0.0.6-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file ppm3-0.0.6.tar.gz.

File metadata

  • Download URL: ppm3-0.0.6.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for ppm3-0.0.6.tar.gz
Algorithm Hash digest
SHA256 6d416b992319c68f1e7aef99daa98aaf365826b9bac4987b30f66de6b67bc782
MD5 30ce3e4346f25ea1676911e20c812fab
BLAKE2b-256 117a96adfefe69a7ba71d61a376088b690680e0587313aac644c46b881f2595b

See more details on using hashes here.

File details

Details for the file ppm3-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: ppm3-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for ppm3-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 455630b7100e7590bd70e8c8fb81ce85a3156767b26b86f406a6b5b548a3a189
MD5 a256353de1634e10baffafb41c709138
BLAKE2b-256 cb5f88f5eff52e67e0f469293cee9fa2163003b41f82098ce24ad8051811f63c

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