METADATA 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  1. Metadata-Version: 2.0
  2. Name: tabulate
  3. Version: 0.8.2
  4. Summary: Pretty-print tabular data
  5. Home-page: https://bitbucket.org/astanin/python-tabulate
  6. Author: Sergey Astanin
  7. Author-email: s.astanin@gmail.com
  8. License: MIT
  9. Platform: UNKNOWN
  10. Classifier: Development Status :: 4 - Beta
  11. Classifier: License :: OSI Approved :: MIT License
  12. Classifier: Operating System :: OS Independent
  13. Classifier: Programming Language :: Python :: 2
  14. Classifier: Programming Language :: Python :: 2.7
  15. Classifier: Programming Language :: Python :: 3.3
  16. Classifier: Programming Language :: Python :: 3.4
  17. Classifier: Programming Language :: Python :: 3
  18. Classifier: Programming Language :: Python :: 3.5
  19. Classifier: Programming Language :: Python :: 3.6
  20. Classifier: Topic :: Software Development :: Libraries
  21. Provides-Extra: widechars
  22. Requires-Dist: wcwidth; extra == 'widechars'
  23. ===============
  24. python-tabulate
  25. ===============
  26. Pretty-print tabular data in Python, a library and a command-line
  27. utility.
  28. The main use cases of the library are:
  29. * printing small tables without hassle: just one function call,
  30. formatting is guided by the data itself
  31. * authoring tabular data for lightweight plain-text markup: multiple
  32. output formats suitable for further editing or transformation
  33. * readable presentation of mixed textual and numeric data: smart
  34. column alignment, configurable number formatting, alignment by a
  35. decimal point
  36. Installation
  37. ------------
  38. To install the Python library and the command line utility, run::
  39. pip install tabulate
  40. The command line utility will be installed as ``tabulate`` to ``bin`` on Linux
  41. (e.g. ``/usr/bin``); or as ``tabulate.exe`` to ``Scripts`` in your Python
  42. installation on Windows (e.g. ``C:\Python27\Scripts\tabulate.exe``).
  43. You may consider installing the library only for the current user::
  44. pip install tabulate --user
  45. In this case the command line utility will be installed to ``~/.local/bin/tabulate``
  46. on Linux and to ``%APPDATA%\Python\Scripts\tabulate.exe`` on Windows.
  47. To install just the library on Unix-like operating systems::
  48. TABULATE_INSTALL=lib-only pip install tabulate
  49. On Windows::
  50. set TABULATE_INSTALL=lib-only
  51. pip install tabulate
  52. Library usage
  53. -------------
  54. The module provides just one function, ``tabulate``, which takes a
  55. list of lists or another tabular data type as the first argument,
  56. and outputs a nicely formatted plain-text table::
  57. >>> from tabulate import tabulate
  58. >>> table = [["Sun",696000,1989100000],["Earth",6371,5973.6],
  59. ... ["Moon",1737,73.5],["Mars",3390,641.85]]
  60. >>> print tabulate(table)
  61. ----- ------ -------------
  62. Sun 696000 1.9891e+09
  63. Earth 6371 5973.6
  64. Moon 1737 73.5
  65. Mars 3390 641.85
  66. ----- ------ -------------
  67. The following tabular data types are supported:
  68. * list of lists or another iterable of iterables
  69. * list or another iterable of dicts (keys as columns)
  70. * dict of iterables (keys as columns)
  71. * two-dimensional NumPy array
  72. * NumPy record arrays (names as columns)
  73. * pandas.DataFrame
  74. Examples in this file use Python2. Tabulate supports Python3 too.
  75. Headers
  76. ~~~~~~~
  77. The second optional argument named ``headers`` defines a list of
  78. column headers to be used::
  79. >>> print tabulate(table, headers=["Planet","R (km)", "mass (x 10^29 kg)"])
  80. Planet R (km) mass (x 10^29 kg)
  81. -------- -------- -------------------
  82. Sun 696000 1.9891e+09
  83. Earth 6371 5973.6
  84. Moon 1737 73.5
  85. Mars 3390 641.85
  86. If ``headers="firstrow"``, then the first row of data is used::
  87. >>> print tabulate([["Name","Age"],["Alice",24],["Bob",19]],
  88. ... headers="firstrow")
  89. Name Age
  90. ------ -----
  91. Alice 24
  92. Bob 19
  93. If ``headers="keys"``, then the keys of a dictionary/dataframe, or
  94. column indices are used. It also works for NumPy record arrays and
  95. lists of dictionaries or named tuples::
  96. >>> print tabulate({"Name": ["Alice", "Bob"],
  97. ... "Age": [24, 19]}, headers="keys")
  98. Age Name
  99. ----- ------
  100. 24 Alice
  101. 19 Bob
  102. Row Indices
  103. ~~~~~~~~~~~
  104. By default, only pandas.DataFrame tables have an additional column
  105. called row index. To add a similar column to any other type of table,
  106. pass ``showindex="always"`` or ``showindex=True`` argument to
  107. ``tabulate()``. To suppress row indices for all types of data, pass
  108. ``showindex="never"`` or ``showindex=False``. To add a custom row
  109. index column, pass ``showindex=rowIDs``, where ``rowIDs`` is some
  110. iterable::
  111. >>> print(tabulate([["F",24],["M",19]], showindex="always"))
  112. - - --
  113. 0 F 24
  114. 1 M 19
  115. - - --
  116. Table format
  117. ~~~~~~~~~~~~
  118. There is more than one way to format a table in plain text.
  119. The third optional argument named ``tablefmt`` defines
  120. how the table is formatted.
  121. Supported table formats are:
  122. - "plain"
  123. - "simple"
  124. - "grid"
  125. - "fancy_grid"
  126. - "pipe"
  127. - "orgtbl"
  128. - "jira"
  129. - "presto"
  130. - "psql"
  131. - "rst"
  132. - "mediawiki"
  133. - "moinmoin"
  134. - "youtrack"
  135. - "html"
  136. - "latex"
  137. - "latex_raw"
  138. - "latex_booktabs"
  139. - "textile"
  140. ``plain`` tables do not use any pseudo-graphics to draw lines::
  141. >>> table = [["spam",42],["eggs",451],["bacon",0]]
  142. >>> headers = ["item", "qty"]
  143. >>> print tabulate(table, headers, tablefmt="plain")
  144. item qty
  145. spam 42
  146. eggs 451
  147. bacon 0
  148. ``simple`` is the default format (the default may change in future
  149. versions). It corresponds to ``simple_tables`` in `Pandoc Markdown
  150. extensions`::
  151. >>> print tabulate(table, headers, tablefmt="simple")
  152. item qty
  153. ------ -----
  154. spam 42
  155. eggs 451
  156. bacon 0
  157. ``grid`` is like tables formatted by Emacs' `table.el`
  158. package. It corresponds to ``grid_tables`` in Pandoc Markdown
  159. extensions::
  160. >>> print tabulate(table, headers, tablefmt="grid")
  161. +--------+-------+
  162. | item | qty |
  163. +========+=======+
  164. | spam | 42 |
  165. +--------+-------+
  166. | eggs | 451 |
  167. +--------+-------+
  168. | bacon | 0 |
  169. +--------+-------+
  170. ``fancy_grid`` draws a grid using box-drawing characters::
  171. >>> print tabulate(table, headers, tablefmt="fancy_grid")
  172. ╒════════╤═══════╕
  173. │ item │ qty │
  174. ╞════════╪═══════╡
  175. │ spam │ 42 │
  176. ├────────┼───────┤
  177. │ eggs │ 451 │
  178. ├────────┼───────┤
  179. │ bacon │ 0 │
  180. ╘════════╧═══════╛
  181. ``presto`` is like tables formatted by Presto cli::
  182. >>> print tabulate.tabulate()
  183. item | qty
  184. --------+-------
  185. spam | 42
  186. eggs | 451
  187. bacon | 0
  188. ``psql`` is like tables formatted by Postgres' psql cli::
  189. >>> print tabulate.tabulate()
  190. +--------+-------+
  191. | item | qty |
  192. |--------+-------|
  193. | spam | 42 |
  194. | eggs | 451 |
  195. | bacon | 0 |
  196. +--------+-------+
  197. ``pipe`` follows the conventions of `PHP Markdown Extra` extension. It
  198. corresponds to ``pipe_tables`` in Pandoc. This format uses colons to
  199. indicate column alignment::
  200. >>> print tabulate(table, headers, tablefmt="pipe")
  201. | item | qty |
  202. |:-------|------:|
  203. | spam | 42 |
  204. | eggs | 451 |
  205. | bacon | 0 |
  206. ``orgtbl`` follows the conventions of Emacs `org-mode`, and is editable
  207. also in the minor `orgtbl-mode`. Hence its name::
  208. >>> print tabulate(table, headers, tablefmt="orgtbl")
  209. | item | qty |
  210. |--------+-------|
  211. | spam | 42 |
  212. | eggs | 451 |
  213. | bacon | 0 |
  214. ``jira`` follows the conventions of Atlassian Jira markup language::
  215. >>> print tabulate(table, headers, tablefmt="jira")
  216. || item || qty ||
  217. | spam | 42 |
  218. | eggs | 451 |
  219. | bacon | 0 |
  220. ``rst`` formats data like a simple table of the `reStructuredText` format::
  221. >>> print tabulate(table, headers, tablefmt="rst")
  222. ====== =====
  223. item qty
  224. ====== =====
  225. spam 42
  226. eggs 451
  227. bacon 0
  228. ====== =====
  229. ``mediawiki`` format produces a table markup used in `Wikipedia` and on
  230. other MediaWiki-based sites::
  231. >>> print tabulate(table, headers, tablefmt="mediawiki")
  232. {| class="wikitable" style="text-align: left;"
  233. |+ <!-- caption -->
  234. |-
  235. ! item !! align="right"| qty
  236. |-
  237. | spam || align="right"| 42
  238. |-
  239. | eggs || align="right"| 451
  240. |-
  241. | bacon || align="right"| 0
  242. |}
  243. ``moinmoin`` format produces a table markup used in `MoinMoin`
  244. wikis::
  245. >>> print tabulate(d,headers,tablefmt="moinmoin")
  246. || ''' item ''' || ''' quantity ''' ||
  247. || spam || 41.999 ||
  248. || eggs || 451 ||
  249. || bacon || ||
  250. ``youtrack`` format produces a table markup used in Youtrack
  251. tickets::
  252. >>> print tabulate(d,headers,tablefmt="youtrack")
  253. || item || quantity ||
  254. | spam | 41.999 |
  255. | eggs | 451 |
  256. | bacon | |
  257. ``textile`` format produces a table markup used in `Textile` format::
  258. >>> print tabulate(table, headers, tablefmt='textile')
  259. |_. item |_. qty |
  260. |<. spam |>. 42 |
  261. |<. eggs |>. 451 |
  262. |<. bacon |>. 0 |
  263. ``html`` produces standard HTML markup::
  264. >>> print tabulate(table, headers, tablefmt="html")
  265. <table>
  266. <tbody>
  267. <tr><th>item </th><th style="text-align: right;"> qty</th></tr>
  268. <tr><td>spam </td><td style="text-align: right;"> 42</td></tr>
  269. <tr><td>eggs </td><td style="text-align: right;"> 451</td></tr>
  270. <tr><td>bacon </td><td style="text-align: right;"> 0</td></tr>
  271. </tbody>
  272. </table>
  273. ``latex`` format creates a ``tabular`` environment for LaTeX markup,
  274. replacing special characters like ```` or ``\`` to their LaTeX
  275. correspondents::
  276. >>> print tabulate(table, headers, tablefmt="latex")
  277. \begin{tabular}{lr}
  278. \hline
  279. item & qty \\
  280. \hline
  281. spam & 42 \\
  282. eggs & 451 \\
  283. bacon & 0 \\
  284. \hline
  285. \end{tabular}
  286. ``latex_raw`` behaves like ``latex`` but does not escape LaTeX commands
  287. and special characters.
  288. ``latex_booktabs`` creates a ``tabular`` environment for LaTeX markup
  289. using spacing and style from the ``booktabs`` package.
  290. .. _Pandoc Markdown extensions: http://johnmacfarlane.net/pandoc/README.html#tables
  291. .. _PHP Markdown Extra: http://michelf.ca/projects/php-markdown/extra/#table
  292. .. _table.el: http://table.sourceforge.net/
  293. .. _org-mode: http://orgmode.org/manual/Tables.html
  294. .. _reStructuredText: http://docutils.sourceforge.net/docs/user/rst/quickref.html#tables
  295. .. _Textile: http://redcloth.org/hobix.com/textile/
  296. .. _Wikipedia: http://www.mediawiki.org/wiki/Help:Tables
  297. .. _MoinMoin: https://moinmo.in/
  298. Column alignment
  299. ~~~~~~~~~~~~~~~~
  300. ``tabulate`` is smart about column alignment. It detects columns which
  301. contain only numbers, and aligns them by a decimal point (or flushes
  302. them to the right if they appear to be integers). Text columns are
  303. flushed to the left.
  304. You can override the default alignment with ``numalign`` and
  305. ``stralign`` named arguments. Possible column alignments are:
  306. ``right``, ``center``, ``left``, ``decimal`` (only for numbers), and
  307. ``None`` (to disable alignment).
  308. Aligning by a decimal point works best when you need to compare
  309. numbers at a glance::
  310. >>> print tabulate([[1.2345],[123.45],[12.345],[12345],[1234.5]])
  311. ----------
  312. 1.2345
  313. 123.45
  314. 12.345
  315. 12345
  316. 1234.5
  317. ----------
  318. Compare this with a more common right alignment::
  319. >>> print tabulate([[1.2345],[123.45],[12.345],[12345],[1234.5]], numalign="right")
  320. ------
  321. 1.2345
  322. 123.45
  323. 12.345
  324. 12345
  325. 1234.5
  326. ------
  327. For ``tabulate``, anything which can be parsed as a number is a
  328. number. Even numbers represented as strings are aligned properly. This
  329. feature comes in handy when reading a mixed table of text and numbers
  330. from a file:
  331. ::
  332. >>> import csv ; from StringIO import StringIO
  333. >>> table = list(csv.reader(StringIO("spam, 42\neggs, 451\n")))
  334. >>> table
  335. [['spam', ' 42'], ['eggs', ' 451']]
  336. >>> print tabulate(table)
  337. ---- ----
  338. spam 42
  339. eggs 451
  340. ---- ----
  341. Number formatting
  342. ~~~~~~~~~~~~~~~~~
  343. ``tabulate`` allows to define custom number formatting applied to all
  344. columns of decimal numbers. Use ``floatfmt`` named argument::
  345. >>> print tabulate([["pi",3.141593],["e",2.718282]], floatfmt=".4f")
  346. -- ------
  347. pi 3.1416
  348. e 2.7183
  349. -- ------
  350. ``floatfmt`` argument can be a list or a tuple of format strings,
  351. one per column, in which case every column may have different number formatting::
  352. >>> print tabulate([[0.12345, 0.12345, 0.12345]], floatfmt=(".1f", ".3f"))
  353. --- ----- -------
  354. 0.1 0.123 0.12345
  355. --- ----- -------
  356. Text formatting
  357. ~~~~~~~~~~~~~~~
  358. By default, ``tabulate`` removes leading and trailing whitespace from text
  359. columns. To disable whitespace removal, set the global module-level flag
  360. ``PRESERVE_WHITESPACE``::
  361. import tabulate
  362. tabulate.PRESERVE_WHITESPACE = True
  363. Wide (fullwidth CJK) symbols
  364. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  365. To properly align tables which contain wide characters (typically fullwidth
  366. glyphs from Chinese, Japanese or Korean languages), the user should install
  367. ``wcwidth`` library. To install it together with ``tabulate``::
  368. pip install tabulate[widechars]
  369. Wide character support is enabled automatically if ``wcwidth`` library is
  370. already installed. To disable wide characters support without uninstalling
  371. ``wcwidth``, set the global module-level flag ``WIDE_CHARS_MODE``::
  372. import tabulate
  373. tabulate.WIDE_CHARS_MODE = False
  374. Multiline cells
  375. ~~~~~~~~~~~~~~~
  376. Most table formats support multiline cell text (text containing newline
  377. characters). The newline characters are honored as line break characters.
  378. Multiline cells are supported for data rows and for header rows.
  379. Further automatic line breaks are not inserted. Of course, some output formats
  380. such as latex or html handle automatic formatting of the cell content on their
  381. own, but for those that don't, the newline characters in the input cell text
  382. are the only means to break a line in cell text.
  383. Note that some output formats (e.g. simple, or plain) do not represent row
  384. delimiters, so that the representation of multiline cells in such formats
  385. may be ambiguous to the reader.
  386. The following examples of formatted output use the following table with
  387. a multiline cell, and headers with a multiline cell::
  388. >>> table = [["eggs",451],["more\nspam",42]]
  389. >>> headers = ["item\nname", "qty"]
  390. ``plain`` tables::
  391. >>> print(tabulate(table, headers, tablefmt="plain"))
  392. item qty
  393. name
  394. eggs 451
  395. more 42
  396. spam
  397. ``simple`` tables::
  398. >>> print(tabulate(table, headers, tablefmt="simple"))
  399. item qty
  400. name
  401. ------ -----
  402. eggs 451
  403. more 42
  404. spam
  405. ``grid`` tables::
  406. >>> print(tabulate(table, headers, tablefmt="grid"))
  407. +--------+-------+
  408. | item | qty |
  409. | name | |
  410. +========+=======+
  411. | eggs | 451 |
  412. +--------+-------+
  413. | more | 42 |
  414. | spam | |
  415. +--------+-------+
  416. ``fancy_grid`` tables::
  417. >>> print(tabulate(table, headers, tablefmt="fancy_grid"))
  418. ╒════════╤═══════╕
  419. │ item │ qty │
  420. │ name │ │
  421. ╞════════╪═══════╡
  422. │ eggs │ 451 │
  423. ├────────┼───────┤
  424. │ more │ 42 │
  425. │ spam │ │
  426. ╘════════╧═══════╛
  427. ``pipe`` tables::
  428. >>> print(tabulate(table, headers, tablefmt="pipe"))
  429. | item | qty |
  430. | name | |
  431. |:-------|------:|
  432. | eggs | 451 |
  433. | more | 42 |
  434. | spam | |
  435. ``orgtbl`` tables::
  436. >>> print(tabulate(table, headers, tablefmt="orgtbl"))
  437. | item | qty |
  438. | name | |
  439. |--------+-------|
  440. | eggs | 451 |
  441. | more | 42 |
  442. | spam | |
  443. ``jira`` tables::
  444. >>> print(tabulate(table, headers, tablefmt="jira"))
  445. | item | qty |
  446. | name | |
  447. |:-------|------:|
  448. | eggs | 451 |
  449. | more | 42 |
  450. | spam | |
  451. ``presto`` tables::
  452. >>> print(tabulate(table, headers, tablefmt="presto"))
  453. item | qty
  454. name |
  455. --------+-------
  456. eggs | 451
  457. more | 42
  458. spam |
  459. ``psql`` tables::
  460. >>> print(tabulate(table, headers, tablefmt="psql"))
  461. +--------+-------+
  462. | item | qty |
  463. | name | |
  464. |--------+-------|
  465. | eggs | 451 |
  466. | more | 42 |
  467. | spam | |
  468. +--------+-------+
  469. ``rst`` tables::
  470. >>> print(tabulate(table, headers, tablefmt="rst"))
  471. ====== =====
  472. item qty
  473. name
  474. ====== =====
  475. eggs 451
  476. more 42
  477. spam
  478. ====== =====
  479. Multiline cells are not well supported for the other table formats.
  480. Usage of the command line utility
  481. ---------------------------------
  482. ::
  483. Usage: tabulate [options] [FILE ...]
  484. FILE a filename of the file with tabular data;
  485. if "-" or missing, read data from stdin.
  486. Options:
  487. -h, --help show this message
  488. -1, --header use the first row of data as a table header
  489. -o FILE, --output FILE print table to FILE (default: stdout)
  490. -s REGEXP, --sep REGEXP use a custom column separator (default: whitespace)
  491. -F FPFMT, --float FPFMT floating point number format (default: g)
  492. -f FMT, --format FMT set output table format; supported formats:
  493. plain, simple, grid, fancy_grid, pipe, orgtbl,
  494. rst, mediawiki, html, latex, latex_raw,
  495. latex_booktabs, tsv
  496. (default: simple)
  497. Performance considerations
  498. --------------------------
  499. Such features as decimal point alignment and trying to parse everything
  500. as a number imply that ``tabulate``:
  501. * has to "guess" how to print a particular tabular data type
  502. * needs to keep the entire table in-memory
  503. * has to "transpose" the table twice
  504. * does much more work than it may appear
  505. It may not be suitable for serializing really big tables (but who's
  506. going to do that, anyway?) or printing tables in performance sensitive
  507. applications. ``tabulate`` is about two orders of magnitude slower
  508. than simply joining lists of values with a tab, coma or other
  509. separator.
  510. In the same time ``tabulate`` is comparable to other table
  511. pretty-printers. Given a 10x10 table (a list of lists) of mixed text
  512. and numeric data, ``tabulate`` appears to be slower than
  513. ``asciitable``, and faster than ``PrettyTable`` and ``texttable``
  514. The following mini-benchmark was run in Python 3.5.2 on Windows
  515. ::
  516. ================================= ========== ===========
  517. Table formatter time, μs rel. time
  518. ================================= ========== ===========
  519. csv to StringIO 14.5 1.0
  520. join with tabs and newlines 20.3 1.4
  521. asciitable (0.8.0) 355.1 24.5
  522. tabulate (0.8.2) 830.3 57.3
  523. tabulate (0.8.2, WIDE_CHARS_MODE) 1483.4 102.4
  524. PrettyTable (0.7.2) 1611.9 111.2
  525. texttable (0.8.8) 1916.5 132.3
  526. ================================= ========== ===========
  527. Version history
  528. ---------------
  529. - 0.8.2: Bug fixes.
  530. - 0.8.1: Multiline data in several output formats.
  531. New ``latex_raw`` format.
  532. Column-specific floating point formatting.
  533. Python 3.5 & 3.6 support. Drop support for Python 2.6, 3.2, 3.3 (should still work).
  534. - 0.7.7: Identical to 0.7.6, resolving some PyPI issues.
  535. - 0.7.6: Bug fixes. New table formats (``psql``, ``jira``, ``moinmoin``, ``textile``).
  536. Wide character support. Printing from database cursors.
  537. Option to print row indices. Boolean columns. Ragged rows.
  538. Option to disable number parsing.
  539. - 0.7.5: Bug fixes. ``--float`` format option for the command line utility.
  540. - 0.7.4: Bug fixes. ``fancy_grid`` and ``html`` formats. Command line utility.
  541. - 0.7.3: Bug fixes. Python 3.4 support. Iterables of dicts. ``latex_booktabs`` format.
  542. - 0.7.2: Python 3.2 support.
  543. - 0.7.1: Bug fixes. ``tsv`` format. Column alignment can be disabled.
  544. - 0.7: ``latex`` tables. Printing lists of named tuples and NumPy
  545. record arrays. Fix printing date and time values. Python <= 2.6.4 is supported.
  546. - 0.6: ``mediawiki`` tables, bug fixes.
  547. - 0.5.1: Fix README.rst formatting. Optimize (performance similar to 0.4.4).
  548. - 0.5: ANSI color sequences. Printing dicts of iterables and Pandas' dataframes.
  549. - 0.4.4: Python 2.6 support.
  550. - 0.4.3: Bug fix, None as a missing value.
  551. - 0.4.2: Fix manifest file.
  552. - 0.4.1: Update license and documentation.
  553. - 0.4: Unicode support, Python3 support, ``rst`` tables.
  554. - 0.3: Initial PyPI release. Table formats: ``simple``, ``plain``,
  555. ``grid``, ``pipe``, and ``orgtbl``.
  556. How to contribute
  557. -----------------
  558. Contributions should include tests and an explanation for the changes they
  559. propose. Documentation (examples, docstrings, README.rst) should be updated
  560. accordingly.
  561. This project uses `nose` testing framework and `tox` to automate testing in
  562. different environments. Add tests to one of the files in the ``test/`` folder.
  563. To run tests on all supported Python versions, make sure all Python
  564. interpreters, ``nose`` and ``tox`` are installed, then run ``tox`` in
  565. the root of the project source tree.
  566. On Linux ``tox`` expects to find executables like ``python2.6``,
  567. ``python2.7``, ``python3.4`` etc. On Windows it looks for
  568. ``C:\Python26\python.exe``, ``C:\Python27\python.exe`` and
  569. ``C:\Python34\python.exe`` respectively.
  570. To test only some Python environements, use ``-e`` option. For
  571. example, to test only against Python 2.7 and Python 3.4, run::
  572. tox -e py27,py34
  573. in the root of the project source tree.
  574. To enable NumPy and Pandas tests, run::
  575. tox -e py27-extra,py34-extra
  576. (this may take a long time the first time, because NumPy and Pandas
  577. will have to be installed in the new virtual environments)
  578. See ``tox.ini`` file to learn how to use ``nosetests`` directly to
  579. test individual Python versions.
  580. .. _nose: https://nose.readthedocs.org/
  581. .. _tox: https://tox.readthedocs.io/
  582. Contributors
  583. ------------
  584. Sergey Astanin, Pau Tallada Crespí, Erwin Marsi, Mik Kocikowski, Bill Ryder,
  585. Zach Dwiel, Frederik Rietdijk, Philipp Bogensberger, Greg (anonymous),
  586. Stefan Tatschner, Emiel van Miltenburg, Brandon Bennett, Amjith Ramanujam,
  587. Jan Schulz, Simon Percivall, Javier Santacruz López-Cepero, Sam Denton,
  588. Alexey Ziyangirov, acaird, Cesar Sanchez, naught101, John Vandenberg,
  589. Zack Dever, Christian Clauss, Benjamin Maier, Andy MacKinlay, Thomas Roten,
  590. Jue Wang, Joe King, Samuel Phan, Nick Satterly, Daniel Robbins, Dmitry B,
  591. Lars Butler, Andreas Maier, Dick Marinus.