https://github.com/cssnr/brew-python-resources
Generate and Update Homebrew Formula (Brew) Python Resources.
https://github.com/cssnr/brew-python-resources
cli homebrew python uv
Last synced: 5 months ago
JSON representation
Generate and Update Homebrew Formula (Brew) Python Resources.
- Host: GitHub
- URL: https://github.com/cssnr/brew-python-resources
- Owner: cssnr
- License: mit
- Created: 2026-01-01T21:39:59.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2026-01-07T01:58:39.000Z (5 months ago)
- Last Synced: 2026-01-07T11:54:07.861Z (5 months ago)
- Topics: cli, homebrew, python, uv
- Language: Python
- Homepage: https://cssnr.github.io/brew-python-resources/
- Size: 343 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Support: docs/support.md
Awesome Lists containing this project
README
[](https://pypi.org/project/brew-python-resources/)
[](https://github.com/cssnr/brew-python-resources/releases)
[](https://github.com/cssnr/brew-python-resources?tab=readme-ov-file#readme)
[](https://pypistats.org/packages/brew-python-resources)
[](https://clickpy.clickhouse.com/dashboard/brew-python-resources)
[](https://codecov.io/gh/cssnr/brew-python-resources)
[](https://github.com/cssnr/brew-python-resources/actions/workflows/lint.yaml)
[](https://github.com/cssnr/brew-python-resources/actions/workflows/test.yaml)
[](https://pypi.org/project/brew-python-resources/)
[](https://cssnr.github.io/brew-python-resources/)
[](https://github.com/cssnr/brew-python-resources/pulse)
[](https://github.com/cssnr/brew-python-resources)
[](https://github.com/cssnr/brew-python-resources?tab=readme-ov-file#readme)
[](https://github.com/cssnr/brew-python-resources/graphs/contributors)
[](https://github.com/cssnr/brew-python-resources/issues)
[](https://github.com/cssnr/brew-python-resources/discussions)
[](https://github.com/cssnr/brew-python-resources/forks)
[](https://github.com/cssnr/brew-python-resources/stargazers)
[](https://cssnr.github.io/)
[](https://discord.gg/wXy6m2X8wY)
[](https://ko-fi.com/cssnr)
# Brew Python Resources
- [Features](#features)
- [Install](#install)
- [Usage](#usage)
- [Support](#support)
- [Contributing](#contributing)
Generate and Update Homebrew Formula (Brew) Python Resources.
To get started [Install](#install) the cli and view the [Usage](#usage).
If you run into any issues or have any questions, [support](#support) is available.
[](https://cssnr.github.io/brew-python-resources/)
- Works on published packages or package files
- Include and Exclude regex or single resource
- Can generate a `url` and `sha256` stanza
- Does not require Homebrew or formula files
- Does not create a venv or install packages
- Does not require packages to be installed
- Uses requests cache for repeated runs
[](https://cssnr.github.io/brew-python-resources/reference/)
From PyPI:
```shell
pip install brew-python-resources
```
```shell
uv tool install brew-python-resources
```
From Homebrew:
```shell
brew install cssnr/tap/brew-python-resources
```
From GitHub:
```shell
curl https://i.jpillora.com/cssnr/brew-python-resources! | bash
```
See [jpillora/installer](https://github.com/jpillora/installer) for more details.
Alternatively, you can manually download a release for your system.
- [Windows x86_64](https://github.com/cssnr/brew-python-resources/releases/latest/download/windows-amd64.zip) _amd64_
- [macOS Apple Intel](https://github.com/cssnr/brew-python-resources/releases/latest/download/macos-amd64.zip) _amd64_
- [macOS Apple Silicon](https://github.com/cssnr/brew-python-resources/releases/latest/download/macos-arm64.zip) _arm64_
- [Linux x86_64](https://github.com/cssnr/brew-python-resources/releases/latest/download/linux-amd64.zip) _amd64_
- [Linux ARM](https://github.com/cssnr/brew-python-resources/releases/latest/download/linux-arm64.zip) _arm64_
[](https://cssnr.github.io/brew-python-resources/reference/#install)
The Python Version depends on the running interpreter.
```shell
python --version
```
To generate resources for a specific version, use that version.
```shell
uv venv --python 3.10
source .venv/bin/activate
python --version
```
The CLI executable is `bpr` or `brew-python-resources`.
Run on a published pacakge.
```shell
bpr sharex-cli
```
Run on a package file.
```shell
bpr dist/sharex-cli-0.0.1-py3-none-any.whl
```
Process a single resource.
```shell
bpr sharex-cli -s
```
Generate the `url` and `sha256` stanza with `--url`.
```shell
bpr brew-python-resources -u
```
```text
url "https://files.pythonhosted.org/packages/02/b4/7a80261f399e7a0b1611acb4056d485c3734edc7ff625e61470972e3127c/brew_python_resources-0.0.2.tar.gz"
sha256 "44719069bc244bf33806d15dcfa3a9acd43a3abe2f810c1b94e953495cdcf729"
```
Exclude or include packages with regex. Comma seperated list of patterns.
```shell
bpr sharex-cli -e "colorama"
bpr sharex-cli -i "click,requests,typer"
```
Increase output with `--verbose`. Debug with `-vv` or `-vvv`.
```shell
bpr sharex-cli -v
```
Output results to a file.
```shell
bpr sharex-cli > output.txt
```
Run without installing using [astral-sh/uv :lucide-arrow-up-right:](https://docs.astral.sh/uv/).
```shell
uvx brew-python-resources sharex-cli
```
[](https://cssnr.github.io/brew-python-resources/reference/#usage)
If you run into any issues or need help getting started, please do one of the following:
- Report an Issue:
- Q&A Discussion:
- Request a Feature:
- Chat with us on Discord:
[](https://github.com/cssnr/brew-python-resources/issues/new?template=1-feature.yaml)
[](https://github.com/cssnr/brew-python-resources/issues)
[](https://github.com/cssnr/brew-python-resources/discussions)
[](https://discord.gg/wXy6m2X8wY)
If you would like to submit a PR, please review the [CONTRIBUTING.md](#contributing-ov-file).
Please consider making a donation to support the development of this project
and [additional](https://cssnr.com/) open source projects.
[](https://ko-fi.com/cssnr)
For a full list of current projects visit: [https://cssnr.github.io/](https://cssnr.github.io/)