mendevi.measures.context¶
Get the information of the environment.
Functions
Get the full context informations. |
|
Return the version of ffmpeg. |
|
Return the version of the librav1e encoder. |
|
Return the version of the libsvtav1 encoder. |
|
Return the version of the libvpx-vp9 encoder. |
|
Return the version of the libx265 encoder. |
|
|
Extract the very accurate exaustive info as big json. |
Extract the information with lspci -k. |
|
Return the sorted pip freeze. |
|
Get basic information about the system. |
|
Return the version of the vvc encoder. |
Details
- mendevi.measures.context.get_ffmpeg_version() str[source]
Return the version of ffmpeg.
Examples¶
>>> import pprint >>> from mendevi.measures.context import get_ffmpeg_version >>> pprint.pprint(get_ffmpeg_version()) ('ffmpeg version ... Copyright (c) ' '... the FFmpeg developers\n' 'built with gcc ...\n' 'configuration: --prefix=.../ffmpeg_build ' '--pkg-config-flags=--static ' '--extra-cflags=-I.../ffmpeg_build/include ' "--extra-ldflags=-L.../ffmpeg_build/lib --extra-libs='-lpthread " "-lm' --ld=g++ --bindir=.../bin --enable-chromaprint " '--enable-frei0r --enable-gpl --enable-ladspa --enable-libaom --enable-libass ' '--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio ' '--enable-libdav1d --enable-libdrm --enable-libfdk-aac --enable-libflite ' '--enable-libfontconfig --enable-libfreetype --enable-libfribidi ' '--enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame ' '--enable-libopenh264 --enable-libopenmpt --enable-libopus --enable-libpulse ' '--enable-librav1e --enable-librubberband --enable-librubberband ' '--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex ' '--enable-libsvtav1 --enable-libtheora --enable-libtwolame ' '--enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis ' '--enable-libvpx --enable-libvvenc --enable-libwebp --enable-libx264 ' '--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg ' '--enable-libzvbi --enable-nonfree --enable-opengl --enable-openssl ' '--enable-vaapi --enable-version3 --enable-libvpl --disable-libmfx ' "--extra-cflags='-O2 -march=native -mtune=native' --extra-cxxflags='-O2 " "-march=native -mtune=native'\n" 'libavutil ...\n' 'libavcodec ...\n' 'libavformat ...\n' 'libavdevice ...\n' 'libavfilter ...\n' 'libswscale ...\n' 'libswresample ...') >>>
- mendevi.measures.context.get_librav1e_version() str[source]
Return the version of the librav1e encoder.
Examples¶
>>> from mendevi.measures.context import get_librav1e_version >>> print(get_librav1e_version()) rav1e 0.8.0 (...) (release) rustc ... (...) x86_64-unknown-linux-gnu Compiled CPU Features: ... Runtime Assembly Support: Enabled Runtime Assembly Level: ... Threading: Enabled Unstable Features: Disabled Compiler Flags: -C target-cpu=native >>>
- mendevi.measures.context.get_libsvtav1_version() str[source]
Return the version of the libsvtav1 encoder.
Examples¶
>>> from mendevi.measures.context import get_libsvtav1_version >>> print(get_libsvtav1_version()) v3.1.0... GCC ... 64 bit >>>
- mendevi.measures.context.get_libvpx_vp9_version() str[source]
Return the version of the libvpx-vp9 encoder.
Examples¶
>>> from mendevi.measures.context import get_libvpx_vp9_version >>> print(get_libvpx_vp9_version()) v... >>>
- mendevi.measures.context.get_libx265_version() str[source]
Return the version of the libx265 encoder.
Examples¶
>>> from mendevi.measures.context import get_libx265_version >>> print(get_libx265_version()) 4... [Linux][GCC ...][64 bit] 8... MMX2 ... AVX2 >>>
- mendevi.measures.context.get_lshw() str[source]
Extract the very accurate exaustive info as big json.
Examples¶
>>> from mendevi.measures.context import get_lshw >>> full_info = get_lshw() >>>
- mendevi.measures.context.get_lspci() str[source]
Extract the information with lspci -k.
Examples¶
>>> from mendevi.measures.context import get_lspci >>> lspci_info = get_lspci() >>>
- mendevi.measures.context.get_pip_freeze() str[source]
Return the sorted pip freeze.
Examples¶
>>> from mendevi.measures.context import get_pip_freeze >>> print(get_pip_freeze()) accessible-pygments==... ... >>>
- mendevi.measures.context.get_platform() dict[source]
Get basic information about the system.
Examples¶
>>> import pprint >>> from mendevi.measures.context import get_platform >>> pprint.pprint(get_platform()) {'hostname': '...', 'kernel_version': 'Linux-...', 'logical_cores': ..., 'physical_cores': ..., 'processor': '...', 'python_compiler': '...', 'python_version': '...', 'ram': ..., 'swap': ..., 'system_version': '...'} >>>