blocket-api 0.5.3__tar.gz → 0.5.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.
- {blocket_api-0.5.3 → blocket_api-0.5.4}/PKG-INFO +4 -1
- {blocket_api-0.5.3 → blocket_api-0.5.4}/README.md +3 -0
- {blocket_api-0.5.3 → blocket_api-0.5.4}/blocket_api/__init__.py +2 -0
- {blocket_api-0.5.3 → blocket_api-0.5.4}/blocket_api/_params.py +3 -0
- {blocket_api-0.5.3 → blocket_api-0.5.4}/blocket_api/async_blocket.py +3 -0
- {blocket_api-0.5.3 → blocket_api-0.5.4}/blocket_api/blocket.py +3 -0
- {blocket_api-0.5.3 → blocket_api-0.5.4}/blocket_api/constants.py +11 -0
- {blocket_api-0.5.3 → blocket_api-0.5.4}/blocket_api.egg-info/PKG-INFO +4 -1
- {blocket_api-0.5.3 → blocket_api-0.5.4}/pyproject.toml +1 -1
- {blocket_api-0.5.3 → blocket_api-0.5.4}/LICENSE +0 -0
- {blocket_api-0.5.3 → blocket_api-0.5.4}/blocket_api/ad_parser.py +0 -0
- {blocket_api-0.5.3 → blocket_api-0.5.4}/blocket_api.egg-info/SOURCES.txt +0 -0
- {blocket_api-0.5.3 → blocket_api-0.5.4}/blocket_api.egg-info/dependency_links.txt +0 -0
- {blocket_api-0.5.3 → blocket_api-0.5.4}/blocket_api.egg-info/requires.txt +0 -0
- {blocket_api-0.5.3 → blocket_api-0.5.4}/blocket_api.egg-info/top_level.txt +0 -0
- {blocket_api-0.5.3 → blocket_api-0.5.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blocket_api
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.4
|
|
4
4
|
Summary: A python API wrapper for blocket.se
|
|
5
5
|
Author-email: dunderrrrrr <emil.bjorkroth@gmail.com>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -48,6 +48,7 @@ from blocket_api import (
|
|
|
48
48
|
BlocketAPI,
|
|
49
49
|
Category,
|
|
50
50
|
CarColor,
|
|
51
|
+
CarFuel,
|
|
51
52
|
CarModel,
|
|
52
53
|
CarSortOrder,
|
|
53
54
|
CarTransmission,
|
|
@@ -74,6 +75,7 @@ api.search_car(
|
|
|
74
75
|
price_from=10000,
|
|
75
76
|
price_to=50000,
|
|
76
77
|
transmissions=[CarTransmission.MANUAL],
|
|
78
|
+
fuels=[CarFuel.DIESEL],
|
|
77
79
|
wheel_drive=[CarWheelDrive.RWD],
|
|
78
80
|
locations=[Location.STOCKHOLM],
|
|
79
81
|
horsepower_from=200,
|
|
@@ -136,5 +138,6 @@ asyncio.run(main())
|
|
|
136
138
|
## 📝 Notes
|
|
137
139
|
|
|
138
140
|
- REST API: https://blocket-api.se
|
|
141
|
+
- Webhooks: https://webhooks.blocket-api.se
|
|
139
142
|
- Source repo: https://github.com/dunderrrrrr/blocket_api
|
|
140
143
|
- PyPI: https://pypi.org/project/blocket-api/
|
|
@@ -26,6 +26,7 @@ from blocket_api import (
|
|
|
26
26
|
BlocketAPI,
|
|
27
27
|
Category,
|
|
28
28
|
CarColor,
|
|
29
|
+
CarFuel,
|
|
29
30
|
CarModel,
|
|
30
31
|
CarSortOrder,
|
|
31
32
|
CarTransmission,
|
|
@@ -52,6 +53,7 @@ api.search_car(
|
|
|
52
53
|
price_from=10000,
|
|
53
54
|
price_to=50000,
|
|
54
55
|
transmissions=[CarTransmission.MANUAL],
|
|
56
|
+
fuels=[CarFuel.DIESEL],
|
|
55
57
|
wheel_drive=[CarWheelDrive.RWD],
|
|
56
58
|
locations=[Location.STOCKHOLM],
|
|
57
59
|
horsepower_from=200,
|
|
@@ -114,5 +116,6 @@ asyncio.run(main())
|
|
|
114
116
|
## 📝 Notes
|
|
115
117
|
|
|
116
118
|
- REST API: https://blocket-api.se
|
|
119
|
+
- Webhooks: https://webhooks.blocket-api.se
|
|
117
120
|
- Source repo: https://github.com/dunderrrrrr/blocket_api
|
|
118
121
|
- PyPI: https://pypi.org/project/blocket-api/
|
|
@@ -5,6 +5,7 @@ from .constants import (
|
|
|
5
5
|
BoatSortOrder,
|
|
6
6
|
BoatType,
|
|
7
7
|
CarColor,
|
|
8
|
+
CarFuel,
|
|
8
9
|
CarModel,
|
|
9
10
|
CarSortOrder,
|
|
10
11
|
CarTransmission,
|
|
@@ -25,6 +26,7 @@ __all__ = [
|
|
|
25
26
|
"BoatType",
|
|
26
27
|
"CarAd",
|
|
27
28
|
"CarColor",
|
|
29
|
+
"CarFuel",
|
|
28
30
|
"CarModel",
|
|
29
31
|
"CarSortOrder",
|
|
30
32
|
"CarTransmission",
|
|
@@ -5,6 +5,7 @@ from collections.abc import Sequence
|
|
|
5
5
|
from .constants import (
|
|
6
6
|
BoatType,
|
|
7
7
|
CarColor,
|
|
8
|
+
CarFuel,
|
|
8
9
|
CarModel,
|
|
9
10
|
CarSortOrder,
|
|
10
11
|
CarTransmission,
|
|
@@ -72,6 +73,7 @@ def build_car_params(
|
|
|
72
73
|
milage_to: int | None = None,
|
|
73
74
|
colors: list[CarColor] = [],
|
|
74
75
|
transmissions: list[CarTransmission] = [],
|
|
76
|
+
fuels: list[CarFuel] = [],
|
|
75
77
|
horsepower_from: int | None = None,
|
|
76
78
|
horsepower_to: int | None = None,
|
|
77
79
|
wheel_drive: list[CarWheelDrive] = [],
|
|
@@ -97,6 +99,7 @@ def build_car_params(
|
|
|
97
99
|
extras.extend(("make", model.value) for model in models)
|
|
98
100
|
extras.extend(("exterior_colour", color.value) for color in colors)
|
|
99
101
|
extras.extend(("transmission", t.value) for t in transmissions)
|
|
102
|
+
extras.extend(("fuel", f.value) for f in fuels)
|
|
100
103
|
extras.extend(("wheel_drive", w.value) for w in wheel_drive)
|
|
101
104
|
|
|
102
105
|
return _build_params(defaults, extras)
|
|
@@ -19,6 +19,7 @@ from .constants import (
|
|
|
19
19
|
SEARCH_URL,
|
|
20
20
|
BoatType,
|
|
21
21
|
CarColor,
|
|
22
|
+
CarFuel,
|
|
22
23
|
CarModel,
|
|
23
24
|
CarSortOrder,
|
|
24
25
|
CarTransmission,
|
|
@@ -85,6 +86,7 @@ class AsyncBlocketAPI:
|
|
|
85
86
|
milage_to: int | None = None,
|
|
86
87
|
colors: list[CarColor] = [],
|
|
87
88
|
transmissions: list[CarTransmission] = [],
|
|
89
|
+
fuels: list[CarFuel] = [],
|
|
88
90
|
horsepower_from: int | None = None,
|
|
89
91
|
horsepower_to: int | None = None,
|
|
90
92
|
wheel_drive: list[CarWheelDrive] = [],
|
|
@@ -104,6 +106,7 @@ class AsyncBlocketAPI:
|
|
|
104
106
|
milage_to=milage_to,
|
|
105
107
|
colors=colors,
|
|
106
108
|
transmissions=transmissions,
|
|
109
|
+
fuels=fuels,
|
|
107
110
|
horsepower_from=horsepower_from,
|
|
108
111
|
horsepower_to=horsepower_to,
|
|
109
112
|
wheel_drive=wheel_drive,
|
|
@@ -20,6 +20,7 @@ from .constants import (
|
|
|
20
20
|
SEARCH_URL,
|
|
21
21
|
BoatType,
|
|
22
22
|
CarColor,
|
|
23
|
+
CarFuel,
|
|
23
24
|
CarModel,
|
|
24
25
|
CarSortOrder,
|
|
25
26
|
CarTransmission,
|
|
@@ -77,6 +78,7 @@ class BlocketAPI:
|
|
|
77
78
|
milage_to: int | None = None,
|
|
78
79
|
colors: list[CarColor] = [],
|
|
79
80
|
transmissions: list[CarTransmission] = [],
|
|
81
|
+
fuels: list[CarFuel] = [],
|
|
80
82
|
horsepower_from: int | None = None,
|
|
81
83
|
horsepower_to: int | None = None,
|
|
82
84
|
wheel_drive: list[CarWheelDrive] = [],
|
|
@@ -96,6 +98,7 @@ class BlocketAPI:
|
|
|
96
98
|
milage_to=milage_to,
|
|
97
99
|
colors=colors,
|
|
98
100
|
transmissions=transmissions,
|
|
101
|
+
fuels=fuels,
|
|
99
102
|
horsepower_from=horsepower_from,
|
|
100
103
|
horsepower_to=horsepower_to,
|
|
101
104
|
wheel_drive=wheel_drive,
|
|
@@ -386,6 +386,17 @@ class CarTransmission(IntEnum):
|
|
|
386
386
|
MANUAL = 1
|
|
387
387
|
|
|
388
388
|
|
|
389
|
+
class CarFuel(IntEnum):
|
|
390
|
+
BENSIN = 1
|
|
391
|
+
DIESEL = 2
|
|
392
|
+
FORDONSGAS = 3
|
|
393
|
+
EL = 4
|
|
394
|
+
HYBRID_GAS = 5
|
|
395
|
+
HYBRID_BENSIN = 6
|
|
396
|
+
HYBRID_DIESEL = 8
|
|
397
|
+
VATGAS = 9
|
|
398
|
+
|
|
399
|
+
|
|
389
400
|
class CarWheelDrive(IntEnum):
|
|
390
401
|
FWD = 3
|
|
391
402
|
RWD = 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blocket_api
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.4
|
|
4
4
|
Summary: A python API wrapper for blocket.se
|
|
5
5
|
Author-email: dunderrrrrr <emil.bjorkroth@gmail.com>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -48,6 +48,7 @@ from blocket_api import (
|
|
|
48
48
|
BlocketAPI,
|
|
49
49
|
Category,
|
|
50
50
|
CarColor,
|
|
51
|
+
CarFuel,
|
|
51
52
|
CarModel,
|
|
52
53
|
CarSortOrder,
|
|
53
54
|
CarTransmission,
|
|
@@ -74,6 +75,7 @@ api.search_car(
|
|
|
74
75
|
price_from=10000,
|
|
75
76
|
price_to=50000,
|
|
76
77
|
transmissions=[CarTransmission.MANUAL],
|
|
78
|
+
fuels=[CarFuel.DIESEL],
|
|
77
79
|
wheel_drive=[CarWheelDrive.RWD],
|
|
78
80
|
locations=[Location.STOCKHOLM],
|
|
79
81
|
horsepower_from=200,
|
|
@@ -136,5 +138,6 @@ asyncio.run(main())
|
|
|
136
138
|
## 📝 Notes
|
|
137
139
|
|
|
138
140
|
- REST API: https://blocket-api.se
|
|
141
|
+
- Webhooks: https://webhooks.blocket-api.se
|
|
139
142
|
- Source repo: https://github.com/dunderrrrrr/blocket_api
|
|
140
143
|
- PyPI: https://pypi.org/project/blocket-api/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|