maintenance.py: Utilities for Maintenance
Usage
todo(fn: Optional[Callable[P, R]] = None) -> Callable[P, NoReturn] | NoReturn
deprecated(
message: Optional[str] = None,
*,
since: Optional[str] = None,
new: Any = None,
add_sphinx_directive: bool = False
) -> Callable[[Callable[P, R]], Callable[P, R]]
Parameters
message
Overrides the default warn message.
since
The version since when the object is deprecated.
new
The new object that replaces the deprecated one. This may be the object itself or its name as a string.
add_sphinx_directive
Adds the deprecated directive to the beginning of the docstring of the object.
Examples
def new():
return 1
@deprecated(since="1.2.3.post4", new=new)
def old():
return None
unstable(
message: Optional[str] = None,
*,
until: Optional[str] = None
) -> Callable[[Callable[P, R]], Callable[P, R]]
Links
Metadata
Release files for maintenance.py 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| maintenance.py-0.2.0.tar.gz | 4.8 kB | Without provenance | Details for maintenance.py-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| maintenance.py-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for maintenance.py-0.2.0-py3-none-any.whl |
Total release size: 8.6 kB
Release files / maintenance.py-0.2.0.tar.gz
| Download URL | maintenance.py-0.2.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55961fe023a972e9fbf3bd61ab8c21334db1d6ea06717902c9d3bddeec5ecbb3
|
|
BLAKE2b-256 checksum How to use checksums |
fb4dc7dfb777385969c7ce7513e82a91df6096d0f760fad38c4797d686c7eaac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / maintenance.py-0.2.0-py3-none-any.whl
| Download URL | maintenance.py-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2084dcf088c53fa61adb1d24b4ddb038fa2df030b81a9c19a1492ae1926fa1b7
|
|
BLAKE2b-256 checksum How to use checksums |
5abd391825346976f7f3e1f62db95ac2fb0bdb833db591e112a34147904649b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for maintenance.py 0.2.0
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.