{ "info": { "author": "Shawn Milochik", "author_email": "shawn@milochik.com", "bugtrack_url": null, "classifiers": [], "description": "Easy two-way conversion between Python dictionaries and fixed-width files.\nThe FixedWidth class has been used in production without modification for \nseveral years.\n\nThis module has also proven useful for \"debugging\" a fixed-width spec --\nan invalid configuration reports an error that may not be obvious from\nreading the spec document.\n\nRequires a 'config' dictonary. See unit tests for full example.\n\nSmall example\n\n SAMPLE_CONFIG = {\n\n 'first_name': {\n 'required': True,\n 'type': 'string',\n 'start_pos': 1,\n 'end_pos': 10,\n 'alignment': 'left',\n 'padding': ' '\n },\n\n 'last_name': {\n 'required': True,\n 'type': 'string',\n 'start_pos': 11,\n 'end_pos': 30,\n 'alignment': 'left',\n 'padding': ' '\n },\n\n 'date': {\n 'required': True,\n 'type': 'date',\n 'start_pos': 31,\n 'end_pos': 38,\n 'alignment': 'left',\n 'format': '%Y%m%d',\n 'padding': ' '\n },\n\n 'decimal': {\n 'required': True,\n 'type': 'decimal',\n 'precision': 2,\n 'rounding': decimal.ROUND_UP,\n 'start_pos': 38,\n 'end_pos': 42,\n 'alignment': 'left',\n 'padding': ' '\n },\n\n }\n\nNotes:\n\n* A field must have a start_pos and either an end_pos or a length. If both an end_pos and a length are provided, they must not conflict.\n\n* A field may not have a default value if it is required.\n\n* Supported types are string, integer, and decimal.\n\n* Alignment and padding are required.\n\n\nLicense: BSD\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/ShawnMilo/fixedwidth", "keywords": "fixed width", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "FixedWidth", "package_url": "https://pypi.org/project/FixedWidth/", "platform": "", "project_url": "https://pypi.org/project/FixedWidth/", "project_urls": { "Homepage": "https://github.com/ShawnMilo/fixedwidth" }, "release_url": "https://pypi.org/project/FixedWidth/1.3/", "requires_dist": [ "six" ], "requires_python": "", "summary": "Two-way fixed-width <--> Python dict converter.", "version": "1.3" }, "last_serial": 3940335, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ea9e87f42b0cb69086448e695ba67f24", "sha256": "c227db0a1e681e8fd245f003e5a12d1d42087744f627de7dd7f83fa725fd545c" }, "downloads": -1, "filename": "FixedWidth-0.1.tar.gz", "has_sig": false, "md5_digest": "ea9e87f42b0cb69086448e695ba67f24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3212, "upload_time": "2010-06-11T15:27:27", "url": "https://files.pythonhosted.org/packages/bc/be/5a8aafa05dd8ddab5abaafaf25a840b63c4bc93daccbad44c779c0136525/FixedWidth-0.1.tar.gz" } ], "0.11": [ { "comment_text": "", "digests": { "md5": "8793dbf565b6eb7e6c63f0b27be08fea", "sha256": "e14259e2e49cb188c415a8b0e2ad5c1a4c32a8fd463e76db6e37a1e9ff3bf5b7" }, "downloads": -1, "filename": "FixedWidth-0.11.tar.gz", "has_sig": false, "md5_digest": "8793dbf565b6eb7e6c63f0b27be08fea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3135, "upload_time": "2012-12-08T21:56:40", "url": "https://files.pythonhosted.org/packages/d4/3a/44dfaf206a4ccecda5386594e8f506a3bf5e84d48a386ba743d45e320eac/FixedWidth-0.11.tar.gz" } ], "0.12": [ { "comment_text": "", "digests": { "md5": "deacd94b72b66f3f2c194684e62aec3d", "sha256": "1b2d2e401de84c8908325a3765455c599bc5f23a8eba44be6e551aefe67989d1" }, "downloads": -1, "filename": "FixedWidth-0.12.tar.gz", "has_sig": false, "md5_digest": "deacd94b72b66f3f2c194684e62aec3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3289, "upload_time": "2012-12-08T22:08:23", "url": "https://files.pythonhosted.org/packages/fe/41/da94340dc040d916729459d220e081c81a7421ea946e475287dff9686256/FixedWidth-0.12.tar.gz" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "b811e61ca6f3799d7f443c9a2023575e", "sha256": "f7e80bbbd910c5987b487a99db3ed21947ee15aa6cc68bbfa32cd726f3fe97c8" }, "downloads": -1, "filename": "FixedWidth-0.9.tar.gz", "has_sig": false, "md5_digest": "b811e61ca6f3799d7f443c9a2023575e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3330, "upload_time": "2012-12-08T22:15:22", "url": "https://files.pythonhosted.org/packages/4a/4d/9026c547c56029b758fa638ec4225f5ec667fe389037244499152e91a324/FixedWidth-0.9.tar.gz" } ], "0.99": [ { "comment_text": "", "digests": { "md5": "c91dc3bfb11003e3a85dbb89b8fb6c53", "sha256": "09de98287a1af5dc2490ce97a441dcf7c4ee6e1388498877f2698cff5e466b43" }, "downloads": -1, "filename": "FixedWidth-0.99.tar.gz", "has_sig": false, "md5_digest": "c91dc3bfb11003e3a85dbb89b8fb6c53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3418, "upload_time": "2013-08-09T21:12:03", "url": "https://files.pythonhosted.org/packages/c6/1f/f3a97f5d756aead87046746e3ab1f64b4026cf497c907a6dae6652c5b0ff/FixedWidth-0.99.tar.gz" } ], "0.99.3": [ { "comment_text": "", "digests": { "md5": "82bdf23cc0c3204056662bc89bc82eed", "sha256": "5e151d3f16d32aa3345c6c4b0cf5b634ce3e8c24bfe83937d9601730343d0fb5" }, "downloads": -1, "filename": "FixedWidth-0.99.3.tar.gz", "has_sig": false, "md5_digest": "82bdf23cc0c3204056662bc89bc82eed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3489, "upload_time": "2016-01-25T17:54:56", "url": "https://files.pythonhosted.org/packages/59/3d/144abbae83972673304ec4902c6cba32f64de61364411b094111c8c31bc3/FixedWidth-0.99.3.tar.gz" } ], "0.99.7": [], "1.0": [ { "comment_text": "", "digests": { "md5": "3680e3057ccfd25c20cb4c68efce36dd", "sha256": "e699925c92ca249d2244ac3ef32628f21c52c90b6a4fb5d70d4266a0b42f5c5c" }, "downloads": -1, "filename": "FixedWidth-1.0.tar.gz", "has_sig": false, "md5_digest": "3680e3057ccfd25c20cb4c68efce36dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2903, "upload_time": "2017-05-13T18:59:43", "url": "https://files.pythonhosted.org/packages/9f/3f/7324a459c8b169dccffaea1b3ce3136cb8eb73f9338c5553586cce79d79f/FixedWidth-1.0.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "33967190b6a2c053c6c8edd081db7d85", "sha256": "b3300ca96bbfbe3caa32645a2c84e7b79e78e3cbd6e38948f667a1a1b96bf288" }, "downloads": -1, "filename": "FixedWidth-1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "33967190b6a2c053c6c8edd081db7d85", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4530, "upload_time": "2018-06-07T16:28:41", "url": "https://files.pythonhosted.org/packages/ed/f2/949e1fa35968c4bb1de3b3095034dc22f16ef6333754fe6065e976bf69ce/FixedWidth-1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "063698049c7e2fe5ea2776b63993fa72", "sha256": "5cf95a99660ef60451b3507ad8999f7b890093746054559d9eb6b95b561008ef" }, "downloads": -1, "filename": "FixedWidth-1.2.tar.gz", "has_sig": false, "md5_digest": "063698049c7e2fe5ea2776b63993fa72", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4440, "upload_time": "2018-06-07T16:28:41", "url": "https://files.pythonhosted.org/packages/d0/f7/0a0549d8d92de6432cecfafca7303aa01471c328de6280e867ac62b16869/FixedWidth-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "d751bf4bd4526eae9134951ca632aaf1", "sha256": "39c3e24067b8436a5ac2560c59bf049a5db324d59271ad297bfd66b18195bf02" }, "downloads": -1, "filename": "FixedWidth-1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "d751bf4bd4526eae9134951ca632aaf1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5114, "upload_time": "2018-06-07T16:41:19", "url": "https://files.pythonhosted.org/packages/b3/25/987e49efea97bda591282e93a55f86aec6e4fdff5ace77385ed8a5c1b0e9/FixedWidth-1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5359aace515f77d54f12ce1bc4ee3b36", "sha256": "472fe49c93dff14975cb8ea5bf6a7ef4c42343a7a1b494993640c6580be3de93" }, "downloads": -1, "filename": "FixedWidth-1.3.tar.gz", "has_sig": false, "md5_digest": "5359aace515f77d54f12ce1bc4ee3b36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4734, "upload_time": "2018-06-07T16:41:20", "url": "https://files.pythonhosted.org/packages/94/b3/a6c09d71a822d3570bcc1ec807af99052ef41d6b4606f67340f23933fc54/FixedWidth-1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d751bf4bd4526eae9134951ca632aaf1", "sha256": "39c3e24067b8436a5ac2560c59bf049a5db324d59271ad297bfd66b18195bf02" }, "downloads": -1, "filename": "FixedWidth-1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "d751bf4bd4526eae9134951ca632aaf1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5114, "upload_time": "2018-06-07T16:41:19", "url": "https://files.pythonhosted.org/packages/b3/25/987e49efea97bda591282e93a55f86aec6e4fdff5ace77385ed8a5c1b0e9/FixedWidth-1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5359aace515f77d54f12ce1bc4ee3b36", "sha256": "472fe49c93dff14975cb8ea5bf6a7ef4c42343a7a1b494993640c6580be3de93" }, "downloads": -1, "filename": "FixedWidth-1.3.tar.gz", "has_sig": false, "md5_digest": "5359aace515f77d54f12ce1bc4ee3b36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4734, "upload_time": "2018-06-07T16:41:20", "url": "https://files.pythonhosted.org/packages/94/b3/a6c09d71a822d3570bcc1ec807af99052ef41d6b4606f67340f23933fc54/FixedWidth-1.3.tar.gz" } ] }