Reqstool Python Decorators
Project description
Reqstool Python Decorators
Description
This provides decorators and collecting of decorated code, formatting it and writing to yaml file.
Installation
The package name is reqstool-python-decorators.
- Using pip install:
$pip install reqstool-python-decorators
Usage
pyproject.toml
- Hatch
dependencies = [
"reqstool-python-decorators == <version>"
]
- Poetry
[tool.poetry.dependencies]
reqstool-python-decorators = "<version>"
Decorators
Import decorators:
from reqstool-decorators.decorators.decorators import Requirements, SVCs
Example usage of the decorators:
@Requirements("REQ_111", "REQ_222")
def somefunction():
@SVCs("SVC_111", "SVC_222")
def test_somefunction():
Processor
Import processor:
from reqstool.processors.decorator_processor import DecoratorProcessor
Main function to collect decorators data and generate yaml file:
process_decorated_data(path_to_python_files, output_file)
path_to_python_files is the directories to search through to find decorated code.
(Optional) output_file is output file(path) the yaml file is stored to. Default is /build/reqstool/annotations.yml.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
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 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 reqstool_python_decorators-0.0.9.tar.gz.
File metadata
- Download URL: reqstool_python_decorators-0.0.9.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d396a75c1e42d2d221db334d609136e3e7134a93a73eced9bb08c27b4b78829
|
|
| MD5 |
f3c763e7b94558d4fb449c21b529ca7f
|
|
| BLAKE2b-256 |
6d353a0c50bc6eb802ef3e8027b774df27e918d28a9a2e1e0b185d1a58676e10
|
Provenance
The following attestation bundles were made for reqstool_python_decorators-0.0.9.tar.gz:
Publisher:
publish_pypi_prod.yml on luftfartsverket/reqstool-python-decorators
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
reqstool_python_decorators-0.0.9.tar.gz -
Subject digest:
7d396a75c1e42d2d221db334d609136e3e7134a93a73eced9bb08c27b4b78829 - Sigstore transparency entry: 869971431
- Sigstore integration time:
-
Permalink:
luftfartsverket/reqstool-python-decorators@217db318e9f381ef33cee5afb59ea70daa1023a9 -
Branch / Tag:
refs/tags/v0.0.9 - Owner: https://github.com/luftfartsverket
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi_prod.yml@217db318e9f381ef33cee5afb59ea70daa1023a9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file reqstool_python_decorators-0.0.9-py3-none-any.whl.
File metadata
- Download URL: reqstool_python_decorators-0.0.9-py3-none-any.whl
- Upload date:
- Size: 6.3 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 |
8540df6584df840a8369e0e7d99a929a6fdde97adc8814d05b275429d753de10
|
|
| MD5 |
451ca712e263604a9fd9305dba83b61c
|
|
| BLAKE2b-256 |
dbcbf01e058d046478fd5245b465ebc2f809e88e0dde23aa3184e8d9eafd7821
|
Provenance
The following attestation bundles were made for reqstool_python_decorators-0.0.9-py3-none-any.whl:
Publisher:
publish_pypi_prod.yml on luftfartsverket/reqstool-python-decorators
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
reqstool_python_decorators-0.0.9-py3-none-any.whl -
Subject digest:
8540df6584df840a8369e0e7d99a929a6fdde97adc8814d05b275429d753de10 - Sigstore transparency entry: 869971440
- Sigstore integration time:
-
Permalink:
luftfartsverket/reqstool-python-decorators@217db318e9f381ef33cee5afb59ea70daa1023a9 -
Branch / Tag:
refs/tags/v0.0.9 - Owner: https://github.com/luftfartsverket
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi_prod.yml@217db318e9f381ef33cee5afb59ea70daa1023a9 -
Trigger Event:
release
-
Statement type: