Stmdency
stmdency, statement dependency is a Python library for extracting dependencies between statements in a Python program.
Installation
python -m pip install --upgrade stmdency
Usage
Let's say we have a Python script named test.py with the following content:
a = 1
b = 2
def bar():
b = a + 3
print(a, b)
def foo():
bar(b)
We want to extract function foo and all its dependencies. stmdency can do this for us:
from stmdency.extractor import Extractor
with open("test.py", "r") as f:
source = f.read()
extractor = Extractor(source)
print(extractor.get_code("foo"))
The output will be:
a = 1
def bar():
b = a + 3
print(a, b)
b = 2
def foo():
bar(b)
Documentation
The documentation host read the doc and is available at https://stmdency.readthedocs.io.
Who is using stmdency?
- dolphinscheduler-sdk-python: Python API to manage Dolphinscheduler workflow by code, aka PyDolphinscheduler.
Metadata
Release files for stmdency 0.0.5
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 |
|---|---|---|---|---|
| stmdency-0.0.5.tar.gz | 9.0 kB | Without provenance | Details for stmdency-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stmdency-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for stmdency-0.0.5-py3-none-any.whl |
Total release size: 17.5 kB
Release files / stmdency-0.0.5.tar.gz
| Download URL | stmdency-0.0.5.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c938f391953ed4df6def0a136b6079c19cd5d0d0aa488d9f2d5efcfcd1b2e97
|
|
BLAKE2b-256 checksum How to use checksums |
7c635e0c0a0e8f1a3c31152fbaa5f0f251978f0345c2ec274541412629832235
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / stmdency-0.0.5-py3-none-any.whl
| Download URL | stmdency-0.0.5-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
11ed3d627aab9e8a84d6f574b2b5b7f8a9192ffd1a8bc30714717bcd8d8d0a58
|
|
BLAKE2b-256 checksum How to use checksums |
4fef9d44b0c5ded4b1252c24b641fd6f2219eb62e4e89a093b1a14fe906f13bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for stmdency 0.0.5
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.