python对象共享池
Project description
memory_obj_server
基于内存的python对象共享池,用于单机多进程服务python对象共享
Memory based Python object sharing pool for single machine multi process service Python object sharing
quick start
pip install -U memory-obj-server
------------------------------------------------
from memory_obj_server import ObjectStoreService, ObjectStoreClient
ObjectStoreService.start_server()
client = ObjectStoreClient()
client.put('obj', {'a': 1, 'b': 2})
client.get('obj')
client.put('obj', {'c': 3})
client.get('obj')
client.delete('obj')
client.get('obj')
ObjectStoreService.stop_server()
------------------------------------------------
with ObjectStoreClient() as client_ctx:
client_ctx.put('hello', 'world')
print("client get hello:", client_ctx.get('hello'))
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file memory_obj_server-0.1.4.tar.gz.
File metadata
- Download URL: memory_obj_server-0.1.4.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd1756b3504ca7ae28cb29611fc9a87bccf4ab0e15ceaf9b8f020a0f54eedf2f
|
|
| MD5 |
b46fd1bb3e3c06d16ea8d72f3f45954c
|
|
| BLAKE2b-256 |
5a6ea62865638fa9f7ea92795b757ab33e18b234254783867483f3709d42deb6
|
File details
Details for the file memory_obj_server-0.1.4-py3-none-any.whl.
File metadata
- Download URL: memory_obj_server-0.1.4-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e9acf66382e69d574480945e381e533db1a927b154949c84d5ee9d2945bd508
|
|
| MD5 |
6960cce8a5e57635a3ab1531e76b2db2
|
|
| BLAKE2b-256 |
d893719445c3065718a40489087c5ca29c236a254f44728fcb8ee5d70c2f12f6
|