{ "info": { "author": "Ole Martin Bjorndalen", "author_email": "ombdalen@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2" ], "description": "dbfread - Read DBF Files with Python\n====================================\n\nDBF is a file format used by databases such dBase, Visual FoxPro, and\nFoxBase+. This library reads DBF files and returns the data as native\nPython data types for further processing. It is primarily intended for\nbatch jobs and one-off scripts.\n\n::\n\n >>> from dbfread import DBF\n >>> for record in DBF('people.dbf'):\n ... print(record)\n OrderedDict([('NAME', 'Alice'), ('BIRTHDATE', datetime.date(1987, 3, 1))])\n OrderedDict([('NAME', 'Bob'), ('BIRTHDATE', datetime.date(1980, 11, 12))])\n\nBy default records are streamed directly from the file. If you have\nenough memory you can instead load them into a list. This allows for\nrandom access::\n\n >>> table = DBF('people.dbf', load=True)\n >>> print(table.records[1]['NAME'])\n Bob\n >>> print(table.records[0]['NAME'])\n Alice\n\nFull documentation at https://dbfread.readthedocs.io/\n\nSee docs/changes.rst for a full list of changes in each version.\n\n\nMain Features\n-------------\n\n* written for Python 3, but also works in 2.7\n\n* simple but flexible API\n\n* data is returned as native Python data types\n\n* records are ordered dictionaries, but can be reconfigured to be of\n any type\n\n* aims to handle all variants of DBF files. (Currently only widely\n tested with Visual FoxPro, but should work well with other\n variants.)\n\n* support for 18 field types. Custom types can be added by subclassing\n ``FieldParser``\n\n* reads ``FPT`` and ``DBT`` memo files, both text and binary data\n\n* handles mixed case file names gracefully on case sensitive file systems\n\n* can retrieve deleted records\n\n\nInstalling\n----------\n\nRequires Python 3.2 or 2.7.\n\n::\n\n pip install dbfread\n\n``dbfread`` is a pure Python module and doesn't depend on any packages\noutside the standard library.\n\nTo build documentation locally::\n\n python setup.py docs\n\nThis requires Sphinx. The resulting files can be found in\n``docs/_build/``.\n\n\nSource code\n------------\n\nhttp://github.com/olemb/dbfread/\n\n\nAPI Changes\n-----------\n\n``dbfread.open()`` and ``dbfread.read()`` are deprecated as of version\n``2.0``, and will be removed in ``2.2``.\n\nThe ``DBF`` class is no longer a subclass of ``list``. This makes the\nAPI a lot cleaner and easier to understand, but old code that relied\non this behaviour will be broken. Iteration and record counting works\nthe same as before. Other list operations can be rewritten using the\n``record`` attribute. For example::\n\n table = dbfread.read('people.dbf')\n print(table[1])\n\ncan be rewritten as::\n\n table = DBF('people.dbf', load=True)\n print(table.records[1])\n\n``open()`` and ``read()`` both return ``DeprecatedDBF``, which is a\nsubclass of ``DBF`` and ``list`` and thus backward compatible.\n\n\nLicense\n-------\n\ndbfread is released under the terms of the `MIT license\n`_.\n\n\nContact\n-------\n\nOle Martin Bjorndalen - ombdalen@gmail.com\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://dbfread.readthedocs.io/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "td_dbfread", "package_url": "https://pypi.org/project/td_dbfread/", "platform": "", "project_url": "https://pypi.org/project/td_dbfread/", "project_urls": { "Homepage": "https://dbfread.readthedocs.io/" }, "release_url": "https://pypi.org/project/td_dbfread/2.0.8/", "requires_dist": null, "requires_python": "", "summary": "Read DBF Files with Python", "version": "2.0.8" }, "last_serial": 4900956, "releases": { "2.0.8": [ { "comment_text": "", "digests": { "md5": "d524a511ff784edc98e411c7d5ec5f1c", "sha256": "d1e15fb77108e25e4172afc344590a1afffbb1b709c6ff56ca4047c09756d825" }, "downloads": -1, "filename": "td_dbfread-2.0.8.tar.gz", "has_sig": false, "md5_digest": "d524a511ff784edc98e411c7d5ec5f1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34582, "upload_time": "2019-03-05T17:34:26", "url": "https://files.pythonhosted.org/packages/d5/24/d20665ed12f79553ceea3d73c7cebf01f991917ae602b42a38a7b4c42a35/td_dbfread-2.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d524a511ff784edc98e411c7d5ec5f1c", "sha256": "d1e15fb77108e25e4172afc344590a1afffbb1b709c6ff56ca4047c09756d825" }, "downloads": -1, "filename": "td_dbfread-2.0.8.tar.gz", "has_sig": false, "md5_digest": "d524a511ff784edc98e411c7d5ec5f1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34582, "upload_time": "2019-03-05T17:34:26", "url": "https://files.pythonhosted.org/packages/d5/24/d20665ed12f79553ceea3d73c7cebf01f991917ae602b42a38a7b4c42a35/td_dbfread-2.0.8.tar.gz" } ] }