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__/
2
2
src /csv_to_custom_json.egg-info /
3
3
dist /
4
4
.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 5
5
6
6
## How to install
7
7
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)
9
9
10
10
``` sh
11
11
python3 -m pip install csv-to-custom-json
@@ -58,9 +58,9 @@ def callback(value):
58
58
return None
59
59
60
60
schema = {
61
- num1: " string" ,
62
- callback,
63
- num3: " int"
61
+ " num1" : " string" ,
62
+ " num2 " : callback,
63
+ " num3" : " int"
64
64
}
65
65
66
66
result = parseFile(" myfile.csv" , schema)
@@ -80,26 +80,26 @@ It's the same as a simple schema :
80
80
from csv_to_custom_json import parseFile
81
81
82
82
schema = {
83
- obj1: {
84
- obj2: {
85
- num4: " string"
83
+ " obj1" : {
84
+ " obj2" : {
85
+ " num4" : " string"
86
86
}
87
87
},
88
- num2: " " ,
89
- num3: " "
88
+ " num2" : " " ,
89
+ " num3" : " "
90
90
}
91
91
result = parseFile(" myfile.csv" , schema)
92
92
```
93
93
94
94
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 )
95
95
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)
97
97
98
98
## See also
99
99
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)
103
103
- [ csv-to-custom-json in JavaScript] ( https://github.com/Its-Just-Nans/csv-to-custom-json )
104
104
105
105
## License
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ def my_func(allValues):
9
9
return " hello"
10
10
11
11
schema = {
12
- num1: [
12
+ " num1" : [
13
13
" num4" ,
14
14
" text" ,
15
15
my_func,
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ def callback(value):
30
30
return None
31
31
32
32
schema = {
33
- num1: " string" ,
34
- callback,
35
- num3: " int"
33
+ " num1" : " string" ,
34
+ " num2 " : callback,
35
+ " num3" : " int"
36
36
}
37
37
38
38
result = parseFile(" myfile.csv" , schema)
@@ -52,13 +52,13 @@ It's the same as a simple schema :
52
52
from csv_to_custom_json import parseFile
53
53
54
54
schema = {
55
- obj1: {
56
- obj2: {
57
- num4: " string"
55
+ " obj1" : {
56
+ " obj2" : {
57
+ " num4" : " string"
58
58
}
59
59
},
60
- num2: " " ,
61
- num3: " "
60
+ " num2" : " " ,
61
+ " num3" : " "
62
62
}
63
63
result = parseFile(" myfile.csv" , schema)
64
64
```
Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = csv-to-custom-json
3
- version = 0.0.2
3
+ version = 0.0.3
4
4
author = n4n5
5
5
author_email = its.just.n4n5@gmail.com
6
6
description = Easily convert your CSV to custom JSON
You can’t perform that action at this time.
0 commit comments