first commit

This commit is contained in:
2019-11-05 22:18:20 +01:00
commit 1699990c02
22 changed files with 633 additions and 0 deletions

4
src/browser/__init__.py Normal file
View File

@@ -0,0 +1,4 @@
from browser.internal import Document, Window # type: ignore
document = Document()
window = Window()

15
src/browser/internal.py Normal file
View File

@@ -0,0 +1,15 @@
# type: ignore
class Document:
def __getattr__(self, attr):
return lambda x: document[attr](x)
class Window:
def __getattr__(self, attr):
return lambda x: window[attr](x)