{ "info": { "author": "Thomas Mansencal", "author_email": "thomas.mansencal@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Topic :: Utilities" ], "description": "Foundations\n===========\n\n.. image:: https://secure.travis-ci.org/KelSolaar/Foundations.png?branch=master\n.. image:: https://gemnasium.com/KelSolaar/Foundations.png \n\nIntroduction\n------------\n\n**Foundations** is the core package of `Oncilla `_, `Color `_, `Manager `_, `Umbra `_, `sIBL_GUI `_, `sIBL_Reporter `_.It provides modules defining various utilities objects used in those packages.\n\nInstallation\n------------\n\nThe following dependencies are needed:\n\n- **Python 2.6.7** or **Python 2.7.3**: http://www.python.org/\n- **PyQt**: http://www.riverbankcomputing.co.uk/\n\nTo install **Foundations** from the `Python Package Index `_ you can issue this command in a shell::\n\n\tpip install Foundations\n\nor this alternative command::\n\n\teasy_install Foundations\n\nYou can also directly install from `Github `_ source repository::\n\n\tgit clone git://github.com/KelSolaar/Foundations.git\n\tcd Foundations\n\tpython setup.py install\n\nIf you want to build the documentation you will also need:\n\n- **Tidy** http://tidy.sourceforge.net/\n\nUsage\n-----\n\nGiven the large spectrum of the objects defined in **Foundations** package, please refer to `Foundations - Api `_ for precise usage examples about each modules. Here are listed a few non exhaustive usage examples.\n\n- **foundations.dataStructures.Structure**::\n\n\n\t>>> person = Structure(firstName=\"Doe\", lastName=\"John\", gender=\"male\")\n\t>>> person.firstName\n\t'Doe'\n\t>>> person.keys()\n\t['gender', 'firstName', 'lastName']\n\t>>> person[\"gender\"]\n\t'male'\n\t>>> del(person[\"gender\"])\n\t>>> person[\"gender\"]\n\tTraceback (most recent call last):\n\t File \"\", line 1, in \n\tKeyError: 'gender'\n\t>>> person.gender\n\tTraceback (most recent call last):\n\t File \"\", line 1, in \n\tAttributeError: 'Structure' object has no attribute 'gender'\n\n- **foundations.dataStructures.Lookup**::\n\n\n\t>>> person = Lookup(firstName=\"Doe\", lastName=\"John\", gender=\"male\")\n\t>>> person.getFirstKeyFromValue(\"Doe\")\n\t'firstName'\n\t>>> persons = foundations.foundations.dataStructures.Lookup(John=\"Doe\", Jane=\"Doe\", Luke=\"Skywalker\")\n\t>>> persons.getKeysFromValue(\"Doe\")\n\t['Jane', 'John']\n\n- **foundations.environment.Environment**::\n\n\n\t>>> environment = Environment(JOHN=\"DOE\", DOE=\"JOHN\")\n\t>>> environment.setValues()\n\tTrue\n\t>>> import os\n\t>>> os.environ[\"JOHN\"]\n\t'DOE'\n\t>>> os.environ[\"DOE\"]\n\t'JOHN'\n\n- **foundations.strings.getNiceName**::\n\n\n\t>>> getNiceName(\"getMeANiceName\")\n\t'Get Me A Nice Name'\n\t>>> getNiceName(\"__getMeANiceName\")\n\t'__Get Me A Nice Name'\n\n- **foundations.strings.getSplitextBasename**::\n\n\n\t>>> getSplitextBasename(\"/Users/JohnDoe/Documents/Test.txt\")\n\t'Test'\n\n- **foundations.strings.getCommonPathsAncestor**::\n\n\n\t>>> getCommonPathsAncestor(\"/Users/JohnDoe/Documents\", \"/Users/JohnDoe/Documents/Test.txt\")\n\t'/Users/JohnDoe/Documents'\n\n- **foundations.walkers.filesWalker**::\n\n\n\t>>> for file in filesWalker(\"./foundations/tests/testsFoundations/resources/standard/level_0\"):\n\t... print(file)\n\t...\n\t./foundations/tests/testsFoundations/resources/standard/level_0/level_1/level_2/standard.sIBLT\n\t./foundations/tests/testsFoundations/resources/standard/level_0/level_1/loremIpsum.txt\n\t./foundations/tests/testsFoundations/resources/standard/level_0/level_1/standard.rc\n\t./foundations/tests/testsFoundations/resources/standard/level_0/standard.ibl\t\t\n\t>>> for file in filesWalker(\"./foundations/tests/testsFoundations/resources/standard/level_0\", (\"\\.sIBLT\",)):\n\t... print(file)\n\t...\n\t./foundations/tests/testsFoundations/resources/standard/level_0/level_1/level_2/standard.sIBLT\n\nAbout\n-----\n\n| **Foundations** by Thomas Mansencal \u2013 2008 - 2014\n| Copyright \u00a9 2008 - 2014 \u2013 Thomas Mansencal \u2013 `thomas.mansencal@gmail.com `_\n| This software is released under terms of GNU GPL V3 license: http://www.gnu.org/licenses/\n| `http://www.thomasmansencal.com/ `_", "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/KelSolaar/Foundations", "keywords": null, "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "Foundations", "package_url": "https://pypi.org/project/Foundations/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Foundations/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/KelSolaar/Foundations" }, "release_url": "https://pypi.org/project/Foundations/2.1.0/", "requires_dist": null, "requires_python": null, "summary": "Foundations is the core package of Oncilla, Manager, Umbra, sIBL_GUI and sIBL_Reporter.", "version": "2.1.0" }, "last_serial": 1050806, "releases": { "2.0.2": [ { "comment_text": "", "digests": { "md5": "e8cfe122e3e9679acb3571e7f296a3e8", "sha256": "3dedb74a902d9d3748cbb84d6185d3c7aefffbc7c9f77ebc1fb94f0545414de3" }, "downloads": -1, "filename": "Foundations-2.0.2.tar.gz", "has_sig": false, "md5_digest": "e8cfe122e3e9679acb3571e7f296a3e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6868627, "upload_time": "2012-09-16T14:27:20", "url": "https://files.pythonhosted.org/packages/a5/47/b3cdc68168b861345e59fd3092132f435b00ffcc99dee69d838d41f6150d/Foundations-2.0.2.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "50e4343a5f040aca845944db45f02042", "sha256": "7b589793c50b48ec509ba00b83bb9e9bbfb16cd3687eeb1348625993687c2af7" }, "downloads": -1, "filename": "Foundations-2.0.3.tar.gz", "has_sig": false, "md5_digest": "50e4343a5f040aca845944db45f02042", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6869658, "upload_time": "2012-09-17T20:45:16", "url": "https://files.pythonhosted.org/packages/17/58/905bb69c7ca5984553f52dedefabcfaae0513ab8c027233fdbc4e560e0ae/Foundations-2.0.3.tar.gz" } ], "2.0.4": [ { "comment_text": "", "digests": { "md5": "cd5dd43bd5e6a46448f1004c0a0669ce", "sha256": "1a4420be04491d25893a58e131532787204e9a2f5455805dc01dfc819598f0a4" }, "downloads": -1, "filename": "Foundations-2.0.4.tar.gz", "has_sig": false, "md5_digest": "cd5dd43bd5e6a46448f1004c0a0669ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6961068, "upload_time": "2012-11-26T14:43:14", "url": "https://files.pythonhosted.org/packages/61/e1/b00e5cdcabedb6a5a55d405a654868e8673093c7164437d5c257feb38df9/Foundations-2.0.4.tar.gz" } ], "2.0.5": [ { "comment_text": "", "digests": { "md5": "6834e6e0971ef6ba4bca13cd41700a65", "sha256": "427e5d8b2d88c7714f6cbf743f180fed7d9053b90dfa1842639e45c60644dc92" }, "downloads": -1, "filename": "Foundations-2.0.5.tar.gz", "has_sig": false, "md5_digest": "6834e6e0971ef6ba4bca13cd41700a65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6962229, "upload_time": "2012-11-28T21:35:03", "url": "https://files.pythonhosted.org/packages/34/06/4cbf54912478ac994a49582a55ff519c73d4e9a1620e42162bc54be20eba/Foundations-2.0.5.tar.gz" } ], "2.0.6": [ { "comment_text": "", "digests": { "md5": "7f96d6790bb5126036dbeed4a349814a", "sha256": "016a80dac1242117920025f2a2cf9db4982f4cbe074ab14fa8860a003eb2cd2d" }, "downloads": -1, "filename": "Foundations-2.0.6.tar.gz", "has_sig": false, "md5_digest": "7f96d6790bb5126036dbeed4a349814a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6968372, "upload_time": "2012-12-02T12:14:00", "url": "https://files.pythonhosted.org/packages/c3/80/fa743565d4734f91c29ad82aa621f172b461e06baa153887463eebe05628/Foundations-2.0.6.tar.gz" } ], "2.0.7": [ { "comment_text": "", "digests": { "md5": "a9ab7a455c03ac373d836c93deaa9461", "sha256": "1ce6b1a72556e164741f9f5f654d229480462ff8807a2507443bab314b692f65" }, "downloads": -1, "filename": "Foundations-2.0.7.tar.gz", "has_sig": false, "md5_digest": "a9ab7a455c03ac373d836c93deaa9461", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6975410, "upload_time": "2013-01-27T14:41:38", "url": "https://files.pythonhosted.org/packages/76/6f/ccd96e185a3f78aba7d29554799c45200deab302f59eebf561ef7777899f/Foundations-2.0.7.tar.gz" } ], "2.0.8": [ { "comment_text": "", "digests": { "md5": "39c9760dbea4db73ee833220da076a04", "sha256": "385c3feb2db482dab5f0e30174278874d671c34bf499e6ea14e7e63ccd943e37" }, "downloads": -1, "filename": "Foundations-2.0.8.tar.gz", "has_sig": false, "md5_digest": "39c9760dbea4db73ee833220da076a04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6982630, "upload_time": "2013-04-21T06:58:42", "url": "https://files.pythonhosted.org/packages/0a/af/d3009507c8c61207ece7406976e1363b53c7d640e64bb74030f4191f3f1e/Foundations-2.0.8.tar.gz" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "4fc3a3b5c1899e70fae7002214b106cc", "sha256": "f2ca3c32b161949d17b4139b5d4b4f0044b7f3a7eed64f1f322bd5e5c9a913b7" }, "downloads": -1, "filename": "Foundations-2.1.0.tar.gz", "has_sig": false, "md5_digest": "4fc3a3b5c1899e70fae7002214b106cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7301848, "upload_time": "2014-04-03T22:10:33", "url": "https://files.pythonhosted.org/packages/d4/c4/341b76267c3969b46170f715524259c1c170992253cb7c425d746cb2e322/Foundations-2.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4fc3a3b5c1899e70fae7002214b106cc", "sha256": "f2ca3c32b161949d17b4139b5d4b4f0044b7f3a7eed64f1f322bd5e5c9a913b7" }, "downloads": -1, "filename": "Foundations-2.1.0.tar.gz", "has_sig": false, "md5_digest": "4fc3a3b5c1899e70fae7002214b106cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7301848, "upload_time": "2014-04-03T22:10:33", "url": "https://files.pythonhosted.org/packages/d4/c4/341b76267c3969b46170f715524259c1c170992253cb7c425d746cb2e322/Foundations-2.1.0.tar.gz" } ] }