pyco-sqlalchemy
- Base On
SqlAlchemy, according to regular web sevices, encapsulate A interface class(CoModel), expanded general APIs for CURD, which makes SqlAlchemy's ORM even simpler for humans, support with Flask/Django/OtherWebFrames.
Release:
GitCommit=c61b52b2b8c0b3babc70a9f2451fe6fc75790eb5
PublishAt=2024-08-27 10:32
PublishVersion=1.3.2
General APIs:
- Pyco-Sqlalchemy v1.2.*
| :-: | :---: | :---: | :---: | :---: | |||
|---|---|---|---|---|---|---|---|
| Pyco-Sqlalchemy v1.2.* | |||||||
| \ | @语义 | @HTTP-Method | @Self-API | @Cls-API | |||
| C | Create | POST | self.save() | insert(form, **kws) | |||
| R | Read | GET | self.to_dict(**kws) | filter_by, page_items, getOr404, lastOrNone | |||
| U | Update | PUT/POST | self.update(**kws) | upsert_one(filter_cond:dict, **updated_kws) | |||
| D | Delete | DELETE | self.remove() | discard(filter_cond=None, limit=1, **kws) | |||
基于`sqlalchemy`, 基于web常规业务,封装接口类`CoModel`,提供自定义的通用接口。
Usage Samples:
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-sqlalchemy 1.3.2
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_sqlalchemy-1.3.2.tar.gz | 12.0 kB | Without provenance | Details for pyco_sqlalchemy-1.3.2.tar.gz |
Release files / pyco_sqlalchemy-1.3.2.tar.gz
| Download URL | pyco_sqlalchemy-1.3.2.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7c6a55035da1645879c2c5331ef0819203053322c7d65efae411e514ebe2e8e
|
|
BLAKE2b-256 checksum How to use checksums |
e600335835783ca9377d65ea020cce56140b9c0f7680dc5170a5b920d142e139
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.3
|
Security for pyco-sqlalchemy 1.3.2
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.