pyflexweb 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: pyflexweb
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Download IBKR Flex reports using the Interactive Brokers flex web service
5
5
  Author-email: Vishal Doshi <vishal.doshi@gmail.com>
6
6
  License: GPL-3.0-or-later
@@ -43,10 +43,10 @@ A command-line tool for downloading IBKR Flex reports using the Interactive Brok
43
43
 
44
44
  ## Installation
45
45
 
46
- Install from PyPI:
46
+ Install:
47
47
 
48
48
  ```bash
49
- # Using uv (recommended)
49
+ # Install via uv (recommended)
50
50
  uv tool install pyflexweb
51
51
 
52
52
  # Or using pip
@@ -18,10 +18,10 @@ A command-line tool for downloading IBKR Flex reports using the Interactive Brok
18
18
 
19
19
  ## Installation
20
20
 
21
- Install from PyPI:
21
+ Install:
22
22
 
23
23
  ```bash
24
- # Using uv (recommended)
24
+ # Install via uv (recommended)
25
25
  uv tool install pyflexweb
26
26
 
27
27
  # Or using pip
@@ -7,6 +7,7 @@ This module provides the main entry point and argument parsing for the PyFlexWeb
7
7
  import sys
8
8
 
9
9
  import click
10
+ import platformdirs
10
11
 
11
12
  from .database import FlexDatabase
12
13
  from .handlers import (
@@ -65,7 +66,8 @@ def get_effective_options(ctx, **provided_options):
65
66
  default_value = db.get_config(config_key, "20")
66
67
  effective[option_name] = int(default_value)
67
68
  elif option_name == "output_dir":
68
- effective[option_name] = db.get_config(config_key)
69
+ default_output_dir = str(platformdirs.user_data_path("pyflexweb"))
70
+ effective[option_name] = db.get_config(config_key, default_output_dir)
69
71
  else:
70
72
  effective[option_name] = provided_options.get(option_name)
71
73
 
@@ -12,8 +12,8 @@ class FlexDatabase:
12
12
 
13
13
  DB_VERSION = 2 # Increment when schema changes
14
14
 
15
- def __init__(self):
16
- self.db_dir = platformdirs.user_data_dir("pyflexweb")
15
+ def __init__(self, db_dir: str = None):
16
+ self.db_dir = db_dir if db_dir is not None else platformdirs.user_data_dir("pyflexweb")
17
17
  os.makedirs(self.db_dir, exist_ok=True)
18
18
  self.db_path = os.path.join(self.db_dir, "status.db")
19
19
  self.conn = self._init_db()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyflexweb
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Download IBKR Flex reports using the Interactive Brokers flex web service
5
5
  Author-email: Vishal Doshi <vishal.doshi@gmail.com>
6
6
  License: GPL-3.0-or-later
@@ -43,10 +43,10 @@ A command-line tool for downloading IBKR Flex reports using the Interactive Brok
43
43
 
44
44
  ## Installation
45
45
 
46
- Install from PyPI:
46
+ Install:
47
47
 
48
48
  ```bash
49
- # Using uv (recommended)
49
+ # Install via uv (recommended)
50
50
  uv tool install pyflexweb
51
51
 
52
52
  # Or using pip
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pyflexweb"
7
- version = "0.2.2"
7
+ version = "0.2.3"
8
8
  description = "Download IBKR Flex reports using the Interactive Brokers flex web service"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
File without changes
File without changes
File without changes
File without changes