%global _empty_manifest_terminate_build 0 Name: python-webots-web-log-interface Version: 0.2.5 Release: 1 Summary: A python library used to interact with webots robocup game web logs License: MIT URL: https://bit-bots.github.io/webots-web-log-interface Source0: https://mirrors.nju.edu.cn/pypi/web/packages/69/67/7841c0cf5d09ac170adb94abf74c78306b79c01406fd7d1e3ceeb78e4965/webots-web-log-interface-0.2.5.tar.gz BuildArch: noarch Requires: python3-numpy Requires: python3-matplotlib %description # Webots Web Log Interface A python library used to interact with webots robocup game web logs ## Installation ```bash pip3 install webots-web-log-interface ``` ## Documentation You can find the interface documentation [here](https://bit-bots.github.io/webots-web-log-interface/html/webots_web_log_interface/interface.html). ## Examples Download example data ```bash mkdir data cd data wget https://games.bit-bots.de/k-ko-sf2/K-KO-SF2.json wget https://games.bit-bots.de/k-ko-sf2/K-KO-SF2.x3d cd .. ``` Now you are able to use the interface ```python from webots_web_log_interface.interface import WebotsGameLogParser gp = WebotsGameLogParser(log_folder="data") # Now some examples # Get ball ball = gp.x3d.get_ball_id() # Get velocities for ball print(gp.game_data.get_velocity_vectors_for_id(ball)) # Get player names print(gp.x3d.get_player_names()) # Plot player paths gp.plot_player_paths() ``` ## Build it yourself ```bash git clone https://github.com/bit-bots/webots-web-log-interface.git cd webots-web-log-interface poetry install poetry shell ``` %package -n python3-webots-web-log-interface Summary: A python library used to interact with webots robocup game web logs Provides: python-webots-web-log-interface BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-webots-web-log-interface # Webots Web Log Interface A python library used to interact with webots robocup game web logs ## Installation ```bash pip3 install webots-web-log-interface ``` ## Documentation You can find the interface documentation [here](https://bit-bots.github.io/webots-web-log-interface/html/webots_web_log_interface/interface.html). ## Examples Download example data ```bash mkdir data cd data wget https://games.bit-bots.de/k-ko-sf2/K-KO-SF2.json wget https://games.bit-bots.de/k-ko-sf2/K-KO-SF2.x3d cd .. ``` Now you are able to use the interface ```python from webots_web_log_interface.interface import WebotsGameLogParser gp = WebotsGameLogParser(log_folder="data") # Now some examples # Get ball ball = gp.x3d.get_ball_id() # Get velocities for ball print(gp.game_data.get_velocity_vectors_for_id(ball)) # Get player names print(gp.x3d.get_player_names()) # Plot player paths gp.plot_player_paths() ``` ## Build it yourself ```bash git clone https://github.com/bit-bots/webots-web-log-interface.git cd webots-web-log-interface poetry install poetry shell ``` %package help Summary: Development documents and examples for webots-web-log-interface Provides: python3-webots-web-log-interface-doc %description help # Webots Web Log Interface A python library used to interact with webots robocup game web logs ## Installation ```bash pip3 install webots-web-log-interface ``` ## Documentation You can find the interface documentation [here](https://bit-bots.github.io/webots-web-log-interface/html/webots_web_log_interface/interface.html). ## Examples Download example data ```bash mkdir data cd data wget https://games.bit-bots.de/k-ko-sf2/K-KO-SF2.json wget https://games.bit-bots.de/k-ko-sf2/K-KO-SF2.x3d cd .. ``` Now you are able to use the interface ```python from webots_web_log_interface.interface import WebotsGameLogParser gp = WebotsGameLogParser(log_folder="data") # Now some examples # Get ball ball = gp.x3d.get_ball_id() # Get velocities for ball print(gp.game_data.get_velocity_vectors_for_id(ball)) # Get player names print(gp.x3d.get_player_names()) # Plot player paths gp.plot_player_paths() ``` ## Build it yourself ```bash git clone https://github.com/bit-bots/webots-web-log-interface.git cd webots-web-log-interface poetry install poetry shell ``` %prep %autosetup -n webots-web-log-interface-0.2.5 %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-webots-web-log-interface -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Mon May 15 2023 Python_Bot - 0.2.5-1 - Package Spec generated