{ "info": { "author": "Jamal Shahverdiev", "author_email": "jamal.shahverdiev@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "*******************************************************************************************************\nExtract ZIP file. Edit JSON to update with new value of the key. Compress all files to tne new ZIP file\n*******************************************************************************************************\n\n.. image:: https://img.shields.io/codecov/c/github/codecov/example-python.svg\n\nPython script to extract ZIP file utdate JOSN key/value and create new ZIP file. \n\n* **zipper.py** - Script contains four functions. ``read_zip_file``, ``update_json_file``, ``get_all_file_paths`` and ``prepareZipFile``. \n* ``read_zip_file`` - This function prints content of ZIP file and extract in the same folder.\n* ``update_json_file`` - This function opens JSON file and edit defined key to the defined value.\n* ``get_all_file_paths`` - This function creates list of the all files from argument PATH.\n* ``prepareZipFile`` - This function will use ``get_all_file_paths`` function to get all files PATH and then archive them to the other file.\n\n=====\nUsage\n=====\n\nRequirements:\n Python3.4 with ``simplejson`` and ``argparse`` library installed:\n\n\nSyntax:\n\n.. code-block:: bash\n\n # ./zipper.py\n usage: zipper.py [-h] -zin ZIPINPUT -zout ZIPTOOUT -jsonf JSONFILE\n zipper.py: error: the following arguments are required: -zin, -zout, -jsonf\n..\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jamalshahverdiev/python-general-codes/tree/master/editJsonInZipFile", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "editjsoninzip", "package_url": "https://pypi.org/project/editjsoninzip/", "platform": "", "project_url": "https://pypi.org/project/editjsoninzip/", "project_urls": { "Homepage": "https://github.com/jamalshahverdiev/python-general-codes/tree/master/editJsonInZipFile" }, "release_url": "https://pypi.org/project/editjsoninzip/0.1.3/", "requires_dist": [ "simplejson" ], "requires_python": "", "summary": "Update JSON file inside of the ZIP file", "version": "0.1.3" }, "last_serial": 5140699, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "330b29615253d68bcb4abe58bcccc470", "sha256": "5b93ead4ba11efc3d4e1588f082dfc624d0be458670a5fd5e157b5a6d2970139" }, "downloads": -1, "filename": "editjsoninzip-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "330b29615253d68bcb4abe58bcccc470", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4001, "upload_time": "2019-04-14T11:58:51", "url": "https://files.pythonhosted.org/packages/d3/96/14d7e18ea7889699116dba77a0535ee13e9433d8c7a36577cbce4ed75400/editjsoninzip-0.1.3-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "330b29615253d68bcb4abe58bcccc470", "sha256": "5b93ead4ba11efc3d4e1588f082dfc624d0be458670a5fd5e157b5a6d2970139" }, "downloads": -1, "filename": "editjsoninzip-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "330b29615253d68bcb4abe58bcccc470", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4001, "upload_time": "2019-04-14T11:58:51", "url": "https://files.pythonhosted.org/packages/d3/96/14d7e18ea7889699116dba77a0535ee13e9433d8c7a36577cbce4ed75400/editjsoninzip-0.1.3-py3-none-any.whl" } ] }