# PCBA Helper
[](https://pepy.tech/project/pcba_helper)


[](https://opensource.org/licenses/MIT)
[](https://app.codecov.io/github/brainelectronics/pcba_helper)
Generate a deployment folder with all required files for easy PCBA
---------------
## General
Generate a (secured) deployment folder with all required files for easy PCBA
<!-- MarkdownTOC -->
- [Installation](#installation)
- [Usage](#usage)
- [Example](#example)
- [Contributing](#contributing)
- [Setup](#setup)
- [Testing](#testing)
- [Changelog](#changelog)
- [Credits](#credits)
<!-- /MarkdownTOC -->
## Installation
```bash
[<PYTHON> -m] pip[3] install [--user] [--upgrade] pcba_helper
```
## Usage
Create a login secured deployment folder from the KiCAD project at
`examples/KiCAD`. The folder is named `deploy` and placed in the
`examples/KiCAD` folder. The [iBOM file][ref-ibom] is expected relative to the
KiCAD project folder.
```bash
generate-deployments examples/KiCAD \
--output examples/KiCAD/deploy \
--ibom-file ibom/ibom.html \
--username "John" \
--password "secret" \
-vvvv
```
## Example
The `docker-compose.yml` generates the PDF from the KiCAD schematic, creates
the `deploy` folder and fires up an Apache server with PHP at the fixed IP
address [`172.42.0.2`](http://172.42.0.2).
```bash
docker compose up --build
docker compose down
[sudo] rm -rf examples/KiCAD/deploy
```
## Contributing
### Setup
For active development you need to have `poetry` and `pre-commit` installed
```bash
python3 -m pip install --upgrade --user poetry pre-commit
git clone https://github.com/brainelectronics/pcba_helper.git
cd pcba_helper
pre-commit install
poetry install
```
### Testing
```bash
# run all tests
poetry run coverage run -m pytest -v
# run only one specific tests
poetry run coverage run -m pytest -v -k "test_read_save"
```
Generate the coverage files with
```bash
python create_report_dirs.py
coverage html
```
The coverage report is placed at `reports/coverage/html/index.html`
### Changelog
The changelog format is based on [Keep a Changelog][ref-keep-a-changelog], and
this project adheres to [Semantic Versioning][ref-semantic-versioning].
Please add a changelog snippet, see below, for every PR you contribute. The
changes are categorised into:
- `bugfixes` fix an issue which can be used out of the box without any further
changes required by the user. Be aware that in some cases bugfixes can be
breaking changes.
- `features` is used to indicate a backwards compatible change providing
improved or extended functionalitiy. This does, as `bugfixes`, in any case
not require any changes by the user to keep the system running after upgrading.
- `breaking` creates a breaking, non backwards compatible change which
requires the user to perform additional tasks, adopt his currently running
code or in general can't be used as is anymore.
The scope of a change shall either be:
- `internal` if no new deployment is required for this change, like updates in
the documentation for example
- `external` or `all` if this change affects the public API of this package or
requires a new tag and deployment for any other reason
The changelog entry shall be short but meaningful and can of course contain
links and references to other issues or PRs. New lines are only allowed for a
new bulletpoint entry. Usage examples or other code snippets should be placed
in the code documentation, README or the docs folder.
The name of the snippet shall be `<ISSUE_ID.md>`
```bash
[poetry run] changelog-generator \
create .snippets/1.md
```
## Credits
A big thank you to the creators and maintainers of [SemVer.org][ref-semver]
for their documentation and [regex example][ref-semver-regex-example]
<!-- Links -->
[ref-ibom]: https://github.com/openscopeproject/InteractiveHtmlBom
[ref-keep-a-changelog]: https://keepachangelog.com/en/1.0.0/
[ref-semantic-versioning]: https://semver.org/spec/v2.0.0.html
[ref-semver]: https://semver.org/
[ref-semver-regex-example]: https://regex101.com/r/Ly7O1x/3/
Raw data
{
"_id": null,
"home_page": "https://github.com/brainelectronics/pcba_helper",
"name": "pcba-helper",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "brainelectronics",
"author_email": "info@brainelectronics.de",
"download_url": "https://files.pythonhosted.org/packages/e3/1b/750103ebe45bee0eaa51375fb3e17b52800b283ea26f0c86cc7d37761556/pcba_helper-0.1.0.tar.gz",
"platform": null,
"description": "# PCBA Helper\n\n[](https://pepy.tech/project/pcba_helper)\n\n\n[](https://opensource.org/licenses/MIT)\n[](https://app.codecov.io/github/brainelectronics/pcba_helper)\n\nGenerate a deployment folder with all required files for easy PCBA\n\n---------------\n\n## General\n\nGenerate a (secured) deployment folder with all required files for easy PCBA\n\n<!-- MarkdownTOC -->\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Example](#example)\n- [Contributing](#contributing)\n - [Setup](#setup)\n - [Testing](#testing)\n - [Changelog](#changelog)\n- [Credits](#credits)\n\n<!-- /MarkdownTOC -->\n\n## Installation\n\n```bash\n[<PYTHON> -m] pip[3] install [--user] [--upgrade] pcba_helper\n```\n\n## Usage\n\nCreate a login secured deployment folder from the KiCAD project at\n`examples/KiCAD`. The folder is named `deploy` and placed in the\n`examples/KiCAD` folder. The [iBOM file][ref-ibom] is expected relative to the\nKiCAD project folder.\n\n```bash\ngenerate-deployments examples/KiCAD \\\n --output examples/KiCAD/deploy \\\n --ibom-file ibom/ibom.html \\\n --username \"John\" \\\n --password \"secret\" \\\n -vvvv\n```\n\n## Example\n\nThe `docker-compose.yml` generates the PDF from the KiCAD schematic, creates\nthe `deploy` folder and fires up an Apache server with PHP at the fixed IP\naddress [`172.42.0.2`](http://172.42.0.2).\n\n```bash\ndocker compose up --build\ndocker compose down\n[sudo] rm -rf examples/KiCAD/deploy\n```\n\n## Contributing\n\n### Setup\n\nFor active development you need to have `poetry` and `pre-commit` installed\n\n```bash\npython3 -m pip install --upgrade --user poetry pre-commit\ngit clone https://github.com/brainelectronics/pcba_helper.git\ncd pcba_helper\npre-commit install\npoetry install\n```\n\n### Testing\n\n```bash\n# run all tests\npoetry run coverage run -m pytest -v\n\n# run only one specific tests\npoetry run coverage run -m pytest -v -k \"test_read_save\"\n```\n\nGenerate the coverage files with\n\n```bash\npython create_report_dirs.py\ncoverage html\n```\n\nThe coverage report is placed at `reports/coverage/html/index.html`\n\n### Changelog\n\nThe changelog format is based on [Keep a Changelog][ref-keep-a-changelog], and\nthis project adheres to [Semantic Versioning][ref-semantic-versioning].\n\nPlease add a changelog snippet, see below, for every PR you contribute. The\nchanges are categorised into:\n\n- `bugfixes` fix an issue which can be used out of the box without any further\nchanges required by the user. Be aware that in some cases bugfixes can be\nbreaking changes.\n- `features` is used to indicate a backwards compatible change providing\nimproved or extended functionalitiy. This does, as `bugfixes`, in any case\nnot require any changes by the user to keep the system running after upgrading.\n- `breaking` creates a breaking, non backwards compatible change which\nrequires the user to perform additional tasks, adopt his currently running\ncode or in general can't be used as is anymore.\n\nThe scope of a change shall either be:\n- `internal` if no new deployment is required for this change, like updates in\nthe documentation for example\n- `external` or `all` if this change affects the public API of this package or\nrequires a new tag and deployment for any other reason\n\nThe changelog entry shall be short but meaningful and can of course contain\nlinks and references to other issues or PRs. New lines are only allowed for a\nnew bulletpoint entry. Usage examples or other code snippets should be placed\nin the code documentation, README or the docs folder.\n\nThe name of the snippet shall be `<ISSUE_ID.md>`\n\n```bash\n[poetry run] changelog-generator \\\n create .snippets/1.md\n```\n\n## Credits\n\nA big thank you to the creators and maintainers of [SemVer.org][ref-semver]\nfor their documentation and [regex example][ref-semver-regex-example]\n\n<!-- Links -->\n[ref-ibom]: https://github.com/openscopeproject/InteractiveHtmlBom\n[ref-keep-a-changelog]: https://keepachangelog.com/en/1.0.0/\n[ref-semantic-versioning]: https://semver.org/spec/v2.0.0.html\n[ref-semver]: https://semver.org/\n[ref-semver-regex-example]: https://regex101.com/r/Ly7O1x/3/\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Create deployment folder for KiCAD based PCBA",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/brainelectronics/pcba_helper",
"Repository": "https://github.com/brainelectronics/pcba_helper"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "22057b428cc33d6513c54baa9c66ba72f17f6743ce69c944ebf95161bdec5bd4",
"md5": "923d99a5223d7cff7937825983c36efb",
"sha256": "74099e00b325b0d913888be61a879af2b92facb0875b2f28ea17443c3f1b4c09"
},
"downloads": -1,
"filename": "pcba_helper-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "923d99a5223d7cff7937825983c36efb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 14522,
"upload_time": "2025-01-04T20:54:40",
"upload_time_iso_8601": "2025-01-04T20:54:40.251700Z",
"url": "https://files.pythonhosted.org/packages/22/05/7b428cc33d6513c54baa9c66ba72f17f6743ce69c944ebf95161bdec5bd4/pcba_helper-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e31b750103ebe45bee0eaa51375fb3e17b52800b283ea26f0c86cc7d37761556",
"md5": "068f4ab3b7534e0f34bfed1af5691085",
"sha256": "e2c494669b66f25313800bee1cc87d73c344f248546b78055fff2f2f4e432109"
},
"downloads": -1,
"filename": "pcba_helper-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "068f4ab3b7534e0f34bfed1af5691085",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 13843,
"upload_time": "2025-01-04T20:54:41",
"upload_time_iso_8601": "2025-01-04T20:54:41.465613Z",
"url": "https://files.pythonhosted.org/packages/e3/1b/750103ebe45bee0eaa51375fb3e17b52800b283ea26f0c86cc7d37761556/pcba_helper-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-04 20:54:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "brainelectronics",
"github_project": "pcba_helper",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "pcba-helper"
}