Skip to main content

Reqstool Python Decorators

Project description

Commit Activity GitHub Issues License Build Static Badge

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reqstool_python_decorators-0.0.9.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

reqstool_python_decorators-0.0.9-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file reqstool_python_decorators-0.0.9.tar.gz.

File metadata

File hashes

Hashes for reqstool_python_decorators-0.0.9.tar.gz
Algorithm Hash digest
SHA256 7d396a75c1e42d2d221db334d609136e3e7134a93a73eced9bb08c27b4b78829
MD5 f3c763e7b94558d4fb449c21b529ca7f
BLAKE2b-256 6d353a0c50bc6eb802ef3e8027b774df27e918d28a9a2e1e0b185d1a58676e10

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file reqstool_python_decorators-0.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for reqstool_python_decorators-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8540df6584df840a8369e0e7d99a929a6fdde97adc8814d05b275429d753de10
MD5 451ca712e263604a9fd9305dba83b61c
BLAKE2b-256 dbcbf01e058d046478fd5245b465ebc2f809e88e0dde23aa3184e8d9eafd7821

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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