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.3.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.3-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file memory_obj_server-0.1.3.tar.gz.

File metadata

  • Download URL: memory_obj_server-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 8e43885535103e4dac43eb9e4e0c1cb34169065aec5475f7f4f7633dfddffd77
MD5 11b8ffde08f9cca588954100b880b01b
BLAKE2b-256 7da66afc4c0183ace3f3cf368e81e3a23fe01d2c067fcf77002c59b45324d7af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for memory_obj_server-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7a32537e2f4578f011c78c2e0665f79e082edfafc8777602d59cd9ed09791aaa
MD5 2b06ddfac3b81747ef2e82df2a00d896
BLAKE2b-256 ce49daa6d214cbf3286aab7cd8fb81caa534922c2a6e49ee347c3b793ab94b4b

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