Skip to main content

Backward compatibility shims and deprecation wrappers

Project description

scitex-compat

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

SciTeX

Backward compatibility shims and deprecation wrappers for the SciTeX ecosystem.

Full Documentation · pip install scitex-compat


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 Migrating legacy notify() calls — old scripts reference functions whose home moved Compat shimsnotify, notify_async still callable, forward to the new home, warn once

Installation

pip install scitex-compat

Quick Start

from scitex_compat import deprecated

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

1 Interfaces

Python API
from scitex_compat import deprecated, notify, notify_async

@deprecated("new_func", removal_version="2.0")
def old_func(*args, **kwargs):
    ...

# Compat shims (forward to scitex.notify if installed)
notify("hello")
await notify_async("hello")

Part of SciTeX

scitex-compat is part of SciTeX.

Four Freedoms for Research

  1. The freedom to run your research anywhere — your machine, your terms.
  2. The freedom to study how every step works — from raw data to final manuscript.
  3. The freedom to redistribute your workflows, not just your papers.
  4. The freedom to modify any module and share improvements with the community.

AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.

License

AGPL-3.0


SciTeX

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.6.tar.gz (385.7 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.6-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_compat-0.1.6.tar.gz
  • Upload date:
  • Size: 385.7 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.6.tar.gz
Algorithm Hash digest
SHA256 9ab2ae6603d07dfdedf1240c319ee55b29d55568694677278a563f16ca2ce20d
MD5 f95b674d09f82a66099a921fb9b2b909
BLAKE2b-256 9f42c8f9550f4226e88a50c7c69913932a37f08634e03a499832a1f2ba6b9658

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_compat-0.1.6.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.6-py3-none-any.whl.

File metadata

  • Download URL: scitex_compat-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 19.1 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f14cce3779362628ad535b96e2dbf751e8ca6b6a6a8ad0f1818bb5d130a1b0f7
MD5 77f83da5a8aaca1f836399d3afc4c669
BLAKE2b-256 88f24a79d96fee4d2cb2325506062509f83728d099e7590806ad4d15a0bdb5d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_compat-0.1.6-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