{ "info": { "author": "Zdenek Dlauhy, Michal Dlauhy", "author_email": "info@pripravto.cz", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "ocapi\n=====\n\nThis is API connector to http://www.pripravto.cz service for furniture makers. You should\nbe able to use it to create your custom designs for furniture, download data\nand eventually build your partial interface. Connector is built on HTTP GET and\nPOST methods and it uses your account on service.\n\nFor this project we are using PyVmMonitor on http://www.pyvmmonitor.com\n\nInstalation\n-----------\n\nFor instalation you can download package or install by **pip**. Downloaded you\ncan just unpack or get from from https://pypi.python.org/pypi/ocapi and install it::\n\n #download archive\n wget https://bitbucket.org/pripravto/ocapi/get/default.tar.gz\n cd /tmp\n virtualenv test\n source test/bin/activate\n tar -xvf default.tar.gz\n #specify correct name\n cd pripravto....\n\nInstalation::\n\n python setup.py install\n\nor install by pip::\n\n pip install ocapi\n\n\nQuickstart\n----------\n\nFirst you should get your account on **https://pripravto.cz** service, when you will have it\nLogin normally into service. Then you can start by opening Python console\nand importing ocapi::\n\n import ocapi.api as oc\n import math\n args = {'name':'test2','position':[0,0,0],'size':[1000,1000,1000]}\n #set your user credentials here\n prod = oc.CabinetMaker(args, username=\"test\",password=\"test\")\n for i in range(36):\n size = [18,math.sin(math.radians(i*10))*50+80,18]\n rot = [0,0,10+i*2]\n prod.add_element(pos=[i*20,0,0],size=size,rot=rot)\n prod.finish()\n\nThis is partial example which will show you base usage of this api. This will create\nserries of elements which are sized by sin function and rotated by series of\niteration.\n\nTo build something more usefull you can make first base cabinet by just writing down\none function::\n\n args = {'name':'cabinet2','position':[0,0,0],'size':[600,600,1000]}\n prod.parse_args(args)\n #build our base parts\n prod.add_basic()\n #add doors\n prod.add_doors()\n prod.finish()\n\nAfter data creation you can also check what kind of data you have created on service\nitself and also download images and so on.\n\nUsername and password are specified at start of object::\n\n prod = oc.CabinetMaker(args, username=\"test\",password=\"test\", host=\"test.pripravto.cz\")\n #your username and password is from https://pripravto.cz/oc/register/start\n\nFor complete registration process you need your functional e-mail address and fill out\ndata required by registration. **You should keep your user credentials secret.**\nFor examples what can be built on this api connector take a look on http://pripravto.cz/en/blog\nwhere we put examples.\n\nMore comples example can be::\n\n\n args = {'size': [1200, 600, 900], 'thickConstr': 18, 'frontOut': True, 'socle': 0, 'doorShift': 0, 'matConstr': '45', 'elementInfo': {'fittings': {'KOL': 5}, 'production': {'EDGEBANDER': 2, 'HAND': 3, 'SAW': 1, 'CNC': 1, 'COATING': False}, 'group': 'spodni_2', 'visibility': 'NORMAL', 'block': True}, 'position': [2700, 0, 0], 'rotation': [-30, 0, 0], 'matFront': 'U625', 'name': 'spodni_2'}\n spodni_2 = oc.CabinetMaker(args, username=\"test\",password=\"test\")\n spodni_2.add_top(info=None,area_id=None,mat='F870',bars_width=None,pos=None,diff=None,save=True,size=38)\n spodni_2.add_frame(info=None,area_id=None,thick_fill=None,mat=45,diff_fill=[0, 0, 5, 0, 0, 0],insert_fill=False,width=150,mat_fill=None,low_profile=False,planes=4,diff=[0, 50, 50, 0, 0, 0],thick=18,save=True,order=[0, 2, 1])\n spodni_2.add_dividers(info=None,area_id=None,array_dist=[2, 1],mat=None,part_size=None,thickness=None,part=False,diff=None,save=True,typ='B',areas=True)\n spodni_2.add_basic(info=None,area_id=True,variant='H',back=5,socle=None,diff=None,save=True,top_bars=None)\n spodni_2.add_shelve(info=None,area_id=True,mat=None,number=[4, 4, 5],diff=None,rotation=None,save=True,size=None)\n spodni_2.add_doors(info=None,area_id=0,handleHeight='TOP',mat=None,grains=True,handleSize=[160, 25, 5],stacking='HORIZONTAL',number=2,door_type='AUTOMAT',handleSide=None,diff=None,handleOrientation='VERTICAL',pars_front=[3, 3, 3, 3, 3],save=True,handlePos=[50, 50])\n spodni_2.add_doors(info=None,area_id=1,handleHeight='TOP',mat=None,grains=True,handleSize=[160, 25, 5],stacking='HORIZONTAL',number=1,door_type='AUTOMAT',handleSide=None,diff=None,handleOrientation='VERTICAL',pars_front=[3, 3, 3, 3, 3],save=True,handlePos=[50, 50])\n spodni_2.finish()\n spodni_2.get_image()\n\nThis example creates base part for kitchen and it has several other items, which\nare generated on the fly by oc service.\n\nIf you want to set your **crendentials** to be all the time in your way,\njust make subclass to **CabinetMaker** and set your default parameters in init.\n\n\nMore documantation for pripravto service or about this plase see web page or\n**oc.CabinetMaker** class.\n\nOther data\n----------\n\nIt should be also possible to download other images like optimalization and\nvizualization from server. Possible solution is to use it like this.\n\n con.\n\nDevelopment\n-----------\n\nYou can contact us or raise issues on https://bitbucket.org/pripravto/ocapi\nDevelopmnet is also made on Bitbucket, you can clone repository and start\nmaking chaneges. We also plan to use this api connector to be able to connect\nwith diffrent applications more quickly and easily.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.pripravto.cz", "keywords": "ocapi,automatization,api,furniture,optimcabinet,vizualization,images,calculation,optimalization", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "ocapi", "package_url": "https://pypi.org/project/ocapi/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ocapi/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.pripravto.cz" }, "release_url": "https://pypi.org/project/ocapi/0.11.post46/", "requires_dist": null, "requires_python": null, "summary": "API connector to Pripravto service", "version": "0.11.post46" }, "last_serial": 2362282, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "cd92f64e1e84d03867aa55d06e7df201", "sha256": "3259a99ebd7b635e8c6ed082090226dcd4d19a4d18c24d9255226e9e82333720" }, "downloads": -1, "filename": "ocapi-0.0.0.tar.gz", "has_sig": false, "md5_digest": "cd92f64e1e84d03867aa55d06e7df201", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14445, "upload_time": "2015-04-22T08:03:24", "url": "https://files.pythonhosted.org/packages/50/d6/e9f4811a42fbb58339f6cb65ddf446600efc64b9a63a1ed75015e40c839e/ocapi-0.0.0.tar.gz" } ], "0.10.post39": [ { "comment_text": "", "digests": { "md5": "6712cace36148a50eba1eb19e91573dd", "sha256": "a511fbf190ae3b34fc7638ae51d35f4bda02a4cbe34908687322d073c53f9a42" }, "downloads": -1, "filename": "ocapi-0.10.post39.tar.gz", "has_sig": false, "md5_digest": "6712cace36148a50eba1eb19e91573dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27860, "upload_time": "2016-04-17T16:06:37", "url": "https://files.pythonhosted.org/packages/9a/32/ececd0c15be7d16591b37fcbd0ce7ab09883ae143c15148fb50f474697a5/ocapi-0.10.post39.tar.gz" } ], "0.10.post41": [ { "comment_text": "", "digests": { "md5": "0bff2a813a1cfe8be84e765fed537d87", "sha256": "655036eac576cbd47cc507a11444ea7b3d5bcf2ae11a1a662684c871e444ea5b" }, "downloads": -1, "filename": "ocapi-0.10.post41.tar.gz", "has_sig": false, "md5_digest": "0bff2a813a1cfe8be84e765fed537d87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27849, "upload_time": "2016-05-01T12:45:08", "url": "https://files.pythonhosted.org/packages/b6/de/b17d813fa2117ecb20741995b8242a588cd937dee6eff5a75cfc2c338ec8/ocapi-0.10.post41.tar.gz" } ], "0.11.post44": [ { "comment_text": "", "digests": { "md5": "4343d0c08f0cea9e66f687e74f850f21", "sha256": "c90d187d859bd5f009cfef1a88738486bc9806c6f14ca08990876a4b9d2f2cc7" }, "downloads": -1, "filename": "ocapi-0.11.post44.tar.gz", "has_sig": false, "md5_digest": "4343d0c08f0cea9e66f687e74f850f21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28445, "upload_time": "2016-08-30T08:42:34", "url": "https://files.pythonhosted.org/packages/0e/8a/596a7b8e71c83463c88ab7024626b0a6dd7e0605295261b4ae0b1ef39362/ocapi-0.11.post44.tar.gz" } ], "0.11.post46": [ { "comment_text": "", "digests": { "md5": "dc2a2c246c5a0f2189759e6824cd6279", "sha256": "76425d647cd63b0729805d19497ccf9189977f676ab38c19ba643ce1a6827ba2" }, "downloads": -1, "filename": "ocapi-0.11.post46.tar.gz", "has_sig": false, "md5_digest": "dc2a2c246c5a0f2189759e6824cd6279", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28601, "upload_time": "2016-09-25T10:52:34", "url": "https://files.pythonhosted.org/packages/c1/7d/e8ce44521e5421526e65a5a858a351be3f207f0afabee89be1091e74b751/ocapi-0.11.post46.tar.gz" } ], "0.5-12": [ { "comment_text": "", "digests": { "md5": "e762faea27bfc1169d5e3e9eb202bcb3", "sha256": "732fd4bb13cf30c7a862d8bb5fbbf60df8b18e9a27115d978cad97b668f84b75" }, "downloads": -1, "filename": "ocapi-0.5-12.tar.gz", "has_sig": false, "md5_digest": "e762faea27bfc1169d5e3e9eb202bcb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16827, "upload_time": "2015-04-24T06:10:01", "url": "https://files.pythonhosted.org/packages/f9/2c/0642ecbc3cdecc2e10f7762b23fda9f442285789ca1d2f0387a12a1742c5/ocapi-0.5-12.tar.gz" } ], "0.5-16": [ { "comment_text": "", "digests": { "md5": "40a24214772ad839ba0590261f4cee82", "sha256": "3c2f50dc513e8c03d46362a79f04744a98d60ca4f64305313f043b0fbd890784" }, "downloads": -1, "filename": "ocapi-0.5-16.tar.gz", "has_sig": false, "md5_digest": "40a24214772ad839ba0590261f4cee82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17212, "upload_time": "2015-05-03T09:22:17", "url": "https://files.pythonhosted.org/packages/fa/2e/7e9fbc5a8cf6fa0fc5587953c34a13ca34e786625ab9c249c123cfd7e7e6/ocapi-0.5-16.tar.gz" } ], "0.5-19": [ { "comment_text": "", "digests": { "md5": "7747777b0b3ea74acf1222dc4d733231", "sha256": "766b730286855b4501a24532b14891dd13cba857d9cb6593ccdeb889b66a05c2" }, "downloads": -1, "filename": "ocapi-0.5-19.tar.gz", "has_sig": false, "md5_digest": "7747777b0b3ea74acf1222dc4d733231", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17884, "upload_time": "2015-06-29T10:51:13", "url": "https://files.pythonhosted.org/packages/fb/b9/86e98d747ea27df7f46c908c544adb8b3720ba39f2e0edfb074d43bb1b6e/ocapi-0.5-19.tar.gz" } ], "0.5-3": [ { "comment_text": "", "digests": { "md5": "529a11de35ac8128311053f0a66895e9", "sha256": "2a56641e946c2288b241cd32123a65f12456f43bad25a1e56312f4382ddf594d" }, "downloads": -1, "filename": "ocapi-0.5-3.tar.gz", "has_sig": false, "md5_digest": "529a11de35ac8128311053f0a66895e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14753, "upload_time": "2015-04-22T08:08:41", "url": "https://files.pythonhosted.org/packages/32/80/64fb5b78433a31251305de16755c33b873b55a3282b9c2980846706502c8/ocapi-0.5-3.tar.gz" } ], "0.6-22": [ { "comment_text": "", "digests": { "md5": "5e0b3377591765b08e56196d1d7a8cc3", "sha256": "f4ee55aeea97eb3ae8613dd790639d4215753bb65bd3489d2a43f9bb80c772fe" }, "downloads": -1, "filename": "ocapi-0.6-22.tar.gz", "has_sig": false, "md5_digest": "5e0b3377591765b08e56196d1d7a8cc3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18803, "upload_time": "2015-07-31T09:04:59", "url": "https://files.pythonhosted.org/packages/47/e3/64a085b5b903f4263cc389ad5a2addbd5cf544fba8533cdf90dc6da180b4/ocapi-0.6-22.tar.gz" } ], "0.6.post39": [ { "comment_text": "", "digests": { "md5": "2763208128c0152324546c13331c9858", "sha256": "9bb7d9b682e541c5254a2dbdcf30949c5ddd9922ce15a9a019f2f1cccef2548e" }, "downloads": -1, "filename": "ocapi-0.6.post39.tar.gz", "has_sig": false, "md5_digest": "2763208128c0152324546c13331c9858", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27856, "upload_time": "2016-04-17T16:03:36", "url": "https://files.pythonhosted.org/packages/4a/28/1d5e61b333d172658fdbcf0ef4f1f25d14dc3db2db8c04851848f6b2fc1e/ocapi-0.6.post39.tar.gz" } ], "0.6.post44": [ { "comment_text": "", "digests": { "md5": "c80822c3ed0b61c047e428d1abd92b0e", "sha256": "8137870768f57f3a712407441666238d194da52765928c7a1a39ef86c16c385e" }, "downloads": -1, "filename": "ocapi-0.6.post44.tar.gz", "has_sig": false, "md5_digest": "c80822c3ed0b61c047e428d1abd92b0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28443, "upload_time": "2016-08-30T08:39:24", "url": "https://files.pythonhosted.org/packages/77/76/76ac2d3558ccaaf6a70c1c10fb6efa36cbb7fc73b23c76ba8b45a15a5c5e/ocapi-0.6.post44.tar.gz" } ], "0.7-27": [ { "comment_text": "", "digests": { "md5": "0171142aba623049c3ddf012b27a466c", "sha256": "fc293b09f5a21bb6109dcdb610f4302eb2fdcf65f753ba5adfc559b2b69913d0" }, "downloads": -1, "filename": "ocapi-0.7-27.tar.gz", "has_sig": false, "md5_digest": "0171142aba623049c3ddf012b27a466c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21940, "upload_time": "2015-09-05T19:44:31", "url": "https://files.pythonhosted.org/packages/b8/8b/847309da9aa29a4aea6071ea23c279c4a74b1044aac90ab4da9776f47072/ocapi-0.7-27.tar.gz" } ], "0.8-30": [ { "comment_text": "", "digests": { "md5": "e1d48b71a8880174f5f1fec6c286ce52", "sha256": "ab634563858a97eef4be91d3fb46b2c513b8e016a58aa263df27ef7e733a2978" }, "downloads": -1, "filename": "ocapi-0.8-30.tar.gz", "has_sig": false, "md5_digest": "e1d48b71a8880174f5f1fec6c286ce52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23153, "upload_time": "2015-10-28T16:59:33", "url": "https://files.pythonhosted.org/packages/a4/cc/52b3c16aa3906d0f5ff1c6a55d052d6682f445c019f19279a6f239ec5ee3/ocapi-0.8-30.tar.gz" } ], "0.9.37": [ { "comment_text": "", "digests": { "md5": "81e8c506a21223952313af911e1ed3a7", "sha256": "dfa5f846044450e726847844da5335efe13defe055e40898896ecadb138885e3" }, "downloads": -1, "filename": "ocapi-0.9.37.tar.gz", "has_sig": false, "md5_digest": "81e8c506a21223952313af911e1ed3a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25513, "upload_time": "2016-01-17T13:32:43", "url": "https://files.pythonhosted.org/packages/60/48/3d0120f27143860e9c47849806a3465804a2d4275c8040c22cf2aa2dbb5a/ocapi-0.9.37.tar.gz" } ], "0.9.post34": [ { "comment_text": "", "digests": { "md5": "b6e62d6e3ff5c1245c5381eda3cf2c05", "sha256": "8d7bf01dd564797ed63aeddb9f3da2453b79351008e9bc96635dc095f2f2e627" }, "downloads": -1, "filename": "ocapi-0.9.post34.tar.gz", "has_sig": false, "md5_digest": "b6e62d6e3ff5c1245c5381eda3cf2c05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25529, "upload_time": "2016-01-17T13:29:50", "url": "https://files.pythonhosted.org/packages/ec/cf/98ef4bcd4156747f90f51ae49abaec0dd3b40bdacdd30ae98da22ed96d09/ocapi-0.9.post34.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dc2a2c246c5a0f2189759e6824cd6279", "sha256": "76425d647cd63b0729805d19497ccf9189977f676ab38c19ba643ce1a6827ba2" }, "downloads": -1, "filename": "ocapi-0.11.post46.tar.gz", "has_sig": false, "md5_digest": "dc2a2c246c5a0f2189759e6824cd6279", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28601, "upload_time": "2016-09-25T10:52:34", "url": "https://files.pythonhosted.org/packages/c1/7d/e8ce44521e5421526e65a5a858a351be3f207f0afabee89be1091e74b751/ocapi-0.11.post46.tar.gz" } ] }