boundinstance
boundinstance provides InstanceDescriptor, a descriptor that binds weakly to the instance it was accessed from, so a subclass can carry a reference back to its enclosing object without creating a reference cycle.
Install
pip install boundinstance
Usage
from boundinstance import InstanceDescriptor
class Plot(InstanceDescriptor["Potential"]):
def label(self) -> str:
return f"plot of {self.enclosing.name}"
class Potential:
plot = Plot()
def __init__(self, name: str) -> None:
self.name = name
hernquist = Potential("hernquist")
assert hernquist.plot.label() == "plot of hernquist"
The reference back to the enclosing object is weak, so it doesn't outlive a temporary: bind the enclosing object to a name before reading enclosing from it, or you'll hit a ReferenceError (Potential("hernquist").plot.label() fails; hernquist.plot.label() works because hernquist keeps the object alive).
Compiled wheels
boundinstance ships mypyc-compiled wheels for supported platforms, plus a pure-Python sdist that needs no compiler. boundinstance.COMPILED reports whether the installed build is mypyc-compiled.
Metadata
Release files for boundinstance 0.1.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 |
|---|---|---|---|---|
| boundinstance-0.1.1.tar.gz | 115.2 kB | With provenance | Details for boundinstance-0.1.1.tar.gz |
Built distributions (wheels)
Total release size: 820.3 kB
Release files / boundinstance-0.1.1.tar.gz
| Download URL | boundinstance-0.1.1.tar.gz |
|---|---|
| Size | 115.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e435067474ad77bda233b3f55c8a6a51d61530077d5d827c6c0adcecff34655
|
|
BLAKE2b-256 checksum How to use checksums |
087f9f8d06c768f7c26ce7362f81892143d712a6d649bf386138c99264968d04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / boundinstance-0.1.1-cp314-cp314-win_amd64.whl
| Download URL | boundinstance-0.1.1-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 35.2 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
97649eaef6cc91af355ebd969ea8c8a44f6d3850878d1dff9996f74eaa9804e9
|
|
BLAKE2b-256 checksum How to use checksums |
4c72794b3cbadb0ff240d8385d9a3427ff09058c0083116254175f54c832d0d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / boundinstance-0.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | boundinstance-0.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 76.9 kB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
5ea7c0703d23abcb2422afe13860e7c66d5a0420ea2c62c6878d7a2659520126
|
|
BLAKE2b-256 checksum How to use checksums |
bb0c315171b55823dd690ed7e5dca97826c588aeaa46092fd365e254c2655fcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / boundinstance-0.1.1-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | boundinstance-0.1.1-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 59.7 kB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
67a5c99c9046994a36be8587dc85994d40c673a0ca3ec98260e998a66def8031
|
|
BLAKE2b-256 checksum How to use checksums |
fec615cb3a0e6cbcae8bc67a27d4e0aa7e7fe7880b45ca536818bf30e5e0ac39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / boundinstance-0.1.1-cp314-cp314-macosx_10_15_x86_64.whl
| Download URL | boundinstance-0.1.1-cp314-cp314-macosx_10_15_x86_64.whl |
|---|---|
| Size | 61.7 kB |
| Tags | CPython 3.14 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
3294c9fb2ede014a0e3d7fd446189476fc6222b2ddc84c41eb3d6fcbdb11ff19
|
|
BLAKE2b-256 checksum How to use checksums |
c88303865f07894658540dbd444ebc7a66f39c499680cc61d6fae4a52321ca3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / boundinstance-0.1.1-cp313-cp313-win_amd64.whl
| Download URL | boundinstance-0.1.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 35.5 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
67b29b75fbe8b5dd408de67918a5e6fb1fe783df6cac3cbe4036c6c58b2fc951
|
|
BLAKE2b-256 checksum How to use checksums |
528b3c7b66bf8e0911001006e1bfec8aeb50c8392cbfeb25f247f1736656f214
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / boundinstance-0.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | boundinstance-0.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 77.6 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
f3a9fd4737f7a21bb496eb5d87d487350004ea382a3751ea1db2d43a17f2488b
|
|
BLAKE2b-256 checksum How to use checksums |
62c00fa9de3c6a8fb3877a916cb1609d2412b3ea13d8f9b2c7535400db048708
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / boundinstance-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | boundinstance-0.1.1-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 59.6 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
55cc97a1e9e09b50d0b8f84f6e34dec59bcd17f2c96b10a522f17fdac0ec1879
|
|
BLAKE2b-256 checksum How to use checksums |
525d50ea872084b46145c49ecfafbd0fd9057908739651d22823ddf64c8a5b20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / boundinstance-0.1.1-cp313-cp313-macosx_10_13_x86_64.whl
| Download URL | boundinstance-0.1.1-cp313-cp313-macosx_10_13_x86_64.whl |
|---|---|
| Size | 62.0 kB |
| Tags | CPython 3.13 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
f2b77568986efcf9c92126b41cff41c181ae7137588c793a2e7fa9f031ef1428
|
|
BLAKE2b-256 checksum How to use checksums |
02c9770ec459b2bce8e5851e4f159f1264ceae6f88343607df8fa1934651d72a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / boundinstance-0.1.1-cp312-cp312-win_amd64.whl
| Download URL | boundinstance-0.1.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 35.5 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b36ab7454ca57fbe2facc033f48629b76b2526a978e40b3dd6ffb79eee6b9c0d
|
|
BLAKE2b-256 checksum How to use checksums |
6131b43e60ddc2b269caf87d63f3ce6c9a1e9520337e984dcf7bbf2eff3f12f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / boundinstance-0.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | boundinstance-0.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 78.3 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
d2f6712d23804413892e008c925c88aa1aa71973305eb5be831e04a83a015944
|
|
BLAKE2b-256 checksum How to use checksums |
52600928478b0749e3021af5f5d0ee49bd07c05dd084209ae06d0e2716c42dc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / boundinstance-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | boundinstance-0.1.1-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 60.3 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7b304b93a4d98ddde3455705f7b4c2dd04a2a98c3657e79a4ff76f4201efc16e
|
|
BLAKE2b-256 checksum How to use checksums |
6acda1e9f65bc2950a0a3e057a2b934bfc211aa4d094412652b525708c3190b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / boundinstance-0.1.1-cp312-cp312-macosx_10_13_x86_64.whl
| Download URL | boundinstance-0.1.1-cp312-cp312-macosx_10_13_x86_64.whl |
|---|---|
| Size | 62.9 kB |
| Tags | CPython 3.12 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
83b0ba9e15378398ef9b5848a2d6cc554a4c10885ae3eb3bed16b3b567b38f27
|
|
BLAKE2b-256 checksum How to use checksums |
7358505fb55ff15df82c02f5d1d5c2384d799f846629dd37b3a9ca14e271a23c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logSecurity for boundinstance 0.1.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.
Full provenance
All 13 files in this release have been uploaded with provenance metadata.
Attestation for boundinstance-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logA 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.