{"id":43242224,"url":"https://github.com/nekitdev/solus","last_synced_at":"2026-02-01T11:38:55.146Z","repository":{"id":62846141,"uuid":"562965003","full_name":"nekitdev/solus","owner":"nekitdev","description":"Singleton types.","archived":false,"fork":false,"pushed_at":"2024-05-31T10:07:39.000Z","size":847,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-26T16:40:07.344Z","etag":null,"topics":["python","singleton"],"latest_commit_sha":null,"homepage":"https://nekitdev.github.io/solus","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/nekitdev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["nekitdev"],"custom":"https://nekit.dev/funding"}},"created_at":"2022-11-07T16:16:10.000Z","updated_at":"2022-11-07T16:29:36.000Z","dependencies_parsed_at":"2024-03-02T12:29:28.292Z","dependency_job_id":"7eab5091-4977-4d01-b6ef-e2f8963b209e","html_url":"https://github.com/nekitdev/solus","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":"0.47058823529411764","last_synced_commit":"66185e6494eb0f525420a4f6951e565c770cb07c"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/nekitdev/solus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekitdev%2Fsolus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekitdev%2Fsolus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekitdev%2Fsolus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekitdev%2Fsolus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nekitdev","download_url":"https://codeload.github.com/nekitdev/solus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekitdev%2Fsolus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28977334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T11:31:13.034Z","status":"ssl_error","status_checked_at":"2026-02-01T11:30:25.558Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["python","singleton"],"created_at":"2026-02-01T11:38:55.065Z","updated_at":"2026-02-01T11:38:55.130Z","avatar_url":"https://github.com/nekitdev.png","language":"Python","funding_links":["https://github.com/sponsors/nekitdev","https://nekit.dev/funding"],"categories":[],"sub_categories":[],"readme":"# `solus`\n\n[![License][License Badge]][License]\n[![Version][Version Badge]][Package]\n[![Downloads][Downloads Badge]][Package]\n[![Discord][Discord Badge]][Discord]\n\n[![Documentation][Documentation Badge]][Documentation]\n[![Check][Check Badge]][Actions]\n[![Test][Test Badge]][Actions]\n[![Coverage][Coverage Badge]][Coverage]\n\n\u003e *Singleton types.*\n\n## Installing\n\n**Python 3.8 or above is required.**\n\n### pip\n\nInstalling the library with `pip` is quite simple:\n\n```console\n$ pip install solus\n```\n\nAlternatively, the library can be installed from source:\n\n```console\n$ git clone https://github.com/nekitdev/solus.git\n$ cd solus\n$ python -m pip install .\n```\n\n### poetry\n\nYou can add `solus` as a dependency with the following command:\n\n```console\n$ poetry add solus\n```\n\nOr by directly specifying it in the configuration like so:\n\n```toml\n[tool.poetry.dependencies]\nsolus = \"^1.2.2\"\n```\n\nAlternatively, you can add it directly from the source:\n\n```toml\n[tool.poetry.dependencies.solus]\ngit = \"https://github.com/nekitdev/solus.git\"\n```\n\n## Examples\n\n### Default\n\n[`Singleton`][solus.core.Singleton] type is used to create *thread-safe* singletons.\n\n```python\nfrom solus import Singleton\n\n\nclass Null(Singleton):\n    ...\n```\n\nSomewhere else in the code:\n\n```python\nnull = Null()  # instantiate\n```\n\n### Unsafe\n\n[`UnsafeSingleton`][solus.core.UnsafeSingleton] type is used to create *thread-unsafe* singletons.\n\n```python\nfrom solus import UnsafeSingleton\n\n\nclass Null(UnsafeSingleton):\n    ...\n\n\nnull = Null()  # instantiate right away\n```\n\n### Warning\n\n!!! warning\n\n    It is highly recommended to instantiate unsafe singleton types right after their creation!\n\n## Documentation\n\nYou can find the documentation [here][Documentation].\n\n## Support\n\nIf you need support with the library, you can send an [email][Email]\nor refer to the official [Discord server][Discord].\n\n## Changelog\n\nYou can find the changelog [here][Changelog].\n\n## Security Policy\n\nYou can find the Security Policy of `solus` [here][Security].\n\n## Contributing\n\nIf you are interested in contributing to `solus`, make sure to take a look at the\n[Contributing Guide][Contributing Guide], as well as the [Code of Conduct][Code of Conduct].\n\n## License\n\n`solus` is licensed under the MIT License terms. See [License][License] for details.\n\n[Email]: mailto:support@nekit.dev\n\n[Discord]: https://nekit.dev/chat\n\n[Actions]: https://github.com/nekitdev/solus/actions\n\n[Changelog]: https://github.com/nekitdev/solus/blob/main/CHANGELOG.md\n[Code of Conduct]: https://github.com/nekitdev/solus/blob/main/CODE_OF_CONDUCT.md\n[Contributing Guide]: https://github.com/nekitdev/solus/blob/main/CONTRIBUTING.md\n[Security]: https://github.com/nekitdev/solus/blob/main/SECURITY.md\n\n[License]: https://github.com/nekitdev/solus/blob/main/LICENSE\n\n[Package]: https://pypi.org/project/solus\n[Coverage]: https://codecov.io/gh/nekitdev/solus\n[Documentation]: https://nekitdev.github.io/solus\n\n[Discord Badge]: https://img.shields.io/discord/728012506899021874\n[License Badge]: https://img.shields.io/pypi/l/solus\n[Version Badge]: https://img.shields.io/pypi/v/solus\n[Downloads Badge]: https://img.shields.io/pypi/dm/solus\n\n[Documentation Badge]: https://github.com/nekitdev/solus/workflows/docs/badge.svg\n[Check Badge]: https://github.com/nekitdev/solus/workflows/check/badge.svg\n[Test Badge]: https://github.com/nekitdev/solus/workflows/test/badge.svg\n[Coverage Badge]: https://codecov.io/gh/nekitdev/solus/branch/main/graph/badge.svg\n\n[solus.core.Singleton]: https://nekitdev.github.io/solus/reference#solus.Singleton\n[solus.core.UnsafeSingleton]: https://nekitdev.github.io/solus/reference#solus.UnsafeSingleton\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekitdev%2Fsolus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnekitdev%2Fsolus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekitdev%2Fsolus/lists"}