CoolFace
Apppublic

Agents-MCP-Hackathon/Python-Code-to-Diagram-Generator-MCP

sourceHugging Facemitupdated 1y agoView on Hugging Face
6likes
simple_class.py22 linesDownload Raw Back to examples
1"""Simple class example for testing AST parsing."""2 3class Person:4    """A simple Person class."""5    6    def __init__(self, name, age):7        self.name = name8        self.age = age9        self.email = None10    11    def get_name(self):12        return self.name13    14    def set_email(self, email):15        self.email = email16    17    def greet(self):18        return f"Hello, I'm {self.name}"19    20    def is_adult(self):21        return self.age >= 1822