LOBSTER Tool for Python3
Project description
LOBSTER
The Lightweight Open BMW Software Traceability Evidence Report allows you to demonstrate software traceability and requirements coverage, which is essential for meeting standards such as ISO 26262.
This package contains a tool to extract tracing tags from Python3 source code or Bazel files.
Tools
lobster-python: Extract requirements from Python3 code or from Bazel
Usage
This tool supports:
- Python code
- Python PyUnit/unittest unit tests
- Bazel files
lobster-python was invented for Python code
and throughout this document we only refer to Python.
But the tool also works for Bazel files because they are very similar to Python code.
For either code or tests you can embedd tracing tags like this:
def potato(self):
# lobster-trace: something.example
return "potato"
You can add justifications as well:
def potato(self):
# lobster-exclude: a very good reason is here
return "potato"
For classes, you have a choice on how you trace them: you either annotate the class itself, or each individual method. If you choose to annotate the class itself, then you will get warnings for each method with an annotation.
Normal Code
For normal code the usage is:
lobster-python FILES_OR_DIRS
Note that FILES_OR_DIRS should not contain any tests.
They will be treated as regular code otherwise.
Tests
For tests (pyunit or unittest) the usage is:
lobster-python --activity FILES_OR_DIRS
Here FILES_OR_DIRS may contain additional code (like the implementation of mock classes), but only functions with
names that stick to the following pattern will be taken into
account:
- start with
_testortest, - or end with
test.
That means you don't need to manually exclude your setup or tear down code, only individual tests will be included.
Please note that the generated output json files always use PyTest as framework indicator, even if unittest is used:
{
"framework": "PyUnit",
"kind": "Test"
}
Copyright & License information
The copyright holder of LOBSTER is the Bayerische Motoren Werke Aktiengesellschaft (BMW AG), and LOBSTER is published under the GNU Affero General Public License, Version 3.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 bmw_lobster_tool_python-1.0.2-py3-none-any.whl.
File metadata
- Download URL: bmw_lobster_tool_python-1.0.2-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b85c5b2142ddbae79d16ac2464f005d5f4baba2a94397301ac60e3a3af7e460
|
|
| MD5 |
73d6e35bb2a2c1616dc590d6ba650ab5
|
|
| BLAKE2b-256 |
e3c1da60ed2aada2ac88211ed3d284539ddeda24fc5f155d9e3cde2f14c6b865
|
Provenance
The following attestation bundles were made for bmw_lobster_tool_python-1.0.2-py3-none-any.whl:
Publisher:
package.yml on bmw-software-engineering/lobster
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bmw_lobster_tool_python-1.0.2-py3-none-any.whl -
Subject digest:
3b85c5b2142ddbae79d16ac2464f005d5f4baba2a94397301ac60e3a3af7e460 - Sigstore transparency entry: 533264285
- Sigstore integration time:
-
Permalink:
bmw-software-engineering/lobster@65e218f8398812a9a133b9af6e3658ec5881aab6 -
Branch / Tag:
refs/tags/lobster-1.0.2 - Owner: https://github.com/bmw-software-engineering
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package.yml@65e218f8398812a9a133b9af6e3658ec5881aab6 -
Trigger Event:
release
-
Statement type: