Skip to main content

Programming- and CLI-Interface for the h5-dataformat of the Shepherd-Testbed

Project description

Shepherd - Core

PyPiVersion Pytest CodeStyle

This Python Module bundles data-models and file-access-routines for the shepherd-testbed, that are used by several codebases.

Users probably want to use the datalib.


Main Project: https://github.com/orgua/shepherd

Source Code: https://github.com/orgua/shepherd-datalib


This library allows to

  • read and write shepherds h5-files
  • create, read, write and convert experiments for the testbed (all data-models included)
  • simulate the virtual source, including virtual harvesters
  • connect and query the testbed via a webclient (TestbedClient)
  • work with target-firmwares
    • embed, modify, verify, convert
    • Note: working with ELF-files requires external dependencies, see Installation-Chapter
  • decode waveforms -> uart

see examples for more details.

Installation

The Library is available via PyPI and can be installed with

  pip install shepherd-core

  # or for the full experience
  pip install shepherd-data

If you are working with .elf-files (embedding into experiments) you make "objcopy" accessible to python. In Ubuntu, you can either install build-essential or binutils-$ARCH with arch being msp430 or arm-none-eabi for the nRF52.

  sudo apt install build-essential

For more advanced work with .elf-files (modify value of symbols / target-ID) you should install

  pip install shepherd-core[elf]

and also make sure the prereqs for the pwntools are met.

For creating an inventory of the host-system you should install

  pip install shepherd-core[inventory]

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

shepherd_core-2023.8.1.tar.gz (77.3 kB view details)

Uploaded Source

Built Distribution

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

shepherd_core-2023.8.1-py3-none-any.whl (115.2 kB view details)

Uploaded Python 3

File details

Details for the file shepherd_core-2023.8.1.tar.gz.

File metadata

  • Download URL: shepherd_core-2023.8.1.tar.gz
  • Upload date:
  • Size: 77.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for shepherd_core-2023.8.1.tar.gz
Algorithm Hash digest
SHA256 8824e8eb8ff282595b5d9e79b1b52f86bdcddfae8cf6d79cc40a2603925c3c87
MD5 58b0389be1d9925fec4c4a02f604a2ab
BLAKE2b-256 ee3c58683cee1be6f01c39e863815cdd854f61005faaa38b70bccdadd08e71c7

See more details on using hashes here.

File details

Details for the file shepherd_core-2023.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for shepherd_core-2023.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51c82aae30e0cd0f5a2c32b49bb04c5246e4a48d7bdfeeb9e50ddc98fbc5ca93
MD5 cf6f663cc3538aa9c0f51156716dde8e
BLAKE2b-256 233520707b0918d47038b0a3ba1708423f6787a10dfe4bc0b9a07683b34c9b34

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