File: index.rst

package info (click to toggle)
python-dbfread 2.0.7-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 384 kB
  • sloc: python: 1,146; makefile: 140
file content (62 lines) | stat: -rw-r--r-- 1,439 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.. dbfread documentation master file
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

dbfread - Read DBF Files with Python
====================================

Version |version|
 
DBF is a file format used by databases such dBase, Visual FoxPro, and
FoxBase+. This library reads DBF files and returns the data as native
Python data types for further processing. It is primarily intended for
batch jobs and one-off scripts.


.. code-block:: python

    >>> from dbfread import DBF
    >>> for record in DBF('people.dbf'):
    ...     print(record)
    OrderedDict([('NAME', 'Alice'), ('BIRTHDATE', datetime.date(1987, 3, 1))])
    OrderedDict([('NAME', 'Bob'), ('BIRTHDATE', datetime.date(1980, 11, 12))])


Source code
-----------

Latest stable release: https://github.com/olemb/dbfread/

Latest development version: https://github.com/olemb/dbfread/tree/develop/


About This Document
-------------------

This document is available at https://dbfread.readthedocs.io/

To build documentation locally::

    python setup.py docs                                                        

This requires Sphinx. The resulting files can be found in
``docs/_build/``.


Contents
------------

.. toctree::
   :maxdepth: 2

   changes
   installing
   introduction
   exporting_data
   dbf_objects
   field_types
   api_changes
   resources
   license
   acknowledgements