
Security News
Scaling Socket from Zero to 10,000+ Organizations
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.
hermes-orm
Advanced tools
A high-performance ORM for Python with support for migrations, relations, and caching.
Hermes ORM is a modern Python ORM designed for simplicity, flexibility, and performance. With support for relational mappings, migrations, and advanced querying, Hermes ORM is tailored for developers who need a powerful yet intuitive tool for managing database operations in their applications.
SELECT, INSERT, UPDATE, and DELETE statements.One-to-One, One-to-Many, Many-to-Many, and polymorphic Morph relationships.Install Hermes ORM via pip:
pip install hermes-orm
Define models that represent your database structure:
from hermes.model import BaseModel
from hermes.fields import IntegerField, StringField, ForeignKeyField
class User(BaseModel):
id = IntegerField(primary_key=True)
name = StringField(max_length=255, nullable=False)
class Post(BaseModel):
id = IntegerField(primary_key=True)
user_id = ForeignKeyField("User", nullable=False)
content = StringField(nullable=False)
Use the CLI to generate and apply migrations:
hermes make_migration create_users_table create
hermes migrate
Perform operations on your models:
# Create a user
user = User(name="Alice")
user.save(db_connection)
# Fetch all posts
posts = Post.all(db_connection)
# Add a post for a user
post = Post(user_id=user.id, content="Hello, Hermes!")
post.save(db_connection)
OneToOne fields.OneToMany.ManyToMany pivot tables.MorphOne and MorphMany for flexible, type-based relations.Each relationship is implemented with robust utilities for querying and manipulation.
Hermes ORM is under active development, with new features and improvements added regularly. Contributions and feedback are welcome!
Hermes ORM is free to use for both personal and commercial projects. However, Hermes ORM itself cannot be resold or distributed as a standalone product.
Developed and maintained by Altxria Inc. with contributions from a growing community of developers.
If you find Hermes ORM useful, consider supporting its development and ongoing maintenance:
FAQs
A high-performance ORM for Python with support for migrations, relations, and caching.
We found that hermes-orm 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
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.

Research
Socket Threat Research maps a rare inside look at OtterCookie’s npm-Vercel-GitHub chain, adding 197 malicious packages and evidence of North Korean operators.

Research
Socket researchers identified a malicious Chrome extension that manipulates Raydium swaps to inject an undisclosed SOL transfer, quietly routing fees to an attacker wallet.