{"id":19025897,"url":"https://github.com/pmundt/pyrefcount","last_synced_at":"2025-02-21T19:15:34.833Z","repository":{"id":62583045,"uuid":"324988571","full_name":"pmundt/pyrefcount","owner":"pmundt","description":"reference counting API for python, modelled after the Linux Kernel's refcount_t.","archived":false,"fork":false,"pushed_at":"2020-12-28T18:45:25.000Z","size":3093,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T20:46:59.601Z","etag":null,"topics":["python-library","refcount","reference-counting"],"latest_commit_sha":null,"homepage":"https://pmundt.github.io/pyrefcount/","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/pmundt.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-12-28T11:03:22.000Z","updated_at":"2020-12-28T18:44:39.000Z","dependencies_parsed_at":"2022-11-03T21:34:30.216Z","dependency_job_id":null,"html_url":"https://github.com/pmundt/pyrefcount","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/pmundt%2Fpyrefcount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmundt%2Fpyrefcount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmundt%2Fpyrefcount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmundt%2Fpyrefcount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmundt","download_url":"https://codeload.github.com/pmundt/pyrefcount/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240072132,"owners_count":19743526,"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":["python-library","refcount","reference-counting"],"created_at":"2024-11-08T20:46:40.731Z","updated_at":"2025-02-21T19:15:34.815Z","avatar_url":"https://github.com/pmundt.png","language":"Python","readme":"pyrefcount\n==========\n\n|build| |license| |python-version| |pypi-version|\n\n.. |build| image:: https://img.shields.io/github/workflow/status/pmundt/pyrefcount/Python%20package\n   :alt: GitHub Workflow Status\n   :target: https://github.com/pmundt/pyrefcount/actions\n\n.. |license| image:: https://img.shields.io/pypi/l/pyrefcount\n   :alt: MIT License\n\n.. |python-version| image:: https://img.shields.io/pypi/pyversions/pyrefcount\n   :alt: PyPI - Python Version\n   :target: https://pypi.python.org/pypi/pyrefcount\n\n.. |pypi-version| image:: https://img.shields.io/pypi/v/pyrefcount\n   :alt: PyPI\n   :target: https://pypi.python.org/pypi/pyrefcount\n\n``pyrefcount`` provides a simple API for reference counting, providing protected access to reference counted values,\nand for allowing acquire/release actions to be carried out when a reference count becomes active, or the last user\ndrops off, respectively. ``pyrefcount`` is inspired by the Linux Kernel's `refcount_t`_ API.\n\nUsage\n-----\n\nUsage of pyrefcount is straightforward:\n\n\u003e\u003e\u003e from refcount import Refcounter\n\u003e\u003e\u003e ref = Refcounter()\n\u003e\u003e\u003e ref.inc()\n\u003e\u003e\u003e ref.usecount\n2\n\u003e\u003e\u003e ref.dec()\n\u003e\u003e\u003e if ref.dec_and_test():\n...     print('refcount is now 0, do something here')\n\nFor more complex usage examples and a complete API reference, refer to the `package documentation`_.\n\nFeatures and Bugs\n-----------------\n\nPlease file feature requests and bug reports in the `issue tracker`_.\n\nLicense\n-------\n\n``pyrefcount`` is licensed under the MIT license.\n\n.. _package documentation: https://pmundt.github.io/pyrefcount\n.. _refcount_t: https://github.com/torvalds/linux/blob/master/include/linux/refcount.h\n.. _issue tracker: https://github.com/pmundt/pyrefcount/issues\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmundt%2Fpyrefcount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmundt%2Fpyrefcount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmundt%2Fpyrefcount/lists"}