Skip to content

Commit e2c3394

Browse files
committed
fix: cleaner
1 parent c14ed9e commit e2c3394

File tree

6 files changed

+54
-32
lines changed

6 files changed

+54
-32
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ __pycache__/
22
src/csv_to_custom_json.egg-info/
33
dist/
44
.coverage
5+
build/

CHANGELOG.md

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
1-
# Logs
2-
3-
- 2023-10-08 : Better, remove `customSeparator`
4-
- 2022-02-11 : Add docs
5-
- 2022-01-20 :
6-
- first release : `https://pypi.org/project/csv-to-custom-json`
7-
- note : [https://packaging.python.org/en/latest/tutorials/packaging-projects/](https://packaging.python.org/en/latest/tutorials/packaging-projects/)
8-
- note : `python3 -m twine upload dist/*`
9-
- 2021-12-08 : Add option to pass a `list` as `schema`
1+
# CHANGELOG
2+
3+
## Create a new version
4+
5+
```sh
6+
rm -rf dist/ build/
7+
python -m pip install --upgrade build twine
8+
9+
python -m build
10+
11+
python -m twine upload dist/* --verbose
12+
```
13+
14+
## 2023-10-08
15+
16+
Better, remove `customSeparator`
17+
18+
## 2022-02-11
19+
20+
Add docs
21+
22+
## 2022-01-20
23+
24+
- first release : `https://pypi.org/project/csv-to-custom-json`
25+
- note : [https://packaging.python.org/en/latest/tutorials/packaging-projects/](https://packaging.python.org/en/latest/tutorials/packaging-projects/)
26+
- note : `python3 -m twine upload dist/*`
27+
28+
## 2021-12-08
29+
30+
Add option to pass a `list` as `schema`

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## How to install
77

8-
- [installation docs](./docs/How-to-install.md)
8+
- [installation docs](https://github.com/Its-Just-Nans/csv-to-custom-json-python/tree/master/docs/How-to-install.md)
99

1010
```sh
1111
python3 -m pip install csv-to-custom-json
@@ -58,9 +58,9 @@ def callback(value):
5858
return None
5959

6060
schema = {
61-
num1: "string",
62-
callback,
63-
num3: "int"
61+
"num1": "string",
62+
"num2": callback,
63+
"num3": "int"
6464
}
6565

6666
result = parseFile("myfile.csv", schema)
@@ -80,26 +80,26 @@ It's the same as a simple schema :
8080
from csv_to_custom_json import parseFile
8181

8282
schema = {
83-
obj1: {
84-
obj2: {
85-
num4: "string"
83+
"obj1": {
84+
"obj2": {
85+
"num4": "string"
8686
}
8787
},
88-
num2: "",
89-
num3: ""
88+
"num2": "",
89+
"num3": ""
9090
}
9191
result = parseFile("myfile.csv", schema)
9292
```
9393

9494
If you want to check some real case, check out the folder `test` in the [GitHub repository](https://github.com/Its-Just-Nans/csv-to-custom-json-python)
9595

96-
If you want to see and use options check that documentation: [How-to-options](./docs/How-to-options.md)
96+
If you want to see and use options check that documentation: [How-to-options](https://github.com/Its-Just-Nans/csv-to-custom-json-python/tree/master/docs/How-to-options.md)
9797

9898
## See also
9999

100-
- [Tricks](./docs/How-to-know-more.md)
101-
- [How-to-options](./docs/How-to-options.md)
102-
- [CHANGELOG.md](./CHANGELOG.md)
100+
- [Tricks](https://github.com/Its-Just-Nans/csv-to-custom-json-python/tree/master/docs/How-to-know-more.md)
101+
- [How-to-options](https://github.com/Its-Just-Nans/csv-to-custom-json-python/tree/master/docs/How-to-options.md)
102+
- [CHANGELOG.md](https://github.com/Its-Just-Nans/csv-to-custom-json-python/tree/master/CHANGELOG.md)
103103
- [csv-to-custom-json in JavaScript](https://github.com/Its-Just-Nans/csv-to-custom-json)
104104

105105
## License

docs/How-to-know-more.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def my_func(allValues):
99
return "hello"
1010

1111
schema = {
12-
num1: [
12+
"num1": [
1313
"num4",
1414
"text",
1515
my_func,

docs/How-to-use.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ def callback(value):
3030
return None
3131

3232
schema = {
33-
num1: "string",
34-
callback,
35-
num3: "int"
33+
"num1": "string",
34+
"num2": callback,
35+
"num3": "int"
3636
}
3737

3838
result = parseFile("myfile.csv", schema)
@@ -52,13 +52,13 @@ It's the same as a simple schema :
5252
from csv_to_custom_json import parseFile
5353

5454
schema = {
55-
obj1: {
56-
obj2: {
57-
num4: "string"
55+
"obj1": {
56+
"obj2": {
57+
"num4": "string"
5858
}
5959
},
60-
num2: "",
61-
num3: ""
60+
"num2": "",
61+
"num3": ""
6262
}
6363
result = parseFile("myfile.csv", schema)
6464
```

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = csv-to-custom-json
3-
version = 0.0.2
3+
version = 0.0.3
44
author = n4n5
55
author_email = its.just.n4n5@gmail.com
66
description = Easily convert your CSV to custom JSON

0 commit comments

Comments
 (0)