
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
pip install sqllex
Version | Status | Tests, and actions |
---|---|---|
==0.2.3 | ✔️ supported ✔️ stable | |
<=0.2.0.4 | ⚠️ outdated ⚠️ Security issue CVE-2022-0329 | ⚠️ Mostly passing |
<=0.1.10.4 | ❌️ outdated | ❌ |
Databases | Support |
---|---|
SQLite | ✔️ |
PostgreSQL | ✔️* |
* - partially support
Use databases without thinking about SQL.
Interact with a database as python object by intuitive methods
just like .insert()
, .select()
or .find()
.
Let me show you how sqllex ORM makes your life easier. Imagine you need create some database, save some data into this and take it back. That's how your easy to code it with sqllex.
from sqllex import *
db = SQLite3x(
path='my_database.db',
template={
"users": {
"username": [TEXT, NOT_NULL],
"age": INTEGER,
}
}
)
users = db["users"]
users.insert('Sqllex', 33)
users_33 = users.find(age=33)
print(users_33) # [('Sqllex', 33)]
from sqllex import *
# Create some database, with simple structure
db = SQLite3x( # create database
path='my_data.db', # path to your database, or where you would like it locate
template={ # schema for tables inside your database
"users": { # name for the 1'st table
"username": [TEXT, NOT_NULL], # 1'st column of table, named "username", contains text-data, can't be NULL
"age": INTEGER, # 2'nd column of table, named "age", contains integer value
} # end of table
} # end of schema (template)
)
# Ok, now you have database with table inside it.
# Let's take this table as variable
users = db["users"]
# Now add record of 33 years old user named 'Sqllex' into it
# Dear table, please insert ['Sqllex', 33] values
users.insert('Sqllex', 33)
# Dear table, please find records where_ column 'age' == 33
users_33 = users.find(age=33)
# Print results
print(users_33) # [('Sqllex', 33)]
DMS | Example |
---|---|
SQLite3 | "Zero level" (v0.2+) |
SQLite3 | "Pre-Intermediate" (v0.2+) |
SQLite3 | Data Science (v0.1.8.4) |
SQLite3 | Project Showcase |
PostgreSQL | - |
FAQs
The most pythonic ORM (for SQLite and PostgreSQL). Seriously, try it out!
We found that sqllex 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.