Skip to main content

Backward compatibility shims and deprecation wrappers

Project description

scitex-compat

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

Backward compatibility shims and deprecation wrappers for the SciTeX ecosystem.

Problem and Solution

# Problem Solution
1 Renaming a public API silently breaks users -- there's no stdlib way to say "this still works but is deprecated" @deprecated decorator -- emits DeprecationWarning with replacement hint, keeps the old name working one release
2 Migration legacy notify() calls -- old scripts reference functions whose home moved Compat shims -- notify, notify_async still callable, forward to the new home, warn once

Installation

pip install scitex-compat

Usage

from scitex_compat import deprecated

@deprecated("new_function_name", removal_version="3.0")
def old_function():
    pass

License

AGPL-3.0

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

scitex_compat-0.1.5.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

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

scitex_compat-0.1.5-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file scitex_compat-0.1.5.tar.gz.

File metadata

  • Download URL: scitex_compat-0.1.5.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_compat-0.1.5.tar.gz
Algorithm Hash digest
SHA256 884e8e479b338169d6f8525034b167fa1019de1fe4493ebffd245e8c6858ff54
MD5 9e5863c0af11f7ee389f9459d96faa5d
BLAKE2b-256 b8839c0ee987bae23119d53d48b0bb2f7d5ea50b37087d1419663b2082a07262

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_compat-0.1.5.tar.gz:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-compat

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

File details

Details for the file scitex_compat-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: scitex_compat-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_compat-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7982f8e11003976703ec2ca061260c2f5ece7b7b2ed8f76b5be330daefaae847
MD5 71358d82b668502ca618c19c6f22a74f
BLAKE2b-256 f8fb30543ced1a100dc06cb189b4cfc0cfd3f84924b6209a30c36107d526c67b

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_compat-0.1.5-py3-none-any.whl:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-compat

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