Skip to content

Releases: not-lain/clspack

v0.1.0

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)

v0.0.1

Choose a tag to compare

@not-lain not-lain released this 03 Oct 03:44
b4caf77

First release

  • packing classes from main
  • add warnings to imports that were defined in main as well
  • class methods
  • class attributes and methods

v0.0.2

Choose a tag to compare

@not-lain not-lain released this 03 Oct 04:23
3db6984

Hot fix and minor improvements

  • return source code for the class instead of writing it into a file
  • removed extra magic methods