nsingleton


Namensingleton JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryNew Singleton decorator. Just another singleton pattern implementation. Thread-safe, with type casting.
upload_time2023-12-25 10:09:04
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT License Copyright © 2023 Nikolay Shishov. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords python singleton pattern decorator
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            NSingleton
============

:star2: [Features](#star2-features) | :pushpin: [What and why](#pushpin-what-and-why) | :gear: [Run and configuration](#gear-run-and-configuration) | :scroll: [License](#scroll-license)

New Singleton decorator. Just another singleton pattern implementation. Thread-safe, with type casting.

<!-- Features -->
:star2: Features
---------------

- Yet another singleton decoration implementation. This one just works;
- Thread-safe decorator?! I'm not really sure it works or is needed, but let it be;
- Type casting! VSCode's linters are not screaming and auto-completion works as expected;

<!-- What and why -->
:pushpin: What and why
---------------

Just wanted to push my singleton as a library to be able to reuse it in my projects. Going to support it as well. Please do not hesitate to ask questions or make suggestions if anything.

<!-- Run and configuration -->
:gear: Run and configuration
---------------

Install library with PyPi, import and use.

<!-- License -->
:scroll: License
---------------

Distributed under the [MIT License](https://spdx.org/licenses/MIT.html) license. See LICENSE for more information.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "nsingleton",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "python singleton pattern decorator",
    "author": "",
    "author_email": "Nikolay Shishov <nikolay.shishov@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/71/76/7e0b8c65915ea51b15d6abd317a9798d6b424b7451223b038a49881ae2ed/nsingleton-0.1.0.tar.gz",
    "platform": null,
    "description": "NSingleton\n============\n\n:star2: [Features](#star2-features) | :pushpin: [What and why](#pushpin-what-and-why) | :gear: [Run and configuration](#gear-run-and-configuration) | :scroll: [License](#scroll-license)\n\nNew Singleton decorator. Just another singleton pattern implementation. Thread-safe, with type casting.\n\n<!-- Features -->\n:star2: Features\n---------------\n\n- Yet another singleton decoration implementation. This one just works;\n- Thread-safe decorator?! I'm not really sure it works or is needed, but let it be;\n- Type casting! VSCode's linters are not screaming and auto-completion works as expected;\n\n<!-- What and why -->\n:pushpin: What and why\n---------------\n\nJust wanted to push my singleton as a library to be able to reuse it in my projects. Going to support it as well. Please do not hesitate to ask questions or make suggestions if anything.\n\n<!-- Run and configuration -->\n:gear: Run and configuration\n---------------\n\nInstall library with PyPi, import and use.\n\n<!-- License -->\n:scroll: License\n---------------\n\nDistributed under the [MIT License](https://spdx.org/licenses/MIT.html) license. See LICENSE for more information.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright \u00a9 2023 Nikolay Shishov. All rights reserved.  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "New Singleton decorator. Just another singleton pattern implementation. Thread-safe, with type casting.",
    "version": "0.1.0",
    "project_urls": {
        "Repository": "https://github.com/nickosh/nsingleton"
    },
    "split_keywords": [
        "python",
        "singleton",
        "pattern",
        "decorator"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ef20a233c5d272aa877681f4b52630d6cfd62f462fff36bde3f538546d75642",
                "md5": "2bccbd495dbfbffd63e50f70f32ea561",
                "sha256": "376b393b6dc9e0799a51659c6c7b3b49978da3c3a4f65d70a4a4f72e1eb12781"
            },
            "downloads": -1,
            "filename": "nsingleton-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2bccbd495dbfbffd63e50f70f32ea561",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3896,
            "upload_time": "2023-12-25T10:09:03",
            "upload_time_iso_8601": "2023-12-25T10:09:03.312825Z",
            "url": "https://files.pythonhosted.org/packages/0e/f2/0a233c5d272aa877681f4b52630d6cfd62f462fff36bde3f538546d75642/nsingleton-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "71767e0b8c65915ea51b15d6abd317a9798d6b424b7451223b038a49881ae2ed",
                "md5": "f8f2cc825cc0a69dd81d146ab0e0e477",
                "sha256": "c0a227684abcc236cc9087f694bbc4437ec342abf4ebb4a605f7bd40d962e838"
            },
            "downloads": -1,
            "filename": "nsingleton-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f8f2cc825cc0a69dd81d146ab0e0e477",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3060,
            "upload_time": "2023-12-25T10:09:04",
            "upload_time_iso_8601": "2023-12-25T10:09:04.437015Z",
            "url": "https://files.pythonhosted.org/packages/71/76/7e0b8c65915ea51b15d6abd317a9798d6b424b7451223b038a49881ae2ed/nsingleton-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-25 10:09:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nickosh",
    "github_project": "nsingleton",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nsingleton"
}
        
Elapsed time: 0.31951s