sharedbuiltinmutables


Namesharedbuiltinmutables JSON
Version 0.11 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/sharedbuiltinmutables
SummaryShared list / set / dict across processes / environments
upload_time2023-11-19 14:50:14
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords shared list set dict
VCS
bugtrack_url
requirements dill
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Shared list / set / dict across processes / environments

## pip install sharedbuiltinmutables

### Tested against Windows 10 / Python 3.11 / Anaconda 


## FILE 1 

```python
from sharedbuiltinmutables import MemSharedDict, MemSharedList, MemSharedSet, cfg

# dill/pickle protocol
cfg.protocol = 5

d = MemSharedDict({3: 323}, name="d1", size=1024)
l = MemSharedList([3, 323], name="l1", size=1024)
s = MemSharedSet({3, 6, 5}, name="s1", size=1024)

d[111] = 444
d.pop(3)
d[9] = lambda h: h * 3
# to clean up: d.cleanup()

```

## FILE 2 

```python
from sharedbuiltinmutables import MemSharedDict, MemSharedList, MemSharedSet, cfg

# dill/pickle protocol
cfg.protocol = 5

d = MemSharedDict(name="d1", size=1024)
# passing a value ( d = MemSharedDict({33:11,3:3} name="d1", size=1024) )
# won't do anything if
# the dict has already been created by another proc
#
# use instead:
# d = MemSharedDict(name="d1", size=1024)
# d.clear()
# d.update({33:11,3:3})
l = MemSharedList(name="l1", size=1024)
s = MemSharedSet(name="s1", size=1024)
# to clean up: d.cleanup()

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/sharedbuiltinmutables",
    "name": "sharedbuiltinmutables",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "shared,list,set,dict",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/11/49/b3088157570e70650779ff86b2668c14567e1d700693366e7c5e25af5aee/sharedbuiltinmutables-0.11.tar.gz",
    "platform": null,
    "description": "\r\n# Shared list / set / dict across processes / environments\r\n\r\n## pip install sharedbuiltinmutables\r\n\r\n### Tested against Windows 10 / Python 3.11 / Anaconda \r\n\r\n\r\n## FILE 1 \r\n\r\n```python\r\nfrom sharedbuiltinmutables import MemSharedDict, MemSharedList, MemSharedSet, cfg\r\n\r\n# dill/pickle protocol\r\ncfg.protocol = 5\r\n\r\nd = MemSharedDict({3: 323}, name=\"d1\", size=1024)\r\nl = MemSharedList([3, 323], name=\"l1\", size=1024)\r\ns = MemSharedSet({3, 6, 5}, name=\"s1\", size=1024)\r\n\r\nd[111] = 444\r\nd.pop(3)\r\nd[9] = lambda h: h * 3\r\n# to clean up: d.cleanup()\r\n\r\n```\r\n\r\n## FILE 2 \r\n\r\n```python\r\nfrom sharedbuiltinmutables import MemSharedDict, MemSharedList, MemSharedSet, cfg\r\n\r\n# dill/pickle protocol\r\ncfg.protocol = 5\r\n\r\nd = MemSharedDict(name=\"d1\", size=1024)\r\n# passing a value ( d = MemSharedDict({33:11,3:3} name=\"d1\", size=1024) )\r\n# won't do anything if\r\n# the dict has already been created by another proc\r\n#\r\n# use instead:\r\n# d = MemSharedDict(name=\"d1\", size=1024)\r\n# d.clear()\r\n# d.update({33:11,3:3})\r\nl = MemSharedList(name=\"l1\", size=1024)\r\ns = MemSharedSet(name=\"s1\", size=1024)\r\n# to clean up: d.cleanup()\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Shared list / set / dict across processes / environments",
    "version": "0.11",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/sharedbuiltinmutables"
    },
    "split_keywords": [
        "shared",
        "list",
        "set",
        "dict"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d928570ef38410dd18dab9d52a4fd735ed9e16cb69c85287f5b0fd940455b046",
                "md5": "813d443481cb6adc60614caaed0b52fa",
                "sha256": "6e7c25ccdcf03b06df4528fa5ed9fa177d8f61714260d9d8a864a8d0a855a2e8"
            },
            "downloads": -1,
            "filename": "sharedbuiltinmutables-0.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "813d443481cb6adc60614caaed0b52fa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8616,
            "upload_time": "2023-11-19T14:50:13",
            "upload_time_iso_8601": "2023-11-19T14:50:13.127613Z",
            "url": "https://files.pythonhosted.org/packages/d9/28/570ef38410dd18dab9d52a4fd735ed9e16cb69c85287f5b0fd940455b046/sharedbuiltinmutables-0.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1149b3088157570e70650779ff86b2668c14567e1d700693366e7c5e25af5aee",
                "md5": "273f53f5ce165151723ffade37442fc6",
                "sha256": "3cec279d1d9d75ac1782f803ec4a002cd755ca0fdb8ed6fae8bebe437adb71f5"
            },
            "downloads": -1,
            "filename": "sharedbuiltinmutables-0.11.tar.gz",
            "has_sig": false,
            "md5_digest": "273f53f5ce165151723ffade37442fc6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7843,
            "upload_time": "2023-11-19T14:50:14",
            "upload_time_iso_8601": "2023-11-19T14:50:14.759511Z",
            "url": "https://files.pythonhosted.org/packages/11/49/b3088157570e70650779ff86b2668c14567e1d700693366e7c5e25af5aee/sharedbuiltinmutables-0.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-19 14:50:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "sharedbuiltinmutables",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "dill",
            "specs": []
        }
    ],
    "lcname": "sharedbuiltinmutables"
}
        
Elapsed time: 0.16087s