Skip to main content

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

memory_obj_server-0.1.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

memory_obj_server-0.1.4-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

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

Hashes for memory_obj_server-0.1.4.tar.gz
Algorithm Hash digest
SHA256 fd1756b3504ca7ae28cb29611fc9a87bccf4ab0e15ceaf9b8f020a0f54eedf2f
MD5 b46fd1bb3e3c06d16ea8d72f3f45954c
BLAKE2b-256 5a6ea62865638fa9f7ea92795b757ab33e18b234254783867483f3709d42deb6

See more details on using hashes here.

File details

Details for the file memory_obj_server-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for memory_obj_server-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7e9acf66382e69d574480945e381e533db1a927b154949c84d5ee9d2945bd508
MD5 6960cce8a5e57635a3ab1531e76b2db2
BLAKE2b-256 d893719445c3065718a40489087c5ca29c236a254f44728fcb8ee5d70c2f12f6

See more details on using hashes here.

Supported by

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