File tree Expand file tree Collapse file tree 6 files changed +54
-32
lines changed Expand file tree Collapse file tree 6 files changed +54
-32
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ __pycache__/
22src /csv_to_custom_json.egg-info /
33dist /
44.coverage
5+ build /
Original file line number Diff line number Diff line change 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 `
Original file line number Diff line number Diff line change 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
1111python3 -m pip install csv-to-custom-json
@@ -58,9 +58,9 @@ def callback(value):
5858 return None
5959
6060schema = {
61- num1: " string" ,
62- callback,
63- num3: " int"
61+ " num1" : " string" ,
62+ " num2 " : callback,
63+ " num3" : " int"
6464}
6565
6666result = parseFile(" myfile.csv" , schema)
@@ -80,26 +80,26 @@ It's the same as a simple schema :
8080from csv_to_custom_json import parseFile
8181
8282schema = {
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}
9191result = parseFile(" myfile.csv" , schema)
9292```
9393
9494If 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
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ def my_func(allValues):
99 return " hello"
1010
1111schema = {
12- num1: [
12+ " num1" : [
1313 " num4" ,
1414 " text" ,
1515 my_func,
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ def callback(value):
3030 return None
3131
3232schema = {
33- num1: " string" ,
34- callback,
35- num3: " int"
33+ " num1" : " string" ,
34+ " num2 " : callback,
35+ " num3" : " int"
3636}
3737
3838result = parseFile(" myfile.csv" , schema)
@@ -52,13 +52,13 @@ It's the same as a simple schema :
5252from csv_to_custom_json import parseFile
5353
5454schema = {
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}
6363result = parseFile(" myfile.csv" , schema)
6464```
Original file line number Diff line number Diff line change 11[metadata]
22name = csv-to-custom-json
3- version = 0.0.2
3+ version = 0.0.3
44author = n4n5
5566description = Easily convert your CSV to custom JSON
You can’t perform that action at this time.
0 commit comments