appintel 1.0.0__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.0
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)
@@ -21,27 +22,26 @@ Requires-Dist: six (>=1.16.0,<2.0.0)
21
22
  Requires-Dist: urllib3 (>=2.2.1,<3.0.0)
22
23
  Description-Content-Type: text/markdown
23
24
 
24
- # itunizer
25
- 🎵🎵🎵🎵🎵🎵🎵🎵🎵🎵
25
+ # appintel
26
26
 
27
27
  ## What
28
28
 
29
- Gather market data into a machine readable form from iTunes store data.
29
+ Gather market data into a machine readable form from iTunes store data.
30
30
 
31
31
  ## Install
32
32
 
33
- The easiest way is pip: `pip3 install itunizer`.
33
+ The easiest way is pip: `pip3 install appintel`.
34
34
 
35
35
  ## Usage
36
36
 
37
- Use the `-h` for options:
37
+ Use the `-h` for options:
38
38
 
39
- ```
39
+ ```bash
40
40
  $ itunizer -h
41
- usage: itunizer [-h] [-s SEARCH_TERM] [-c CATEGORY_LOCATION] [-p] [-n] [-t]
41
+ usage: appintel [-h] [-s SEARCH_TERM] [-c CATEGORY_LOCATION] [-p] [-n] [-t]
42
42
  [--country STORE_COUNTRY] [--version]
43
43
 
44
- collects and processes itunes data including ibook, application, and other
44
+ collects and processes app store data including ibook, application, and other
45
45
  store items with metadata, example: itunizer -c ibook -s "corn" -t
46
46
 
47
47
  optional arguments:
@@ -1,24 +1,23 @@
1
- # itunizer
2
- 🎵🎵🎵🎵🎵🎵🎵🎵🎵🎵
1
+ # appintel
3
2
 
4
3
  ## What
5
4
 
6
- Gather market data into a machine readable form from iTunes store data.
5
+ Gather market data into a machine readable form from iTunes store data.
7
6
 
8
7
  ## Install
9
8
 
10
- The easiest way is pip: `pip3 install itunizer`.
9
+ The easiest way is pip: `pip3 install appintel`.
11
10
 
12
11
  ## Usage
13
12
 
14
- Use the `-h` for options:
13
+ Use the `-h` for options:
15
14
 
16
- ```
15
+ ```bash
17
16
  $ itunizer -h
18
- usage: itunizer [-h] [-s SEARCH_TERM] [-c CATEGORY_LOCATION] [-p] [-n] [-t]
17
+ usage: appintel [-h] [-s SEARCH_TERM] [-c CATEGORY_LOCATION] [-p] [-n] [-t]
19
18
  [--country STORE_COUNTRY] [--version]
20
19
 
21
- collects and processes itunes data including ibook, application, and other
20
+ collects and processes app store data including ibook, application, and other
22
21
  store items with metadata, example: itunizer -c ibook -s "corn" -t
23
22
 
24
23
  optional arguments:
@@ -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.0"
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.0"
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