Build utilities python projects
Project description
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]
main= ["uv", "px-utils"]
[tool.pyprojectx.aliases]
clean = "pxrm 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
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 px_utils-1.1.2.tar.gz
.
File metadata
- Download URL: px_utils-1.1.2.tar.gz
- Upload date:
- Size: 30.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fc704f5759385116881b28aede5a003d71d1b43f58cb8a965846e0788fa7ce7 |
|
MD5 | 2d1f62305a03be3b3801950d6eb0188d |
|
BLAKE2b-256 | 59b453354cf6ded7389e2b56ec7cd9afa730b8a9f9bcf0a92c36942d4f38d60f |
File details
Details for the file px_utils-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: px_utils-1.1.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73ab16cbf46589eed23148bdc04d3e2ef85f4ccf7779d54e91cba3730f6ba5ce |
|
MD5 | 058e5192fdae719dcf34f1f7f0b8f2b7 |
|
BLAKE2b-256 | cb160da8c6ae1cac0090dc5a66e2801b1665322ba199e017d9ce6fea79938a14 |