pytekukko 0.15.0__py3-none-any.whl → 0.16.0__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.
- pytekukko/__init__.py +1 -1
- pytekukko/examples/print_collection_schedules.py +6 -0
- {pytekukko-0.15.0.dist-info → pytekukko-0.16.0.dist-info}/METADATA +1 -1
- {pytekukko-0.15.0.dist-info → pytekukko-0.16.0.dist-info}/RECORD +8 -8
- {pytekukko-0.15.0.dist-info → pytekukko-0.16.0.dist-info}/LICENSE +0 -0
- {pytekukko-0.15.0.dist-info → pytekukko-0.16.0.dist-info}/WHEEL +0 -0
- {pytekukko-0.15.0.dist-info → pytekukko-0.16.0.dist-info}/entry_points.txt +0 -0
- {pytekukko-0.15.0.dist-info → pytekukko-0.16.0.dist-info}/top_level.txt +0 -0
pytekukko/__init__.py
CHANGED
@@ -13,7 +13,7 @@ from aiohttp import ClientResponse, ClientResponseError, ClientSession
|
|
13
13
|
from .exceptions import UnexpectedResponseStructureError
|
14
14
|
from .models import CustomerData, InvoiceHeader, Service
|
15
15
|
|
16
|
-
__version__ = "0.
|
16
|
+
__version__ = "0.16.0"
|
17
17
|
DEFAULT_BASE_URL = "https://tilasto.jatekukko.fi/jatekukko/"
|
18
18
|
|
19
19
|
SERVICE_TIMEZONE = ZoneInfo("Europe/Helsinki")
|
@@ -37,6 +37,11 @@ async def run_example() -> None:
|
|
37
37
|
cal = icalendar.Calendar()
|
38
38
|
cal.add("PRODID", f"pytekukko/{pytekukko.__version__}")
|
39
39
|
cal.add("VERSION", "2.0")
|
40
|
+
cal.add("NAME", "Jätekukko collections")
|
41
|
+
cal.add("X-WR-CALNAME", "Jätekukko collections")
|
42
|
+
cal.add("URL", "https://tilasto.jatekukko.fi/indexservice2.jsp")
|
43
|
+
cal.add("X-WR-TIMEZONE", "Europe/Helsinki")
|
44
|
+
cal.add("METHOD", "PUBLISH")
|
40
45
|
for service, schedule in data:
|
41
46
|
for date in schedule:
|
42
47
|
event = icalendar.Event()
|
@@ -45,6 +50,7 @@ async def run_example() -> None:
|
|
45
50
|
event.add("DTSTAMP", now)
|
46
51
|
event.add("DTSTART", date)
|
47
52
|
event.add("DTEND", date + timedelta(days=1))
|
53
|
+
event.add("URL", "https://tilasto.jatekukko.fi/indexservice2.jsp")
|
48
54
|
cal.add_component(event)
|
49
55
|
sys.stdout.buffer.write(cal.to_ical())
|
50
56
|
else:
|
@@ -1,15 +1,15 @@
|
|
1
|
-
pytekukko/__init__.py,sha256=
|
1
|
+
pytekukko/__init__.py,sha256=lh5p0fm7hE6bK-q_ikFuV-4nLOJIhzD7POfOGmYJQGs,6557
|
2
2
|
pytekukko/exceptions.py,sha256=qGxEaKkr6t0ApvOb-_12PjEUwmEZDCMQ4s5BAgde8Og,353
|
3
3
|
pytekukko/models.py,sha256=DePgMRUKXkmJVDiXSREVB7JB3Fe7K-tp9Z9VIv0hcIE,2315
|
4
4
|
pytekukko/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
pytekukko/examples/__init__.py,sha256=okWI6GachxrBvvHR-WElMnzki7Fyq-SB5I35gYUziow,2746
|
6
|
-
pytekukko/examples/print_collection_schedules.py,sha256=
|
6
|
+
pytekukko/examples/print_collection_schedules.py,sha256=Qe5X-3iTGpclh_kHdSIaJEpjXVTXw9BTWPEYajj1Ljc,2446
|
7
7
|
pytekukko/examples/print_invoice_headers.py,sha256=-yjNMdFyGI6X5eAUFtoy4qO9A4HzaJ7Uz7YO_C_7m6o,947
|
8
8
|
pytekukko/examples/print_next_collections.py,sha256=TyxsmQ60zCMOmalIo17YAV9_7yjWSbCYgdZG-ZfOKpU,924
|
9
9
|
pytekukko/examples/update_google_calendar.py,sha256=cbFEtRQtsE2EitvkOD5rQZeJAlspqkPD-2AJyS07kog,6706
|
10
|
-
pytekukko-0.
|
11
|
-
pytekukko-0.
|
12
|
-
pytekukko-0.
|
13
|
-
pytekukko-0.
|
14
|
-
pytekukko-0.
|
15
|
-
pytekukko-0.
|
10
|
+
pytekukko-0.16.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
11
|
+
pytekukko-0.16.0.dist-info/METADATA,sha256=ogtbPoHI5YiSq8SSLYurqdM9Ltofr_dPh-HVQRGUONc,16046
|
12
|
+
pytekukko-0.16.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
13
|
+
pytekukko-0.16.0.dist-info/entry_points.txt,sha256=p4qVa_J7SI2g3UoYq9Em_vPBz9DXXzIqL3wpcud2J0o,378
|
14
|
+
pytekukko-0.16.0.dist-info/top_level.txt,sha256=CozVPCHdY-e4oxKq01MVWfy3ge_5BlV0I465LUsfchk,10
|
15
|
+
pytekukko-0.16.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|