Saravanan666/pypi-org huggingface dataset:
Package: pyFltk
pyFLTK:A Python Wrapper for the FLTK libraryGOALS:To wrap FLTK1.3 in PythonTo port all programs in test/ to Python using pyFLTKIf you'd like to help out, I'd suggest using the pyfltk mailing list
(at the bottom) to coordinate who's working on what.This wrapper requires:SWIG 4.1.xPython 3.9 or laterFast Light Toolkit 1.3.9 or later (it will also work with earlier versions)RestrictionsAt present, the Python wrapper has been ported and is stable.
A preliminary release of flconvert is available but work on it has stopped.The wrapper is available on PyPi:https://pypi.org/project/pyFltk/To build the wrappers yourself do the following: (see INSTALL for more
details):python setup.py swig (not required if you downloaded the _WithSwig source)python setup.py buildpython setup.py installYou might have to edit setup.py to fit your platform.Do the following to run some tests:cd fltk/testpython hello.py
or
python3 hello.py (depending on your platform)./test contains demo programs from the FLTK distribution reimplemented
in Python.You can run ./test/demos.py for a little
menu of the demosOn the web:pyFLTK home page:http://pyfltk.sourceforge.ioLicense:pyFLTK Copyright (C) 2003-2021 Andreas Held and others licensed under the
GNU Library General Public License, version 2.0, June 1991This library is free software you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License, version 2.0 as published by the Free Software Foundation.This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Library General Public License for more details.You should have received a copy of the GNU Library General Public
License along with this library if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA.Leads:Andreas Held  andreasheld[at]users.sourceforge.netRobert ArkiletianMailing List:http://lists.sourceforge.net/lists/listinfo/pyfltk-userThanks:Especial thanks to Kevin Dalhausen, the originator of pyFLTK. He did
such a good job, the rest was easy.Many thanks to the creators of fltk (www.fltk.org), the best, fastest
and lightest toolkit there is!Finally, not to forget the creators of SWIG (www.swig.org) a unique
tool for doing what we've done here.
Package: pyfltr
pyfltr: Python Formatters, Linters, and Testers RunnerPythonの各種ツールをまとめて呼び出すツール。FormatterspyupgradeautoflakeisortblackLinterspflake8 + flake8-bugbearmypypylintTesterspytestコンセプト各種ツールをまとめて呼び出したい各種ツールのバージョンにはできるだけ依存したくない (ので設定とかは面倒見ない)exclude周りは各種ツールで設定方法がバラバラなのでできるだけまとめて解消したい (のでpyfltr側で解決してツールに渡す)blackやisortはファイルを修正しつつエラーにもしたい (CIとかを想定) (pyupgradeはもともとそういう動作)Q: pysenでいいのでは？ A: それはそうインストールpipinstallpyfltr主な使い方通常pyfltr[filesand/ordirectories...]対象を指定しなければカレントディレクトリを指定したのと同じ扱い。指定したファイルやディレクトリの配下のうち、pytest以外は*.pyのみ、pytestは*_test.pyのみに対して実行される。終了コード:0: Formattersによるファイル変更無し、かつLinters/Testersでのエラー無し1: 上記以外--exit-zero-even-if-formatedを指定すると、Formattersによるファイル変更があっても
Linters/Testersでのエラー無しなら終了コードは0になる。特定のツールのみ実行pyfltr--commands=pyupgrade,autoflake,isort,black,pflake8,mypy,pylint,pytest[filesand/ordirectories...]カンマ区切りで実行するツールだけ指定する。以下のエイリアスも使用可能。(例:--commands=fast)format:pyupgrade,autoflake,isort,blacklint:pflake8,mypy,pylinttest:pytestfast:pyupgrade,autoflake,isort,black,pflake8設定pyproject.tomlで設定する。例[tool.pyfltr]pyupgrade-args=["--py38-plus"]pylint-args=["--jobs=4"]extend-exclude=["foo","bar.py"]設定項目設定項目と既定値はpyfltr --generate-configで確認可能。{command} : コマンドの有効/無効{command}-path : 実行するコマンド{command}-args : 追加のコマンドライン引数exclude : 除外するファイル名/ディレクトリ名パターン(既定値あり)extend-exclude : 追加で除外するファイル名/ディレクトリ名パターン(既定値は空)各種設定例pyproject.toml[tool.poetry.dev-dependencies]pyfltr="*"[tool.pyfltr]pyupgrade-args=["--py38-plus"]pylint-args=["--jobs=4"][tool.isort]# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#isort# https://pycqa.github.io/isort/docs/configuration/options.htmlprofile="black"[tool.black]# https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.htmltarget-version=['py38']skip-magic-trailing-comma=true[tool.flake8]# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8# https://flake8.pycqa.org/en/latest/user/configuration.htmlmax-line-length=88extend-ignore="E203,"[tool.mypy]# https://mypy.readthedocs.io/en/stable/config_file.htmlallow_redefinition=truecheck_untyped_defs=trueignore_missing_imports=truestrict_optional=truestrict_equality=truewarn_no_return=truewarn_redundant_casts=truewarn_unused_configs=trueshow_error_codes=true[tool.pytest.ini_options]# https://docs.pytest.org/en/latest/reference/reference.html#ini-options-refaddopts="--showlocals -p no:cacheprovider".pre-commit-config.yaml-repo:localhooks:-id:systemname:pyfltrentry:poetry run pyfltr --commands=fasttypes:[python]require_serial:truelanguage:systemCI-poetry install --no-interaction-poetry run pyfltr
Package: pyflubber
pyflubberLinear interpolation of open and closed lines for Python.The code for closed lines is based on theflubberpackage, hence the name.A version for Dart can be foundhere.Installationpipinstallpyflubberorpipinstallgit+https://github.com/maxme1/pyflubber.gitorgitclonehttps://github.com/maxme1/pyflubber.gitcdpyflubber
pipinstall-e.Usagefrompyflubberimportinterpolatemiddle=interpolate(first,second,0.5,closed=False)
Package: pyfluence
PyFluenceA Python 2 and 3 REST API client for Atlassian ConfluenceThis library lets you view, edit, delete entities in an instance of Atlassian Confluence using its REST APISimple DemofrompyfluenceimportConfluence# First create a Confluence instance:confluence=Confluence("admin","admin","http://localhost:1990/confluence")# Then create a spacespace_ob=confluence.create_space("TEST","Test Space","Test Space Description")# Then create a page in that spacecontent_ob=confluence.create_content(space_key=space_ob['key'],content_type="page",title="Test Parent Page",html_markup="<h1>This is a test page</h1>",)# Then you can update the pageconfluence.update_content(space_key=space_ob['key'],page_id=content_ob['id'],html_markup="<h1>This is an update</h1>",update_type=co.UPDATE_REPLACE)DevelopingYou can use the Atlassian Developer SDK to run tests.  You can follow the instructions here:https://developer.atlassian.com/server/framework/atlassian-sdk/downloads/On the mac, for example:> brew tap atlassian/tap
> brew install atlassian/atlas-tap/atlassian-plugin-sdk # or upgrade
> atlas-run-standalone --product confluence
> python -m unittest pyfluence/tests/test_confluence.pyView confluence here:http://localhost:1990/confluence
Package: pyfluentformio
# pyfluentformioPython version of FluentJS. Allows users to perform GET and POST requests to Form.io resources and forms. It also allows the use of filters and method chaining.## Usage```pythonfrom pyfluentformio import Fluentconnector = Fluent(baseUrl = 'FORMIO BASE URL', resourcePath='FORMIO RESOURCE PATH', token='FORMIO API TOKEN')connector.get()```## LicenseMIT
Package: pyfluffy
# Fluffy - A Firewall as a ServiceFluffy is a firewall as a service solution that primarily targets Linux environments.## FeaturesA fully documented RESTful API using FlasggerSession based configuration so that changes can be tested and committed atomically without affecting the active configurationRollback methods using unattended server-side checks including rollback intervals with acommit/confirmtype of functionalitySource and destination addresses are managed by a globaladdressbookwhich also supports inheritanceSource and destination services are managed by a globalservices catalogChains support including default policy, packet matching tables etc.Interfaces support## Puppet integrationA module is available on [PuppetForge](https://forge.puppet.com/m4ce/fluffy).## Running in Docker` $ docker pull m4ce/fluffy `The container needs to run in privileged mode (–privileged). Additionally, you will need to make sure the Docker daemon is started with–iptables=false.## TodoAPI docsIntegration testsAPI-key based authentication## Author
Matteo Cerutti -matteo.cerutti@hotmail.co.uk
Package: pyFluidSynth
This module contains python bindings for FluidSynth.  FluidSynth is a
software synthesizer for generating music.  It works like a MIDI
synthesizer.  You load patches, set parameters, then send NOTEON and
NOTEOFF events to play notes.  Instruments are defined in SoundFonts,
generally files with the extension SF2.  FluidSynth can either be used
to play audio itself, or you can call a function that returns chunks
of audio data and output the data to the soundcard yourself.
Package: pyFluidSynth-musikla
This module contains python bindings for FluidSynth.  FluidSynth is a
software synthesizer for generating music.  It works like a MIDI
synthesizer.  You load patches, set parameters, then send NOTEON and
NOTEOFF events to play notes.  Instruments are defined in SoundFonts,
generally files with the extension SF2.  FluidSynth can either be used
to play audio itself, or you can call a function that returns chunks
of audio data and output the data to the soundcard yourself.
Package: pyfluidsynth-nowarnings
This module contains python bindings for FluidSynth.  FluidSynth is a
software synthesizer for generating music.  It works like a MIDI
synthesizer.  You load patches, set parameters, then send NOTEON and
NOTEOFF events to play notes.  Instruments are defined in SoundFonts,
generally files with the extension SF2.  FluidSynth can either be used
to play audio itself, or you can call a function that returns chunks
of audio data and output the data to the soundcard yourself.
Package: pyflunearyou
🤒 pyflunearyou: A Python3 API for Flu Near Youpyflunearyouis a simple Python library for retrieving UV-related information
fromFlu Near You.InstallationPython VersionsUsageContributingInstallationpipinstallpyflunearyouPython Versionspyflunearyouis currently supported on:Python 3.6Python 3.7Python 3.8Python 3.9Python 3.10UsageimportasynciofromaiohttpimportClientSessionfrompyflunearyouimportClientasyncdefmain()->None:"""Run!"""client=Client()# Get user data for a specific latitude/longitude:awaitclient.user_reports.status_by_coordinates(<LATITUDE>,<LONGITUDE>)# Get user data for a specific ZIP code:awaitclient.user_reports.status_by_zip("<ZIP_CODE>")# Get CDC data for a specific latitude/longitude:awaitclient.cdc_reports.status_by_coordinates(<LATITUDE>,<LONGITUDE>)# Get CDC data for a specific state:awaitclient.cdc_reports.status_by_state('<USA_CANADA_STATE_NAME>')asyncio.run(main())By default, the library creates a new connection to Flu Near You with each coroutine. If
you are calling a large number of coroutines (or merely want to squeeze out every second
of runtime savings possible), anaiohttpClientSessioncan be used for connection
pooling:importasynciofromaiohttpimportClientSessionfrompyflunearyouimportClientasyncdefmain()->None:"""Run!"""asyncwithClientSession()assession:client=Client(session=session)# ...asyncio.run(main())ContributingCheck for open features/bugsorinitiate a discussion on one.Fork the repository.(optional, but highly recommended) Create a virtual environment:python3 -m venv .venv(optional, but highly recommended) Enter the virtual environment:source ./.venv/bin/activateInstall the dev environment:script/setupCode your new feature or bug fix.Write tests that cover your new functionality.Run tests and ensure 100% code coverage:script/testUpdateREADME.mdwith any new documentation.Add yourself toAUTHORS.md.Submit a pull request!
Package: pyflush
pyflushThis repository contains python code to remove content of a directory, or file in a safer manner. After running pyflush, it became much safer to delete the file manually/programmatically.Developer:Ravin KumarSteps to use pyflushRemoving a fileimportpyflushpyflush.flushfile("filename.txt")Removing a directoryimportpyflushpyflush.flushdir("directoryname")Installation using PyPipip3 install pyflushCopyright(c)2019RavinKumarWebsite:https://mr-ravin.github.ioPermissionisherebygranted,freeofcharge,toanypersonobtainingacopyofthissoftwareandassociateddocumentationfiles(the“Software”),todealintheSoftwarewithoutrestriction,includingwithoutlimitationtherightstouse,copy,modify,merge,publish,distribute,sublicense,and/orsellcopiesoftheSoftware,andtopermitpersonstowhomtheSoftwareisfurnishedtodoso,subjecttothefollowingconditions:TheabovecopyrightnoticeandthispermissionnoticeshallbeincludedinallcopiesorsubstantialportionsoftheSoftware.THESOFTWAREISPROVIDED“ASIS”,WITHOUTWARRANTYOFANYKIND,EXPRESSORIMPLIED,INCLUDINGBUTNOTLIMITEDTOTHEWARRANTIESOFMERCHANTABILITY,FITNESSFORAPARTICULARPURPOSEANDNONINFRINGEMENT.INNOEVENTSHALLTHEAUTHORSORCOPYRIGHTHOLDERSBELIABLEFORANYCLAIM,DAMAGESOROTHERLIABILITY,WHETHERINANACTIONOFCONTRACT,TORTOROTHERWISE,ARISINGFROM,OUTOFORINCONNECTIONWITHTHESOFTWAREORTHEUSEOROTHERDEALINGSINTHESOFTWARE.
Package: pyflutterinstall
pyflutterinstallInstalls all dependencies for pyflutter/AndroidSDK on Windows.pipinstallpyflutterinstallcd<DIRECTORYYOUWANTTOINSTALL>
pyflutterinstallThe SDK will be installed atFlutterSDKUse this tool if you need to:Install FlutterSDK-or- Install the AndroidSDKYour path will be updated with the dependencies so that you can executesdkmanager,adb,emulatorand the like.Why?Installing the Android SDK toolchain ishard! This tool takes care of all of this for
Windows/Linux/MacOS and does it in a fully automated way. This is great for reproducabilty of tool chain install across your
team.VersionsAndroid API: 33Java: 20Flutter:Usage>pipinstallpyflutterinstall
>pyflutterinstallReleases1.4.2: Better better file deletion attempts for --remove.1.4.1: Adds build tools to the path, enabling aapt and aapt2 and others.1.4.0: Remove the trampoline hack, now sets paths properly thanks to setenvironment 2.01.2.7: Use a trampoline for apkanalyzer to fix missing class paths1.2.6: Java trampoline fixed for Mac OSX1.2.5: Java is now jdk v17 by default1.2.4: Java v11.0.2 -> v11.0.18 (fixes OkHttp3 bug)1.2.2: Fixes for sdkmanager.1.2.1: Fixes for avdmanager.1.2.0: Now uses shims for adb, avdmanager, emulator, gradle, java, sdkmanager1.1.3: Fix 1.1.21.1.2: Adds --install-dir option to install to a specific directory.1.1.1: Expose the post_run testing function to test environments.1.1.0: Adds ant install.1.0.10: Emulator tools now installed on path.1.0.9: adb is now installed on the path.1.0.8: Gradle upgrade to 7.5, JDK is downgraded to 9.1.0.7: Windows now uses user environment variables to avoid elevated privileges.1.0.6: Fix macos install.1.0.5: Gradle is now installed as well.1.0.3: Uses pexpect to run commands.1.0.2: MacOS: now installs cocoapods dependency.1.0.1: Update setenvironment to 1.0.9 to get expanded paths.1.0.0: Windows, Mac and Linux now supported and all tests pass.0.0.2: Automated tests for windows.0.0.1: Initial release - windows supported.TODOIntegrate the Windows Universal bridge driver for devices:https://adb.clockworkmod.com/
Package: pyflwdir
IntroPyFlwDir contains a series of methods to work with gridded DEM and flow direction
datasets, which are key to many workflows in many earth sciences.
PyFlwDir supports several flow direction data conventions and can easily be extended to include more.
The package contains some unique methods such as Iterative Hydrography Upscaling (IHU)
method to upscale flow directions from high resolution data to coarser model resolution.PyFlwDir is in pure python and powered bynumbato keep it fast.Featured methodsflow directions from elevation data using a steepest gradient algorithmstrahler stream orderflow direction upscaling(sub)basin delineationpfafstetter subbasins delineationclassic stream orderheight above nearest drainage (HAND)geomorphic floodplain delineationup- and downstream tracing and arithmeticshydrologically adjusting elevationupstream accumulationvectorizing streamsmany more!InstallationSeeinstallation guideQuickstartSeeuser guideReference APISeereference APIDevelopment and TestingWelcome to the PyFlwDir project. All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome.
SeeContributing to PyFlwDirfor how we work.
Package: pyflycap2
Project that provides python bindings for the FlyCapture2 library
by Point Gray.For more information:https://matham.github.io/pyflycap2/index.htmlTo install:https://matham.github.io/pyflycap2/installation.htmlWarningDue to the licensing restrictions, Fly Capture dlls cannot be redistributed,
therefore the wheels only include the compiled bindings. To use, the Fly Capture
dlls must be provided independently, e.g. by placing them on the system PATH.ExamplesListing GigE cams:frompyflycap2.interfaceimportCameraContextcc=CameraContext()cc.rescan_bus()print(cc.get_gige_cams())# prints list of serial numbers.Configuring with the GUI:frompyflycap2.interfaceimportGUIgui=GUI()gui.show_selection()Reading images from a camera:frompyflycap2.interfaceimportCamerac=Camera(serial=cam_serial)c.connect()c.start_capture()c.read_next_image()image=c.get_current_image()# last imagec.disconnect()
Package: pyflycapture2
The library itself is available from PointGrey:http://www.ptgrey.com/support/downloads/download.asp(login required)
API docs:http://www.ptgrey.com/support/downloads/documents/flycapture/Doxygen/C/html/index.html(C API)http://www.ptgrey.com/support/downloads/documents/flycapture/Doxygen/html/index.html(C++ API)
Package: pyfm
使用Python编写的豆瓣FM命令行播放器类似项目：https://github.com/taizilongxu/douban.fm特性依赖较少，易于安装和运行支持私人兆赫，红心兆赫支持豆瓣歌曲加心支持Last.fm Scrobble运行环境Linux/Mac OS XPython 2.7+ , 3.3+依赖mpg123(如果安装了mpv或mplayer亦会自动使用)requestsurwid安装请首先安装支持的后端播放器中的某一个，然后使用pip安装本软件：(sudo)pip install pyfm如果选择直接git clone整个仓库的方法安装，请先安装相关依赖，然后把pyfm目录下的fm.py移动到上层目录，最后执行python fm.py使用在终端中输入$ pyfm配置$ pyfm config根据提示输入账户，密码等，豆瓣账户密码不会保存在本地，豆瓣Token，Cookie，Last.fm账户名，Last.fm密码的md5值等保存在$HOME/.pyfm/中。快捷键[n]  ->  跳过当前歌曲
[l]  ->  给当前歌曲添加红心或删除红心
[t]  ->  不再播放当前歌曲
[q]  ->  退出播放器出现问题？请尝试清空$HOME/.pyfm/目录下的所有内容，重新安装等，如还不能解决，欢迎向我提issue。致谢本项目主要参考了以下几个项目https://github.com/josephok/doubanfmhttps://github.com/zonyitoo/doubanfm-qthttps://github.com/turingou/douban.fmhttp://hg.user1.be/ScrobblerPlugin/感谢以上项目的作者，开源万岁！Changelog0.2.4 修复若干问题，支持关闭通知0.2.3 修复若干Bug，加入红心兆赫，支持使用mpv和mplayer作为播放后端(felixonmars)0.2.2 修复登陆失败时登陆状态不能正确显示的Bug0.2.1 修复Last.fm密码为空时报错的Bug0.2   代码大规模重构0.1   第一个正式版本协议The MIT License其中scrobbler.py遵循GPLv3协议
Package: pyfma
pyfmaFused multiply-addfor Python.Fused multiply-add computes(x*y) + zwith asingle rounding. Useful for dot
products, matrix multiplications, polynomial evaluations (e.g., with Horner's rule),
Newton's method for evaluating functions, convolutions, artificial neural networks etc.Use asimportpyfmaout=pyfma.fma(3.0,2.0,1.0)# 3.0*2.0 + 1.0 = 7.0Also works with NumPy inputs:importnumpyimportpyfmax=numpy.random.rand(3,4,5)y=numpy.random.rand(3,4,5)z=numpy.random.rand(3,4,5)out=pyfma.fma(x,y,z)Built withpybind11.CautionThe C/C++ implementation of FMA inMS Windowsisreportedly
broken. Use with care.Installationpyfma can beinstalled from the Python Package
Index, so withpip install pyfmayou can install/upgrade.Manual installationFor manual installation (if you're a developer or just really keen on getting the
bleeding edge version of pyfma), there are two possibilities:Get the sources, dopip install .. This does the trick most the time.As a fallback, there's a CMake-based installation. Simply gocmake /path/to/sources/andmake.TestingTo run the pyfma unit tests, check out this repository and typetox
Package: pyfmc
Finance Monte-Carlo Simulation using PyTorchAn easy-to-use python package to do Monte-Carlo Simulation on stock pricesGPU accelerated Monte-Carlo simulation, that could allow simulation more random walkers without a large time penaltyInstallationpipinstallpyfmcGeometric Brownian Motion SimulationConfigure the simulationimportpandasaspdimportmatplotlib.pyplotaspltfrompyfmc.simulations.gbmimportGBMdata_path="./tests/data/AAPL.csv"# Replace with one's desired datasimulation=GBM(df=pd.read_csv(data_path),n_walkers=500_000,n_steps=100,n_trajectories=50,open_index="Open",# Make sure the DataFrame has column index specified hereclose_index="Close",# Make sure the DataFrame has column index specified here)result=simulation.simulate()Simulation ResultsPrice Distributionprice_dist=result.price_distribution()price_dist.plot(bins=500)plt.show()Return Distributionreturn_dist=result.return_distribution()return_dist.plot(kde=True)plt.show()Walkers Trajectoriestrajectories=result.trajectories()trajectories.plot()plt.show()Value at Risk (VaR)var=result.VaR(alpha=5)# output: -0.2515...# The worst 5% chance -> -25% returnFor DevelopmentPython virtual environment:python3-mvenv.venvsource.venv/bin/activate
pip3install-rrequirements.txtReferenceHow to Use Monte Carlo Simulation With GBM (Investopedia)Understanding Value at Risk (VaR) and How It’s Computed (Investopedia)
Package: pyfmm
# pyfmmPython module implementing the Fast Marching Method, written in pure Python. Only dependency is numpy 1.8+.The implementation uses mostly boolean arrays for accessing and updating values. Instead of accepting only the smallest value at each iteration (step 3, https://en.wikipedia.org/wiki/Fast_marching_method), one may accept an arbitrary number of values at each step. This can speed up the computations considerably, but may in some cases be inaccurate (especially if the speed varies alot).## Installation## InterfaceThere are two ways to compute the distances:a) Using a boolean array that specifies the exact points that defines the boundary,b) Using an array of known distances to the boundary, in addition to a boolean array marking which values are certain.Method a)```pythonimport pyfmm, numpymy_boundary = numpy.array(..., dtype=numpy.bool)  # All boundary points marked as "True"solution = pyfmm.march(my_boundary)```Method b)```pythonimport pyfmm, numpyknown_distances = np.array(...)  # Unknown values could for instance be set to np.infsolution = pyfmm.march(numpy.argwhere(known_distances != numpy.inf), known_distances))```The number of values that are accepted at each iteration can be set using `batch_size`, and an array of speeds can be given using `speed`.## ExamplesThe examples illustrate the following:* `circle.py`: Distance from a ring boundary in the upper left part of the image. `batch_size` is varied to see how it affects computation time and result. In this case, the difference between the results from `batch_size=1` and `batch_size=100` seems negligible.* `race_to_middle.py`: Straight boundary on left and right hand side, and two different `speed` fields. The examples illustrates what might happen if care is not taken when choosing a `batch_size`.* `irregular.py`: Simply a less regular boundary shape than the two above.The example boundary defined by examples/irregular_boundary.png:![](examples/irregular.png)
Package: pyfmodex
PyfmodexThis is pyfmodex, anFMOD EnginePython binding usingctypes.InstallationTo install, first make sure that you have the FMOD Engine library for you platform somewhere in your path, so Python will be able to find it.
On Linux, libraries are searched for inLD_LIBRARY_PATH.
Alternatively, you can setPYFMODEX_DLL_PATHorPYFMODEX_STUDIO_DLL_PATHas an environment variable to specify the library path. This can also be done inside Python settingos.environ["PYFMODEX_DLL_PATH"]oros.environ["PYFMODEX_STUDIO_DLL_PATH"]before importing pyfmodex.
To download the FMOD Engine library, visithttp://www.fmod.org/download. The library is free to download, but requires a free account to be made first.Then, install pyfmodex viapip,easy_installor thesetup.pyway. Note that the minimum supported Python version is Python 3.6.UsageTo verify if everything works, open a Python REPL and try importing pyfmodex:importpyfmodexIf there is no error: good, it worked. :-)Playing a sound is a little bit more complicated than the import, but nothing horrible.
Try the following simple script:importpyfmodexsystem=pyfmodex.System()system.init()sound=system.create_sound("somefile.mp3")channel=sound.play()whilechannel.is_playing:passOf course,somefile.mp3must be replaced with something that actually exists. :-)Note that the while loop is necessary (at least in this simple example) to keep the main thread alive long enough.