
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
alchimia
Advanced tools
alchimia lets you use most of the SQLAlchemy-core API with Twisted, it does
not allow you to use the ORM.
.. code:: python
from alchimia import wrap_engine
from sqlalchemy import (
create_engine, MetaData, Table, Column, Integer, String
)
from sqlalchemy.schema import CreateTable
from twisted.internet.defer import inlineCallbacks
from twisted.internet.task import react
@inlineCallbacks
def main(reactor):
engine = wrap_engine(reactor, create_engine("sqlite://"))
metadata = MetaData()
users = Table("users", metadata,
Column("id", Integer(), primary_key=True),
Column("name", String()),
)
# Create the table
yield engine.execute(CreateTable(users))
# Insert some users
yield engine.execute(users.insert().values(name="Jeremy Goodwin"))
yield engine.execute(users.insert().values(name="Natalie Hurley"))
yield engine.execute(users.insert().values(name="Dan Rydell"))
yield engine.execute(users.insert().values(name="Casey McCall"))
yield engine.execute(users.insert().values(name="Dana Whitaker"))
result = yield engine.execute(users.select(users.c.name.startswith("D")))
d_users = yield result.fetchall()
# Print out the users
for user in d_users:
print("Username: %s" % user[users.c.name])
# Queries that return results should be explicitly closed to
# release the connection
result.close()
if __name__ == "__main__":
react(main, [])
The documentation is all on Read the Docs_.
.. _Read the Docs: https://alchimia.readthedocs.io/
There are some limitations to alchimia's ability to expose the SQLAlchemy
API.
CONTRIBUTING.rst for more info.alchimia API is predicated
on returning Deferred instances which fire with the underlying SQLAlchemy
instances, it is impossible for us to wrap these methods in a useful way.
Luckily, many of these methods have alternate spelling. The docs_ call these
out in more detail... _The docs: https://alchimia.readthedocs.io/en/latest/limitations/
FAQs
(SQLAlchemy - ORM) + Twisted = win
We found that alchimia demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.