{ "info": { "author": "leenr", "author_email": "i@leenr.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Software Development :: Libraries" ], "description": "=============\n@tls_property\n=============\n\n`@tls_property` is a super-tiny library that will help you write\nthread-safe classes.\n\nIt's acting like a `@cached_property `_,\nbut value will be cached only for current thread.\n\nGarbage collecting is respected, `@tls_property` won't mess up with it.\n\n.. code-block:: python\n\n from some_library import NonThreadsafeSuperClient\n from tls_property import tls_property\n\n class SuperClientWrapper:\n @tls_property\n def nonthreadsafe_client(self) -> NonThreadsafeSuperClient:\n return NonThreadsafeSuperClient()\n\nAlso, value reset supported via @tls_property :code:`del` ete:\n\n.. code-block:: python\n\n client = SuperClientWrapper()\n client.something()\n del client.nonthreadsafe_client\n client.something()\n..\n\nModule works on Python == 2.7 and Python ~= 3.4.\n\nInstallation\n------------\n.. code-block:: bash\n\n pip install tls-property\n..\n\nLicense\n-------\nPublic Domain: `CC0 1.0 Universal `_.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/leenr/tls-property", "keywords": "thread-local storage,decorator", "license": "", "maintainer": "leenr", "maintainer_email": "i@leenr.ru", "name": "tls-property", "package_url": "https://pypi.org/project/tls-property/", "platform": "posix", "project_url": "https://pypi.org/project/tls-property/", "project_urls": { "Homepage": "https://github.com/leenr/tls-property" }, "release_url": "https://pypi.org/project/tls-property/1.1.0/", "requires_dist": null, "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,<4", "summary": "A @decorator for caching properties in classes in the thread-local storage.", "version": "1.1.0" }, "last_serial": 5634289, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "49626ec38008471f712baeaa334ddda5", "sha256": "7d5136b0e33556bf61281a1097cdaeab70c09677c5f3ebc3b5d089aafe35dc40" }, "downloads": -1, "filename": "tls-property-1.0.tar.gz", "has_sig": false, "md5_digest": "49626ec38008471f712baeaa334ddda5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,<4", "size": 3022, "upload_time": "2019-02-05T13:14:06", "url": "https://files.pythonhosted.org/packages/f2/f9/85485ee2932b5729ead22030979d9185bd44300f520527e2f4666ecb5651/tls-property-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "8af98663633a4e42c20d188c612bc583", "sha256": "4a4f266384f33da1b1bbd2c74e637cf6fff78d06ded5a138738c1833fff0e54a" }, "downloads": -1, "filename": "tls-property-1.0.1.tar.gz", "has_sig": false, "md5_digest": "8af98663633a4e42c20d188c612bc583", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,<4", "size": 2143, "upload_time": "2019-05-25T19:03:25", "url": "https://files.pythonhosted.org/packages/63/5e/c75be2a2105402a9bd4e024739ec8b5cb8dca43bfc11db74e0b38bc43e9a/tls-property-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "f738dbc8e5bfa92315bbf4b102440182", "sha256": "cddf1152620e7c09307de5348a10d945070f0521183738a1fabaff17ad56343d" }, "downloads": -1, "filename": "tls-property-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f738dbc8e5bfa92315bbf4b102440182", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,<4", "size": 2252, "upload_time": "2019-08-05T13:20:38", "url": "https://files.pythonhosted.org/packages/d9/83/441bac852a9fb9d6d6c7af42a1571052668d6c6a9945fe21ce7e0060d6ee/tls-property-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f738dbc8e5bfa92315bbf4b102440182", "sha256": "cddf1152620e7c09307de5348a10d945070f0521183738a1fabaff17ad56343d" }, "downloads": -1, "filename": "tls-property-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f738dbc8e5bfa92315bbf4b102440182", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,<4", "size": 2252, "upload_time": "2019-08-05T13:20:38", "url": "https://files.pythonhosted.org/packages/d9/83/441bac852a9fb9d6d6c7af42a1571052668d6c6a9945fe21ce7e0060d6ee/tls-property-1.1.0.tar.gz" } ] }