Skip to main content

A data local persistence ORM framework

Project description

cushy-storage

一个基于磁盘缓存的ORM框架

English 中文

简介

cushy-storage是一个基于磁盘缓存的ORM框架,你可以使用轻松的将自定义的数据通过ORM进行增删改查;另一方面,cushy-storage让你无需花费精力在 如何制订一套数据存储规范上,字典般的操作可以减少很多开发的成本。如果你有对本地文件数据操作的需求,使用本框架可以轻松的进行数据的本地存储。

特性

  • 支持ORM存储、基本数据存储、自定义数据存储,兼容所有数据类型
  • 支持ORM框架级对象操作,可以轻松地对对象级数据进行增删改查
  • 存储基本数据时像操作dict一样读写,十分方便
  • 可以方便地将数据(基本数据类型、自定义数据类型)进行本地磁盘存储
  • 免去了直接操作文件的工作
  • 提供多种序列化操作
  • 提供多种数据压缩方式

快速开始

安装

pip install cushy-storage --upgrade 

快速上手

cushy-storage 的使用主要分为四个部分,CushyOrmCache CushyDict BaseDict disk_cache,更多详细信息,请阅读相关文档

  • CushyORMCache 基于ORM框架的对象存储,可以十分方便的对对象级数据进行增删改查
  • CushyDict: BaseDict的增强版,存储各种类型的数据,包括基本数据类型与自定义数据类型
  • BaseDict: 存储基础的二进制数据
  • disk_cache: 函数数据缓存

贡献

如果你想为这个项目做贡献,你可以提交pr或issue。我很高兴看到更多的人参与并优化它。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cushy-storage-1.2.4.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cushy_storage-1.2.4-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file cushy-storage-1.2.4.tar.gz.

File metadata

  • Download URL: cushy-storage-1.2.4.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for cushy-storage-1.2.4.tar.gz
Algorithm Hash digest
SHA256 73e8beb35b87f1613d87064c68c6ab116c4f44865661c7280a8136e7ae8a3daf
MD5 806fb01380236c9a15b66cc0d40b016c
BLAKE2b-256 ddb69860face01d8355abdf2d02d0ce47ef8ae93279fb1615e1311bde1f5da98

See more details on using hashes here.

File details

Details for the file cushy_storage-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: cushy_storage-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for cushy_storage-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b2cc6f925182ca9ea0bc7eef6b3345a93457ab19ca3a5878e4c15f10573071cd
MD5 86e78bedce7e4df6b86bff551a1c76a1
BLAKE2b-256 a96a8e0ea446643752bbee7a8cff4f72886a6c3e4174f5419048cd4e35397e14

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page