{"id":17166548,"url":"https://github.com/willcrichton/context-var","last_synced_at":"2025-03-24T18:15:24.191Z","repository":{"id":62564618,"uuid":"247540793","full_name":"willcrichton/context-var","owner":"willcrichton","description":"React-style context variables (i.e. dynamic scoping)","archived":false,"fork":false,"pushed_at":"2020-03-15T20:13:33.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T22:46:27.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/willcrichton.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}},"created_at":"2020-03-15T19:54:17.000Z","updated_at":"2020-03-18T19:15:48.000Z","dependencies_parsed_at":"2022-11-03T16:00:49.008Z","dependency_job_id":null,"html_url":"https://github.com/willcrichton/context-var","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willcrichton%2Fcontext-var","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willcrichton%2Fcontext-var/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willcrichton%2Fcontext-var/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willcrichton%2Fcontext-var/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willcrichton","download_url":"https://codeload.github.com/willcrichton/context-var/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245325220,"owners_count":20596818,"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-10-14T23:06:00.103Z","updated_at":"2025-03-24T18:15:24.173Z","avatar_url":"https://github.com/willcrichton.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# context-var\n\n[![Build Status](https://travis-ci.com/willcrichton/context-var.svg?branch=master)](https://travis-ci.com/willcrichton/context-var)\n[![PyPI version](https://badge.fury.io/py/context-var.svg)](https://badge.fury.io/py/context-var)\n\n\nReact-style context management, i.e. dynamically scoped variables. Example:\n\n```python\nimport context_var as cv\n\nvar = cv.ContextVar('hello')\nassert var.get() == 'hello'\n\nwith var.set('world'):\n    assert var.get() == 'world'\n\nassert var.get() == 'hello'\n```\n\n## Installation\n\n```python\npip install context-var\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillcrichton%2Fcontext-var","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillcrichton%2Fcontext-var","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillcrichton%2Fcontext-var/lists"}