Skip to main content

Create mocks for c-code automatically

Project description

Hammocking

CI Status Documentation Status Test coverage percentage

Poetry ruff pre-commit

PyPI Version Supported Python versions License

Automatic mocking tool for C

Installation and Building

On Windows

Install Dependencies

.\build.ps1 -install

Build

.\build.ps1

On Linux/macOS

Quick Start

# Using build script
./build.sh          # Normal build
./build.sh --clean  # Clean build
./build.sh --install # Install only

Prerequisites

  • Python 3.10+ (Python 3.13 recommended)
  • Poetry (will be auto-installed)
  • For running integration tests: clang/llvm, cmake, ninja-build

What the Build Does

  • Pre-Commit checks and linting
  • Execution of all tests
  • Building documentation

Using DevPod (Containerized Development)

You can use DevPod to spin up a fully configured development container.

Prerequisites

Setup

# Install DevPod CLI
curl -L -o devpod "https://github.com/loft-sh/devpod/releases/latest/download/devpod-linux-amd64" \
    && sudo install -c -m 0755 devpod /usr/local/bin \
    && rm -f devpod

# Add and select the Docker provider (use Podman or Docker)
devpod provider add docker --option DOCKER_PATH=$(which podman)
devpod provider use docker

# Start the development container
devpod up .

The container comes pre-configured with Python 3.13, Poetry, clang/llvm, cmake, and ninja-build.

Project details


Download files

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

Source Distribution

hammocking-0.11.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

hammocking-0.11.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file hammocking-0.11.0.tar.gz.

File metadata

  • Download URL: hammocking-0.11.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hammocking-0.11.0.tar.gz
Algorithm Hash digest
SHA256 ad7a6891b2635f41dac61fcd57ca20024e60f505d64059f28ab8c4c96b5d60a2
MD5 587f1d573b5369fb83f4773861e5b83a
BLAKE2b-256 b7ec19bcc90b900d9292d26cbbfcbb5467d8dbad90f85f96eaf93ec13ca5fa7c

See more details on using hashes here.

File details

Details for the file hammocking-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: hammocking-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hammocking-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0cb5a48131ba817b869e61e68b621c49f964e61af5405a06fa2d3bf6ddd4b222
MD5 cc5d7a900b43763554cfa6c72ede45b3
BLAKE2b-256 387b1d8c54e7a55cde85a0b08e59f89748b8f163d083b1e00033d42539fdfd8f

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 Pingdom Monitoring Sentry Error logging StatusPage Status page