Skip to content

v0.1.0

Latest

Choose a tag to compare

@not-lain not-lain released this 18 Feb 04:38

Features :octocat:

πŸš€ stable release
πŸ”₯ works with classes defined in main and imported from external files as well
✨ class inheritance does not overlap with the rest of the mro
πŸ”¨ patch minor issue with abc repr
🫑 minor patches

How to use πŸ’»

you can use clspack as follows to extract the source code for your classes :

from clspack import pack
# extra imports for class inheritance
from rich.markdown import Markdown
from rich.console import Console


class MyClass(Markdown, Console):
    """class docstring"""
    test = 1
    @classmethod
    def cls_method(cls):
        # hidden classmethod comment
        pass

pack(MyClass)