Skip to content

Commit

Permalink
Merge pull request #5 from unnonouno/readme
Browse files Browse the repository at this point in the history
Write README
  • Loading branch information
unnonouno committed Feb 8, 2016
2 parents ec04bad + 35b0f24 commit ea07fa0
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 0 deletions.
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2016 Yuya Unno.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include README.md
include LICENSE
recursive-include excelcsv *.py
recursive-include tests *.py
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[![Build Status](https://travis-ci.org/unnonouno/excelcsv.svg?branch=master)](https://travis-ci.org/unnonouno/excelcsv)
[![Coverage Status](https://coveralls.io/repos/github/unnonouno/excelcsv/badge.svg?branch=master)](https://coveralls.io/github/unnonouno/excelcsv?branch=master)

# excelcsv

## Requirements

- Python 2.7, 3,4, 3.5

## Installation

```
$ pip install excelcsv
```

## Usage

```
with excelcsv.read_excel_tsv(path) as reader:
for row in reader:
do_something(row)
```

```
with excelcsv.write_excel_tsv(path) as writer:
for row in rows:
writer.writerow(row)
```

## License

MIT License.
3 changes: 3 additions & 0 deletions excelcsv/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import contextlib
import csv
import io
import pkg_resources
import sys


__version__ = pkg_resources.get_distribution('excelcsv').version

if sys.version_info[0] > 2:
reader = csv.reader
writer = csv.writer
Expand Down
10 changes: 10 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
import os
from setuptools import setup


def read(name):
return open(os.path.join(os.path.dirname(__file__), name)).read()


setup(
name='excelcsv',
version='0.0.0',
description='excelcsv: CSV utility for Excel',
long_description=read('README.md'),
author='Yuya Unno',
author_email='unnonouno@gmail.com',
url='https://github.com/unnonouno/excelcsv',
license='MIT',
packages=['excelcsv'],
tests_require=['nose', 'coverage'],
test_suite='nose.collector',
Expand Down

0 comments on commit ea07fa0

Please sign in to comment.