Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

webview

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webview - npm Package Compare versions

Comparing version
0.1.3
to
0.1.4
+1
-1
PKG-INFO
Metadata-Version: 1.0
Name: webview
Version: 0.1.3
Version: 0.1.4
Summary: Python WebView bindings

@@ -5,0 +5,0 @@ Home-page: https://github.com/zserge/webview

+48
-21

@@ -5,4 +5,26 @@ #!/bin/env python

import commands
from distutils.core import setup, Extension
import shutil
from distutils.core import setup
from distutils.extension import Extension
from distutils.cmd import Command
class sync_command(Command):
"""A custom command to synchronize top-level webview.h implementation
with the one included in the Python bindings source package."""
description = 'synchronize webview.h'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
shutil.copyfile('../../webview.h', 'webview/webview.h')
pass
if hasattr(os, 'uname'):

@@ -14,5 +36,8 @@ OSNAME = os.uname()[0]

if OSNAME == 'Linux':
def pkgconfig(flags):
return commands.getoutput("pkg-config %s gtk+-3.0 webkit2gtk-4.0" % flags)
define_macros=[("WEBVIEW_GTK", '1')]
return commands.getoutput(
"pkg-config %s gtk+-3.0 webkit2gtk-4.0" % flags)
define_macros = [("WEBVIEW_GTK", '1')]
extra_cflags = pkgconfig("--cflags").split()

@@ -29,20 +54,22 @@ extra_ldflags = pkgconfig("--libs").split()

webview = Extension(
'webview',
sources=['webview/webview.c'],
define_macros=define_macros,
extra_compile_args=extra_cflags,
extra_link_args=extra_ldflags,
)
webview = Extension('webview',
sources = ['webview/webview.c'],
define_macros = define_macros,
extra_compile_args = extra_cflags,
extra_link_args = extra_ldflags,
)
setup(name = 'webview',
packages = ['webview'],
version = '0.1.3',
description = 'Python WebView bindings',
author = 'Serge Zaitsev',
author_email = 'zaitsev.serge@gmail.com',
url = 'https://github.com/zserge/webview',
keywords = [],
license = 'MIT',
classifiers = [],
ext_modules = [webview])
setup(
name='webview',
version='0.1.4',
description='Python WebView bindings',
author='Serge Zaitsev',
author_email='zaitsev.serge@gmail.com',
url='https://github.com/zserge/webview',
keywords=[],
license='MIT',
classifiers=[],
ext_modules=[webview],
cmdclass={'sync': sync_command},
)

@@ -123,3 +123,3 @@ #include <Python.h>

}
webview_dialog(&self->w, type, flags, title, args, result, sizeof(result));
webview_dialog(&self->w, type, flags, title, arg, result, sizeof(result));
return PyUnicode_FromString(result);

@@ -130,2 +130,3 @@ }

PyObject *cb = (PyObject *)arg;
/* TODO */
PyObject_CallObject(cb, NULL);

@@ -150,5 +151,3 @@ Py_XINCREF(cb);

static PyObject *WebView_bind(WebView *self) {
const char *name;
PyObject *obj;
// TODO, very complex implementation
/* TODO, very complex implementation */
Py_RETURN_NONE;

@@ -163,2 +162,3 @@ }

{"loop", (PyCFunction)WebView_loop, METH_KEYWORDS, "..."},
{"terminate", (PyCFunction)WebView_terminate, METH_NOARGS, "..."},
{"dispatch", (PyCFunction)WebView_dispatch, METH_VARARGS, "..."},

@@ -165,0 +165,0 @@ {"eval", (PyCFunction)WebView_eval, METH_VARARGS, "..."},