ics-query 0.0.1a0__py3-none-any.whl → 0.1.dev1__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.
Files changed (42) hide show
  1. ics_query/__init__.py +18 -2
  2. ics_query/__main__.py +15 -0
  3. ics_query/_version.py +2 -2
  4. ics_query/cli.py +620 -18
  5. ics_query/parse.py +78 -4
  6. ics_query/query.py +78 -0
  7. ics_query/tests/conftest.py +68 -20
  8. ics_query/tests/runs/all --tz Singapore one-event.ics -.run +9 -0
  9. ics_query/tests/runs/all three-events.ics -.run +33 -0
  10. ics_query/tests/runs/at 2019-03-04 multiple-calendars.ics -.run +20 -0
  11. ics_query/tests/runs/at 2019-03-04 one-event-twice.ics -.run +18 -0
  12. ics_query/tests/runs/at 2019-03-07 multiple-calendars.ics -.run +11 -0
  13. ics_query/tests/runs/at 2024-08-20 Berlin-Los-Angeles.ics -.run +23 -0
  14. ics_query/tests/runs/between 20240823 4d recurring-work-events.ics -.run +24 -0
  15. ics_query/tests/runs/calendars/Berlin-Los-Angeles.ics +381 -0
  16. ics_query/tests/runs/calendars/empty-calendar.ics +7 -0
  17. ics_query/tests/runs/calendars/empty-file.ics +0 -0
  18. ics_query/tests/runs/calendars/multiple-calendars.ics +71 -0
  19. ics_query/tests/runs/calendars/one-event-twice.ics +68 -0
  20. ics_query/tests/runs/calendars/one-event-without-timezone.ics +14 -0
  21. ics_query/tests/runs/calendars/recurring-work-events.ics +223 -0
  22. ics_query/tests/runs/calendars/simple-journal.ics +15 -0
  23. ics_query/tests/runs/calendars/simple-todo.ics +15 -0
  24. ics_query/tests/runs/calendars/three-events.ics +37 -0
  25. ics_query/tests/runs/first -c VJOURNAL -c VEVENT one-event.ics -.run +9 -0
  26. ics_query/tests/runs/first -c VJOURNAL one-event.ics -.run +0 -0
  27. ics_query/tests/runs/first -c VJOURNAL simple-journal.ics -.run +12 -0
  28. ics_query/tests/runs/first -c VTODO -c VJOURNAL simple-todo.ics -.run +10 -0
  29. ics_query/tests/runs/first -c VTODO simple-todo.ics -.run +10 -0
  30. ics_query/tests/runs/first empty-calendar.ics -.run +0 -0
  31. ics_query/tests/runs/first empty-file.ics -.run +0 -0
  32. ics_query/tests/runs/first recurring-work-events.ics -.run +12 -0
  33. ics_query/tests/test_command_line.py +62 -0
  34. ics_query/tests/test_parse_date.py +81 -0
  35. ics_query/tests/test_parse_timedelta.py +40 -0
  36. ics_query/version.py +36 -3
  37. {ics_query-0.0.1a0.dist-info → ics_query-0.1.dev1.dist-info}/METADATA +443 -39
  38. ics_query-0.1.dev1.dist-info/RECORD +44 -0
  39. ics_query-0.0.1a0.dist-info/RECORD +0 -16
  40. {ics_query-0.0.1a0.dist-info → ics_query-0.1.dev1.dist-info}/WHEEL +0 -0
  41. {ics_query-0.0.1a0.dist-info → ics_query-0.1.dev1.dist-info}/entry_points.txt +0 -0
  42. {ics_query-0.0.1a0.dist-info → ics_query-0.1.dev1.dist-info}/licenses/LICENSE +0 -0
ics_query/__init__.py CHANGED
@@ -1,11 +1,27 @@
1
- from .cli import main
1
+ # ics-query
2
+ # Copyright (C) 2024 Nicco Kunzmann
3
+ #
4
+ # This program is free software: you can redistribute it and/or modify
5
+ # it under the terms of the GNU General Public License as published by
6
+ # the Free Software Foundation, either version 3 of the License, or
7
+ # (at your option) any later version.
8
+ #
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ # GNU General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU General Public License
15
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
16
+ from .cli import cli, main
2
17
  from .version import __version__, __version_tuple__, version, version_tuple
3
18
 
4
19
  __all__ = [
5
- "main",
20
+ "cli",
6
21
  "app",
7
22
  "__version__",
8
23
  "version",
9
24
  "__version_tuple__",
10
25
  "version_tuple",
26
+ "main",
11
27
  ]
ics_query/__main__.py CHANGED
@@ -1,3 +1,18 @@
1
+ # ics-query
2
+ # Copyright (C) 2024 Nicco Kunzmann
3
+ #
4
+ # This program is free software: you can redistribute it and/or modify
5
+ # it under the terms of the GNU General Public License as published by
6
+ # the Free Software Foundation, either version 3 of the License, or
7
+ # (at your option) any later version.
8
+ #
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ # GNU General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU General Public License
15
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
1
16
  import sys
2
17
 
3
18
  from .cli import main
ics_query/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.0.1a0'
16
- __version_tuple__ = version_tuple = (0, 0, 1)
15
+ __version__ = version = '0.1.dev1'
16
+ __version_tuple__ = version_tuple = (0, 1, 'dev1')