Skip to content
/ pepsy Public

A pythonic reactjs-like web framework in Python

Notifications You must be signed in to change notification settings

tasosxak/pepsy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pepsy is a Python library for dealing with the DOM like ReactJS.

Installation

Usage

from pepsy.pepsy import Pepsy,document
from welcome import Welcome

class App(Pepsy.Component):

    def __init__(self,props):
        self.props = props
        self.state = {'name': 'Tasos'}

    def render(self):
        """
        <Welcome name={this.state['name']} />
        """
        return Pepsy.create_element(Welcome, {'name' : self.state['name']}, [])

Pepsy.mount(Pepsy.create_element(App, {}, []), document.getElementById('app'))

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

A pythonic reactjs-like web framework in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published