Skip to content

Commit

Permalink
Rename (#8)
Browse files Browse the repository at this point in the history
* add publish workflow on tag push

* rename package
  • Loading branch information
OlivierBinette authored Nov 25, 2023
1 parent 006fd02 commit 6e19251
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The package has no external dependencies beyond Python's standard library and is
## Installation

```bash
pip install bettercsv
pip install csvmeta
```

## Usage
Expand All @@ -29,7 +29,7 @@ pip install bettercsv
Input and ouput data formats for the `read` and `write` functions are modelled on Python's csv module: data to write should be an iterable of rows, and data read will be an iterable of rows with string data types. The data header is always returned as the first row.

```python
import bettercsv as bcsv
import csvmeta as csvm

data = [
['name', 'age', 'state'],
Expand All @@ -38,10 +38,10 @@ data = [
]

# Write data to a csv file folder
bcsv.write('mydata.csv', data)
csvm.write('mydata.csv', data)

# Read data from a csv file folder
data = bcsv.read('mydata.csv')
data = csvm.read('mydata.csv')
list(data)
## [
## ['name', 'age', 'state'],
Expand All @@ -60,7 +60,7 @@ Arbitrary metadata can be added to the metadata file by passing keyword argument
Metadata can be read using the `metadata()` function

```python
import bettercsv as bcsv
import csvmeta as csvm

data = [
['name', 'age', 'state'],
Expand All @@ -69,7 +69,7 @@ data = [
]

# Write data and metadata to a csv file folder
bcsv.write(
csvm.write(
'mydata.csv',
data,
header=True,
Expand All @@ -83,7 +83,7 @@ bcsv.write(
)

# Read metadata from a csv file folder
bcsv.metadata('mydata.csv')
csvm.metadata('mydata.csv')
## {
## "name": "mydata.csv",
## "path": "data.csv",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "bettercsv"
name = "csvmeta"
version = "1.0.0"
description = "Lightweight csv read/write, keeping track of csv dialect and other metadata."
authors = [{ name = "Olivier Binette", email = "[email protected]" }]
Expand All @@ -29,7 +29,7 @@ homepage = "https://github.com/OlivierBinette/BetterCSV"
Issues = "https://github.com/OlivierBinette/BetterCSV/issues"

[tool.setuptools.packages.find]
include = ["bettercsv", "bettercsv.*"]
include = ["csvmeta", "csvmeta.*"]
namespaces = false

[tool.black]
Expand Down

0 comments on commit 6e19251

Please sign in to comment.