revnext 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl
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.
- revnext/__init__.py +16 -18
- revnext/common.py +196 -196
- revnext/config.py +61 -61
- revnext/parts_by_bin_report.py +250 -250
- revnext/parts_price_list_report.py +254 -254
- revnext-0.1.2.dist-info/METADATA +126 -0
- revnext-0.1.2.dist-info/RECORD +9 -0
- revnext/download_all_reports.py +0 -49
- revnext-0.1.0.dist-info/METADATA +0 -24
- revnext-0.1.0.dist-info/RECORD +0 -10
- {revnext-0.1.0.dist-info → revnext-0.1.2.dist-info}/WHEEL +0 -0
- {revnext-0.1.0.dist-info → revnext-0.1.2.dist-info}/top_level.txt +0 -0
revnext/download_all_reports.py
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Download both Revolution Next CSV reports (Parts By Bin Location and Parts Price List)
|
|
3
|
-
using cookies and optional config.
|
|
4
|
-
"""
|
|
5
|
-
|
|
6
|
-
from pathlib import Path
|
|
7
|
-
from typing import Optional
|
|
8
|
-
|
|
9
|
-
from revnext.parts_by_bin_report import download_parts_by_bin_report
|
|
10
|
-
from revnext.parts_price_list_report import download_parts_price_list_report
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
def download_all_reports(
|
|
14
|
-
cookies_path: Optional[Path | str] = None,
|
|
15
|
-
output_dir: Optional[Path | str] = None,
|
|
16
|
-
base_url: Optional[str] = None,
|
|
17
|
-
) -> list[Path]:
|
|
18
|
-
"""
|
|
19
|
-
Run both Parts By Bin Location and Parts Price List reports and save CSVs.
|
|
20
|
-
Returns the list of paths where files were saved.
|
|
21
|
-
|
|
22
|
-
Args:
|
|
23
|
-
cookies_path: Path to cookies JSON. Defaults to current dir / revnext-cookies.json.
|
|
24
|
-
output_dir: Directory for output CSVs. Defaults to current directory.
|
|
25
|
-
base_url: Revolution Next base URL. Defaults to REVOLUTIONNEXT_URL env or default.
|
|
26
|
-
"""
|
|
27
|
-
output_dir = Path(output_dir) if output_dir is not None else Path.cwd()
|
|
28
|
-
|
|
29
|
-
saved: list[Path] = []
|
|
30
|
-
print("--- Parts By Bin Location ---")
|
|
31
|
-
path1 = download_parts_by_bin_report(
|
|
32
|
-
cookies_path=cookies_path,
|
|
33
|
-
output_path=output_dir / "Parts_By_Bin_Location.csv",
|
|
34
|
-
base_url=base_url,
|
|
35
|
-
)
|
|
36
|
-
saved.append(path1)
|
|
37
|
-
print("\n--- Parts Price List ---")
|
|
38
|
-
path2 = download_parts_price_list_report(
|
|
39
|
-
cookies_path=cookies_path,
|
|
40
|
-
output_path=output_dir / "Parts_Price_List.csv",
|
|
41
|
-
base_url=base_url,
|
|
42
|
-
)
|
|
43
|
-
saved.append(path2)
|
|
44
|
-
print(f"\nDone. Saved {len(saved)} file(s).")
|
|
45
|
-
return saved
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
if __name__ == "__main__":
|
|
49
|
-
download_all_reports()
|
revnext-0.1.0.dist-info/METADATA
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: revnext
|
|
3
|
-
Version: 0.1.0
|
|
4
|
-
Summary: Revolution Next (*.revolutionnext.com.au) report downloads via REST API
|
|
5
|
-
License-Expression: MIT
|
|
6
|
-
Keywords: revnext,revolution-next,reports,api
|
|
7
|
-
Classifier: Development Status :: 3 - Alpha
|
|
8
|
-
Classifier: Intended Audience :: Developers
|
|
9
|
-
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
-
Requires-Python: >=3.10
|
|
14
|
-
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: requests
|
|
16
|
-
|
|
17
|
-
# revnext
|
|
18
|
-
|
|
19
|
-
Download Revolution Next (*.revolutionnext.com.au) reports (Parts Price List, Parts by Bin Location) via REST API using cookies/session.
|
|
20
|
-
|
|
21
|
-
Install: `pip install revnext`
|
|
22
|
-
Or from repo root: `pip install -e ./packages/revnext`
|
|
23
|
-
|
|
24
|
-
See the [main repo README](../README.md) for configuration and usage.
|
revnext-0.1.0.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
revnext/__init__.py,sha256=ffKmJTWIuN-4EZg042HHD-CFZ9_6Yl8ysgWT6ZN8ByY,580
|
|
2
|
-
revnext/common.py,sha256=QjXCGspk7kyvcLYKzzpnsF9CYm6K2ddaxyD5YwFsB6s,7140
|
|
3
|
-
revnext/config.py,sha256=QUZJeHtMUGGILUP_q6Ops0I_mlO8Swp9F6NrzEi17uQ,2039
|
|
4
|
-
revnext/download_all_reports.py,sha256=sjuy9aSH-fxRI2Z9YvHcQIlCY_hsAgttjcFD7_cog-I,1675
|
|
5
|
-
revnext/parts_by_bin_report.py,sha256=9RLZbqqmWeEoEV-FNBkieXT6_q2DFyrp-0c7sbLgxFI,11408
|
|
6
|
-
revnext/parts_price_list_report.py,sha256=dJUCcU2ICfVd8AYn28SvDcANGz-mMVBQaA8t4Fy1_yg,11205
|
|
7
|
-
revnext-0.1.0.dist-info/METADATA,sha256=UJ-4zJ4wQ4aMroYn5-wW_aH-ZCgEaYzPPuN_ibZAmqs,912
|
|
8
|
-
revnext-0.1.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
9
|
-
revnext-0.1.0.dist-info/top_level.txt,sha256=fW_mpOHYljzK-IPZOiJBGDIWkMmcbsjWzqjot5KDUwk,8
|
|
10
|
-
revnext-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|