pygraphviz 2.0__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. pygraphviz/__init__.py +61 -0
  2. pygraphviz/_graphviz.cp313-win_amd64.pyd +0 -0
  3. pygraphviz/agraph.py +2073 -0
  4. pygraphviz/bin/acyclic.exe +0 -0
  5. pygraphviz/bin/ccomps.exe +0 -0
  6. pygraphviz/bin/gc.exe +0 -0
  7. pygraphviz/bin/gvcolor.exe +0 -0
  8. pygraphviz/bin/gvpr.exe +0 -0
  9. pygraphviz/bin/sccmap.exe +0 -0
  10. pygraphviz/bin/tred.exe +0 -0
  11. pygraphviz/bin/unflatten.exe +0 -0
  12. pygraphviz/graphviz.i +437 -0
  13. pygraphviz/graphviz.py +275 -0
  14. pygraphviz/scraper.py +86 -0
  15. pygraphviz/testing.py +19 -0
  16. pygraphviz/tests/__init__.py +0 -0
  17. pygraphviz/tests/test_attribute_defaults.py +85 -0
  18. pygraphviz/tests/test_clear.py +31 -0
  19. pygraphviz/tests/test_close.py +14 -0
  20. pygraphviz/tests/test_drawing.py +211 -0
  21. pygraphviz/tests/test_edge_attributes.py +68 -0
  22. pygraphviz/tests/test_graph.py +592 -0
  23. pygraphviz/tests/test_html.py +72 -0
  24. pygraphviz/tests/test_layout.py +111 -0
  25. pygraphviz/tests/test_node_attributes.py +49 -0
  26. pygraphviz/tests/test_pygraphviz.py +13 -0
  27. pygraphviz/tests/test_readwrite.py +57 -0
  28. pygraphviz/tests/test_repr_mimebundle.py +25 -0
  29. pygraphviz/tests/test_scraper.py +36 -0
  30. pygraphviz/tests/test_string.py +39 -0
  31. pygraphviz/tests/test_subgraph.py +36 -0
  32. pygraphviz/tests/test_unicode.py +41 -0
  33. pygraphviz-2.0.dist-info/DELVEWHEEL +2 -0
  34. pygraphviz-2.0.dist-info/METADATA +95 -0
  35. pygraphviz-2.0.dist-info/RECORD +81 -0
  36. pygraphviz-2.0.dist-info/WHEEL +5 -0
  37. pygraphviz-2.0.dist-info/licenses/LICENSE +37 -0
  38. pygraphviz-2.0.dist-info/licenses/LICENSE.graphviz +277 -0
  39. pygraphviz-2.0.dist-info/top_level.txt +1 -0
  40. pygraphviz.libs/brotlicommon-018506599694ec21655b0f4bccccfa68.dll +0 -0
  41. pygraphviz.libs/brotlidec-3e285b3936ad2f7e652ec7bd716a4a46.dll +0 -0
  42. pygraphviz.libs/bz2-85e3be4d6bcbd3685b1a5362100ce8f9.dll +0 -0
  43. pygraphviz.libs/cairo-2-2c9dddddfb886e18f665ee964456e29d.dll +0 -0
  44. pygraphviz.libs/cdt-cf9100ed69422f6f2c751e0c6414ff1b.dll +0 -0
  45. pygraphviz.libs/cgraph-7188e09afeb3afe19893eaef184e8430.dll +0 -0
  46. pygraphviz.libs/ffi-8-cedbe010e81fad99d5406564dbdfeaf7.dll +0 -0
  47. pygraphviz.libs/fontconfig-1-4ea0f71f6552f0681eab50382f675db0.dll +0 -0
  48. pygraphviz.libs/freetype-8b252b4b7611fcdf394763486dbc93e9.dll +0 -0
  49. pygraphviz.libs/fribidi-0-35a20bac00cea0cbbace8538b63a2b1a.dll +0 -0
  50. pygraphviz.libs/gio-2.0-0-d14e763563385969ee3a4294e4c53858.dll +0 -0
  51. pygraphviz.libs/glib-2.0-0-b772fc55df6c8c440de554a4c3de9960.dll +0 -0
  52. pygraphviz.libs/gmodule-2.0-0-313a1c14d0c3f16bb1dc9b4b77923c3b.dll +0 -0
  53. pygraphviz.libs/gobject-2.0-0-153b61d3f8a61589533e2f3fe72fcc44.dll +0 -0
  54. pygraphviz.libs/gts-f9d9c0fda2bc1c5a4b524afeb70d2c3c.dll +0 -0
  55. pygraphviz.libs/gvc-b7fdaeb5b24a19d48c27bedaafefe97d.dll +0 -0
  56. pygraphviz.libs/gvplugin_core-b9531af4554ddc0aea218da0d8541992.dll +0 -0
  57. pygraphviz.libs/gvplugin_dot_layout-490d1145a51b0d89a8cf51b5b81a3aa3.dll +0 -0
  58. pygraphviz.libs/gvplugin_gd-9b1f54091b08594a410dce8562788974.dll +0 -0
  59. pygraphviz.libs/gvplugin_neato_layout-9300a3db895efecc0a90dd19872e8308.dll +0 -0
  60. pygraphviz.libs/gvplugin_pango-bd40b073ae77e1f3f931b3f27f77bbc6.dll +0 -0
  61. pygraphviz.libs/harfbuzz-afd797b09d7873c39681bf90b7608628.dll +0 -0
  62. pygraphviz.libs/iconv-2-8d23d9e0dd3d61782bf31c44e79ee05f.dll +0 -0
  63. pygraphviz.libs/intl-8-b7fa282d58ff7e6e50457f13b1eb4be4.dll +0 -0
  64. pygraphviz.libs/jpeg62-58937f4ada7ec4f53276a5a13082635d.dll +0 -0
  65. pygraphviz.libs/libexpat-6fd868a689053e7f5944c30f30f5b80a.dll +0 -0
  66. pygraphviz.libs/libgd-7371ee558085b2bf96ec040806d30eba.dll +0 -0
  67. pygraphviz.libs/liblzma-6d56c01d45a625832640ba567e3baa52.dll +0 -0
  68. pygraphviz.libs/libpng16-7c2f2a91514938d7b76757e895421ef0.dll +0 -0
  69. pygraphviz.libs/libsharpyuv-6bf899f1d9599100b216815b5479b803.dll +0 -0
  70. pygraphviz.libs/libwebp-09d745b4ff3e504c09078981397dbf17.dll +0 -0
  71. pygraphviz.libs/msvcp140-0f885b509a685d2bbfa652fed26b5fb3.dll +0 -0
  72. pygraphviz.libs/pango-1.0-0-7f849d3627add8cf616c6428534b2ace.dll +0 -0
  73. pygraphviz.libs/pangocairo-1.0-0-075b7c975f703cea30e89cc981492e29.dll +0 -0
  74. pygraphviz.libs/pangoft2-1.0-0-68d7cda2090e561f569c393b2562e7ee.dll +0 -0
  75. pygraphviz.libs/pangowin32-1.0-0-7c9091de9bf469b0e9ab38195ee52385.dll +0 -0
  76. pygraphviz.libs/pathplan-e92cc18d9fd0efa0aef97b547ffdd989.dll +0 -0
  77. pygraphviz.libs/pcre2-8-e0bef40100211a93a778199446575b6f.dll +0 -0
  78. pygraphviz.libs/pixman-1-0-feba9b0629fc454d9d9e1addcc2909e7.dll +0 -0
  79. pygraphviz.libs/tiff-118e558961e57700382979b9de094a56.dll +0 -0
  80. pygraphviz.libs/xdot-2454592b3786b00f665cc5c30e6e6cbb.dll +0 -0
  81. pygraphviz.libs/zlib1-dbd7c2383f2ad1562a16b899443e68ed.dll +0 -0
pygraphviz/__init__.py ADDED
@@ -0,0 +1,61 @@
1
+ """
2
+ PyGraphviz
3
+ ==========
4
+
5
+ A Python wrapper for the graphviz Agraph data structure.
6
+
7
+ See https://pygraphviz.github.io for complete documentation.
8
+ See pygraphviz.AGraph for detailed documentation.
9
+ """
10
+
11
+
12
+ # start delvewheel patch
13
+ def _delvewheel_patch_1_13_0():
14
+ import os
15
+ if os.path.isdir(libs_dir := os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'pygraphviz.libs'))):
16
+ os.add_dll_directory(libs_dir)
17
+
18
+
19
+ _delvewheel_patch_1_13_0()
20
+ del _delvewheel_patch_1_13_0
21
+ # end delvewheel patch
22
+
23
+ import sys
24
+
25
+ # https://docs.python.org/3/whatsnew/3.8.html#bpo-36085-whatsnew
26
+ if sys.version_info >= (3, 8, 0) and sys.platform == "win32":
27
+ import os
28
+
29
+ # Wheel install: delvewheel places DLLs in pygraphviz.libs/
30
+ _libs_dir = os.path.join(
31
+ os.path.dirname(os.path.dirname(__file__)), "pygraphviz.libs"
32
+ )
33
+ if os.path.isdir(_libs_dir):
34
+ os.add_dll_directory(_libs_dir)
35
+ # Dev install: find graphviz on PATH
36
+ for path in os.environ.get("PATH", "").split(os.pathsep):
37
+ if "graphviz" in path.lower() and os.path.exists(path):
38
+ os.add_dll_directory(path)
39
+
40
+
41
+ from ._graphviz import (
42
+ GRAPHVIZ_MAJOR_VERSION,
43
+ GRAPHVIZ_MINOR_VERSION,
44
+ GRAPHVIZ_PATCH_VERSION,
45
+ )
46
+
47
+ __version__ = "2.0"
48
+ __graphviz_version__ = (
49
+ f"{GRAPHVIZ_MAJOR_VERSION}.{GRAPHVIZ_MINOR_VERSION}.{GRAPHVIZ_PATCH_VERSION}"
50
+ )
51
+
52
+ from .agraph import AGraph, Attribute, DotError, Edge, ItemAttribute, Node
53
+
54
+ __all__ = ["AGraph", "Attribute", "DotError", "Edge", "ItemAttribute", "Node"]
55
+
56
+ from . import testing
57
+
58
+ # Per contract with Sphinx-Gallery, this method must be available at top level
59
+ from pygraphviz.scraper import _get_sg_image_scraper
60
+
61
+ del sys
Binary file