1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
%global _empty_manifest_terminate_build 0
Name: python-PyMVGLive
Version: 1.1.4
Release: 1
Summary: get live-data from mvg-live.de
License: None
URL: https://pypi.org/project/PyMVGLive/
Source0: https://mirrors.aliyun.com/pypi/web/packages/01/ad/d5bb0c7d6e80de616548d3d8e46f09d5c98517dfff54179421cf3d4446b2/PyMVGLive-1.1.4.tar.gz
BuildArch: noarch
%description
Python-Library to get live-data from mvg-live.de - yet another workaround the official, non-released API....
## MVGLive.getlivedata()
Retrieve the next departures from mvg-live.de
Configuration variables:
- **station** (*Required*): Name of the stop or station. Visit [the MVG live web site](http://www.mvg-live.de) to find valid names.
- **timeoffset** (*Optional*): Do not display connections departing sooner than this number of minutes (defaults to 0). Useful if you are a couple of minutes away from the stop.
- **entries** (*Optional*): Number of entries to retrieve (defaults to 10).
- **ubahn** (*Optional*): If 'False', do not display U-Bahn (subway) departures
- **tram** (*Optional*): If 'False', do not display tram departures
- **bus** (*Optional*): If 'False', do not display bus departures
- **sbahn** (*Optional*): If 'False', do not display S-Bahn (suburban train) departures
## MVGLive.getdisruptiondata()
Retrieve current disruptions/status messages from mvg-live.de. Returns headline and description of disruption.
Please note, that this call will execute another API-request and might cause problems with rate-limits imposed by the webservice.
For a saver way, please use [RSS-feed](http://www.mvg-mobil.de/Tickerrss/CreateRssClass) that is also provided by the MVG. You can find a sample implementation [here](https://github.com/muccc/anzeigr/blob/master/current_nodes/mvgdefas/ticker/getmvgticker.py)
%package -n python3-PyMVGLive
Summary: get live-data from mvg-live.de
Provides: python-PyMVGLive
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-PyMVGLive
Python-Library to get live-data from mvg-live.de - yet another workaround the official, non-released API....
## MVGLive.getlivedata()
Retrieve the next departures from mvg-live.de
Configuration variables:
- **station** (*Required*): Name of the stop or station. Visit [the MVG live web site](http://www.mvg-live.de) to find valid names.
- **timeoffset** (*Optional*): Do not display connections departing sooner than this number of minutes (defaults to 0). Useful if you are a couple of minutes away from the stop.
- **entries** (*Optional*): Number of entries to retrieve (defaults to 10).
- **ubahn** (*Optional*): If 'False', do not display U-Bahn (subway) departures
- **tram** (*Optional*): If 'False', do not display tram departures
- **bus** (*Optional*): If 'False', do not display bus departures
- **sbahn** (*Optional*): If 'False', do not display S-Bahn (suburban train) departures
## MVGLive.getdisruptiondata()
Retrieve current disruptions/status messages from mvg-live.de. Returns headline and description of disruption.
Please note, that this call will execute another API-request and might cause problems with rate-limits imposed by the webservice.
For a saver way, please use [RSS-feed](http://www.mvg-mobil.de/Tickerrss/CreateRssClass) that is also provided by the MVG. You can find a sample implementation [here](https://github.com/muccc/anzeigr/blob/master/current_nodes/mvgdefas/ticker/getmvgticker.py)
%package help
Summary: Development documents and examples for PyMVGLive
Provides: python3-PyMVGLive-doc
%description help
Python-Library to get live-data from mvg-live.de - yet another workaround the official, non-released API....
## MVGLive.getlivedata()
Retrieve the next departures from mvg-live.de
Configuration variables:
- **station** (*Required*): Name of the stop or station. Visit [the MVG live web site](http://www.mvg-live.de) to find valid names.
- **timeoffset** (*Optional*): Do not display connections departing sooner than this number of minutes (defaults to 0). Useful if you are a couple of minutes away from the stop.
- **entries** (*Optional*): Number of entries to retrieve (defaults to 10).
- **ubahn** (*Optional*): If 'False', do not display U-Bahn (subway) departures
- **tram** (*Optional*): If 'False', do not display tram departures
- **bus** (*Optional*): If 'False', do not display bus departures
- **sbahn** (*Optional*): If 'False', do not display S-Bahn (suburban train) departures
## MVGLive.getdisruptiondata()
Retrieve current disruptions/status messages from mvg-live.de. Returns headline and description of disruption.
Please note, that this call will execute another API-request and might cause problems with rate-limits imposed by the webservice.
For a saver way, please use [RSS-feed](http://www.mvg-mobil.de/Tickerrss/CreateRssClass) that is also provided by the MVG. You can find a sample implementation [here](https://github.com/muccc/anzeigr/blob/master/current_nodes/mvgdefas/ticker/getmvgticker.py)
%prep
%autosetup -n PyMVGLive-1.1.4
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-PyMVGLive -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Thu Jun 08 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.4-1
- Package Spec generated
|