wirerope 1.0.0
pip install wirerope
Released:
'Turn functions and methods into fully controllable objects'
Navigation
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIMeta
- License: BSD License (BSD 2-Clause License)
- Author: Jeong, YunWon
- Tags ring, methodtools, hack, method
-
Provides-Extra:
test
,doc
Classifiers
Project description
The concepts:
wirerope.rope.WireRope is a wrapper interface for python callable.
Custom wirerope.wire.Wire class provides user-defined behavior. A subclass of this class is working similar to a decorator function body.
A wire object is associated with a bound method.
Rope is dispatching types.
wirerope.rope.WireRope is the wrapper for callables. By wrapping a function with WireRope with a custom subclass of the wirerope.wire.Wire class, the wire object will be created by each function or bound method.
Wire is the most important part. The given class will be instantiated and bound to each function or bound method - which fits the concept of instance cmethod of human. For example, when f is a free function or staticmethod, the wire also will be a single object. When f is a method or property, wires will be created for each method owner object self. When f is a classmethod, wires will be created for each method owner class cls. Yes, it will detect the owner and bound to it regardless of the calling type.
Rope is internal dispatcher. It will be helpful when creating a complex object for decorated callable instead of simple callable feature.
See also
See [documentation](https://wirerope.readthedocs.io/en/latest/) - though it is not yet written very well.
See tests/test_wire.py for simple example.
See [methodtools](https://github.com/youknowone/methodtools) for practical example.
Python2 support
wirerope 1.0 stops to support Python 2. If you need Python 2 support, use 0.4.7 the latest version for Python 2.
Project details
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIMeta
- License: BSD License (BSD 2-Clause License)
- Author: Jeong, YunWon
- Tags ring, methodtools, hack, method
-
Provides-Extra:
test
,doc
Classifiers
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file wirerope-1.0.0.tar.gz
.
File metadata
- Download URL: wirerope-1.0.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7da8bb6feeff9dd939bd7141ef0dc392674e43ba662e20909d6729db81a7c8d0 |
|
MD5 | dbb8f826e78bf4eff2513bc525ba7a50 |
|
BLAKE2b-256 | 8ef1d0a4c936ba77eb1050da6ea5e7cd80aa36add343d9e5f7f9cf79a206c5b8 |
Provenance
The following attestation bundles were made for wirerope-1.0.0.tar.gz
:
Publisher:
release.yml
on youknowone/wirerope
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
wirerope-1.0.0.tar.gz
- Subject digest:
7da8bb6feeff9dd939bd7141ef0dc392674e43ba662e20909d6729db81a7c8d0
- Sigstore transparency entry: 162919953
- Sigstore integration time:
- Permalink:
youknowone/wirerope@e5e0576825885e5ee732072016c9ab96de626a45
- Branch / Tag:
refs/tags/1.0.0
- Owner: https://github.com/youknowone
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yml@e5e0576825885e5ee732072016c9ab96de626a45
- Trigger Event:
push
- Statement type:
File details
Details for the file wirerope-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: wirerope-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59346555c7b5dbd1c683a4e123f8bed30ca99df646f6867ea6439ceabf43c2f6 |
|
MD5 | 03e92832aebeb1750766372f2c421b46 |
|
BLAKE2b-256 | 422d3557ee32d8268b04ce8aada3212b0d49f2ddcf86dc200f3999a772262dc5 |
Provenance
The following attestation bundles were made for wirerope-1.0.0-py2.py3-none-any.whl
:
Publisher:
release.yml
on youknowone/wirerope
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
wirerope-1.0.0-py2.py3-none-any.whl
- Subject digest:
59346555c7b5dbd1c683a4e123f8bed30ca99df646f6867ea6439ceabf43c2f6
- Sigstore transparency entry: 162919956
- Sigstore integration time:
- Permalink:
youknowone/wirerope@e5e0576825885e5ee732072016c9ab96de626a45
- Branch / Tag:
refs/tags/1.0.0
- Owner: https://github.com/youknowone
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yml@e5e0576825885e5ee732072016c9ab96de626a45
- Trigger Event:
push
- Statement type: