Python3 porting of [bitfield](https://github.com/drom/bitfield) with all respect
to the original designer.
`python3 bitfield.py bitfield.json > bitfield.svg`
The library works exactly same as original program, except some of command line options.
- Added `-s/--svg` to output to a file in addition with redirecting(`>`)
- More strict to JSON format
# Install
The library requires svgwrite and attrdict libraries.
- `pip3 install bitfieldpy`(install archive from pypi)
- `pip3 install git+https://github.com/K4zuki/bitfieldpy.git`(edge/developing version)
# Options
```
usage: bitfieldpy.py [-h] [--input INPUT] [--svg SVG] [--vspace VSPACE]
[--hspace HSPACE] [--lanes LANES] [--bits BITS]
[--font-family FONT_FAMILY] [--font-weight FONT_WEIGHT]
[--font-size FONT_SIZE]
bitfield clone in python(experimental)
optional arguments:
-h, --help show this help message and exit
--input INPUT, -i INPUT
<input bitfield source filename>
--svg SVG, -s SVG <output SVG image file name>
--vspace VSPACE, -V VSPACE
height per lane in px
--hspace HSPACE, -H HSPACE
width per lane in px
--lanes LANES, -L LANES
number of lane
--bits BITS, -B BITS total bitwidth
--font-family FONT_FAMILY, -F FONT_FAMILY
font family for all texts
--font-weight FONT_WEIGHT, -W FONT_WEIGHT
font weight
--font-size FONT_SIZE, -S FONT_SIZE
font size
```
| parameter | optional | purpose | default |
|---------------------------|----------|---------------------------|--------------|
| `--input`/`-i` | **N** | input file name | |
| `--svg`/`-s` | **N** | output file name | |
| `--vspace`/`-V` | Y | height per lane in px | 80 |
| `--hspace`/`-H` | Y | width per lane in px | 640 |
| `--lanes`/`-L` | Y | number of lanes | 2 |
| `--bits`/`-B` | Y | total bit width | 32 |
| `--font-family`/`-F` | Y | font family for all texts | "sans-serif" |
| `--font-font_weight`/`-W` | Y | font weight | "normal" |
| `--font-size`/`-S` | Y | font size | 14 |

# License
**MIT License (c) 2018 Kazuki Yamamoto**
Metadata
Release files for bitfieldpy 0.0.9
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 |
|---|---|---|---|---|
| bitfieldpy-0.0.9.tar.gz | 10.7 kB | Without provenance | Details for bitfieldpy-0.0.9.tar.gz |
Release files / bitfieldpy-0.0.9.tar.gz
| Download URL | bitfieldpy-0.0.9.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fec6c9c07346d6f24b770add1cf1d34d074fb913df47d3c850d632b8b3c9cf9b
|
|
BLAKE2b-256 checksum How to use checksums |
8b8e535098c660f34df256c8d54dc45095274e39602b899a3c4eeb022a48ed81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|
Security for bitfieldpy 0.0.9
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.