jsonunwrap 0.2.2__tar.gz → 0.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jsonunwrap
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: A small python package that unpacks data from a JSON url and converts it into a csv file.
5
5
  Author-email: njuedominic <njuemugodominic@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/njuedominic/json-unwrap
@@ -19,13 +19,20 @@ Requires-Dist: pandas>=2.0.0
19
19
 
20
20
  ```python
21
21
  >>> import jsonunwrap as ju
22
- >>> url = "https://dummyjson.com/carts"
22
+ >>> url = "https://dummyjson.com/products"
23
23
  >>> fetchdata = ju.fetch_json(url)
24
24
  >>> df = ju.unwrap_data(fetchdata)
25
25
  >>> df.columns
26
- Index(['id', 'user.name', 'hobbies'], dtype='object')
26
+ Index(['id', 'title', 'description', 'category', 'price', 'discountPercentage',
27
+ 'rating', 'stock', 'tags', 'brand', 'sku', 'weight',
28
+ 'warrantyInformation', 'shippingInformation', 'availabilityStatus',
29
+ 'returnPolicy', 'minimumOrderQuantity', 'images', 'thumbnail',
30
+ 'dimensions.width', 'dimensions.height', 'dimensions.depth',
31
+ 'meta.createdAt', 'meta.updatedAt', 'meta.barcode', 'meta.qrCode',
32
+ 'rating_reviews', 'comment', 'date', 'reviewerName', 'reviewerEmail'],
33
+ dtype='object')
27
34
  >>> len(df)
28
- 2
35
+ 3771
29
36
  ```
30
37
 
31
38
  jsonunwrap allows you to deeply normalize complex, semi-structured nested JSON data into clean pandas DataFrames extremely easily.
@@ -4,13 +4,20 @@
4
4
 
5
5
  ```python
6
6
  >>> import jsonunwrap as ju
7
- >>> url = "https://dummyjson.com/carts"
7
+ >>> url = "https://dummyjson.com/products"
8
8
  >>> fetchdata = ju.fetch_json(url)
9
9
  >>> df = ju.unwrap_data(fetchdata)
10
10
  >>> df.columns
11
- Index(['id', 'user.name', 'hobbies'], dtype='object')
11
+ Index(['id', 'title', 'description', 'category', 'price', 'discountPercentage',
12
+ 'rating', 'stock', 'tags', 'brand', 'sku', 'weight',
13
+ 'warrantyInformation', 'shippingInformation', 'availabilityStatus',
14
+ 'returnPolicy', 'minimumOrderQuantity', 'images', 'thumbnail',
15
+ 'dimensions.width', 'dimensions.height', 'dimensions.depth',
16
+ 'meta.createdAt', 'meta.updatedAt', 'meta.barcode', 'meta.qrCode',
17
+ 'rating_reviews', 'comment', 'date', 'reviewerName', 'reviewerEmail'],
18
+ dtype='object')
12
19
  >>> len(df)
13
- 2
20
+ 3771
14
21
  ```
15
22
 
16
23
  jsonunwrap allows you to deeply normalize complex, semi-structured nested JSON data into clean pandas DataFrames extremely easily.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jsonunwrap
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: A small python package that unpacks data from a JSON url and converts it into a csv file.
5
5
  Author-email: njuedominic <njuemugodominic@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/njuedominic/json-unwrap
@@ -19,13 +19,20 @@ Requires-Dist: pandas>=2.0.0
19
19
 
20
20
  ```python
21
21
  >>> import jsonunwrap as ju
22
- >>> url = "https://dummyjson.com/carts"
22
+ >>> url = "https://dummyjson.com/products"
23
23
  >>> fetchdata = ju.fetch_json(url)
24
24
  >>> df = ju.unwrap_data(fetchdata)
25
25
  >>> df.columns
26
- Index(['id', 'user.name', 'hobbies'], dtype='object')
26
+ Index(['id', 'title', 'description', 'category', 'price', 'discountPercentage',
27
+ 'rating', 'stock', 'tags', 'brand', 'sku', 'weight',
28
+ 'warrantyInformation', 'shippingInformation', 'availabilityStatus',
29
+ 'returnPolicy', 'minimumOrderQuantity', 'images', 'thumbnail',
30
+ 'dimensions.width', 'dimensions.height', 'dimensions.depth',
31
+ 'meta.createdAt', 'meta.updatedAt', 'meta.barcode', 'meta.qrCode',
32
+ 'rating_reviews', 'comment', 'date', 'reviewerName', 'reviewerEmail'],
33
+ dtype='object')
27
34
  >>> len(df)
28
- 2
35
+ 3771
29
36
  ```
30
37
 
31
38
  jsonunwrap allows you to deeply normalize complex, semi-structured nested JSON data into clean pandas DataFrames extremely easily.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "jsonunwrap"
7
- version = "0.2.2"
7
+ version = "0.2.3"
8
8
  authors = [
9
9
  { name = "njuedominic", email="njuemugodominic@gmail.com"}
10
10
  ]
File without changes