pyIntradel 0.0.3__tar.gz → 0.0.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.
- pyintradel-0.0.4/PKG-INFO +130 -0
- pyintradel-0.0.4/README.md +101 -0
- pyintradel-0.0.4/pyIntradel.egg-info/PKG-INFO +130 -0
- {pyIntradel-0.0.3 → pyintradel-0.0.4}/pyintradel/api/parser.py +4 -1
- {pyIntradel-0.0.3 → pyintradel-0.0.4}/pyintradel/main.py +5 -2
- {pyIntradel-0.0.3 → pyintradel-0.0.4}/setup.py +1 -1
- pyIntradel-0.0.3/PKG-INFO +0 -54
- pyIntradel-0.0.3/README.md +0 -37
- pyIntradel-0.0.3/pyIntradel.egg-info/PKG-INFO +0 -54
- {pyIntradel-0.0.3 → pyintradel-0.0.4}/LICENSE +0 -0
- {pyIntradel-0.0.3 → pyintradel-0.0.4}/pyIntradel.egg-info/SOURCES.txt +0 -0
- {pyIntradel-0.0.3 → pyintradel-0.0.4}/pyIntradel.egg-info/dependency_links.txt +0 -0
- {pyIntradel-0.0.3 → pyintradel-0.0.4}/pyIntradel.egg-info/not-zip-safe +0 -0
- {pyIntradel-0.0.3 → pyintradel-0.0.4}/pyIntradel.egg-info/requires.txt +0 -0
- {pyIntradel-0.0.3 → pyintradel-0.0.4}/pyIntradel.egg-info/top_level.txt +0 -0
- {pyIntradel-0.0.3 → pyintradel-0.0.4}/pyintradel/__init__.py +0 -0
- {pyIntradel-0.0.3 → pyintradel-0.0.4}/pyintradel/api/__init__.py +0 -0
- {pyIntradel-0.0.3 → pyintradel-0.0.4}/pyintradel/api/towns.py +0 -0
- {pyIntradel-0.0.3 → pyintradel-0.0.4}/setup.cfg +0 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyIntradel
|
|
3
|
+
Version: 0.0.4
|
|
4
|
+
Summary: Python interface for Intradel
|
|
5
|
+
Home-page: https://github.com/thomasgermain/pyintradel.git
|
|
6
|
+
Author: Thomas Germain
|
|
7
|
+
Author-email: 12560542+thomasgermain@users.noreply.github.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Programming Language :: Python
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Topic :: Home Automation
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: aiohttp<4.0.0,>=3.8.0
|
|
18
|
+
Requires-Dist: beautifulsoup4<5.0.0,>=4.11.0
|
|
19
|
+
Dynamic: author
|
|
20
|
+
Dynamic: author-email
|
|
21
|
+
Dynamic: classifier
|
|
22
|
+
Dynamic: description
|
|
23
|
+
Dynamic: description-content-type
|
|
24
|
+
Dynamic: home-page
|
|
25
|
+
Dynamic: license
|
|
26
|
+
Dynamic: license-file
|
|
27
|
+
Dynamic: requires-dist
|
|
28
|
+
Dynamic: summary
|
|
29
|
+
|
|
30
|
+
# pyIntradel
|
|
31
|
+
|
|
32
|
+

|
|
33
|
+

|
|
34
|
+

|
|
35
|
+
|
|
36
|
+
A python connector for waste collection for province of Liège. This connector is using screen scraping to collect
|
|
37
|
+
following data (for the current year), in json:
|
|
38
|
+
- "Green bin" (organic waste) and "black bin" residual waste
|
|
39
|
+
- Total weight
|
|
40
|
+
- Number of collections
|
|
41
|
+
- details of all the collections
|
|
42
|
+
- chip number
|
|
43
|
+
- starting date (01/01 of the current year)
|
|
44
|
+
- Recypark
|
|
45
|
+
- details of all the visits
|
|
46
|
+
- (01/01 of the current year)
|
|
47
|
+
|
|
48
|
+
Here is an example of json:
|
|
49
|
+
|
|
50
|
+
```json
|
|
51
|
+
[
|
|
52
|
+
{
|
|
53
|
+
"name": "ORGANIQUE",
|
|
54
|
+
"start_date": "01-01-2022",
|
|
55
|
+
"id": "123456",
|
|
56
|
+
"details":
|
|
57
|
+
[
|
|
58
|
+
{
|
|
59
|
+
"date": "20-01-2022",
|
|
60
|
+
"detail": "34.0"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"date": "17-02-2022",
|
|
64
|
+
"detail": "27.0"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"date": "07-04-2022",
|
|
68
|
+
"detail": "36.0"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"total": "97"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "RESIDUEL",
|
|
75
|
+
"start_date": "01-01-2022",
|
|
76
|
+
"id": "78810",
|
|
77
|
+
"details":
|
|
78
|
+
[
|
|
79
|
+
{
|
|
80
|
+
"date": "20-01-2022",
|
|
81
|
+
"detail": "14.5"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"date": "07-04-2022",
|
|
85
|
+
"detail": "11.5"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"date": "21-04-2022",
|
|
89
|
+
"detail": "11.5"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"total": "37.5"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "RECYPARC",
|
|
96
|
+
"start_date": "01-01-2022",
|
|
97
|
+
"id": "RECYPARC",
|
|
98
|
+
"details":
|
|
99
|
+
[
|
|
100
|
+
{
|
|
101
|
+
"date": "14-04-2022",
|
|
102
|
+
"detail": "Encombrants (0.35 m³), Petits Bruns (0.00 pièce)"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"total": "1"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Usage
|
|
111
|
+
|
|
112
|
+
The `town` parameter is the name of the town, you can check it here: [towns](pyintradel/api/towns.py)
|
|
113
|
+
|
|
114
|
+
### Python module
|
|
115
|
+
|
|
116
|
+
```python
|
|
117
|
+
import aiohttp
|
|
118
|
+
from pyintradel import api
|
|
119
|
+
|
|
120
|
+
async with aiohttp.ClientSession() as sess:
|
|
121
|
+
await api.get_data(sess, login, password, town)
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Command line
|
|
125
|
+
```bash
|
|
126
|
+
python3 main.py user passw town
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
<a href="https://www.buymeacoffee.com/tgermain" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# pyIntradel
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
A python connector for waste collection for province of Liège. This connector is using screen scraping to collect
|
|
8
|
+
following data (for the current year), in json:
|
|
9
|
+
- "Green bin" (organic waste) and "black bin" residual waste
|
|
10
|
+
- Total weight
|
|
11
|
+
- Number of collections
|
|
12
|
+
- details of all the collections
|
|
13
|
+
- chip number
|
|
14
|
+
- starting date (01/01 of the current year)
|
|
15
|
+
- Recypark
|
|
16
|
+
- details of all the visits
|
|
17
|
+
- (01/01 of the current year)
|
|
18
|
+
|
|
19
|
+
Here is an example of json:
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
[
|
|
23
|
+
{
|
|
24
|
+
"name": "ORGANIQUE",
|
|
25
|
+
"start_date": "01-01-2022",
|
|
26
|
+
"id": "123456",
|
|
27
|
+
"details":
|
|
28
|
+
[
|
|
29
|
+
{
|
|
30
|
+
"date": "20-01-2022",
|
|
31
|
+
"detail": "34.0"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"date": "17-02-2022",
|
|
35
|
+
"detail": "27.0"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"date": "07-04-2022",
|
|
39
|
+
"detail": "36.0"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"total": "97"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "RESIDUEL",
|
|
46
|
+
"start_date": "01-01-2022",
|
|
47
|
+
"id": "78810",
|
|
48
|
+
"details":
|
|
49
|
+
[
|
|
50
|
+
{
|
|
51
|
+
"date": "20-01-2022",
|
|
52
|
+
"detail": "14.5"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"date": "07-04-2022",
|
|
56
|
+
"detail": "11.5"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"date": "21-04-2022",
|
|
60
|
+
"detail": "11.5"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"total": "37.5"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "RECYPARC",
|
|
67
|
+
"start_date": "01-01-2022",
|
|
68
|
+
"id": "RECYPARC",
|
|
69
|
+
"details":
|
|
70
|
+
[
|
|
71
|
+
{
|
|
72
|
+
"date": "14-04-2022",
|
|
73
|
+
"detail": "Encombrants (0.35 m³), Petits Bruns (0.00 pièce)"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"total": "1"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Usage
|
|
82
|
+
|
|
83
|
+
The `town` parameter is the name of the town, you can check it here: [towns](pyintradel/api/towns.py)
|
|
84
|
+
|
|
85
|
+
### Python module
|
|
86
|
+
|
|
87
|
+
```python
|
|
88
|
+
import aiohttp
|
|
89
|
+
from pyintradel import api
|
|
90
|
+
|
|
91
|
+
async with aiohttp.ClientSession() as sess:
|
|
92
|
+
await api.get_data(sess, login, password, town)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Command line
|
|
96
|
+
```bash
|
|
97
|
+
python3 main.py user passw town
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
<a href="https://www.buymeacoffee.com/tgermain" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyIntradel
|
|
3
|
+
Version: 0.0.4
|
|
4
|
+
Summary: Python interface for Intradel
|
|
5
|
+
Home-page: https://github.com/thomasgermain/pyintradel.git
|
|
6
|
+
Author: Thomas Germain
|
|
7
|
+
Author-email: 12560542+thomasgermain@users.noreply.github.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Programming Language :: Python
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Topic :: Home Automation
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: aiohttp<4.0.0,>=3.8.0
|
|
18
|
+
Requires-Dist: beautifulsoup4<5.0.0,>=4.11.0
|
|
19
|
+
Dynamic: author
|
|
20
|
+
Dynamic: author-email
|
|
21
|
+
Dynamic: classifier
|
|
22
|
+
Dynamic: description
|
|
23
|
+
Dynamic: description-content-type
|
|
24
|
+
Dynamic: home-page
|
|
25
|
+
Dynamic: license
|
|
26
|
+
Dynamic: license-file
|
|
27
|
+
Dynamic: requires-dist
|
|
28
|
+
Dynamic: summary
|
|
29
|
+
|
|
30
|
+
# pyIntradel
|
|
31
|
+
|
|
32
|
+

|
|
33
|
+

|
|
34
|
+

|
|
35
|
+
|
|
36
|
+
A python connector for waste collection for province of Liège. This connector is using screen scraping to collect
|
|
37
|
+
following data (for the current year), in json:
|
|
38
|
+
- "Green bin" (organic waste) and "black bin" residual waste
|
|
39
|
+
- Total weight
|
|
40
|
+
- Number of collections
|
|
41
|
+
- details of all the collections
|
|
42
|
+
- chip number
|
|
43
|
+
- starting date (01/01 of the current year)
|
|
44
|
+
- Recypark
|
|
45
|
+
- details of all the visits
|
|
46
|
+
- (01/01 of the current year)
|
|
47
|
+
|
|
48
|
+
Here is an example of json:
|
|
49
|
+
|
|
50
|
+
```json
|
|
51
|
+
[
|
|
52
|
+
{
|
|
53
|
+
"name": "ORGANIQUE",
|
|
54
|
+
"start_date": "01-01-2022",
|
|
55
|
+
"id": "123456",
|
|
56
|
+
"details":
|
|
57
|
+
[
|
|
58
|
+
{
|
|
59
|
+
"date": "20-01-2022",
|
|
60
|
+
"detail": "34.0"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"date": "17-02-2022",
|
|
64
|
+
"detail": "27.0"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"date": "07-04-2022",
|
|
68
|
+
"detail": "36.0"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"total": "97"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "RESIDUEL",
|
|
75
|
+
"start_date": "01-01-2022",
|
|
76
|
+
"id": "78810",
|
|
77
|
+
"details":
|
|
78
|
+
[
|
|
79
|
+
{
|
|
80
|
+
"date": "20-01-2022",
|
|
81
|
+
"detail": "14.5"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"date": "07-04-2022",
|
|
85
|
+
"detail": "11.5"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"date": "21-04-2022",
|
|
89
|
+
"detail": "11.5"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"total": "37.5"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "RECYPARC",
|
|
96
|
+
"start_date": "01-01-2022",
|
|
97
|
+
"id": "RECYPARC",
|
|
98
|
+
"details":
|
|
99
|
+
[
|
|
100
|
+
{
|
|
101
|
+
"date": "14-04-2022",
|
|
102
|
+
"detail": "Encombrants (0.35 m³), Petits Bruns (0.00 pièce)"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"total": "1"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Usage
|
|
111
|
+
|
|
112
|
+
The `town` parameter is the name of the town, you can check it here: [towns](pyintradel/api/towns.py)
|
|
113
|
+
|
|
114
|
+
### Python module
|
|
115
|
+
|
|
116
|
+
```python
|
|
117
|
+
import aiohttp
|
|
118
|
+
from pyintradel import api
|
|
119
|
+
|
|
120
|
+
async with aiohttp.ClientSession() as sess:
|
|
121
|
+
await api.get_data(sess, login, password, town)
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Command line
|
|
125
|
+
```bash
|
|
126
|
+
python3 main.py user passw town
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
<a href="https://www.buymeacoffee.com/tgermain" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
|
|
@@ -62,7 +62,10 @@ def _details(data: BeautifulSoup) -> list[Any]:
|
|
|
62
62
|
attrs = []
|
|
63
63
|
for row in data.find(name="tbody").findChildren(name="tr"):
|
|
64
64
|
tds = row.findAll(name="td")
|
|
65
|
-
|
|
65
|
+
# When the list is empty, the website still includes an empty row.
|
|
66
|
+
# Let's just skip empty rows, as a valid row needs a date anyway.
|
|
67
|
+
if tds[0].text:
|
|
68
|
+
attrs.append({"date": tds[0].text, "detail": tds[2].text})
|
|
66
69
|
return attrs
|
|
67
70
|
|
|
68
71
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import asyncio
|
|
2
|
+
import json
|
|
2
3
|
import sys
|
|
3
4
|
|
|
4
5
|
import aiohttp
|
|
@@ -8,7 +9,7 @@ import api
|
|
|
8
9
|
|
|
9
10
|
async def _main(login: str, password: str, town: str) -> None:
|
|
10
11
|
async with aiohttp.ClientSession() as sess:
|
|
11
|
-
|
|
12
|
+
json.dump(await api.get_data(sess, login, password, town), sys.stdout, indent=2)
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
if __name__ == "__main__":
|
|
@@ -19,4 +20,6 @@ if __name__ == "__main__":
|
|
|
19
20
|
passw_param = sys.argv[2]
|
|
20
21
|
town_param = sys.argv[3]
|
|
21
22
|
|
|
22
|
-
asyncio.
|
|
23
|
+
loop = asyncio.new_event_loop()
|
|
24
|
+
asyncio.set_event_loop(loop)
|
|
25
|
+
loop.run_until_complete(_main(user_param, passw_param, town_param))
|
|
@@ -8,7 +8,7 @@ with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name="pyIntradel",
|
|
11
|
-
version="0.0.
|
|
11
|
+
version="0.0.4",
|
|
12
12
|
description="Python interface for Intradel",
|
|
13
13
|
long_description_content_type="text/markdown",
|
|
14
14
|
long_description=long_description,
|
pyIntradel-0.0.3/PKG-INFO
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: pyIntradel
|
|
3
|
-
Version: 0.0.3
|
|
4
|
-
Summary: Python interface for Intradel
|
|
5
|
-
Home-page: https://github.com/thomasgermain/pyintradel.git
|
|
6
|
-
Author: Thomas Germain
|
|
7
|
-
Author-email: 12560542+thomasgermain@users.noreply.github.com
|
|
8
|
-
License: MIT
|
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
-
Classifier: Development Status :: 4 - Beta
|
|
11
|
-
Classifier: Programming Language :: Python
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
-
Classifier: Topic :: Home Automation
|
|
15
|
-
Description-Content-Type: text/markdown
|
|
16
|
-
License-File: LICENSE
|
|
17
|
-
|
|
18
|
-
# pyIntradel
|
|
19
|
-
|
|
20
|
-

|
|
21
|
-

|
|
22
|
-

|
|
23
|
-
|
|
24
|
-
A python connector for waste collection for province of Liège. This connector is using screen scraping to collect
|
|
25
|
-
following data (for the current year)
|
|
26
|
-
- "Green bin" (organic waste) and "black bin" residual waste
|
|
27
|
-
- Total weight
|
|
28
|
-
- Number of collections
|
|
29
|
-
- details of all the collections
|
|
30
|
-
- chip number
|
|
31
|
-
- starting date (01/01 of the current year)
|
|
32
|
-
- Recypark
|
|
33
|
-
- details of all the visits
|
|
34
|
-
- (01/01 of the current year)
|
|
35
|
-
|
|
36
|
-
## Usage
|
|
37
|
-
|
|
38
|
-
The `town` parameter is the name of the town, you can check it here: [towns](pyintradel/api/towns.py)
|
|
39
|
-
|
|
40
|
-
### Python module
|
|
41
|
-
|
|
42
|
-
```python
|
|
43
|
-
import aiohttp
|
|
44
|
-
from pyintradel import api
|
|
45
|
-
|
|
46
|
-
async with aiohttp.ClientSession() as sess:
|
|
47
|
-
await api.get_data(sess, login, password, town)
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Command line
|
|
51
|
-
```bash
|
|
52
|
-
python3 api.py user passw town
|
|
53
|
-
```
|
|
54
|
-
|
pyIntradel-0.0.3/README.md
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# pyIntradel
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-

|
|
5
|
-

|
|
6
|
-
|
|
7
|
-
A python connector for waste collection for province of Liège. This connector is using screen scraping to collect
|
|
8
|
-
following data (for the current year)
|
|
9
|
-
- "Green bin" (organic waste) and "black bin" residual waste
|
|
10
|
-
- Total weight
|
|
11
|
-
- Number of collections
|
|
12
|
-
- details of all the collections
|
|
13
|
-
- chip number
|
|
14
|
-
- starting date (01/01 of the current year)
|
|
15
|
-
- Recypark
|
|
16
|
-
- details of all the visits
|
|
17
|
-
- (01/01 of the current year)
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
The `town` parameter is the name of the town, you can check it here: [towns](pyintradel/api/towns.py)
|
|
22
|
-
|
|
23
|
-
### Python module
|
|
24
|
-
|
|
25
|
-
```python
|
|
26
|
-
import aiohttp
|
|
27
|
-
from pyintradel import api
|
|
28
|
-
|
|
29
|
-
async with aiohttp.ClientSession() as sess:
|
|
30
|
-
await api.get_data(sess, login, password, town)
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Command line
|
|
34
|
-
```bash
|
|
35
|
-
python3 api.py user passw town
|
|
36
|
-
```
|
|
37
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: pyIntradel
|
|
3
|
-
Version: 0.0.3
|
|
4
|
-
Summary: Python interface for Intradel
|
|
5
|
-
Home-page: https://github.com/thomasgermain/pyintradel.git
|
|
6
|
-
Author: Thomas Germain
|
|
7
|
-
Author-email: 12560542+thomasgermain@users.noreply.github.com
|
|
8
|
-
License: MIT
|
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
-
Classifier: Development Status :: 4 - Beta
|
|
11
|
-
Classifier: Programming Language :: Python
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
-
Classifier: Topic :: Home Automation
|
|
15
|
-
Description-Content-Type: text/markdown
|
|
16
|
-
License-File: LICENSE
|
|
17
|
-
|
|
18
|
-
# pyIntradel
|
|
19
|
-
|
|
20
|
-

|
|
21
|
-

|
|
22
|
-

|
|
23
|
-
|
|
24
|
-
A python connector for waste collection for province of Liège. This connector is using screen scraping to collect
|
|
25
|
-
following data (for the current year)
|
|
26
|
-
- "Green bin" (organic waste) and "black bin" residual waste
|
|
27
|
-
- Total weight
|
|
28
|
-
- Number of collections
|
|
29
|
-
- details of all the collections
|
|
30
|
-
- chip number
|
|
31
|
-
- starting date (01/01 of the current year)
|
|
32
|
-
- Recypark
|
|
33
|
-
- details of all the visits
|
|
34
|
-
- (01/01 of the current year)
|
|
35
|
-
|
|
36
|
-
## Usage
|
|
37
|
-
|
|
38
|
-
The `town` parameter is the name of the town, you can check it here: [towns](pyintradel/api/towns.py)
|
|
39
|
-
|
|
40
|
-
### Python module
|
|
41
|
-
|
|
42
|
-
```python
|
|
43
|
-
import aiohttp
|
|
44
|
-
from pyintradel import api
|
|
45
|
-
|
|
46
|
-
async with aiohttp.ClientSession() as sess:
|
|
47
|
-
await api.get_data(sess, login, password, town)
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Command line
|
|
51
|
-
```bash
|
|
52
|
-
python3 api.py user passw town
|
|
53
|
-
```
|
|
54
|
-
|
|
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
|