stackclimber
stackclimber allows your function to find the module or script name of its caller, or of its caller’s caller.
from stackclimber import stackclimber
assert stackclimber() == __name__
assert stackclimber() == stackclimber(0)
With no arguments, it finds the current function’s module name. With 1, it finds that of its caller; with 2, that of its caller’s caller, and so forth.
This functionality can be used to implement “automatic” imports that use some information about the module into which they are being imported by overriding a module’s __getattr__.
Metadata
Release files for stackclimber 0.99
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 |
|---|---|---|---|---|
| stackclimber-0.99.tar.gz | 1.9 kB | Without provenance | Details for stackclimber-0.99.tar.gz |
Release files / stackclimber-0.99.tar.gz
| Download URL | stackclimber-0.99.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fd97bd67c927d055d5b43bfcb0ed1a7c7c7ab084099aaf68452a0c881173bc9
|
|
BLAKE2b-256 checksum How to use checksums |
54367fae81f35794423f82eaee6e206b35b6d10cf070e351661e9eb1077dc53a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for stackclimber 0.99
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.