BePosPliz
BePosPliz (be positional please) is a lightweight module to anonymize the arguments of a function.
Relevant PEP: https://peps.python.org/pep-0646
I am not really sure if this has a real world purpose, but playing with new Python features is very enjoyable. I appreciate the effort to improve type expressiveness, and I am looking forward to PEPs 695 and 696 for even more fun :D
Features
anon_args
Usage
Let the following function:
from bepospliz import anon_args
@anon_args
def div(a: int, b: int) -> float:
"""Divide a by b"""
return a / b
div's original signature is div(a: int, b: int) -> float.
With the decorator @anon_args, it becomes div(int, int) -> float, meaning that it cannot be called by specifically naming the args anymore (e.g. div(b=3, a=2))
Signature
anon_args(function: Callable[[*Ps], R]) -> Callable[[*Ps], R]
with Ps being the set of types of function's arguments, and R its return type.
Example
Given the previous div function, Ps would be (int, int) and R would be float.
Metadata
Release files for bepospliz 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bepospliz-1.0.1.tar.gz | 3.1 kB | Without provenance | Details for bepospliz-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bepospliz-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for bepospliz-1.0.1-py3-none-any.whl |
Total release size: 6.7 kB
Release files / bepospliz-1.0.1.tar.gz
| Download URL | bepospliz-1.0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a6588055e9498fff28497d8fd511b820237b6d82526b8997428929f24bb8242
|
|
BLAKE2b-256 checksum How to use checksums |
047532b99ead9b4b5d56b409bf03d9d4db80371f8855efa9925b98c0ae6da59b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / bepospliz-1.0.1-py3-none-any.whl
| Download URL | bepospliz-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b152dc2621a7c870a9fd82e7281025a4bac027cb6d7a294e35b8faae0ddad44
|
|
BLAKE2b-256 checksum How to use checksums |
0c7316db53e2f84d53f1903c4f74a228c99cda7b3d717aa5e0ffb9640a2a232f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for bepospliz 1.0.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.