Skip to main content

Decorators, warnings, and exceptions for explicitly marking the development status of Python objects

Project description

devstatusdecos

Decorators, warnings, and exceptions for explicitly marking the development status of Python objects.

CodeQL Ko-Fi

This module provides structured, runtime-enforced annotations for things like deprecation, experimental APIs, insecure code paths, and unfinished implementations.

Documentation

Features

  • Imports (and requires access to) the deprecated decorator from either typing_extensions or warnings. typing_extensions is requires for python < 3.13.3.
  • pending_deprecation, which raises the builtin PendingDeprecationWarning with optional the option of automatic escalation to deprecated status based on python version.
  • experimental, analogous to deprecated, raises a ExperimentalWarning warning when called.
  • todo, analogous to deprecated, raises a ExperimentalWarning warning when called, optionally raising a TodoError in a wrapped callable.
  • insecure, which always raises a InsecureError or FatallyInsecureError, optionally exiting.

Installation

pip install devstatusdecos

Example

from devstatusdecos import experimental, todo, insecure

@experimental("API may change")
def new_feature():
   ...

@todo("Implement edge case handling")
class Incomplete():
   def __init__(self):
      ...

@insecure("Uses unsafe cryptography", fatal=True)
def bad_idea():
   ...

Security Policy

While the python source code will be actively maintained, any binary files (if at all provided) are in no way supported. These are provided as a courtesy and are not intended to be the main usage of this software. Please keep this in mind when choosing how you wish to use this software.

Supported Versions

Version Supported
0.0.0.0 <

Reporting a Vulnerability

Please report any issues to the email 107761433+MarkusHammer{THEN THE @ SYMBOL HERE}users.noreply.github.com

Copyright © 2026 Markus Hammer

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

devstatusdecos-0.0.0.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

devstatusdecos-0.0.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file devstatusdecos-0.0.0.0.tar.gz.

File metadata

  • Download URL: devstatusdecos-0.0.0.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for devstatusdecos-0.0.0.0.tar.gz
Algorithm Hash digest
SHA256 f7deefbfbe1942c04e0571b4204fdccc3de919518105efcc69afffd8729058c0
MD5 56dce6c9dc747d12670e6a63255d5796
BLAKE2b-256 971c7575f66e1213872082f7ff4057fa70565bc0483d320a49291fd0e728ce01

See more details on using hashes here.

File details

Details for the file devstatusdecos-0.0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for devstatusdecos-0.0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 587b5a1beeb83fce1f07a6a00a3842ec51c3c9ed7e4a881ee13d1232f3235c68
MD5 6a1a1e0cf2d37d25890d958a4781bf2e
BLAKE2b-256 024fcfde236c4990fa97a0b910a7b50a0ab32cc1c7ff6d83d37a0ab23f143dd5

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