Skip to main content

使用bitmap存储海量整型数据

Project description

## pybitmap
### 安装:
pip3 install pybitmap
#### 使用方法:
bit_map = Pybitmap(1000000) # 1000000为指定size 表示存储最大的元素
#### 操作
bit_map.add(32) # 添加元素
bit_map.remove(32) # 删除元素
print(list(bit_map.sequence(reverse=False))) # 按序列输出元素, reverse 是否逆序

#查找元素
print(bit_map.query_value(43))
返回: (False, 0, 43)
False 表示不存在 (True 表示存在)
0 表示应该存在的整型数字的序列
43 整型数字中的位数

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

pybitmap-0.0.3.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file pybitmap-0.0.3.tar.gz.

File metadata

  • Download URL: pybitmap-0.0.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for pybitmap-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7057e3d46b0cbc2f283e92eb20e0c7ab8bb431534e6806779579178d44337fc7
MD5 578fcc502a5e1bf3f6b66cd2025ee48c
BLAKE2b-256 aa5b5ceb8eb8afbf223eac7d2fad3842f9a3870dbbc2886fdb68b52d74a44bbd

See more details on using hashes here.

Supported by

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