{ "info": { "author": "Belaid Arezqui", "author_email": "areski@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "============================\nDjango/Python Common Helpers\n============================\n\n\nSwitch2Bill-Common provide a set of helpers built by Star2Billing (http://www.star2billing.com)\nwhich are used in a subset of their open source projects.\n\n\nWhat can you find ?\n-------------------\n\nThis repository is full of goodies, some are useful snippets recompiled.\n\nIt contains the following helper mainly related to Django :\n\n1. Model : intermediate_model_base_class\n\n2. FilterPersistMiddleware\n\n3. Common functions :\n\n * ``get_unique_code`` - Generate unique code\n * ``pass_gen`` - Unique password generator\n * ``comp_month_range`` - Prepare month range list to compare with selected month\n * ``comp_day_range`` - Prepare day range list to compare with selected day\n * ``date_range`` - Get date list between two dates\n * ``validate_days`` - Validate no of days in given month and year\n * ``get_news`` - Get news from news url\n * ``only_one`` - Decorator for distributed task locking in celery\n * ``ceil_strdate`` - Convert a string date to either a start or end day date\n * ``percentage`` - Get percentage value\n * ``unset_session_var`` - Unset settion variable\n * ``getvar`` - Check field in POST/GET request and return field value. if there is value you can also save a session variable\n * ``word_capital`` - Capitalizes the first character of each word\n\n4. Common Template tags :\n\n * ``time_in_min`` - Convert value in min:sec or seconds format\n * ``conv_min`` - Convert value in min:sec format\n * ``month_name`` - Get month name from 1-12 int no\n * ``sort_link`` - Usage: {% sort_link \"link text\" \"field_name\" %} or {% sort_link \"link text\" \"field_name\" \"Visible name\" %}\n * ``get_fieldset``- Make group of fields for field-set\n Usage: {% get_fieldset field1,field2 as list_field from xyz_form %}\n * ``groupby_rows`` - Returns a list of n lists. Each sub-list is the same length\n * ``groupby_rows`` - Returns a list of lists where each sub-list has n items.\n * ``listsort`` - Perform sorting on template list\n * ``convert_to_int`` - Convert value to interger\n * ``wordcap`` - Capitalizes the first character of each words.\n * ``percentage_tag`` - get percentage value.\n\n\n5. build_test_suite_from : Returns a single or group of unittest test suite\n\n6. LanguageField - Field to language list\n\n7. AppLabelRenamer Class for django admin UI\n\n8. export_as_csv_action - Admin custom action which returns an export csv\n\n\nInstallation\n------------\n\n1. Install using the sources ::\n\n pip install -r requirements.txt\n python setup.py install\n\n\n2. Install with PIP ::\n\n python install switch2bill-common\n\n\nLicense\n-------\n\nMPL V2.0 License\nCopyright (C) 2011-2014 Star2Billing S.L.\n\nThis Source Code Form is subject to the terms of the Mozilla Public\nLicense, v. 2.0. If a copy of the MPL was not distributed with this file,\nYou can obtain one at http://mozilla.org/MPL/2.0/.\n\nThe Initial Developer is Arezqui Belaid ", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/Star2Billing/switch2bill-common", "keywords": null, "license": "MPL 2.0 License", "maintainer": null, "maintainer_email": null, "name": "switch2bill-common", "package_url": "https://pypi.org/project/switch2bill-common/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/switch2bill-common/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/Star2Billing/switch2bill-common" }, "release_url": "https://pypi.org/project/switch2bill-common/2.8.5/", "requires_dist": null, "requires_python": null, "summary": "Common Django/Python helpers for Star2Billing projects", "version": "2.8.5" }, "last_serial": 986025, "releases": { "2.1.0": [ { "comment_text": "", "digests": { "md5": "16cfb2fa185dc127e2b60fa41546d21b", "sha256": "3f0a9ea11803e14de9bc43e4658c94f09dc38c4a54375e113907542866c1c4c8" }, "downloads": -1, "filename": "switch2bill-common-2.1.0.tar.gz", "has_sig": false, "md5_digest": "16cfb2fa185dc127e2b60fa41546d21b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14884, "upload_time": "2012-10-04T15:02:48", "url": "https://files.pythonhosted.org/packages/f9/2e/371c2fd7a1227039a7a490ba3c300c5d7d2f4aef3a03ba9459cfb9809b52/switch2bill-common-2.1.0.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "a6e5c63b65e22e4080dbe687f8e33328", "sha256": "f9e3121253af0dfd97e01c12329bb471e772d9ec0fce41d8b1551834cc7d3b46" }, "downloads": -1, "filename": "switch2bill-common-2.1.1.tar.gz", "has_sig": false, "md5_digest": "a6e5c63b65e22e4080dbe687f8e33328", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20338, "upload_time": "2012-10-04T15:46:23", "url": "https://files.pythonhosted.org/packages/37/fa/1990432d46c00d30aa04955adff592ed5cfd1cec2c20988c50f1fb3e8f8c/switch2bill-common-2.1.1.tar.gz" } ], "2.1.2": [ { "comment_text": "", "digests": { "md5": "4189bd9d31b2ce967af1816a772d6445", "sha256": "6dbaeb4bf7a4e8504af1ad7976813b00696c62450c3d24d0db8a101ef1d91351" }, "downloads": -1, "filename": "switch2bill-common-2.1.2.tar.gz", "has_sig": false, "md5_digest": "4189bd9d31b2ce967af1816a772d6445", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20376, "upload_time": "2012-10-04T15:50:13", "url": "https://files.pythonhosted.org/packages/f2/92/eb95d61ad82dc3e66323a91d9a501bb5a30f4f336aa812ec96e89013e5da/switch2bill-common-2.1.2.tar.gz" } ], "2.1.3": [ { "comment_text": "", "digests": { "md5": "fa1a76a8710d26f71bebdde8b9a666a2", "sha256": "f3e761a5de0c127fd461e5aa6b81dc39a9d6094f707c1316acae33346e46eefc" }, "downloads": -1, "filename": "switch2bill-common-2.1.3.tar.gz", "has_sig": false, "md5_digest": "fa1a76a8710d26f71bebdde8b9a666a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20368, "upload_time": "2012-10-19T15:18:20", "url": "https://files.pythonhosted.org/packages/4e/4f/a2f4748ea23ac3a91049aabca4b1df7434f79ffd0c04883e20dd75ce305a/switch2bill-common-2.1.3.tar.gz" } ], "2.2.0": [ { "comment_text": "", "digests": { "md5": "db655e1cb68485368e09bcc11b72eb36", "sha256": "a6512afd6930d1b41844ee9087ab2321e30cdb68a626b120234978c294b0844d" }, "downloads": -1, "filename": "switch2bill-common-2.2.0.tar.gz", "has_sig": false, "md5_digest": "db655e1cb68485368e09bcc11b72eb36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20513, "upload_time": "2012-10-23T10:44:14", "url": "https://files.pythonhosted.org/packages/ab/71/ccdcd442a0f5660e45700e2bdc6ec3686e1dcf5c98ce26eacd9186f6cae3/switch2bill-common-2.2.0.tar.gz" } ], "2.2.1": [ { "comment_text": "", "digests": { "md5": "85eb45ff69c8d52b64af8ed0935a04f7", "sha256": "7390d02298b1dc57e83cdbd1b4ecdadaf2939fbbcd4671fd843255652f83f04d" }, "downloads": -1, "filename": "switch2bill-common-2.2.1.tar.gz", "has_sig": false, "md5_digest": "85eb45ff69c8d52b64af8ed0935a04f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20570, "upload_time": "2012-10-24T06:53:48", "url": "https://files.pythonhosted.org/packages/58/84/b9344d8e104b9ca1fb8c2552129477850298b4eee2f6aaccc56fff2059c7/switch2bill-common-2.2.1.tar.gz" } ], "2.2.2": [ { "comment_text": "", "digests": { "md5": "dd8164b1fd3b091100d617de6b51dc82", "sha256": "9db85f3f1c49fa3d2d471fe62307683ef66013b9509bc6c9eaedd312aa1d3441" }, "downloads": -1, "filename": "switch2bill-common-2.2.2.tar.gz", "has_sig": false, "md5_digest": "dd8164b1fd3b091100d617de6b51dc82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20624, "upload_time": "2012-10-25T09:45:21", "url": "https://files.pythonhosted.org/packages/12/a6/25168cf81a3a851308c67c7ecfdd744348d33ce052116278b46e31424120/switch2bill-common-2.2.2.tar.gz" } ], "2.2.3": [ { "comment_text": "", "digests": { "md5": "2226379d81e10bc87414527f17a94092", "sha256": "1c84ef51f681fba238e34eaec539fae0bfa8412b165fe8461b0a62fce2d6ec39" }, "downloads": -1, "filename": "switch2bill-common-2.2.3.tar.gz", "has_sig": false, "md5_digest": "2226379d81e10bc87414527f17a94092", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23052, "upload_time": "2012-10-26T14:02:44", "url": "https://files.pythonhosted.org/packages/46/e5/a6bef5fa945a409cfb739a3577bdd727b519309124313d190722b5e2ccde/switch2bill-common-2.2.3.tar.gz" } ], "2.3.0": [ { "comment_text": "", "digests": { "md5": "8e22b686134dc8d7be6116aaa4d57da8", "sha256": "b19a3493e85e800b0fcd61a01acef460646c50fe9e33e16d481d9d9fdc0506d6" }, "downloads": -1, "filename": "switch2bill-common-2.3.0.tar.gz", "has_sig": false, "md5_digest": "8e22b686134dc8d7be6116aaa4d57da8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23395, "upload_time": "2012-11-23T08:54:40", "url": "https://files.pythonhosted.org/packages/d8/0e/01f81218e2587b8ec93a3c0a0124d6d35fa1b5f2fff4cce49370983ee65a/switch2bill-common-2.3.0.tar.gz" } ], "2.4.0": [ { "comment_text": "", "digests": { "md5": "2e935ed4c0833af5df5ae81539e02592", "sha256": "b7ac4bc5705ca8005076d98a0d06806d1dd5313782dc9cd2364051918c3f0422" }, "downloads": -1, "filename": "switch2bill-common-2.4.0.tar.gz", "has_sig": false, "md5_digest": "2e935ed4c0833af5df5ae81539e02592", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23596, "upload_time": "2012-11-30T11:38:57", "url": "https://files.pythonhosted.org/packages/02/cd/433a704a1f2a493afbac010aed0e878890823502b87929cbfa799c4b93aa/switch2bill-common-2.4.0.tar.gz" } ], "2.4.1": [ { "comment_text": "", "digests": { "md5": "41f9f991a898af02cfb9b4b7db2bfcd8", "sha256": "2480e06ca2b4f5952511e8aa0f4892b9a1448c44835aa33aeea80533475c955e" }, "downloads": -1, "filename": "switch2bill-common-2.4.1.tar.gz", "has_sig": false, "md5_digest": "41f9f991a898af02cfb9b4b7db2bfcd8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23586, "upload_time": "2013-02-10T19:57:24", "url": "https://files.pythonhosted.org/packages/94/b5/24a55a6b0b5ee00871c5dcae8b4a95894050a9918a392aeee7ba11f89bda/switch2bill-common-2.4.1.tar.gz" } ], "2.5.0": [ { "comment_text": "", "digests": { "md5": "7a8622222621179142a3d9fc536f9f46", "sha256": "ecc2ca66674e02f9cfb3199ed1d279262f9abc06dd1d4ad53a34b82d2b98e381" }, "downloads": -1, "filename": "switch2bill-common-2.5.0.tar.gz", "has_sig": false, "md5_digest": "7a8622222621179142a3d9fc536f9f46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24437, "upload_time": "2013-02-21T07:48:59", "url": "https://files.pythonhosted.org/packages/7b/ef/700e1334ff4091db6a72aa9b412e9f1d6a2b61320d309906e16a726463af/switch2bill-common-2.5.0.tar.gz" } ], "2.6.0": [ { "comment_text": "", "digests": { "md5": "ad7d039c2416d878fb79e09080a4f949", "sha256": "413b8adabe4575a4a0bf4a6a48ccb805093a1e681c2cdb612dcf60709dae19a5" }, "downloads": -1, "filename": "switch2bill-common-2.6.0.tar.gz", "has_sig": false, "md5_digest": "ad7d039c2416d878fb79e09080a4f949", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24993, "upload_time": "2013-02-22T17:58:49", "url": "https://files.pythonhosted.org/packages/6c/4e/55eca2aa65756d80da27830da2692ee1fc6028e92c2924be3b285aea2663/switch2bill-common-2.6.0.tar.gz" } ], "2.7.0": [ { "comment_text": "", "digests": { "md5": "43aba851923ab77b1fe87465ca988449", "sha256": "da7b5e1141fc65f14d44ad24a0fc8af691bb95594ba522161b0f6ff9908807ca" }, "downloads": -1, "filename": "switch2bill-common-2.7.0.tar.gz", "has_sig": false, "md5_digest": "43aba851923ab77b1fe87465ca988449", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25059, "upload_time": "2013-05-02T10:02:41", "url": "https://files.pythonhosted.org/packages/51/f0/45269d5c3e1bcd60a9c7d79ce503b1cac031d7dccc832a2f87c14e76683d/switch2bill-common-2.7.0.tar.gz" } ], "2.7.1": [ { "comment_text": "", "digests": { "md5": "48b41fd88a979eb39208ef74aea4254d", "sha256": "71e85ef40de9aaf8482454283b5f36223a166b12aaafb2fce6f91316d57ae812" }, "downloads": -1, "filename": "switch2bill-common-2.7.1.tar.gz", "has_sig": false, "md5_digest": "48b41fd88a979eb39208ef74aea4254d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25213, "upload_time": "2013-05-13T11:20:25", "url": "https://files.pythonhosted.org/packages/f6/89/0ad1ded0ad215a0c32b02c62ee72ac8463620c741461be32b9d1eefb583c/switch2bill-common-2.7.1.tar.gz" } ], "2.7.2": [ { "comment_text": "", "digests": { "md5": "c27654be0f337ee457e972efddf1a032", "sha256": "ca8401dc92ee33424d55a241eed58d9839464bff3b21aad713cdd290e84493f3" }, "downloads": -1, "filename": "switch2bill-common-2.7.2.tar.gz", "has_sig": false, "md5_digest": "c27654be0f337ee457e972efddf1a032", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25369, "upload_time": "2013-05-13T13:55:30", "url": "https://files.pythonhosted.org/packages/15/1c/21aea9b2e383a7ec9ae293c72111ff65acec1370c9ecaaf7cd9d62f97571/switch2bill-common-2.7.2.tar.gz" } ], "2.8.0": [ { "comment_text": "", "digests": { "md5": "439c223d5d2b6e4dd0678b7a70a0a54c", "sha256": "6d04dd9578b0057a315c640fe8c0889fffdde846eecdca21c31dffd5d664cfdf" }, "downloads": -1, "filename": "switch2bill-common-2.8.0.tar.gz", "has_sig": false, "md5_digest": "439c223d5d2b6e4dd0678b7a70a0a54c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25794, "upload_time": "2013-06-03T13:40:15", "url": "https://files.pythonhosted.org/packages/00/f4/8dee981db26632fcdc4f6547ecdb88b475e01a4ac382dc76b7dff52688cf/switch2bill-common-2.8.0.tar.gz" } ], "2.8.1": [ { "comment_text": "", "digests": { "md5": "cf8fe17b42fa9c22d6d47901838fd385", "sha256": "314c671bfa3edb92b673aeb16dd2095789e9271c10786f1e976e0a6b1efef01b" }, "downloads": -1, "filename": "switch2bill-common-2.8.1.tar.gz", "has_sig": false, "md5_digest": "cf8fe17b42fa9c22d6d47901838fd385", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25834, "upload_time": "2013-06-04T13:19:44", "url": "https://files.pythonhosted.org/packages/da/d3/7d7ff44511a7acdd92b550590036a41270c3cc606877d3be3b0b189ec097/switch2bill-common-2.8.1.tar.gz" } ], "2.8.2": [ { "comment_text": "", "digests": { "md5": "3da704ffa8980f2cca9f6e82b2810744", "sha256": "000c170e361fface14dbd52094e0ed5e08f0392f3665e0b67e960060c0443026" }, "downloads": -1, "filename": "switch2bill-common-2.8.2.tar.gz", "has_sig": false, "md5_digest": "3da704ffa8980f2cca9f6e82b2810744", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25726, "upload_time": "2013-12-09T11:22:04", "url": "https://files.pythonhosted.org/packages/81/93/7b0285c28487c6ea0da5d06329c0eba98832b6a63641652a9f17b3d0ec24/switch2bill-common-2.8.2.tar.gz" } ], "2.8.3": [ { "comment_text": "", "digests": { "md5": "40566ca684d8966f86005171c30b876b", "sha256": "316f01f5920b4a7aabeb0f9833877fe1273d40912f2213f46f1ae5a2400037a8" }, "downloads": -1, "filename": "switch2bill-common-2.8.3.tar.gz", "has_sig": false, "md5_digest": "40566ca684d8966f86005171c30b876b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25988, "upload_time": "2013-12-28T02:53:32", "url": "https://files.pythonhosted.org/packages/07/fe/5cbba1b119473deed22cd587f5fb08fa1b2cae0b2975dfb0ce7b99dbeddf/switch2bill-common-2.8.3.tar.gz" } ], "2.8.4": [ { "comment_text": "", "digests": { "md5": "8323157f7608a8d8df5273be17e42fa1", "sha256": "40ab3988aa5ade22290cb1588c826f10c38883a578c46e789229826c8d3b0b38" }, "downloads": -1, "filename": "switch2bill-common-2.8.4.tar.gz", "has_sig": false, "md5_digest": "8323157f7608a8d8df5273be17e42fa1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26085, "upload_time": "2014-01-23T16:45:04", "url": "https://files.pythonhosted.org/packages/39/9b/3e95ffe7850bb6c002ff212e12deb7109ed73163d34fd326d3fe4d14b9ec/switch2bill-common-2.8.4.tar.gz" } ], "2.8.5": [ { "comment_text": "", "digests": { "md5": "5d352190fde7806f28983aae86bed1f8", "sha256": "8ce5000cd029e49454422465a4602df451878a5aebf8851ccda5d13503f1ec51" }, "downloads": -1, "filename": "switch2bill-common-2.8.5.tar.gz", "has_sig": false, "md5_digest": "5d352190fde7806f28983aae86bed1f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26783, "upload_time": "2014-01-30T12:11:33", "url": "https://files.pythonhosted.org/packages/e6/3c/e9da49f3d74bcd0b3c4924ef67a82c5434aa98f1293303028c31d8c55124/switch2bill-common-2.8.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5d352190fde7806f28983aae86bed1f8", "sha256": "8ce5000cd029e49454422465a4602df451878a5aebf8851ccda5d13503f1ec51" }, "downloads": -1, "filename": "switch2bill-common-2.8.5.tar.gz", "has_sig": false, "md5_digest": "5d352190fde7806f28983aae86bed1f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26783, "upload_time": "2014-01-30T12:11:33", "url": "https://files.pythonhosted.org/packages/e6/3c/e9da49f3d74bcd0b3c4924ef67a82c5434aa98f1293303028c31d8c55124/switch2bill-common-2.8.5.tar.gz" } ] }