appintel 1.0.1__tar.gz → 1.0.2__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.1
2
2
  Name: appintel
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: A command line tool to search and compare prices of apps and music on the Apple Store
5
5
  Author: James Campbell
6
6
  Author-email: james@jamescampbell.us
@@ -9,6 +9,7 @@ Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Programming Language :: Python :: 3.11
10
10
  Classifier: Programming Language :: Python :: 3.12
11
11
  Requires-Dist: argparse (>=1.4.0,<2.0.0)
12
+ Requires-Dist: black (>=24.4.2,<25.0.0)
12
13
  Requires-Dist: certifi (>=2024.2.2,<2025.0.0)
13
14
  Requires-Dist: chardet (>=5.2.0,<6.0.0)
14
15
  Requires-Dist: idna (>=3.7,<4.0)
@@ -1,4 +1,5 @@
1
1
  """A script to grab itunes items for sale for market and data research."""
2
+
2
3
  # coding: utf-8
3
4
  # !/usr/bin/python3
4
5
  # Author: James Campbell
@@ -18,7 +19,7 @@ import pandas as pd
18
19
  import requests
19
20
 
20
21
  # globals
21
- __version__ = "1.0.1"
22
+ __version__ = "1.0.2"
22
23
  logo = """
23
24
  +-------------------------------------+
24
25
  | --\ |
@@ -39,8 +40,8 @@ ITUNES_URL_ENDPOINT = "https://itunes.apple.com/search?term={}&country={}&entity
39
40
 
40
41
  # arguments
41
42
  parser = argparse.ArgumentParser(
42
- description='collects and processes itunes data including ibook, application, '
43
- 'and other store items with metadata, example: itunizer -c ibook -s "corn" -t',
43
+ description="collects and processes itunes data including ibook, application, "
44
+ 'and other store items with metadata, example: itunizer -c ibook -s "corn" -t',
44
45
  formatter_class=argparse.ArgumentDefaultsHelpFormatter,
45
46
  )
46
47
  parser.add_argument(
@@ -107,10 +108,9 @@ def get_content():
107
108
  """Get data from requests object from itunes endpoint."""
108
109
  r = requests.get(
109
110
  ITUNES_URL_ENDPOINT.format(
110
- args["search_term"], args["store_country"],
111
- args["category_location"]
111
+ args["search_term"], args["store_country"], args["category_location"]
112
112
  ),
113
- timeout=10 # Timeout after 10 seconds
113
+ timeout=10, # Timeout after 10 seconds
114
114
  )
115
115
  return r
116
116
 
@@ -209,7 +209,7 @@ def main():
209
209
  )
210
210
  )
211
211
  else:
212
- with open(f"{args['search_term']}.json", "w", encoding='utf-8') as f:
212
+ with open(f"{args['search_term']}.json", "w", encoding="utf-8") as f:
213
213
  f.write(json.dumps(request_response.json()))
214
214
  exit(f"file saved as {args['search_term']}.json")
215
215
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "appintel"
3
- version = "1.0.1"
3
+ version = "1.0.2"
4
4
  description = "A command line tool to search and compare prices of apps and music on the Apple Store"
5
5
  authors = ["James Campbell <james@jamescampbell.us>"]
6
6
  readme = "README.md"
@@ -18,6 +18,7 @@ pytz = "^2024.1"
18
18
  requests = "^2.31.0"
19
19
  six = "^1.16.0"
20
20
  urllib3 = "^2.2.1"
21
+ black = "^24.4.2"
21
22
 
22
23
  [tool.poetry.group.dev.dependencies]
23
24
  black = "^24.4.2"
File without changes
File without changes
File without changes
File without changes