fardb
fardb 是一个轻量的数据库访问工具库,基于 SQLAlchemy 封装了常用的表 CRUD / upsert 操作,
并附带一个 extendsclass.com JSON Storage 的简易客户端。
安装
pip install fardb
快速上手
from sqlalchemy import BIGINT, String
from sqlalchemy.orm import mapped_column
from fardb.sqlalchemy import Base, BaseTable, create_engine_sqlite
class UserTable(Base):
__tablename__ = "user"
id = mapped_column(BIGINT, primary_key=True)
name = mapped_column(String(64))
engine = create_engine_sqlite(":memory:")
table = BaseTable(engine, table=UserTable)
table.insert({"id": 1, "name": "alice"})
df = table.select_all()
print(df)
关于 farfarfun
farfarfun 是一个专注于实用工具库的开源组织, 涵盖云存储、数据处理、AI、多媒体与开发工具链等方向。
- 🏠 组织主页:https://github.com/farfarfun
- 📦 PyPI:https://pypi.org/user/niuliangtao/
- 📧 联系:farfarfun@qq.com
本项目基于 MIT 协议开源。
Metadata
Release files for fardb 1.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fardb-1.4.4-py3-none-any.whl | Python 3 | none | any | Details for fardb-1.4.4-py3-none-any.whl |
Release files / fardb-1.4.4-py3-none-any.whl
| Download URL | fardb-1.4.4-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd2dd23452cabb70af2ab466f41197dc987ffff16899e12aacead7d0547c9270
|
|
BLAKE2b-256 checksum How to use checksums |
d9a7c992cef2d70fb3ff5ad1fa48256dc3bb7181853df0c28c851078f0d34653
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for fardb 1.4.4
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.