pyco-sqlalchemy
Using CoModel to make SqlAlchemy's ORM even simpler for humans, develop with Flask/Django/OtherWebFrames.
note: 不管在使用任何 web 框架, 我都希望能有统一的 ORM 查询接口, 且易于在不同的数据库间迁移.
Tips:
-
use
charset=UTF8MB4 collate utf8_general_ci
Samples
- flask
from pyco_sqlalchemy._flask import BaseModel, db
class User(db.Model, BaseModel):
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
name = db.Column(db.String(32))
email = db.Column(db.String(64), unique=True)
form = dict(name="dev")
u1 = User.insert(form, email="dev@pypi.com")
u3 = User.upsert_one(form, email="dev@oncode.cc")
assert u1.id == u3.id
Metadata
Release files for pyco-orm 2.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyco_orm-2.1.3.tar.gz | 15.7 kB | Without provenance | Details for pyco_orm-2.1.3.tar.gz |
Release files / pyco_orm-2.1.3.tar.gz
| Download URL | pyco_orm-2.1.3.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6db2224c5e7dfa2463d78a270afc6f8315f3b47ba3709244d4bc190afea39179
|
|
BLAKE2b-256 checksum How to use checksums |
19cd2d3f4386a02a90466c7e2745ac7da2590f79f62088a7633059067d37627a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for pyco-orm 2.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.