appintel 1.0.3__tar.gz → 1.0.4__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.5
2
2
  Name: appintel
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: A command line tool to search and compare prices of apps and music on the Apple Store
5
5
  Project-URL: Homepage, https://github.com/james-see/appintel
6
6
  Project-URL: Repository, https://github.com/james-see/appintel
@@ -9,7 +9,7 @@ from statistics import mean, median
9
9
 
10
10
  import requests
11
11
 
12
- __version__ = "1.0.3"
12
+ __version__ = "1.0.4"
13
13
 
14
14
  logo = """
15
15
  +-------------------------------------+
@@ -35,10 +35,11 @@ def get_content(
35
35
  search_term: str, store_country: str = "us", category: str = "software"
36
36
  ) -> requests.Response:
37
37
  """Fetch data from the iTunes search endpoint."""
38
- return requests.get(
39
- ITUNES_URL_ENDPOINT.format(search_term, store_country, category),
40
- timeout=10,
38
+ url = (
39
+ f"https://itunes.apple.com/search?"
40
+ f"term={search_term}&country={store_country}&entity={category}"
41
41
  )
42
+ return requests.get(url, timeout=10)
42
43
 
43
44
 
44
45
  def _prices(jsondata: dict) -> list[float]:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "appintel"
7
- version = "1.0.3"
7
+ version = "1.0.4"
8
8
  description = "A command line tool to search and compare prices of apps and music on the Apple Store"
9
9
  readme = "README.md"
10
10
  license = "GPL-3.0-or-later"
@@ -14,7 +14,7 @@ from appintel.appintel import (
14
14
 
15
15
 
16
16
  def test_version() -> None:
17
- assert __version__ == "1.0.3"
17
+ assert __version__ == "1.0.4"
18
18
 
19
19
 
20
20
  def test_build_parser_defaults() -> None:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes