File: csv.rst

package info (click to toggle)
python-agate 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,960 kB
  • sloc: python: 8,806; makefile: 126
file content (59 lines) | stat: -rw-r--r-- 1,654 bytes parent folder | download | duplicates (2)
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
=====================
CSV reader and writer
=====================

Agate contains CSV readers and writers that are intended to be used as a drop-in replacement for :mod:`csv`. These versions add unicode support for Python 2 and several other minor features.

Agate methods will use these version automatically. If you would like to use them in your own code, you can import them, like this:

.. code-block:: python

    from agate import csv

Due to nuanced differences between the versions, these classes are implemented seperately for Python 2 and Python 3. The documentation for both versions is provided below, but only the one for your version of Python is imported with the above code.

Python 3
--------

.. autosummary::
    :nosignatures:

    agate.csv_py3.reader
    agate.csv_py3.writer
    agate.csv_py3.Reader
    agate.csv_py3.Writer
    agate.csv_py3.DictReader
    agate.csv_py3.DictWriter

Python 2
--------

.. autosummary::
    :nosignatures:

    agate.csv_py2.reader
    agate.csv_py2.writer
    agate.csv_py2.Reader
    agate.csv_py2.Writer
    agate.csv_py2.DictReader
    agate.csv_py2.DictWriter

Python 3 details
----------------

.. autofunction:: agate.csv_py3.reader
.. autofunction:: agate.csv_py3.writer
.. autoclass:: agate.csv_py3.Reader
.. autoclass:: agate.csv_py3.Writer
.. autoclass:: agate.csv_py3.DictReader
.. autoclass:: agate.csv_py3.DictWriter

Python 2 details
----------------

.. autofunction:: agate.csv_py2.reader
.. autofunction:: agate.csv_py2.writer
.. autoclass:: agate.csv_py2.Reader
.. autoclass:: agate.csv_py2.Writer
.. autoclass:: agate.csv_py2.DictReader
.. autoclass:: agate.csv_py2.DictWriter