dbfread:使用Python读取DBF文件

时间:2021-05-13 21:55:30
【文件属性】:
文件名称:dbfread:使用Python读取DBF文件
文件大小:49KB
文件格式:ZIP
更新时间:2021-05-13 21:55:30
Python dbfread-使用Python读取DBF文件 DBF是dBase,Visual FoxPro和FoxBase +等数据库使用的文件格式。 该库读取DBF文件,并将数据作为本机Python数据类型返回,以进行进一步处理。 它主要用于批处理作业和一次性脚本。 >> > from dbfread import DBF >> > for record in DBF ( 'people.dbf' ): ... print ( record ) { 'NAME' : 'Alice' , 'BIRTHDATE' : datetime . date ( 1987 , 3 , 1 )} { 'NAME' : 'Bob' , 'BIRTHDATE' : datetime . date ( 1980 , 11 , 12 )} 在未订购字典的旧版本中,您将获得collections.OrderedD
【文件预览】:
dbfread-master
----setup.py(2KB)
----.gitignore(83B)
----MANIFEST.in(347B)
----CONTRIBUTING.md(313B)
----LICENSE(1KB)
----setup.cfg(89B)
----.github()
--------workflows()
----examples()
--------dbfinfo.py(817B)
--------record_objects.py(382B)
--------dbf2sqlite(3KB)
--------pandas_dataframe.py(275B)
--------print_invalid_values.py(615B)
--------using_dataset.py(445B)
--------files()
--------custom_field_type.py(354B)
--------namedtuples.py(446B)
--------print_csv.py(232B)
----README.rst(3KB)
----tests()
--------test_memo.py(410B)
--------test_invalid_value.py(188B)
--------test_ifiles.py(301B)
--------cases()
--------test_read_and_length.py(1KB)
--------test_field_parser.py(4KB)
----dbfread()
--------field_parser.py(8KB)
--------deprecated_dbf.py(2KB)
--------__init__.py(721B)
--------struct_parser.py(1KB)
--------dbversions.py(825B)
--------ifiles.py(1KB)
--------codepages.py(3KB)
--------memo.py(4KB)
--------version.py(482B)
--------dbf.py(10KB)
--------exceptions.py(229B)
----.flake8(117B)
----docs()
--------installing.rst(247B)
--------Makefile(5KB)
--------index.rst(1KB)
--------conf.py(8KB)
--------acknowledgements.rst(143B)
--------_static()
--------make.bat(5KB)
--------dbf_objects.rst(5KB)
--------exporting_data.rst(1KB)
--------changes.rst(7KB)
--------introduction.rst(6KB)
--------field_types.rst(4KB)
--------license.rst(1KB)
--------api_changes.rst(737B)
--------resources.rst(869B)
----tox.ini(245B)

网友评论