{ "info": { "author": "Alessandro Molina", "author_email": "alessandro.molina@axant.it", "bugtrack_url": null, "classifiers": [], "description": "About gdflib\n-------------------------\n\ngdflib is a Python package made to dump GDF graph files.\n\nInstalling\n-------------------------------\n\ngdflib can be installed from pypi::\n\n easy_install gdflib\n\nor::\n\n pip install gdflib\n\nshould just work for most of the users\n\nUsage\n--------------------------------\n\nMost simple example::\n\n >>> from gdflib import GdfEntries, Node\n >>>\n >>> entities = GdfEntries()\n >>> entities.add_node(Node(name='node1', label='This is the first node'))\n >>> entities.add_node(Node(name='node2', label='This is the second node'))\n >>> entities.link('node1', 'node2')\n >>> print entities.dumps()\n nodedef>name , style INT, width DOUBLE, color VARCHAR, image VARCHAR, label VARCHAR, height DOUBLE, visible BOOLEAN, labelcolor VARCHAR, y DOUBLE, x DOUBLE, strokecolor VARCHAR, fixed BOOLEAN, labelvisible BOOLEAN\n node1,1,4.000000,cornflowerblue,,'This is the first node',4.000000,true,cornflowerblue,,,cadetblue,false,false\n node2,1,4.000000,cornflowerblue,,'This is the second node',4.000000,true,cornflowerblue,,,cadetblue,false,false\n edgedef>node1 , node2 , directed BOOLEAN, color VARCHAR, weight DOUBLE, width DOUBLE, label VARCHAR, visible BOOLEAN, labelcolor VARCHAR, labelvisible BOOLEAN\n node1,node2,true,dandelion,1.000000,3.000000,'1',true,dandelion,false\n\nBy default all nodes implement the standard properties defined for GDF, unspecified properties will get\nthe default value.\nCustom `nodes` can be defined through the `Declarative` interface::\n\n >>> from gdflib import String, Double\n >>> from gdflib import GdfEntries, Node\n >>>\n >>> class Product(Node):\n ... company = String(default='Unknown Company')\n ... price = Double(required=True)\n ...\n >>> entities = GdfEntries(Product)\n >>> entities.add_node(Product(name='node1', company='Custom Company', price=33.10))\n >>> entities.add_node(Product(name='node2', label='Low Cost Product', price=18.21))\n >>> entities.link('node1', 'node2')\n >>> entities.dumps()\n nodedef>name , style INT, width DOUBLE, color VARCHAR, image VARCHAR, label VARCHAR, height DOUBLE, visible BOOLEAN, labelcolor VARCHAR, y DOUBLE, x DOUBLE, strokecolor VARCHAR, fixed BOOLEAN, labelvisible BOOLEAN, company VARCHAR, price DOUBLE\n node1,1,4.000000,cornflowerblue,,'node1',4.000000,true,cornflowerblue,,,cadetblue,false,false,'Custom Company',33.100000\n node2,1,4.000000,cornflowerblue,,'Low Cost Product',4.000000,true,cornflowerblue,,,cadetblue,false,false,'Unknown Company',18.210000\n edgedef>node1 , node2 , directed BOOLEAN, color VARCHAR, weight DOUBLE, width DOUBLE, label VARCHAR, visible BOOLEAN, labelcolor VARCHAR, labelvisible BOOLEAN\n node1,node2,true,dandelion,1.000000,3.000000,'1',true,dandelion,false\n\ngdflib provides also support for custom `edges`, those can be defined like custom nodes\nby subclassing `Edge` and providing additional attributes. In such case instead of using\n`link` function to link two nodes, `add_edge` call should be uses.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/amol-/gdflib", "keywords": "", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "gdflib", "package_url": "https://pypi.org/project/gdflib/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/gdflib/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/amol-/gdflib" }, "release_url": "https://pypi.org/project/gdflib/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Library to save graph GDF files", "version": "0.0.1" }, "last_serial": 767209, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "32b1b74e208e2a828b9e1df2fea0b97c", "sha256": "231e297bd17ce2a162a9d31ce30883f8fa6dea1aafe55e57531cc1856c3158e7" }, "downloads": -1, "filename": "gdflib-0.0.1.tar.gz", "has_sig": false, "md5_digest": "32b1b74e208e2a828b9e1df2fea0b97c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4323, "upload_time": "2013-06-10T17:43:32", "url": "https://files.pythonhosted.org/packages/ff/af/b69145b7a26ef7da69af79d4f1fb0e4c48016970209be7b6272af62e29b8/gdflib-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "32b1b74e208e2a828b9e1df2fea0b97c", "sha256": "231e297bd17ce2a162a9d31ce30883f8fa6dea1aafe55e57531cc1856c3158e7" }, "downloads": -1, "filename": "gdflib-0.0.1.tar.gz", "has_sig": false, "md5_digest": "32b1b74e208e2a828b9e1df2fea0b97c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4323, "upload_time": "2013-06-10T17:43:32", "url": "https://files.pythonhosted.org/packages/ff/af/b69145b7a26ef7da69af79d4f1fb0e4c48016970209be7b6272af62e29b8/gdflib-0.0.1.tar.gz" } ] }