bats-core
This package installs the bats command from
Bats, the Bash Automated Testing
System, packaged for pip. It runs the upstream release unchanged. It works on
Linux and macOS and needs bash 3.2 or newer.
Install
pip install bats-core
Or as a standalone tool:
uv tool install bats-core
uvx --from bats-core bats --version
Write and run a test
Write a test file:
# test/addition.bats
@test "addition works" {
result="$((2 + 2))"
[ "$result" -eq 4 ]
}
Run it:
bats test/
Everything about writing and running tests is in the
upstream documentation. Companion
libraries such as bats-support and bats-assert are not bundled.
Version numbers and pinning
The package version is the bats version: bats-core==1.14.0 installs
bats 1.14.0. When only the packaging changes, a fourth component is added,
such as 1.14.0.1. To follow one bats release including packaging fixes,
pin bats-core==1.14.0.*.
New upstream releases are published here automatically with a 3 days cooldown.
License
The packaging code is MIT licensed, see LICENSE. Bats is MIT licensed by
its authors; its license ships inside the package as
bats_core/_bats/LICENSE.md.
For development, release and maintenance notes see CONTRIBUTING.md.
Metadata
Release files for bats-core 1.14.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 | |
|---|---|---|---|---|
| bats_core-1.14.0.tar.gz | 141.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bats_core-1.14.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 197.6 kB
Release files / bats_core-1.14.0.tar.gz
| Download URL | bats_core-1.14.0.tar.gz |
|---|---|
| Size | 141.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec3ce459adbe1f667b8aa96f597618b7e2a9dcd9b0be307ddb742e057efd375b
|
|
BLAKE2b-256 checksum How to use checksums |
a528590933073e1a8c6e185354bf8006f23344b77f8aabfcd718d15a3ae4be13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / bats_core-1.14.0-py3-none-any.whl
| Download URL | bats_core-1.14.0-py3-none-any.whl |
|---|---|
| Size | 56.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3414c8d4e5a815d0e0ccfa2ac6a9eb8a17ddbfc280453e6b9f05e14b2b470a40
|
|
BLAKE2b-256 checksum How to use checksums |
5d20765a4d6e59bd00bc4cf27d8599a23c8acf95fc8080054428201db6aa1380
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logSecurity for bats-core 1.14.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for bats_core-1.14.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.