Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
A small SQLite ORM for Python 3. You probably shouldn't use this, but if you want to anyway, pip install dorm
and look at the tests for how to do so.
Dorm has the most basic migration support imaginable:
# Generates a schema migration if it detects any changes.
python -m dorm --db=books.db --models=project.models --migrations=project.migrations generate
# Migrates to the latest migration (sorted by filename in the --migrations module).
python -m dorm --db=books.db --models=project.models --migrations=project.migrations migrate
Existing migrations are run automatically when calling dorm.setup
with the migrations
argument set. This
is to ensure a good first-run experience and automatic upgrades for end users. If migrations
is not set,
any detected schema changes will be applied automatically to the database.
Dorm can be used with asyncio
by simply subclassing AsyncTable
instead of Table
. The insert
class method,
and save
and refresh
instance methods become coroutines in that case. Also, the query
class method will return
an AsyncQuery
instance, with coroutines for count
, values
, get
, update
, and iteration via __aiter__
(i.e. async for obj in MyTable.query()
).
Migrations and introspection still happen synchronously, since they tend not to happen during times where they would benefit from being asyncronous.
FAQs
A tiny SQLite ORM for Python.
We found that dorm 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.