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

wwwpy

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wwwpy - pypi Package Compare versions

Comparing version
0.1.79
to
0.1.80
+1
-1
PKG-INFO
Metadata-Version: 2.4
Name: wwwpy
Version: 0.1.79
Version: 0.1.80
Summary: Build Powerful Web Applications: Simple, Scalable, and Fully Customizable

@@ -5,0 +5,0 @@ Author-email: Simone Giacomelli <simone.giacomelli@gmail.com>

# https://packaging.python.org/en/latest/tutorials/packaging-projects/
[project]
name = "wwwpy"
version = "0.1.79"
version = "0.1.80"

@@ -6,0 +6,0 @@ # todo

Metadata-Version: 2.4
Name: wwwpy
Version: 0.1.79
Version: 0.1.80
Summary: Build Powerful Web Applications: Simple, Scalable, and Fully Customizable

@@ -5,0 +5,0 @@ Author-email: Simone Giacomelli <simone.giacomelli@gmail.com>

@@ -1,3 +0,3 @@

__version__ = "0.1.79"
git_hash_short = "5068e8d"
git_hash = "5068e8d8c09f1e396affd2c5b479ed6c607f4e59"
__version__ = "0.1.80"
git_hash_short = "3a0138a"
git_hash = "3a0138a70b1580033b5c2d276d0d01e7e3f50e0f"

@@ -177,8 +177,24 @@ from __future__ import annotations

try:
# todo fix probably this happens after one hot reload
# it is inspecting the annotations (wpc.HTMLElement) and it fails to
# eval_str because it was unloaded...?
annotations = inspect.get_annotations(self.__class__, eval_str=True)
except Exception as e:
logger.error(f'Error getting annotations name=`{name}` selector=`{selector}`: {e}')
fqn = f'{self.__module__}.{self.__class__.__name__}'
import sys
state_unloaded = self.__module__ not in sys.modules
att_ds = (f'Class {fqn} was unloaded but an instance is still referenced (with e.g., through DOM events)'
f'\nAttribute accessed `{name}` Instance id={id(self)}'
f'\nTo fix this error, remove the listeners that are firing (usually in a `disconnectedCallback` method)'
f'\nBeware that the stack trace could point to the wrong line because the instance in memory'
f'\nwas generated by a previous source.'
f'\nStack trace:\n{_get_stack_trace_string(-4)}') if state_unloaded else ''
if not att_ds:
logger.error(f'Error {fqn} getting annotations name=`{name}` selector=`{selector}`: {e}')
else:
try:
from wwwpy.server.designer import rpc
asyncio.create_task(rpc.on_exception_string(att_ds))
except:
logger.error(att_ds)
if logger.isEnabledFor(logging.DEBUG):
logger.exception(e)
return

@@ -304,1 +320,8 @@

return value
def _get_stack_trace_string(skip_frames):
import traceback
stack = traceback.extract_stack()[:skip_frames]
formatted_stack = traceback.format_list(stack)
return ''.join(formatted_stack)