
Security News
CISA Extends MITRE Contract as Crisis Accelerates Alternative CVE Coordination Efforts
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Cobble is a Python library that allows easy creation of data objects,
including implementations of common methods such as __eq__
and __repr__
.
.. code-block:: python
import cobble
@cobble.data
class Song(object):
name = cobble.field()
artist = cobble.field()
album = cobble.field(default=None)
song = Song("MFEO", artist="Jack's Mannequin")
print(song) # Prints "Song(name='MFEO', artist="Jack's Mannequin", album=None)"
.. code-block:: python
class Expression(object):
pass
@cobble.data
class Literal(Expression):
value = cobble.field()
@cobble.data
class Add(Expression):
left = cobble.field()
right = cobble.field()
class Evaluator(cobble.visitor(Expression)):
def visit_literal(self, literal):
return literal.value
def visit_add(self, add):
return self.visit(add.left) + self.visit(add.right)
Evaluator().visit(Add(Literal(2), Literal(4))) # 6
.. code-block:: python
class Expression(object):
pass
@cobble.visitable
class Literal(Expression):
def __init__(self, value):
self.value = value
@cobble.visitable
class Add(Expression):
def __init__(self, left, right):
self.left = left
self.right = right
class Evaluator(cobble.visitor(Expression)):
def visit_literal(self, literal):
return literal.value
def visit_add(self, add):
return self.visit(add.left) + self.visit(add.right)
Evaluator().visit(Add(Literal(2), Literal(4))) # 6
2-Clause BSD <http://opensource.org/licenses/BSD-2-Clause>
_
FAQs
Create data objects
We found that cobble 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
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
Research
The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment success, targeting servers handling transactions.