Utilities for software builds, documentation, cluster interaction, calling fem tools, logging, exceptions and simple geometric and mechanical operations.
Project description
patme
Utilities for basic software engineering, geometry, mechanics support and infrastructure handling.
Features
The full documentation can be found here.
Software Engineering Features
- software builds
- release automation
- build documentation (sphinx)
- logging
Planned items:
- exception hooks
- (potentially) decorators
- Create RCE components and push them on an RCE server
Common useful features
Planned items:
- Call FEM software
- Plot samples (Matplotlib, Latex-Pgfplots)
DLR-SY specific features
Planned items:
- SSH interface
- SSH based cluster interaction
- Run several jobs (FEM, python, matlab etc.) as samples with various parallelization options
- parallel local
- parallel remote
- asynchronous sampling (e.g. dependend on license availability)
software builds, documentation, cluster interaction, calling fem tools, logging, exceptions.
Installation
At least you require Python 3.
Installation from source
Get patme source from
and add the /src folder to pythonpath in the environment variables
Installation as python package
Install it from the gitlab packacke registry
You can download the latest artifact (*.whl) and install it using
cd patme python setup.py install patme.whl
Test the installation
In python execute:
import patme
Developers
Developers may also install the pre-commit hook.
Precommit
- install the pre-commit
pip install pre-commit
- In the patme folder
pre-commit install
This enables the pre-commit hooks defined in .pre-commit-config.yaml and eases your commits and successful pipline runs.
CI Pipeline and Jobs for Developers
If you encounter any failed job on the pipeline you can run them locally for more information. (prerequisite: have make and poetry installed [e.g. conda install make poetry])
See all availabe make targets used for the ci-jobs
make list
Find the target with matching names and execute them locally e.g.:
make test
If check-formatting fails, run the following to fix issues.
make formatting
If check-license-metadata fails, run
make check-license-metadata
identify the corresponding filename and run the following (include the filename in $filename)
poetry run reuse addheader --copyright="German Aerospace Center (DLR)" --license="MIT" $filename
Contributing to patme
We welcome your contribution!
If you want to provide a code change, please:
- Create a fork of the GitLab project.
- Develop the feature/patch
- Provide a merge request.
If it is the first time that you contribute, please add yourself to the list of contributors below.
Citing
No citing required
License
MIT
Change Log
see changelog
Authors
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file patme-0.4.6.tar.gz.
File metadata
- Download URL: patme-0.4.6.tar.gz
- Upload date:
- Size: 109.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f43a286f59539ca93831cd019a9c509b85031c4817fede656975f70ce1369793
|
|
| MD5 |
b1cab08301c70a1964d4241f4684e8c7
|
|
| BLAKE2b-256 |
61c15b9e59fa75b4b550570f19c4564b60d80a04f6c9b8a2db9bb1113720e907
|
File details
Details for the file patme-0.4.6-py3-none-any.whl.
File metadata
- Download URL: patme-0.4.6-py3-none-any.whl
- Upload date:
- Size: 129.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
814c971ba904b9e5f6940b895ba8e341117b4d15792826d843c15d81d45e7e95
|
|
| MD5 |
b707a50ee181437c6ce1e4976f7c2cbf
|
|
| BLAKE2b-256 |
f8830f36791ca5bf912309f49e2e902a5e6ba178dcb1a8284522dcfe79c511d1
|