{"id":21260347,"url":"https://github.com/nlm/python-singletonmeta","last_synced_at":"2026-07-02T15:34:23.360Z","repository":{"id":71728481,"uuid":"195800675","full_name":"nlm/python-singletonmeta","owner":"nlm","description":"Python library to easily make singleton classes","archived":false,"fork":false,"pushed_at":"2019-07-08T11:43:55.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-21T21:47:33.231Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nlm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-08T11:43:36.000Z","updated_at":"2021-03-05T10:54:19.000Z","dependencies_parsed_at":"2023-05-16T16:45:34.407Z","dependency_job_id":null,"html_url":"https://github.com/nlm/python-singletonmeta","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Fpython-singletonmeta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Fpython-singletonmeta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Fpython-singletonmeta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Fpython-singletonmeta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlm","download_url":"https://codeload.github.com/nlm/python-singletonmeta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695537,"owners_count":20332626,"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":[],"created_at":"2024-11-21T04:17:54.394Z","updated_at":"2026-07-02T15:34:18.319Z","avatar_url":"https://github.com/nlm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SingletonMeta\n\nA python module for easily creating singletons\n\n## SingletonMeta\n\nA metaclass to restricts the instantiation of a class to one \"single\" instance.\n\n```\n\u003e\u003e from singletonmeta import SingletonMeta\n\u003e\u003e\n\u003e\u003e class MyClass(metaclass=SingletonMeta):\n..   pass\n..\n\u003e\u003e print(id(Myclass()) == id(MyClass()))\nTrue\n```\n\n## ThreadSafeSingletonMeta\n\nA metaclass to restricts the instantiation of a class to one \"single\" instance,\nthread-safe version (using lock).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlm%2Fpython-singletonmeta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlm%2Fpython-singletonmeta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlm%2Fpython-singletonmeta/lists"}