sphinxcontrib-bitfield
A Sphinx extension to generate bit field diagrams with the bit_field Python package.
Installation
pip install sphinxcontrib-bitfield
Enable Extension
Add sphinxcontrib.bitfield in extensions of conf.py:
extensions = ['sphinxcontrib.bitfield']
To enable output with LaTeX support, add an image converter from SVG to PNG:
extensions = ['sphinx.ext.imgconverter', 'sphinxcontrib.bitfield']
Usage
Use directive bitfield with the description of the bitfield in JSON format:
.. bitfield::
:bits: 32
:lanes: 2
[
{ "name": "IPO", "bits": 8, "attr": "RO" },
{ "bits": 7 },
{ "name": "BRK", "bits": 5, "attr": "RW", "type": 4 },
{ "name": "CPK", "bits": 1 },
{ "name": "Clear", "bits": 3 },
{ "bits": 8 }
]
- The bitfield directive accepts the following options:
- vspace:
vertical space - default 80
- hspace:
horizontal space - default 640
- lanes:
rectangle lanes - default 2
- bits:
overall bitwidth - default 32
- fontfamily:
default sans-serif
- fontweight:
default normal
- fontsize:
default 14
- strokewidth:
default 1
- compact:
compact rendering mode
- hflip:
horizontal flip
- vflip:
vertical flip
- uneven:
uneven lanes
- trim:
trim long bitfield names, must provide the horizontal space available for a single character
- legend:
space separated list of name and type optionally enclosed in quotes
- caption:
String caption for the bitfield. If specified, the bitfield will be rendered as a figure
For more details, see the bit_field package.
Metadata
Release files for sphinxcontrib-bitfield 2.0.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 | Actions |
|---|---|---|---|---|
| sphinxcontrib_bitfield-2.0.0.tar.gz | 3.5 kB | Without provenance | Details for sphinxcontrib_bitfield-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinxcontrib_bitfield-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for sphinxcontrib_bitfield-2.0.0-py3-none-any.whl |
Total release size: 7.6 kB
Release files / sphinxcontrib_bitfield-2.0.0.tar.gz
| Download URL | sphinxcontrib_bitfield-2.0.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
425011aab8234182aad84877092c76599ba4aa04aab0ed530e3ae19655c594a6
|
|
BLAKE2b-256 checksum How to use checksums |
67febaf861da52bd5b7374fda1e62d8b104098a636a3f2ff55466a62cadf940f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.8
|
Release files / sphinxcontrib_bitfield-2.0.0-py3-none-any.whl
| Download URL | sphinxcontrib_bitfield-2.0.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9189c375281ed4fbbcb9770d908275d0a5961382c1d1da1176b5b518e71a4db1
|
|
BLAKE2b-256 checksum How to use checksums |
9452bc44526f95d3a9b52f44f386da2d264c17dcc70c841b5ddc42567fe94b82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.8
|
Security for sphinxcontrib-bitfield 2.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.