Skip to main content

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

  • Using pip install:
$pip install reqstool-decorators 

Using

pyproject.toml

  • Hatch
dependencies = [
    "reqstool-decorators == <version>"
]
  • Poetry
[tool.poetry.dependencies]
reqstool-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 ProcessDecorator

Main function to collect decorators data and generate yaml file:

process_decorated_data(path_to_python_files)

Here path_to_python_files is the directories to search through to find decorated code.

Note:

Yaml file is saved into the /dist folder, make sure the folder exists before running the process_decorated_data function.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Metadata

Release files for reqstool-python-decorators 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reqstool-python-decorators 0.0.2
File Size Uploaded Provenance Actions
reqstool_python_decorators-0.0.2.tar.gz 9.2 kB Without provenance Details for reqstool_python_decorators-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reqstool-python-decorators 0.0.2
File Interpreter ABI Platform Actions
reqstool_python_decorators-0.0.2-py3-none-any.whl Python 3 none any Details for reqstool_python_decorators-0.0.2-py3-none-any.whl

Total release size: 15.5 kB

Release files / reqstool_python_decorators-0.0.2.tar.gz

Download URL reqstool_python_decorators-0.0.2.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e4751ed3cbf48e37ca69ce4019fc47a8a41b0cffb54f33f2b586b2fa7bdd6f0e
BLAKE2b-256 checksum
How to use checksums
5fdba86a434bc580eceb22541f56c1ada7960e0eaf122ce673d6f71947ac34cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / reqstool_python_decorators-0.0.2-py3-none-any.whl

Download URL reqstool_python_decorators-0.0.2-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8eab6dd7d790d44d8ed82373addf955c0e667c58bf97f2a58f8bd16f619ce5d
BLAKE2b-256 checksum
How to use checksums
30ba1692b7615f2dc3ffce3521143cd67cec2a678971ea2a760bc481764523d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Security for reqstool-python-decorators 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page