semvec/pypi-packages huggingface dataset:
px-utils 1.1.2
Build utilities python projects
License: MIT
Requires Python: >=3.8
Keywords: build, pyprojectx

![pyprojectx](px.png)

# Px-utils

Cross-platform build utilities for python projects, especially useful for projects using [pyprojectx](https://pyprojectx.github.io/)

Currently limited to file operations.

## Installation

```
pip install px-utils
```

Or using Pyprojectx:

```toml
[tool.pyprojectx]
main= ["uv", "px-utils"]

[tool.pyprojectx.aliases]
clean = "pxrm build dist .pytest_cache .coverage"
```

## File operations

<!-- START-CLI -->
## 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

<!-- END-CLI -->
pycasm 1.0.8
a helper for casmooc.com self-study
License: MIT

# pycas

使用 python 完成 casmooc.cn 上的课程学习

<img src="./screenshot.png" style="width: 80%; margin: 0 10%;" />

## 安装

```
pip install pycasm
```

## 获取 access token

1. 打开 [https://www.casmooc.cn/#/personal/index](https://www.casmooc.cn/)， 完成登录
2. `F12` 打开浏览器控制台，按 `CTRL + R` 或 `F5` 刷新页面，复制请求头中的 `x-access-token` 值到剪贴板

<img src="./screenshot_1.png" style="width: 80%; margin: 0 10%;">

## 运行

```python
pycas -tk <paste access token>
```

设置课程列表 位置 & 大小, `-p 1`: 第一页, `-s 100`: 列表大小 100

```python
pycas -tk <paste access token> -p 1 -s 100
```

更多帮助

```python
pycas -h
```