Skip to main content

pbark 🐶

A dog-themed story programming language for Python.

pbark is the Python port of jbark, the original Java implementation.

pbark aims for feature parity with jbark and shares the same test suite. If behaviour differs, jbark is considered the canonical implementation.

Installation

Install pbark from PyPI:

pip install pbark

Quick start

Create a file called goodboy.woof:

dog Bimba says "hello"
Bimba runs

Run it:

pbark goodboy.woof

Commands

Show version:

pbark --version

Show help:

pbark --help

List available breeds:

pbark --list-breeds

List available objects:

pbark --list-objects

Available flags:

  • --help
  • --version
  • --strict
  • --quiet
  • --list-breeds
  • --list-objects

Python module usage

pbark can also be executed as a Python module:

python -m pbark examples/woof/bimba.woof

Development

Clone the repository:

git clone https://github.com/AlexH89/bark
cd pbark

Create a virtual environment:

python3 -m venv .venv

Activate it:

Linux/macOS:

source .venv/bin/activate

Windows:

.venv\Scripts\activate

Install development dependencies:

pip install -e ".[dev]"

Run tests:

pytest tests/ -q

The test suite is ported from jbark's JUnit tests and verifies parser behaviour, runtime behaviour, and compatibility.

Documentation

See https://github.com/AlexH89/bark.

Examples

Runnable .woof programs are available in the GitHub repository as well.

Related project

pbark is the Python port of jbark, the original Java implementation.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pbark-1.0.2.tar.gz (56.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pbark-1.0.2-py3-none-any.whl (71.1 kB view details)

Uploaded Python 3

File details

Details for the file pbark-1.0.2.tar.gz.

File metadata

  • Download URL: pbark-1.0.2.tar.gz
  • Upload date:
  • Size: 56.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for pbark-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c7d60f391c74cd5f0a27e837a89b44c3096a2246b564d66875935635b5c55632
MD5 52365aaba9d3cd154c10d73c8703ddef
BLAKE2b-256 39e3712c7e1f9b9390be9a1b578afba25201b00949698d3cedc0fb9a6715939c

See more details on using hashes here.

File details

Details for the file pbark-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pbark-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 71.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for pbark-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f52f380cc28710a9fe83d9497d6a0e83a5f1ba79347133f80fd0a8d7cc23b9a
MD5 a74ce1337f4ba0193eba28b696a12496
BLAKE2b-256 3a50f739fe0c369098b2d9ddb87cbd66e08418c67f575d720d3b4e26fe10b912

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page