{"id":20566710,"url":"https://github.com/cadojo/block-scopes","last_synced_at":"2025-12-06T11:01:02.549Z","repository":{"id":65406565,"uuid":"558700121","full_name":"cadojo/block-scopes","owner":"cadojo","description":"Block scoping in Python!","archived":false,"fork":false,"pushed_at":"2023-01-21T21:49:24.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T02:03:42.359Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cadojo.png","metadata":{"files":{"readme":"README.md","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":"2022-10-28T05:07:45.000Z","updated_at":"2022-10-28T05:08:16.000Z","dependencies_parsed_at":"2023-02-12T12:45:52.882Z","dependency_job_id":null,"html_url":"https://github.com/cadojo/block-scopes","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/cadojo%2Fblock-scopes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadojo%2Fblock-scopes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadojo%2Fblock-scopes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadojo%2Fblock-scopes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cadojo","download_url":"https://codeload.github.com/cadojo/block-scopes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242179272,"owners_count":20084940,"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-16T04:43:01.849Z","updated_at":"2025-12-06T11:01:02.485Z","avatar_url":"https://github.com/cadojo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🩺 `block-scopes`\n_Block scoping in Python!_\n\n[![PyPI - Version](https://img.shields.io/pypi/v/block-scopes.svg)](https://pypi.org/project/block-scopes)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/block-scopes.svg)](https://pypi.org/project/block-scopes)\n\n-----\n\n**Table of Contents**\n\n- [Usage](#usage)\n- [Installation](#installation)\n- [License](#license)\n\n## Usage\n\n```python\nfrom scopes import scope\n\nbefore = \"I'll be kept!\"\n\nwith scope(\"keep_me\", \"keep_me_too\"):\n    keep_me = \"Keep me!\"\n    lose_me = \"Not me!\"\n\n    keep_me_too = \"Also... me!\"\n\nassert \"before\" in locals()\nassert \"keep_me\" in locals()\nassert \"keep_me_too\" in locals()\n\nassert \"lose_me\" not in locals()\n```\n\n## Installation\n\n```console\npip install block-scopes\n```\n\n## License\n\n`block-scopes` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcadojo%2Fblock-scopes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcadojo%2Fblock-scopes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcadojo%2Fblock-scopes/lists"}