Skip to main content

Build utilities python projects

Project description

pyprojectx

Px-utils

Cross-platform build utilities for python projects, especially useful for projects using pyprojectx

Currently limited to file operations.

Installation

pip install px-utils

Or using Pyprojectx:

[tool.pyprojectx]
px-utils= "px-utils"

[tool.pyprojectx.aliases]
clean = "@px-utils: prm build dist .pytest_cache .coverage"

File operations

pxmkdirs

usage: pxmkdirs [-h] directories [directories ...]

Create a directory and any missing parent directories.

positional arguments: directories The director(y)(ies) to create.

options: -h, --help show this help message and exit

pxcp

usage: pxcp [-h] source_files [source_files ...] destination

Copy source files to a destination directory. The source can be multiple files or globs. Files are copied preserving directory structure.

positional arguments: source_files The files to copy. Can be multiple files/globs. IMPORTANT: when using globs, they must be quoted in order to prevent expansion by *nix shells! destination The destination directory.

options: -h, --help show this help message and exit

pxmv

usage: pxmv [-h] source_files [source_files ...] destination

Move source files to a destination directory. The source can be multiple files or globs. Files are moved preserving directory structure.

positional arguments: source_files The files to move. Can be multiple files/globs. IMPORTANT: when using globs, they must be quoted in order to prevent expansion by *nix shells! destination The destination directory.

options: -h, --help show this help message and exit

pxrm

usage: pxrm [-h] files [files ...]

Delete files or globs.

positional arguments: files The files to delete. Can be multiple files/globs. IMPORTANT: when using globs, they must be quoted in order to prevent expansion by *nix shells!

options: -h, --help show this help message and exit

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

px_utils-1.1.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

px_utils-1.1.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

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