
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
xpyutils
Advanced tools
Ongoing project of extra Python utilities including implementations of lazy property, regular expression, ...
🛠️ Ongoing project of extra Python utilities including implementation of lazy property, collections of common regular expressions, ...
A simple use of lazy_property:
from xpyutils import lazy_property
import random
random.seed(42)
class Person:
def __init__(self, name: str) -> None:
self._name = name
@property
def name(self) -> str:
"""Name of the person.
"""
return self._name
@lazy_property
def lucky_number(self) -> int:
"""Lucky number.
"""
return random.randint(0, 100)
@lazy_property.require_presence()
def age(self) -> int:
"""Age.
"""
return random.randint(20, 30)
person = Person('Isaac')
print(person.lucky_number) # 81
print(person.lucky_number) # it is still 81
try:
person.age
except Exception as e:
print(e) # property 'age' is not present yet
FAQs
Ongoing project of extra Python utilities including implementations of lazy property, regular expression, ...
We found that xpyutils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.