Skip to main content
$ moduelgraph 02dump_json.py
{
   "age": 20,
   "name": "foo"
}
digraph g {
    g0 [label="json"]
    g1 [label="json.encoder"]
    g2 [label="json.decoder"]
    g3 [label="argparse"]
    g4 [label="copy"]
    g5 [label="gettext"]
    g6 [label="textwrap"]
    g7 [label="json.scanner"]
    g8 [label="02dump_json"]
    g9 [label="locale"]
    g10 [label="struct"]
    g0 -> g1
    g0 -> g2
    g3 -> g4
    g3 -> g5
    g3 -> g6
    g2 -> g7
    g8 -> g0
    g8 -> g3
    g5 -> g9
    g5 -> g10
}
$ moduelgraph 02dump_json.py --outfile=02dump_json.dot
{
  "age": 20,
  "name": "foo"
}
write 02dump_json.dot...
$ moduelgraph 02dump_json.py --driver=ToplevelOnlyDriver --outfile=02dump_json2.dot
{
  "age": 20,
  "name": "foo"
}
write 02dump_json2.dot...

02dump_json.py

import json
import sys
import argparse


def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("--name", default="foo")

    args = parser.parse_args()

    person = {"name": args.name, "age": 20}
    json.dump(person, sys.stdout, indent=2)


if __name__ == "__main__":
    main()
else:
    print("hmm")

02dump_json.svg 02dump_json2.svg

0.2.0

  • modulegraph, add –browse option

  • modulegraph, fix bug that modulegraph’s __file__ is used when calling as main

Metadata

Release files for moduleknife 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for moduleknife 0.2.1
File Interpreter ABI Platform Actions
moduleknife-0.2.1-py3-none-any.whl Python 3 none any Details for moduleknife-0.2.1-py3-none-any.whl

Release files / moduleknife-0.2.1-py3-none-any.whl

Download URL moduleknife-0.2.1-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d6698d73d14eb7845b98cf2d0e4dc108b64d5f90287bfa3b612e3e8df146775
BLAKE2b-256 checksum
How to use checksums
9a8884d547f37a13268bb9cc3541d7fc5518d302c56bd7d9375aaed0efacf728
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2

Security for moduleknife 0.2.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page