{ "info": { "author": "Lafaye Philippe", "author_email": "lafaye@emencia.com", "bugtrack_url": null, "classifiers": [], "description": "========\nECS CART\n========\n\nThis is a package from the ecs suite, that provide a cart object for ecommerce\nprojects.\n\nIn standart use it provide classical functionnalities:\n - Add/delete product from cart\n - Price manipulation and amount (with vat)\n - Weight amount\n - Reductions (in % or value)\n\nBut this package also provide rules system that add the posibility to improve\nhis functionnalities (like connection with database, logistic function, ...)\n\nRead docs/source/module/README.txt or inline http://docs.emencia.net/ecs.cart\n\nEcs cart Changelog\n==================\n0.4 (January 13, 2008)\n\n- fix small bugs\n- improve documentation (logo + spec doc)\n\nO.3 (December 15, 2008)\n\n* fix docstest\n* fix bug in rules config\n\n\nO.2 (December 10, 2008)\n\n* use now sphinx for doc and nose for testing\n* re-develop the rules config with classical python conf files and paste for \n import modules\n\n\n0.1 (October 22, 2008)\n\n* project creation\n\n=======\necscart\n=======\n\necscart is a module who can manage the caddy of an user.\nThis module save the product reference, price and quantity.\n\nThe caddy has two states, valided or not valided.\nThe caddy has the possibility to compute rules for the total amount,\nlike reductions, taxes, delivery prices.\n\nThe computed caddy can be published as many format, like xml, json.\n\nFinally the caddy will be persistant in database, to ensure data integrity\nduring a crash.\n\nLaunching the cart\n==================\n\nA few initialisation procedure is mandatory to instatiate the `Cart` class. ;;\n\n >>> from ecs.cart import Cart\n >>> user_id = 'Doriane'\n >>> cart = Cart(user_id)\n\nAdding a product in the caddy\n=============================\n\nTo add a product into the caddy we must use the `add_product` method.\nThe first parameters is the reference of the product, the second the price,\nand the optional quantity parameters. ::\n\n >>> cart.add_product('brosse a cheveux', 12.4)\n >>> cart.add_product('lime a ongle', price=3.32, quantity=5)\n\n\nSet quantity of the product\n===========================\n\nYou can eventualy change the quantity of a product in a cart by the\n`set_quantity` method. ::\n\n >>> cart.get_product_property('brosse a cheveux', 'quantity')\n 1.0\n >>> cart.set_quantity('brosse a cheveux', 2)\n >>> cart.get_product_property('brosse a cheveux', 'quantity')\n 2.0\n\n\nDelete a product\n================\n\nYou can delete a product by setting his quantity to 0, or most symply\nwith the `del_product` method. ::\n\n >>> cart.add_product('fond de teint', 19)\n >>> cart.add_product('mascara', 12)\n ...\n >>> cart.set_quantity('fond de teint', 0)\n >>> cart.del_product('mascara')\n ...\n >>> cart.get_product_property('fond de teint', 'price')\n Traceback (most recent call last):\n ...\n ValueError: Invalid reference fond de teint\n >>> cart.get_product_property('mascara', 'quantity')\n Traceback (most recent call last):\n ...\n ValueError: Invalid reference mascara\n\nGetting the amount of the caddy\n===============================\n\nIt's symply to have the amount of the caddy using the `get_cart_amount` ::\n\n >>> amount = cart.get_cart_amount()\n >>> round(amount)\n 41.0\n\nAdd reductions\n==============\n\nYou could add reduction on the cart.\n\n >>> cart.add_reduction(5)\n >>> amount = cart.get_cart_amount()\n >>> round(amount)\n 36.0\n\nYou could delete the reduction\n\nConfirm the caddy\n=================\n\nA flag is provided to manage is the caddy is valided. The `validation` method\nis also provided `validation` can take a parameters wich will be the flag value::\n\n >>> cart.validation_statut\n False\n >>> cart.validation()\n >>> cart.validation_statut\n True\n >>> cart.validation('Not yet')\n >>> cart.validation_statut\n 'Not yet'\n\nRemoving a caddy for an user\n============================\n\nTo delete the caddy from the persistence you must use the `remove` method ::\n\n >>> cart.remove()\n >>> cart.products\n {}", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://emencia.com", "keywords": "ecs emencia e-commerce commerce shop cart e-shop", "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "ecs.cart", "package_url": "https://pypi.org/project/ecs.cart/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ecs.cart/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://emencia.com" }, "release_url": "https://pypi.org/project/ecs.cart/0.4dev-r2383/", "requires_dist": null, "requires_python": null, "summary": "Package from the ecs suite, that provide a cart object for ecommerce projects", "version": "0.4dev-r2383" }, "last_serial": 733309, "releases": { "0.1dev-r2330": [ { "comment_text": "", "digests": { "md5": "c1d0c5f159cdd63fa09b893a6b158a11", "sha256": "5b57fbdb5bcf85eec19f8a48a5d77203b81fe08f727b7f76117ca0a141a05221" }, "downloads": -1, "filename": "ecs.cart-0.1dev_r2330-py2.5.egg", "has_sig": false, "md5_digest": "c1d0c5f159cdd63fa09b893a6b158a11", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 34300, "upload_time": "2008-10-22T10:32:27", "url": "https://files.pythonhosted.org/packages/63/8d/7d95fcbd3345bc7e9283256c04d5ca01d386ba4e842b495d1e54ea888a55/ecs.cart-0.1dev_r2330-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "5ab0d9011945ac8efe6685651486f40f", "sha256": "d9dc159cd19ff0793ab1b39a79e77577a6cbdf43607601247aa44ec9a0540909" }, "downloads": -1, "filename": "ecs.cart-0.1dev-r2330.tar.gz", "has_sig": false, "md5_digest": "5ab0d9011945ac8efe6685651486f40f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24166, "upload_time": "2008-10-22T10:32:26", "url": "https://files.pythonhosted.org/packages/2f/c0/838c38589237055e28b7aebf978e78021a05389a4679562095ee04bb913e/ecs.cart-0.1dev-r2330.tar.gz" } ], "0.2dev": [ { "comment_text": "", "digests": { "md5": "72c5720e60d897d52ad8801900e1b84d", "sha256": "0219c0071aaf5562b182ff1a0ea23374d39d822ba2290878fadbf63767b9ce4d" }, "downloads": -1, "filename": "ecs.cart-0.2dev-py2.5.egg", "has_sig": false, "md5_digest": "72c5720e60d897d52ad8801900e1b84d", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 26772, "upload_time": "2008-12-10T18:47:40", "url": "https://files.pythonhosted.org/packages/db/83/c0a47b5de546813718dca19d956f47ea1bf2cea184fabfdcaaadd2d6c018/ecs.cart-0.2dev-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "d5b4a5c7899554185bb9083cedf67122", "sha256": "a821e0f57eebf1d6ce5e30fd846718bcfe4cb4520262d30ad1bba27a63706dd6" }, "downloads": -1, "filename": "ecs.cart-0.2dev.tar.gz", "has_sig": false, "md5_digest": "d5b4a5c7899554185bb9083cedf67122", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11632, "upload_time": "2008-12-10T18:47:40", "url": "https://files.pythonhosted.org/packages/6b/69/7a5e12552ac792f0d8ca65af7315579b237352009f4129b741196a4e1f22/ecs.cart-0.2dev.tar.gz" } ], "0.3dev": [ { "comment_text": "", "digests": { "md5": "50d308c5f8046d4a4c1f1f0ea6118f4b", "sha256": "df6cb411f4657f0e2e37b53f0a241b4445eb8e6a2eee8ac4c2b9a4935b95ed2f" }, "downloads": -1, "filename": "ecs.cart-0.3dev-py2.5.egg", "has_sig": false, "md5_digest": "50d308c5f8046d4a4c1f1f0ea6118f4b", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 23574, "upload_time": "2008-12-17T13:53:07", "url": "https://files.pythonhosted.org/packages/73/f3/226cb8d52132844500946e5c03c700b69e674773652e277355f64ad73d94/ecs.cart-0.3dev-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "faf6b79b8f9fa2852fa74995e5a3f7fb", "sha256": "17f4d6aa71c860dc77b60e4b12f9db3ded262eb0ae5760d7072fba9c2b047138" }, "downloads": -1, "filename": "ecs.cart-0.3dev.tar.gz", "has_sig": false, "md5_digest": "faf6b79b8f9fa2852fa74995e5a3f7fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11641, "upload_time": "2008-12-17T13:53:06", "url": "https://files.pythonhosted.org/packages/fc/3b/4683966dba09ee9e53ab347ed6f275737a941654989493dc283fc02854b5/ecs.cart-0.3dev.tar.gz" } ], "0.4dev-r2383": [ { "comment_text": "", "digests": { "md5": "5ff6b6e2ca30c491ec9ab04b613e76c1", "sha256": "bb4d284ed6ef37ff3295dffe718d4e0f3bc04b9e323b643932aefc142829713d" }, "downloads": -1, "filename": "ecs.cart-0.4dev_r2383-py2.5.egg", "has_sig": false, "md5_digest": "5ff6b6e2ca30c491ec9ab04b613e76c1", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 25107, "upload_time": "2009-01-13T11:19:50", "url": "https://files.pythonhosted.org/packages/e1/ed/9e4e55d7170864f95aa4360ec007341c77f7357efb9509f5da2d53ab8d89/ecs.cart-0.4dev_r2383-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "7cb6d8ef1db6fd5b8f05423dbd03a986", "sha256": "8e3d26673b00b0b467ddc06bb8f1c732f34138a39ddb866af60c4242069c8def" }, "downloads": -1, "filename": "ecs.cart-0.4dev-r2383.tar.gz", "has_sig": false, "md5_digest": "7cb6d8ef1db6fd5b8f05423dbd03a986", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34998, "upload_time": "2009-01-13T11:19:50", "url": "https://files.pythonhosted.org/packages/a5/3f/d88f5b031f4ae101547c0256f00b8ce27091743c768d65a01fc33aa8a210/ecs.cart-0.4dev-r2383.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5ff6b6e2ca30c491ec9ab04b613e76c1", "sha256": "bb4d284ed6ef37ff3295dffe718d4e0f3bc04b9e323b643932aefc142829713d" }, "downloads": -1, "filename": "ecs.cart-0.4dev_r2383-py2.5.egg", "has_sig": false, "md5_digest": "5ff6b6e2ca30c491ec9ab04b613e76c1", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 25107, "upload_time": "2009-01-13T11:19:50", "url": "https://files.pythonhosted.org/packages/e1/ed/9e4e55d7170864f95aa4360ec007341c77f7357efb9509f5da2d53ab8d89/ecs.cart-0.4dev_r2383-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "7cb6d8ef1db6fd5b8f05423dbd03a986", "sha256": "8e3d26673b00b0b467ddc06bb8f1c732f34138a39ddb866af60c4242069c8def" }, "downloads": -1, "filename": "ecs.cart-0.4dev-r2383.tar.gz", "has_sig": false, "md5_digest": "7cb6d8ef1db6fd5b8f05423dbd03a986", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34998, "upload_time": "2009-01-13T11:19:50", "url": "https://files.pythonhosted.org/packages/a5/3f/d88f5b031f4ae101547c0256f00b8ce27091743c768d65a01fc33aa8a210/ecs.cart-0.4dev-r2383.tar.gz" } ] }