Metadata-Version: 2.1
Name: ConfigByLmdb
Version: 0.0.2
Summary: lmdb 二次封装库
Home-page: https://github.com/jnwatson/py-lmdb/
Author: CC
Author-email: 3204604858@qq.com
License: The OpenLDAP Public License
          Version 2.8, 17 August 2003
        
        Redistribution and use of this software and associated documentation
        ("Software"), with or without modification, are permitted provided
        that the following conditions are met:
        
        1. Redistributions in source form must retain copyright statements
           and notices,
        
        2. Redistributions in binary form must reproduce applicable copyright
           statements and notices, this list of conditions, and the following
           disclaimer in the documentation and/or other materials provided
           with the distribution,
        
        3. Redistributions must contain a verbatim copy of this document.
        
        The OpenLDAP Foundation may revise this license from time to time.
        Each revision is distinguished by a version number.  You may use
        this Software under terms of this license revision or under the
        terms of any subsequent revision of the license.
        
        THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS
        CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
        INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
        AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT
        SHALL THE OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S)
        OR OWNER(S) OF THE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
        INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
        BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
        LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
        CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
        LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
        ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
        POSSIBILITY OF SUCH DAMAGE.
        
        The names of the authors and copyright holders must not be used in
        advertising or otherwise to promote the sale, use or other dealing
        in this Software without specific, written prior permission.  Title
        to copyright in this Software shall at all times remain with copyright
        holders.
        
        OpenLDAP is a registered trademark of the OpenLDAP Foundation.
        
        Copyright 1999-2003 The OpenLDAP Foundation, Redwood City,
        California, USA.  All Rights Reserved.  Permission to copy and
        distribute verbatim copies of this document is granted.
Keywords: ConfigByLmdb,ConfigDB,lmdb
Platform: Windows
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: User Interfaces
Requires-Python: >=3
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: lmdb

=============
ConfigByLmdb
=============

ConfigByLmdb 是一个基于 lmdb 1.5.1 版本 二次封装的库，主要用于快速动态读写大量配置信息的数据库工具。

概述
----

lmdb是一个轻量级、本地部署的高性能数据库，ConfigByLmdb 仅对其进行了简单的接口封装。


安装
----

使用 pip 安装 ConfigByLmdb ：

.. code-block:: bash

    pip install ConfigByLmdb

请注意，由于本项目是 lmdb 的二次封装版本，可能需要从源代码安装或使用特定的安装步骤。

使用示例
--------

以下是一个简单的使用示例，展示如何使用：

.. code-block:: python

    from ConfigByLmdb import DB

    # 操作键方法
    # write
    # read
    # delete
    # updata

    # 操作内部 json 方法
    # get
    # set
    # remove

    db = DB()
    # 键操作
    db.write('a',{'a':1,'b':{'c':2,'d':{"e":{"f":123,"g":None}}}})
    print(db.read('a'))
    # 内部 json 操作
    print(db.remove(['a','b','d','e','f']))
    print(db.get('a'))
    # 删除数据库
    DB.cleanup()

贡献
----

我们欢迎任何形式的贡献，包括但不限于：

- 报告问题或错误。
- 提供功能请求或改进建议。

许可证
------

本项目采用 OLDAP-2.8 许可证。有关更多信息，请查看 `LICENSE` 文件。
