Skip to main content

pyco-sqlalchemy

Using CoModel to make SqlAlchemy's ORM even simpler for humans, develop with Flask/Django/OtherWebFrames.

note: 不管在使用任何 web 框架, 我都希望能有统一的 ORM 查询接口, 且易于在不同的数据库间迁移.

Tips:

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)

Source distribution for pyco-orm 2.1.3
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.

Release history Release notifications | RSS feed

This release

2.1.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page