{ "info": { "author": "Laurent Champagnac", "author_email": "champagnac.laurent@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Other Environment", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Topic :: Software Development :: Libraries" ], "description": "pysolbase\n============\n\nWelcome to pysol\n\nCopyright (C) 2013/2017 Laurent Labatut / Laurent Champagnac\n\npysolbase is a set of python helpers to ease development.\n\nIt is gevent (co-routines) based.\n\nUsage\n===============\n\nEngage gevent monkey patching and setup default logger configuration:\n\n`SolBase.voodoo_init()`\n\nInitialize logging system (without engaging gevent) with default configuration (ie console logs - there is support for syslog and file logs).\n\n`SolBase.logging_init(\"INFO\")`\n\nRe-initialize logging system (without engaging gevent):\n\n`SolBase.logging_init(\"DEBUG\", True)`\n\nMillis helpers:\n\n```\nms = SolBase.mscurrent()\ndo_something()\nms_elapsed = SolBase.msdiff(ms)\n```\n\nDate helpers\n\n```\ndt = SolBase.datecurrent()\ndo_something()\nms_elapsed = SolBase.datediff(dt)\n```\n\nBinary and unicode helpers\n\n```\nbin_buf = SolBase.unicode_to_binary('This is my text buffer', encoding='utf-8')\nunicode_string = SolBase.binary_to_unicode(bin_buf, encoding='utf-8')\n```\n\nFile helpers\n\n```\nFileUtility.append_text_to_file('/tmp/test.txt', 'This is my text buffer', 'utf-8')\nbin_buf = FileUtility.file_to_binary('/tmp/test.txt')\nunicode_string = FileUtility.file_to_text('/tmp/test.txt', 'utf-8')\n```\n\nException helper\n\n```\ntry:\n a = None\n b = a + 1\nexcept Exception as e:\n logger.warn(\"Ex=%s\", SolBase.extostr(e))\n```\n\n\nSource code\n===============\n\n- We are pep8 compliant (as far as we can, with some exemptions)\n- We use a right margin of 360 characters (please don't talk me about 80 chars)\n- All unittest files must begin with `test_` or `Test`, should implement setUp and tearDown methods\n- All tests must adapt to any running directory\n- The whole project is backed by gevent (http://www.gevent.org/)\n- We use docstring (:return, :rtype, :param, :type etc..), they are mandatory\n- We use PyCharm \"noinspection\", feel free to use them\n\nRequirements\n===============\n\n- Debian 8 Jessie or greater, x64, Python 2.7\n\nUnittests\n===============\n\nTo run unittests, you will need:\n\n- nothing special except python and dependencies requirements.\n\nLicense\n===============\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://knock.center", "keywords": "", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "pysolbase", "package_url": "https://pypi.org/project/pysolbase/", "platform": "", "project_url": "https://pypi.org/project/pysolbase/", "project_urls": { "Homepage": "https://knock.center" }, "release_url": "https://pypi.org/project/pysolbase/1.1.3/", "requires_dist": null, "requires_python": "", "summary": "Set of python helpers to ease development", "version": "1.1.3" }, "last_serial": 5994027, "releases": { "1.0.2": [ { "comment_text": "", "digests": { "md5": "1af5615c1ec534c9061487fff6588336", "sha256": "a6fcddd14c9da69c4dfe188b12869ad152d8ed787ce471d45592428a647e561a" }, "downloads": -1, "filename": "pysolbase-1.0.2.tar.gz", "has_sig": false, "md5_digest": "1af5615c1ec534c9061487fff6588336", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24928, "upload_time": "2017-09-17T18:49:10", "url": "https://files.pythonhosted.org/packages/c9/3f/c0b52a2659a14e4afb5beb9d4f467f97e92c159b1d8c12946ac6cb573922/pysolbase-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "f66b23f4685acacca81b393916c54561", "sha256": "97842a3e9eae4f81df17bcf2d271c8571363979435c4cd79a786bbeebb06415e" }, "downloads": -1, "filename": "pysolbase-1.0.3.tar.gz", "has_sig": false, "md5_digest": "f66b23f4685acacca81b393916c54561", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25127, "upload_time": "2017-10-12T15:52:04", "url": "https://files.pythonhosted.org/packages/0c/7a/ddc0e7cdea6e00830d41b4c1b806d8a7790c2cbb49dd274e22911a247620/pysolbase-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "f33fa425dca755f010cd0497cdc7f1f6", "sha256": "3d9c54e850eed4a0a0f5ff6763b1701a1209510afbc792ba8bb0a3cd5cf69f57" }, "downloads": -1, "filename": "pysolbase-1.0.4.tar.gz", "has_sig": false, "md5_digest": "f33fa425dca755f010cd0497cdc7f1f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25169, "upload_time": "2018-04-24T06:38:54", "url": "https://files.pythonhosted.org/packages/13/26/cbbb70adde0e706857fe9e18ede6912742e3e75060446f4b76f8a12fafd3/pysolbase-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "108c6423e88c7833e3febc95f004de37", "sha256": "c20928c084cff2582a8a85d80866dea213018e97d74acb5a66f3cd19ee692aae" }, "downloads": -1, "filename": "pysolbase-1.0.5.tar.gz", "has_sig": false, "md5_digest": "108c6423e88c7833e3febc95f004de37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25196, "upload_time": "2018-05-16T09:09:19", "url": "https://files.pythonhosted.org/packages/cb/3a/f6d41bcb443eed2a26c2009ea80028e3111e1102a948446651564657c9ae/pysolbase-1.0.5.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "637b915ada85636743d799378736b150", "sha256": "c1a3043e469cedffa706b67ea07f8e58f20af27f57a26f1955459625814cef2f" }, "downloads": -1, "filename": "pysolbase-1.1.0.tar.gz", "has_sig": false, "md5_digest": "637b915ada85636743d799378736b150", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26785, "upload_time": "2018-05-30T21:07:46", "url": "https://files.pythonhosted.org/packages/c5/e7/0ee05113b1208ea576cd100a2e267dec489fdf07f777a9afcfde7d0a36d5/pysolbase-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "d233bc470be05b7fcaa0a12cd819fc3e", "sha256": "aa9fe62ec11774b641078174119fee1971b1a1703d7bdace4c77779d57f32a5b" }, "downloads": -1, "filename": "pysolbase-1.1.1.tar.gz", "has_sig": false, "md5_digest": "d233bc470be05b7fcaa0a12cd819fc3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26805, "upload_time": "2018-06-29T09:18:05", "url": "https://files.pythonhosted.org/packages/a4/8f/4b85608a896f8a5d0f6829b33aa61e8348573e74352a50450619d0e362a1/pysolbase-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "2973b9b0eb83c2101ea6623005d16382", "sha256": "bec436faeaf44c80af838c5cf88bc836b691ef3fc2199ffe57916281aa0d0e8e" }, "downloads": -1, "filename": "pysolbase-1.1.2.tar.gz", "has_sig": false, "md5_digest": "2973b9b0eb83c2101ea6623005d16382", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24545, "upload_time": "2019-09-30T13:27:11", "url": "https://files.pythonhosted.org/packages/8f/86/6d43e186ba4da2a2f9ede9498cb3d15fa6d68ae88a2ff90fa2c925d9c708/pysolbase-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "70ce58f45ec966855fd0215d960cecf2", "sha256": "0251ee3e16aa8ba9d371df92975d99f9f35ef8c00ff36bdd3716ac9b6114bb9c" }, "downloads": -1, "filename": "pysolbase-1.1.3.tar.gz", "has_sig": false, "md5_digest": "70ce58f45ec966855fd0215d960cecf2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24580, "upload_time": "2019-10-18T06:29:19", "url": "https://files.pythonhosted.org/packages/0c/e1/c864ba098d42dba9c483108e68e6458b07b3ed2525b46e564149d0c5feec/pysolbase-1.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "70ce58f45ec966855fd0215d960cecf2", "sha256": "0251ee3e16aa8ba9d371df92975d99f9f35ef8c00ff36bdd3716ac9b6114bb9c" }, "downloads": -1, "filename": "pysolbase-1.1.3.tar.gz", "has_sig": false, "md5_digest": "70ce58f45ec966855fd0215d960cecf2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24580, "upload_time": "2019-10-18T06:29:19", "url": "https://files.pythonhosted.org/packages/0c/e1/c864ba098d42dba9c483108e68e6458b07b3ed2525b46e564149d0c5feec/pysolbase-1.1.3.tar.gz" } ] }