{ "info": { "author": "Martijn Hemeryck", "author_email": "martijn.hemeryck@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Office/Business :: Financial :: Accounting" ], "description": "# pycoda\n\n[![CircleCI](https://circleci.com/gh/mhemeryck/pycoda.svg?style=svg)](https://circleci.com/gh/mhemeryck/pycoda)\n[![Coverage Status](https://coveralls.io/repos/github/mhemeryck/pycoda/badge.svg)](https://coveralls.io/github/mhemeryck/pycoda)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![PyPI version](https://badge.fury.io/py/codapy.svg)](https://badge.fury.io/py/codapy)\n[![Code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\n## Quickstart\n\nGenerate a CODA file from a factory:\n```python\n>>> from pycoda.factories import CodaFileFactory\n>>> coda_file = CodaFileFactory()\n>>> print coda_file.dumps()\n0000029050288805 TWlscjlKSUAnthony Hicks GKCCBEBB 06141120086 2\n10000 0000000026785942011208 000\n2121170000 0000000700448471091015000000000 15030900000 0\n8000 0000000000000000160417 0\n9 134803000000336605556000000724123462 2\n```\n\nCheck the values of the first record:\n```python\n>>> coda_file.records[0].field_dict()\n{'account_holder_reference': 61411200863,\n 'addressee': u'Anthony Hicks',\n 'application_code': u'05',\n 'bank_identification_number': 888,\n 'bic': u'GKCCBEBB',\n 'creation_date': datetime.date(2002, 5, 29),\n 'duplicate': False,\n 'empty': None,\n 'free': None,\n 'identification': 0,\n 'reference': u'TWlscjlKSU',\n 'related_reference': None,\n 'transaction_reference': None,\n 'version_code': 2,\n 'zeroes': None}\n```\n\nUpdate a named field of the first record:\n```python\n>>> coda_file.records[0].addressee = u'John Doe'\n>>> print coda_file.records[0].dumps()\n0000029050288805 TWlscjlKSUJohn Doe GKCCBEBB 06141120086 2\n```\n\nMake a new CODA file object and load the records / fields from the previous object string representation:\n```python\n>>> plain = coda_file.dumps()\n>>> from pycoda.codafile import CodaFile\n>>> new_coda = CodaFile()\n>>> new_coda.loads(plain)\n>>> print new_coda.dumps()\n0000029050288805 TWlscjlKSUJohn Doe GKCCBEBB 06141120086 2\n10000 0000000026785942011208 000\n2121170000 0000000700448471091015000000000 15030900000 0\n8000 0000000000000000160417 0\n9 134803000000336605556000000724123462 2\n>>> new_coda.dumps() == coda_file.dumps()\nTrue\n```\n\n## Model\n\nThe following model hierarchy is employed:\n * CODA file: can consist of multiple records of given type\n * Record type: each of the record types hold different specified named fields of given type\n * Field type: the fields hold the actual values. All the parsing / printing footwork is done at this level\n\nFor each of those levels, the objects can:\n * loads: set value from string representation\n * dumps: generate string representation from value\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/mhemeryck/pycoda", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "codapy", "package_url": "https://pypi.org/project/codapy/", "platform": "", "project_url": "https://pypi.org/project/codapy/", "project_urls": { "Homepage": "https://github.com/mhemeryck/pycoda" }, "release_url": "https://pypi.org/project/codapy/0.3.8/", "requires_dist": [ "factory-boy" ], "requires_python": "", "summary": "Coded statement of Account (CODA) python API", "version": "0.3.8" }, "last_serial": 5215813, "releases": { "0.3.4": [ { "comment_text": "", "digests": { "md5": "4993136162127afa880ff0eab33fe285", "sha256": "07cff2b722187774922fe49734c5c821b753489be71f1f76270bbb12ee8247fb" }, "downloads": -1, "filename": "codapy-0.3.4-py3-none-any.whl", "has_sig": false, "md5_digest": "4993136162127afa880ff0eab33fe285", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9235, "upload_time": "2019-03-20T20:14:24", "url": "https://files.pythonhosted.org/packages/b0/40/7075e50c64b5ab4e6293d95c1d6d408c4118061b16a897fb5fe6702d1bc0/codapy-0.3.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5385b3550aa1bc86083c83e4c42d5eb1", "sha256": "a493b0019bfa57c3f8a4d90d67af3120d721bcb7ba4adc23e32e417890e6c1e0" }, "downloads": -1, "filename": "codapy-0.3.4.tar.gz", "has_sig": false, "md5_digest": "5385b3550aa1bc86083c83e4c42d5eb1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7820, "upload_time": "2019-03-20T20:14:26", "url": "https://files.pythonhosted.org/packages/6a/17/fb745861cb302c9bafbc863a08fb3b4ff18fd261f2a0cba06a20d45bead0/codapy-0.3.4.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "f0acdaad0eb62188f0d84ea3bbede876", "sha256": "faa9b47a5a26d4588090f42f9b549df22622c413077896c50cbea3597dd48933" }, "downloads": -1, "filename": "codapy-0.3.5-py3-none-any.whl", "has_sig": false, "md5_digest": "f0acdaad0eb62188f0d84ea3bbede876", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10234, "upload_time": "2019-03-20T21:08:53", "url": "https://files.pythonhosted.org/packages/e6/e3/5836fafcc871d9deedae7ce516209f4d401635dcca5766e79daeab071e12/codapy-0.3.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c3c8f841c9790bdd21ca8aecff1fd01f", "sha256": "565a1c65043bd2a616f49d2023758f1ec963efd25cfcd23970d3d68289e59570" }, "downloads": -1, "filename": "codapy-0.3.5.tar.gz", "has_sig": false, "md5_digest": "c3c8f841c9790bdd21ca8aecff1fd01f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8324, "upload_time": "2019-03-20T21:08:54", "url": "https://files.pythonhosted.org/packages/3b/f1/47867fbdd0d6f8787265f7ddb4360c4630d700d7e6969b0a14318aa2c5f1/codapy-0.3.5.tar.gz" } ], "0.3.6": [ { "comment_text": "", "digests": { "md5": "ad494cbc855eea09472c5c1b29ea83b9", "sha256": "c6fb91f7ca4698d597011624e0aa562aeec75cdddea0fb7d9528270d7da8aeb8" }, "downloads": -1, "filename": "codapy-0.3.6-py3-none-any.whl", "has_sig": false, "md5_digest": "ad494cbc855eea09472c5c1b29ea83b9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10288, "upload_time": "2019-03-20T21:27:06", "url": "https://files.pythonhosted.org/packages/e6/81/8d9abc5b623c009c14651410e14c89e2ac3ce6f0ec2c39c4fd64819df6e9/codapy-0.3.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3f37ab298b94b0368b93806212c5738e", "sha256": "7eade45c62f05e92f7061e0647063ca81916fe6d1532de7de5eb180fc3bd3e8b" }, "downloads": -1, "filename": "codapy-0.3.6.tar.gz", "has_sig": false, "md5_digest": "3f37ab298b94b0368b93806212c5738e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8399, "upload_time": "2019-03-20T21:27:07", "url": "https://files.pythonhosted.org/packages/d4/db/858399621ebc84e83871f39964eece4f30c88898dd9b34c1c0f2c161226e/codapy-0.3.6.tar.gz" } ], "0.3.7": [ { "comment_text": "", "digests": { "md5": "59554d796854d38315f2c6b34f0d3f10", "sha256": "96faa4adaa48b905a65e5e83c2b5d14a714e818b581c39c4548bc28c6e822b4e" }, "downloads": -1, "filename": "codapy-0.3.7-py3-none-any.whl", "has_sig": false, "md5_digest": "59554d796854d38315f2c6b34f0d3f10", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10324, "upload_time": "2019-03-21T19:41:03", "url": "https://files.pythonhosted.org/packages/11/f7/4f9d1ccbc6cb9e8323d7998b483782424ca9186bd8a1e766ccd0ec341554/codapy-0.3.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ee16c9b1f539222506a3381a1813c3b4", "sha256": "020bc25973438fbb7f26bc5fd3256678907647171b664430f7cf60bb6f2e5bb6" }, "downloads": -1, "filename": "codapy-0.3.7.tar.gz", "has_sig": false, "md5_digest": "ee16c9b1f539222506a3381a1813c3b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8436, "upload_time": "2019-03-21T19:41:04", "url": "https://files.pythonhosted.org/packages/e9/f2/ab92c0117bd3918026f4e74636e976c6ca7686a84434598495dfafcf5053/codapy-0.3.7.tar.gz" } ], "0.3.8": [ { "comment_text": "", "digests": { "md5": "d63e51894511239563aa16d3e8234794", "sha256": "c980db356e940aaad939f15a17108168ea74d4ec977ae8b422f8d708a7f28596" }, "downloads": -1, "filename": "codapy-0.3.8-py3-none-any.whl", "has_sig": false, "md5_digest": "d63e51894511239563aa16d3e8234794", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10323, "upload_time": "2019-05-02T08:17:09", "url": "https://files.pythonhosted.org/packages/e7/7d/4aebf8c43ef97fcc71b9ec9b5702eeef46df7fb3b0fb92386b8934600fdd/codapy-0.3.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6919b5d9750619e2f4d9bf95f1931022", "sha256": "02de6633620bdb0314d8ae9e693615e503b4b43526806e17930a11f3dda6c947" }, "downloads": -1, "filename": "codapy-0.3.8.tar.gz", "has_sig": false, "md5_digest": "6919b5d9750619e2f4d9bf95f1931022", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8432, "upload_time": "2019-05-02T08:17:11", "url": "https://files.pythonhosted.org/packages/cb/de/04454e4e89bc40dbb9c682c9a7f9cc807f1603d5c66cfdea7cfd96120bd8/codapy-0.3.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d63e51894511239563aa16d3e8234794", "sha256": "c980db356e940aaad939f15a17108168ea74d4ec977ae8b422f8d708a7f28596" }, "downloads": -1, "filename": "codapy-0.3.8-py3-none-any.whl", "has_sig": false, "md5_digest": "d63e51894511239563aa16d3e8234794", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10323, "upload_time": "2019-05-02T08:17:09", "url": "https://files.pythonhosted.org/packages/e7/7d/4aebf8c43ef97fcc71b9ec9b5702eeef46df7fb3b0fb92386b8934600fdd/codapy-0.3.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6919b5d9750619e2f4d9bf95f1931022", "sha256": "02de6633620bdb0314d8ae9e693615e503b4b43526806e17930a11f3dda6c947" }, "downloads": -1, "filename": "codapy-0.3.8.tar.gz", "has_sig": false, "md5_digest": "6919b5d9750619e2f4d9bf95f1931022", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8432, "upload_time": "2019-05-02T08:17:11", "url": "https://files.pythonhosted.org/packages/cb/de/04454e4e89bc40dbb9c682c9a7f9cc807f1603d5c66cfdea7cfd96120bd8/codapy-0.3.8.tar.gz" } ] }