Skip to main content

SVD parsing for Python.

Project description

Svada - SVD Parsing for Python

svada is a general-purpose parser for quickly and efficiently parsing CMSIS SVD files into concise objects for use in various applications.

Contents:

Building and installing from source

Make sure that your environment is using the latest build package from PyPA, then invoke it to build the package from the setup.cfg file:

python3 -m pip install --user -U build
python3 -m build

This will generate both tar.gz and .whl artifacts for the current version, either of which can be used for installing from the command line:

python3 -m pip install dist/svada-X.Y.Z-py3-none-any.whl

Contributing

Code style

This project uses black and pylint for aligning source code with PEP standards and keeping to a single, common format across the codebase. These can be installed via:

python3 -m pip install -r scripts/requirements-test.txt

To more easily facilitate this, the repository contains the scripts/pre-commit hook script that can be placed in your local .git/hooks folder. This script will block committed code that fails formatting and linting checks by these programs, ensuring that new contributions align to the policies before being pushed and caught by CI.

The hook script has options that can be added to .gitconfig to further customize the behavior. For example, a specific .pylintrc file can be used for linting by setting this option locally:

# ~/.gitconfig
[hooks]
	pylintrc=/home/username/.pylintrc

It is required to do this for all developers and contributors of this project to keep source code aligned across files.

Virtual environments

During development, it is strongly recommended to have this package installed in a separate virtual environment for easily testing local changes without continuous installation and uninstallation. You can find the official documentation about virtual environments in Python and how to use them on their official venv tutorial page.

To use the tool in a virtual environment, do the following:

  1. Create and activate a virtual environment:
python3 -m venv my_venv

Alternatively, Python3's virtualenv package can also create the same virtual environments, and offers some extra features from the built-in venv.

  1. Create a dynamic installation of the package, running the setup script with the develop argument from the repository root:
python3 setup.py develop

This installs the package using always the latest changes of its source files, including when invoked through its command-line executables. setup.py automatically grabs build and metadata information from setup.cfg and pyproject.toml.

To uninstall the dynamic package version installed with develop, re-run the command with the --uninstall or -u option.

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

svada-2.2.1.tar.gz (46.5 kB view details)

Uploaded Source

Built Distribution

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

svada-2.2.1-py3-none-any.whl (55.7 kB view details)

Uploaded Python 3

File details

Details for the file svada-2.2.1.tar.gz.

File metadata

  • Download URL: svada-2.2.1.tar.gz
  • Upload date:
  • Size: 46.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for svada-2.2.1.tar.gz
Algorithm Hash digest
SHA256 888d69dbefaa21dc73b5be49bee820b7a9c05273f0818938fbbcd802e0f49c4e
MD5 f01ca9aad22a75c134def04106c4fd64
BLAKE2b-256 a64885ce3594e028a2b90695be8ffb67be904dd1e3d3aff15d0a5955408dd900

See more details on using hashes here.

File details

Details for the file svada-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: svada-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 55.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for svada-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3abeaed8ef2683bc88838a07885e15bcd308956985b936ab5e0054b720efac03
MD5 adffd105a6670da0f4a6b149f2d7e945
BLAKE2b-256 5cbd9536be3205831c33b51d7fb44c5999b54b5c51c5a8319084d9a741ff5d50

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