![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Norman is a framework for advanced data structures in python using an database-like approach. The range of potential applications is wide, for example in-memory databases, multi-keyed dictionaries or node graphs.
Norman provides a framework for creating complex data structures using an database-like approach. The range of potential application is wide, for example in-memory databases, multi-keyed dictionaries or node graphs. These applications are illustrated in the following examples.
This is a small database for a personal library::
db = Database()
@db.add
class Book(Table):
name = Field(unique=True)
author = Field(index=True)
def validate(self):
assert isinstance(self.name, str)
assert isinstance(self.author, Author)
@db.add
class Author(Table):
surname = Field(unique=True)
initials = Field(unique=True, default='')
nationality = Field()
books = Join(Book.author)
This table can be used as a dictionary with three keys::
class MultiDict(Table):
key1 = Field(unique=True)
key2 = Field(unique=True)
key3 = Field(unique=True)
value = Field()
Values can be added by::
MultiDict(key1=4, key2='abc', key3=0, value='efg')
And queried by::
for m in (MultiDict.key1 == 4 & Multidict.key2 == 'abc'):
print(m.value)
This is a graph, where each node can have many parent nodes and many children nodes::
class Link(Table):
"""
Directional connections between nodes.
"""
parent = Field(unique=True)
child = Field(unique=True)
def validate(self):
assert isinstance(self.parent, Node)
assert isinstance(self.child, Node)
class Node(Table):
"""
Nodes in the graph.
"""
parents = Join(query=lambda n: (Link.child == n).field('parent'))
children = Join(query=lambda n: (Link.parent == n).field('child'))
def validate_delete(self):
# Delete all connecting links if a node is deleted
(Link.parent == self).delete()
(Link.child == self).delete()
FAQs
Norman is a framework for advanced data structures in python using an database-like approach. The range of potential applications is wide, for example in-memory databases, multi-keyed dictionaries or node graphs.
We found that norman 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.