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.
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/PKG-INFO +3 -3
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/README.md +2 -2
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/pyflexweb/cli.py +3 -1
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/pyflexweb/database.py +2 -2
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/pyflexweb.egg-info/PKG-INFO +3 -3
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/pyproject.toml +1 -1
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/LICENSE +0 -0
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/pyflexweb/__init__.py +0 -0
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/pyflexweb/client.py +0 -0
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/pyflexweb/handlers.py +0 -0
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/pyflexweb.egg-info/SOURCES.txt +0 -0
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/pyflexweb.egg-info/dependency_links.txt +0 -0
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/pyflexweb.egg-info/entry_points.txt +0 -0
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/pyflexweb.egg-info/requires.txt +0 -0
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/pyflexweb.egg-info/top_level.txt +0 -0
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/setup.cfg +0 -0
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/tests/test_cli.py +0 -0
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/tests/test_client.py +0 -0
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/tests/test_database.py +0 -0
- {pyflexweb-0.2.2 → pyflexweb-0.2.3}/tests/test_handlers.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyflexweb
|
|
3
|
-
Version: 0.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
|
|
46
|
+
Install:
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
|
-
#
|
|
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
|
|
21
|
+
Install:
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
#
|
|
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
|
-
|
|
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.
|
|
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
|
|
46
|
+
Install:
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
|
-
#
|
|
49
|
+
# Install via uv (recommended)
|
|
50
50
|
uv tool install pyflexweb
|
|
51
51
|
|
|
52
52
|
# Or using pip
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|