Contextual Value Shifter is a Python module that implements a contextual “shift” function.
Usage
from cxvshifter import shift
# Shifting to variables
x = 5
shift(10, 'x')
print(x)
# => 10
# Shifting to a file
shift("hello", 'file', "hello.txt")
# Shifting to stdout
shift("Hello, shifting world!", 'stdout')
# Shifting to return
shift(24, 'return')
# -> 24
Improper usage
x = 5
shift(10, x)
# Will attempt to shift to a variable named 5
# In ctxvalue-shifter, this will result in a TypeError
Metadata
Release files for ctxvalue-shifter 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ctxvalue_shifter-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for ctxvalue_shifter-1.2.1-py3-none-any.whl |
Release files / ctxvalue_shifter-1.2.1-py3-none-any.whl
| Download URL | ctxvalue_shifter-1.2.1-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88970a83656042a12c7db36fdd96e7d18fdfe8a4634bb4d08da204aa80f9d701
|
|
BLAKE2b-256 checksum How to use checksums |
7a73b68afed7b4cde51f0619e2e4b29e38862691f9375b1675c05d36edd75ae5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for ctxvalue-shifter 1.2.1
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.