semvec/pypi-packages huggingface dataset:
mapdb 0.0.1
简单的kv数据操作工具。
License: MIT
Requires Python: >=3


### 使用手册

**快速开始**
```python
import mapdb

# default map db file : {userHome}/sqlitemap.db

# 写普通属性
mapdb.put("int", 20)
mapdb.put("float", 1.75)
mapdb.put("bool", False)
mapdb.put("string", 'kancy')
mapdb.put("hobby", ["play games"])
mapdb.putBytes("bytes", b"I am bytearray.")

print(mapdb.gets(['int', 'float', 'bool', 'string', 'hobby', 'bytes']))

# 写json
json = {
    "name":"kancy",
    "age":20,
    "height":1.75,
    "hobby":["play games"],
    "map":{
        "k":"v"
    }
}
mapdb.put("json", json)
print(mapdb.get("json"))
print(mapdb.get().getJson("json"))

# 写文件
mapdb.putFile("textfile", "data/text.txt")
mapdb.putFile("imgfile", "data/img.png")
mapdb.getFile("textfile", "data/text.txt")
mapdb.getFile("imgfile", "data/img.png")
```

**自定义MapDB**
```python
import mapdb

# SQLite实现
db1 = mapdb.SQLiteMapDB(debug=True)

# MySQL实现
db2 = mapdb.MySQLMapDB(host="localhost", username="root", password="root")
```
ghcontribs 0.0.1
"Load and track contributions on GitHub"
License: MIT

[![tests](https://github.com/dwhswenson/ghcontribs/actions/workflows/tests.yml/badge.svg)](https://github.com/dwhswenson/ghcontribs/actions/workflows/tests.yml)
[![Documentation Status](https://readthedocs.org/projects/ghcontribs/badge/?version=latest)](https://ghcontribs.readthedocs.io/en/latest/?badge=latest)
[![codecov](https://codecov.io/gh/dwhswenson/ghcontribs/branch/main/graph/badge.svg?token=NIDVFDmwvI)](https://codecov.io/gh/dwhswenson/ghcontribs)

# ghcontribs

Generate information about all GitHub contributions for a give user.

This was developed out of a desire to create a more detailed view of my own
contributions to open-source software, including tracking where I've
contributed PRs and where I've contributed bug report issues.

The requirements I had were:

* Get a list of Issues I've opened
* Get a list of Pull Requests I've opened

The goal is to build a web page that gives more information about my
contributions, and perhaps allows me to highlight a few aspects. This library
allows you to store all your contributions in a JSON file, and reload them to
generate whatever output you would like.

The tools I found with similar goals didn't seem to have been updated in a long
time.
jdbcer 0.0.2
数据库操作工具。
License: MIT
Requires Python: >=3



### 使用教程

**快速开始**

```python
import jdbcer

db = jdbcer.SQLite("test.db")

create_table_sql = """
    CREATE TABLE IF NOT EXISTS t_test (
        data_key varchar(255) PRIMARY KEY, 
        data_value text,
        data_int integer
    );
"""
# 创建数据表
db.execute(create_table_sql)

# 插入数据
db.replace("replace into t_test values (?,?,?)", "test_key", "test_data", 1)

# 查询数据
print(db.select("select * from t_test where data_key = ?", "test_key"))
print(db.selectOne("select * from t_test where data_key = ?", "test_key"))
print(db.selectTable("t_test", data_key="test_key"))

# 查询字段
print(db.getColumnIntValue("select data_int from t_test where data_key = ?", "test_key"))
print(db.getColumnFloatValue("select data_int from t_test where data_key = ?", "test_key"))
print(db.getColumnBoolValue("select data_value,data_int from t_test where data_key = ?", "test_key", column="data_int"))

# 批量插入数据
rows = []
for i in range(0, 100):
    row = (f"k{i}", f"v{i}", i)
    rows.append(row)

db.replaceBatch("replace into t_test values (?,?,?)", rows)
print(db.count("t_test"))
print(db.count("t_test", where="data_int > 90"))

# 更新数据
db.update("update t_test set data_int=? where data_key = ?", 100, 'test_key')

# 删除数据
db.delete("delete from t_test")
# 清空表
db.clear("t_test")
# 删除表
db.drop("t_test")

# 关闭
db.close()
```