{"id":20489265,"url":"https://github.com/reity/capsules","last_synced_at":"2026-04-15T22:35:33.532Z","repository":{"id":62560846,"uuid":"290935503","full_name":"reity/capsules","owner":"reity","description":"Python library for encapsulating a function definition inside a temporary module file (mostly for use with multiprocessing and Jupyter Notebook).","archived":false,"fork":false,"pushed_at":"2020-12-20T04:11:00.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T23:51:33.462Z","etag":null,"topics":["jupyter-notebook","multiprocessing","picklers","pickling","python-library"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/capsules","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reity.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-28T02:52:15.000Z","updated_at":"2020-12-20T04:11:02.000Z","dependencies_parsed_at":"2022-11-03T14:45:34.295Z","dependency_job_id":null,"html_url":"https://github.com/reity/capsules","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reity/capsules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reity%2Fcapsules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reity%2Fcapsules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reity%2Fcapsules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reity%2Fcapsules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reity","download_url":"https://codeload.github.com/reity/capsules/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reity%2Fcapsules/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263833416,"owners_count":23517373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jupyter-notebook","multiprocessing","picklers","pickling","python-library"],"created_at":"2024-11-15T17:12:02.365Z","updated_at":"2026-04-15T22:35:28.507Z","avatar_url":"https://github.com/reity.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"========\ncapsules\n========\n\nPython library for depositing a function definition inside a temporary module file (mostly for use with multiprocessing and Jupyter Notebook).\n\n|pypi| |travis| |coveralls|\n\n.. |pypi| image:: https://badge.fury.io/py/capsules.svg\n   :target: https://badge.fury.io/py/capsules\n   :alt: PyPI version and link.\n\n.. |travis| image:: https://travis-ci.com/reity/capsules.svg?branch=master\n   :target: https://travis-ci.com/reity/capsules\n\n.. |coveralls| image:: https://coveralls.io/repos/github/reity/capsules/badge.svg?branch=master\n   :target: https://coveralls.io/github/reity/capsules?branch=master\n\nPackage Installation and Usage\n------------------------------\nThe package is available on PyPI::\n\n    python -m pip install capsules\n\nThe library can be imported in the usual ways::\n\n    import capsules\n    from capsules import capsules\n\nAdding the `capsules` decorator to a function definition will (1) automatically deposit that definition inside a temporary module file on disk, (2) import that module file, and (3) assign to the variable of the function being defined the function that was imported from that module::\n\n    @capsules\n    def double(x):\n        return x + x\n\nTesting and Conventions\n-----------------------\nAll unit tests are executed and their coverage is measured when using `nose \u003chttps://nose.readthedocs.io/\u003e`_ (see ``setup.cfg`` for configution details)::\n\n    nosetests\n\nStyle conventions are enforced using `Pylint \u003chttps://www.pylint.org/\u003e`_::\n\n    pylint capsules\n\nContributions\n-------------\nIn order to contribute to the source code, open an issue or submit a pull request on the GitHub page for this library.\n\nVersioning\n----------\nThe version number format for this library and the changes to the library associated with version number increments conform with `Semantic Versioning 2.0.0 \u003chttps://semver.org/#semantic-versioning-200\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freity%2Fcapsules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freity%2Fcapsules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freity%2Fcapsules/lists"}