Usage
- Install bangshim with scoop
scoop install https://raw.githubusercontent.com/Winterreisender/bangshim/refs/heads/master/bangshim.json
or uv
uv tool install bangshim
or pip
pip install bangshim
It's also recommended to install uutils/coreutils for the env in shebang
- Write any script with shebang, supposing you have an intepreter (Git Bash, MSYS2, etc.) installed for your scripts.
#!/usr/bin/sh
print("Hello World")
- Make your script executable
bangshim ./myscript.sh
./myscript
# "Hello World"
FAQ
-
Q: Why doing this?
A: shebang is the Unix way for executable scripts, while shim are the best practice for Windows. And this is a tool to make the Unix style work in Windows. -
Q: How it works?
A: bangshim do a simple things, search intepreter from shebang inPATH, and generate args for shim. -
Q: How to work with
/usr/bin/env?
A: We suppose you installed anenv.exein yourPATH. For example, you can install uutils/coreutils byscoop install uutils-coreutils
Build
See Makefile for more information
Credit
shim.exefrom kiennq/scoop-better-shimexe licensed underMIT OR Unlicense
License
Copyright 2025 Winterreisender
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Metadata
Release files for bangshim 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bangshim-0.2.0.tar.gz | 87.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bangshim-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 174.6 kB
Release files / bangshim-0.2.0.tar.gz
| Download URL | bangshim-0.2.0.tar.gz |
|---|---|
| Size | 87.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35c4adc196a5c3593f87cf1730e5c75411db514a3d6ae7b140edbeb8bf100a63
|
|
BLAKE2b-256 checksum How to use checksums |
c0ef672ac6b7c2a5d7e764acc0f6e192f00d883257ba01b4f6e154d60a0ffd01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.8.22
|
Release files / bangshim-0.2.0-py3-none-any.whl
| Download URL | bangshim-0.2.0-py3-none-any.whl |
|---|---|
| Size | 87.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
857eed64dd615c8ef59c93e6d63b3e554d3d881dc4f450ec7cf740c09d6ea1e5
|
|
BLAKE2b-256 checksum How to use checksums |
b3aa457c50f28924cc26983abb5b55227a707bab04cca427907f56f97affab86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.8.22
|
Security for bangshim 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.