-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from dabapps/create-installable-package
Create installable package
- Loading branch information
Showing
4 changed files
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
[![Build Status](https://travis-ci.com/dabapps/csv-wrangler.svg?token=apzD3FKHpTNKHAtAu9xC&branch=master)](https://travis-ci.com/dabapps/csv-wrangler) | ||
CSV Wrangler | ||
=================== | ||
Statically typed Python 3 CSV generation helpers. | ||
[![Build Status](https://travis-ci.com/dabapps/csv-wrangler.svg?token=apzD3FKHpTNKHAtAu9xC&branch=master)](https://travis-ci.com/dabapps/csv-wrangler) | ||
[![pypi release](https://img.shields.io/pypi/v/csv-wrangler.svg)](https://pypi.python.org/pypi/csv-wrangler) | ||
|
||
Statically-typed Python 3 CSV generation helpers. | ||
Write nicely typed CSV handling logic, with reorderable headers! | ||
|
||
Settings | ||
-------- | ||
## Getting Started | ||
|
||
Currently not on `pip`, as this isn't quite ready to hit the big time. Whack this into your requirements file: | ||
### Installation | ||
|
||
``` | ||
git+git://github.com/dabapps/[email protected]#egg=csv-wrangler | ||
``` | ||
Install with `pip` | ||
|
||
And then add it to your `INSTALLED_APPS` | ||
pip install csv-wrangler | ||
|
||
```python | ||
'csv_wrangler' | ||
``` | ||
Add `csv_wrangler` to your installed apps | ||
|
||
INSTALLED_APPS = ( | ||
... | ||
'csv_wrangler', | ||
) | ||
|
||
## Usage | ||
|
||
Usage | ||
----- | ||
### Create an Exporter | ||
|
||
Generally, you'll want to subclass `Exporter` and provide two required changes, `headers` and `fetch_records`. You'll also want a way to get data into the exporter - override `__init__` for this. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.1.3' | ||
__version__ = '1.0.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
|
||
name = 'csv-wrangler' | ||
package = 'csv_wrangler' | ||
description = 'Statically-typed CSV helpers' | ||
description = 'Statically-typed Python 3 CSV generation helpers' | ||
url = 'http://www.dabapps.com' | ||
author = 'DabApps' | ||
author_email = '[email protected]' | ||
|
@@ -19,7 +19,8 @@ | |
"Django>=1.8", | ||
] | ||
|
||
long_description = """Statically-typed CSV helpers""" | ||
long_description = """Statically-typed Python 3 CSV generation helpers. | ||
Write nicely typed CSV handling logic, with reorderable headers!""" | ||
|
||
def get_version(package): | ||
""" | ||
|