Skip to main content

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.

pipeline status coverage report Latest Release

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

https://gitlab.dlr.de/sy-stm/software/patme.git

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

  1. install the pre-commit

    pip install pre-commit

  2. 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

Sebastian Freund Andreas Schuster

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

patme-0.4.4.tar.gz (108.0 kB view details)

Uploaded Source

Built Distribution

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

patme-0.4.4-py3-none-any.whl (128.1 kB view details)

Uploaded Python 3

File details

Details for the file patme-0.4.4.tar.gz.

File metadata

  • Download URL: patme-0.4.4.tar.gz
  • Upload date:
  • Size: 108.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for patme-0.4.4.tar.gz
Algorithm Hash digest
SHA256 338030ed50a2e8bab871ffec6af1199ece064571df25a91c7d3f8ef02144b5df
MD5 720c59022090f3c2b1aa793300b5abdd
BLAKE2b-256 4721e56632a27c276e44908199749a99852f1132881daaad32713f994e04dfb3

See more details on using hashes here.

File details

Details for the file patme-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: patme-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 128.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for patme-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 16ab4fc3a20af1c814d5455317bee7ea0cfdba183fd1a39d104a097880e32b80
MD5 0133f24d5cd64c28eb368f2cd9cf4f93
BLAKE2b-256 d2bf98ff64eb8bb8ae307ebe4e1456e0c1e17b1df5540e45d27000bf99a0925c

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