Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1db701e

Browse files
committed
增加 HappyBase
1 parentcecc7cf commit1db701e

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

‎libs/python.wiki‎

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,25 @@ Docs:[https://docs.mongodb.com/ecosystem/drivers/python/]
10761076

10771077
这是 MongoDB 官方提供的 Python 驱动。
10781078

1079-
=== 6.2.8 Redis===
1079+
=== 6.2.8 Apache HBase===
1080+
1081+
<h4>HappyBase</h4>
1082+
1083+
Home:[https://github.com/wbolster/happybase]
1084+
1085+
操作 HBase 的 Python 库,基于 [https://en.wikipedia.org/wiki/Apache_ThriftThrift] 连接到 HBase。
1086+
1087+
代码示例——简单的存取操作
1088+
<source lang="python">
1089+
import happybase
1090+
connection = happybase.Connection("hostname")
1091+
table = connection.table("table-name")
1092+
table.put(b"row-key", {b"test1": b"data1", b"test2": b"data2"})
1093+
row = table.row(b"row-key")
1094+
print(row[b"test1"])
1095+
</source>
1096+
1097+
=== 6.2.9 Redis===
10801098

10811099
<h4>redis-py</h4>
10821100

@@ -1092,7 +1110,7 @@ r.set("foo", "bar")
10921110
print(r.get("foo"))
10931111
</source>
10941112

1095-
=== 6.2.9 LevelDB===
1113+
=== 6.2.10 LevelDB===
10961114

10971115
<h4>Plyvel</h4>
10981116

@@ -1109,7 +1127,7 @@ print(db.get(b"key"))
11091127
db.close()
11101128
</source>
11111129

1112-
=== 6.2.10 Berkeley DB===
1130+
=== 6.2.11 Berkeley DB===
11131131

11141132
<h4>PyBSDDB</h4>
11151133

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp