python-mytnb 0.3.0__tar.gz → 0.4.0__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.
Files changed (26) hide show
  1. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/PKG-INFO +14 -3
  2. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/README.md +8 -0
  3. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/pyproject.toml +7 -3
  4. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/.github/workflows/ci.yml +0 -0
  5. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/.github/workflows/publish.yml +0 -0
  6. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/.gitignore +0 -0
  7. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/LICENSE +0 -0
  8. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/src/mytnb/__init__.py +0 -0
  9. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/src/mytnb/__main__.py +0 -0
  10. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/src/mytnb/auth.py +0 -0
  11. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/src/mytnb/cli.py +0 -0
  12. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/src/mytnb/client/__init__.py +0 -0
  13. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/src/mytnb/client/auth.py +0 -0
  14. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/src/mytnb/client/client.py +0 -0
  15. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/src/mytnb/client/config.py +0 -0
  16. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/src/mytnb/client/legacy.py +0 -0
  17. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/src/mytnb/client/rest.py +0 -0
  18. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/src/mytnb/crypto.py +0 -0
  19. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/src/mytnb/exceptions.py +0 -0
  20. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/src/mytnb/models.py +0 -0
  21. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/tests/test_auth.py +0 -0
  22. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/tests/test_cli.py +0 -0
  23. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/tests/test_client.py +0 -0
  24. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/tests/test_crypto.py +0 -0
  25. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/tests/test_models.py +0 -0
  26. {python_mytnb-0.3.0 → python_mytnb-0.4.0}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-mytnb
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: Python library to interface with the myTNB API (Tenaga Nasional Berhad)
5
5
  Project-URL: Repository, https://github.com/danieyal/python-mytnb
6
6
  License-Expression: MIT
@@ -16,16 +16,19 @@ Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Programming Language :: Python :: 3.13
17
17
  Classifier: Topic :: Software Development :: Libraries
18
18
  Requires-Python: >=3.10
19
- Requires-Dist: click>=8.3.3
20
19
  Requires-Dist: cryptography>=42.0
21
20
  Requires-Dist: curl-cffi>=0.7
22
21
  Requires-Dist: httpx>=0.27
23
22
  Requires-Dist: pydantic>=2.0
24
- Requires-Dist: rich>=15.0.0
23
+ Provides-Extra: cli
24
+ Requires-Dist: click>=8.3.3; extra == 'cli'
25
+ Requires-Dist: rich>=15.0.0; extra == 'cli'
25
26
  Provides-Extra: dev
27
+ Requires-Dist: click>=8.3.3; extra == 'dev'
26
28
  Requires-Dist: pylint>=3.0; extra == 'dev'
27
29
  Requires-Dist: pytest-asyncio>=0.21; extra == 'dev'
28
30
  Requires-Dist: pytest>=7.0; extra == 'dev'
31
+ Requires-Dist: rich>=15.0.0; extra == 'dev'
29
32
  Requires-Dist: ruff>=0.6; extra == 'dev'
30
33
  Description-Content-Type: text/markdown
31
34
 
@@ -79,6 +82,14 @@ asyncio.run(main())
79
82
 
80
83
  ## CLI
81
84
 
85
+ The `mytnb` command-line tool requires the optional `cli` extra (it pulls in
86
+ `click` and `rich`, which the library itself does not need). If you installed
87
+ without it, `mytnb` (or `python -m mytnb`) will fail to start:
88
+
89
+ ```bash
90
+ pip install "python-mytnb[cli]"
91
+ ```
92
+
82
93
  Pass credentials directly:
83
94
 
84
95
  ```bash
@@ -48,6 +48,14 @@ asyncio.run(main())
48
48
 
49
49
  ## CLI
50
50
 
51
+ The `mytnb` command-line tool requires the optional `cli` extra (it pulls in
52
+ `click` and `rich`, which the library itself does not need). If you installed
53
+ without it, `mytnb` (or `python -m mytnb`) will fail to start:
54
+
55
+ ```bash
56
+ pip install "python-mytnb[cli]"
57
+ ```
58
+
51
59
  Pass credentials directly:
52
60
 
53
61
  ```bash
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "python-mytnb"
7
- version = "0.3.0"
7
+ version = "0.4.0"
8
8
  description = "Python library to interface with the myTNB API (Tenaga Nasional Berhad)"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -26,16 +26,20 @@ dependencies = [
26
26
  "pydantic>=2.0",
27
27
  "cryptography>=42.0",
28
28
  "curl_cffi>=0.7",
29
- "click>=8.3.3",
30
- "rich>=15.0.0",
31
29
  ]
32
30
 
33
31
  [project.optional-dependencies]
32
+ cli = [
33
+ "click>=8.3.3",
34
+ "rich>=15.0.0",
35
+ ]
34
36
  dev = [
35
37
  "pytest>=7.0",
36
38
  "pytest-asyncio>=0.21",
37
39
  "pylint>=3.0",
38
40
  "ruff>=0.6",
41
+ "click>=8.3.3",
42
+ "rich>=15.0.0",
39
43
  ]
40
44
 
41
45
  [project.scripts]
File without changes
File without changes
File without changes