Skip to content

Commit

Permalink
CleverCSV Release 0.7.1
Browse files Browse the repository at this point in the history
* Remove deprecated wrapper functions
* Expand URL regex to support ``localhost:<port>`` urls
* Minor changes to the TypeDetector API
* Add cChardet as optional dependency (fixes [#48](#48))
  • Loading branch information
GjjvdBurg committed Sep 27, 2021
1 parent e712c49 commit a7c7c81
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## Version 0.7.1

* Remove deprecated wrapper functions
* Expand URL regex to support ``localhost:<port>`` urls
* Minor changes to the TypeDetector API
* Add cChardet as optional dependency (fixes
[#48](https://github.com/alan-turing-institute/CleverCSV/issues/48))

## Version 0.7.0

* Add a JSON object data type to address a specific failure case
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,14 @@ with open("data.csv", "r", newline="") as fp:
rows = list(reader)
```

For large files, you can speed up detection by supplying a smaller sample to
the sniffer, for instance:
For **large files**, you can speed up detection by supplying a smaller sample
to the sniffer, for example:
```python
dialect = clevercsv.Sniffer().sniff(fp.read(10000))
```
You can also speed up encoding detection by installing
[cCharDet](https://github.com/PyYoshi/cChardet), it will automatically be used
when it is available on the system.

That's the basics! If you want more details, you can look at the code of the
package, the test suite, or the [API
Expand Down
10 changes: 10 additions & 0 deletions docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
Changelog
=========

Version 0.7.1
-------------


* Remove deprecated wrapper functions
* Expand URL regex to support ``localhost:<port>`` urls
* Minor changes to the TypeDetector API
* Add cChardet as optional dependency (fixes
`#48 <https://github.com/alan-turing-institute/CleverCSV/issues/48>`_\ )

Version 0.7.0
-------------

Expand Down
8 changes: 6 additions & 2 deletions docs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,17 @@ the Python CSV module:
reader = clevercsv.reader(fp, dialect)
rows = list(reader)
For large files, you can speed up detection by supplying a smaller sample to
the sniffer, for instance:
For **large files**\ , you can speed up detection by supplying a smaller sample
to the sniffer, for example:

.. code-block:: python
dialect = clevercsv.Sniffer().sniff(fp.read(10000))
You can also speed up encoding detection by installing
`cCharDet <https://github.com/PyYoshi/cChardet>`_\ , it will automatically be used
when it is available on the system.

That's the basics! If you want more details, you can look at the code of the
package, the test suite, or the `API
documentation <https://clevercsv.readthedocs.io/en/latest/source/modules.html>`_.
Expand Down

0 comments on commit a7c7c81

Please sign in to comment.