Skip to main content

🩺 block-scopes

Block scoping in Python!

PyPI - Version PyPI - Python Version


Table of Contents

Usage

from scopes import scope

before = "I'll be kept!"

with scope("keep_me", "keep_me_too"):
    keep_me = "Keep me!"
    lose_me = "Not me!"

    keep_me_too = "Also... me!"

assert "before" in locals()
assert "keep_me" in locals()
assert "keep_me_too" in locals()

assert "lose_me" not in locals()

Installation

pip install block-scopes

License

block-scopes is distributed under the terms of the MIT license.

Metadata

Release files for block-scopes 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for block-scopes 0.2.3
File Size Uploaded Provenance Actions
block_scopes-0.2.3.tar.gz 3.1 kB Without provenance Details for block_scopes-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for block-scopes 0.2.3
File Interpreter ABI Platform Actions
block_scopes-0.2.3-py3-none-any.whl Python 3 none any Details for block_scopes-0.2.3-py3-none-any.whl

Total release size: 6.4 kB

Release files / block_scopes-0.2.3.tar.gz

Download URL block_scopes-0.2.3.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3cbaf996b3811cf929d11a93321462cc9c2473d1bc6fa7dda0050cead3581eb6
BLAKE2b-256 checksum
How to use checksums
ed60830b7d07f180a1b62ed4dcb392e41af6e54ea67d3c793894863246b5242a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.9

Release files / block_scopes-0.2.3-py3-none-any.whl

Download URL block_scopes-0.2.3-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97bfe3f6e41e0813cd077a4ed927de580755945b36f2aa66c82ef5502c3f0b75
BLAKE2b-256 checksum
How to use checksums
4d5c1119729eca2ff8279da4b349e8f22e521f6b3e2672ca57696c84c2a8651a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.9

Security for block-scopes 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page