Saravanan666/pypi-org huggingface dataset:
Package: pyaudioaliasingmetrics
pyaudioaliasingmetricsA Python implementation of SNR and SINAD metrics, using Numpy and NumbaThese implementations expects three types of inputs :spectral magnitudes of the required signalsthe fundamental frequency of the signala description of which harmonics are part of the signalInstallationYou can install this library using pippipinstallpyaudioaliasingmetricsUsageMatlab suggest using a Kaiser window with a beta factor of 38SNRComputing the SNR of a saw wave at 440Hz, sampled at 44100Hzimportnumpyasnpimportaudioaliasingmetricsasaamnoisy_signal:np.ndarray[np.float32]=...# audio time serie of the noisy signallength=noisy_signal.shape[0]window=window=np.kaiser(length,38)magnitude=np.abs(np.fft.rfft(noisy_signal*window))snr=aam.snr(magnitude,44100,440.0,aam.Harmonics.ALL)SINADComputing the SINAD of a saw wave at 440Hz, sampled at 44100Hzimportnumpyasnpimportaudioaliasingmetricsasaamnoisy_signal:np.ndarray[np.float32]=...# audio time serie of the noisy signalclean_signal:np.ndarray[np.float32]=...# audio time serie of the clean signallength=noisy_signal.shape[0]window=window=np.kaiser(length,38)noisy_magnitude=np.abs(np.fft.rfft(noisy_signal*window))clean_magnitude=np.abs(np.fft.rfft(clean_signal*window))sinad=aam.sinad(noisy_magnitude,clean_magnitude,44100,440.0,aam.Harmonics.ALL)Harmonics selectionYou can select which harmonics are part of your signal with theharmonicsparameter of both methods. It supports two modes:AHarmonicsenum value (ODD/EVEN/ALL) to respectively select all possible odd, even or both harmonics.A list/numpy array of integers values >2 of harmonics factors by which to multiply the fundamental with, to precisely select harmonics.
Package: pyAudioAnalyzer
pyAudioAnalyzerPython library for vibrational analysis of audioPython-Bibliothek für die Schwingungsanalyse von AudioLibreria Python per l'analisi vibrazionale dell'audioInstallationPrerequisitespip install scipy
pip install numpy
pip install matplotlib
pip install seaborn
pip install playsound
pip install pyfftw
pip install librosa
pip install gtts
pip install sounddeviceCurrently, I am using librosa to read audio files.  This requires FFMPEG to work. Unfortunately, there is no installer available for Windows (to my knowledge) and you have to unzip and set the environmental variables.  Several installation guides are available for this.sudo apt-get install libsndfile1InstallClone repository and install via PIP using the state of this repository:python -m pip install -U .You can also install via PIP with the last release:pip install pyAudioAnalyzerGetting startedSee Python scripts and iPython notebooks under examples.File typesM4A:  Audio-only MPEG-4 (Moving Picture Experts Group)3GP, 3G2: MPEG-4, for smartphones typically Part 12 and specifically 3GPWAV: Waveform Audio File FormatMP3: MPEG-1 Audio Layer III and MPEG-2 Audio Layer III
Package: pyaudiobook
Works best with English pdfUsage :pip install pyaudiobookimport pyaudiobookpyaudiobook.Pdf2Mp3(input_file_path,lang="en",out_path = output_file_path,out_name=output_file_name,num_threads=1)lang, out_path, out_name, num_threads are optional.Default Language : EnglishDefault Output Path : User Home DirectoryDefault Output File Name : Output_timestampDefault Number of Threads : Total Cores Availableeg :convertor = pyaudiobook.Pdf2Mp3("sample.pdf",lang="hi",out_path = '~/MyBooks',out_name='History of India',num_threads=8)convertor.convert()output_filename = convertor.output  #For Output FileOr just to extract text from PDFtxt = convertor.generateText()Language Supported{
    "af": "Afrikaans",
    "ar": "Arabic",
    "bn": "Bengali",
    "bs": "Bosnian",
    "ca": "Catalan",
    "cs": "Czech",
    "cy": "Welsh",
    "da": "Danish",
    "de": "German",
    "el": "Greek",
    "en": "English",
    "eo": "Esperanto",
    "es": "Spanish",
    "et": "Estonian",
    "fi": "Finnish",
    "fr": "French",
    "gu": "Gujarati",
    "hi": "Hindi",
    "hr": "Croatian",
    "hu": "Hungarian",
    "hy": "Armenian",
    "id": "Indonesian",
    "is": "Icelandic",
    "it": "Italian",
    "ja": "Japanese",
    "jw": "Javanese",
    "km": "Khmer",
    "kn": "Kannada",
    "ko": "Korean",
    "la": "Latin",
    "lv": "Latvian",
    "mk": "Macedonian",
    "ml": "Malayalam",
    "mr": "Marathi",
    "my": "Myanmar (Burmese)",
    "ne": "Nepali",
    "nl": "Dutch",
    "no": "Norwegian",
    "pl": "Polish",
    "pt": "Portuguese",
    "ro": "Romanian",
    "ru": "Russian",
    "si": "Sinhala",
    "sk": "Slovak",
    "sq": "Albanian",
    "sr": "Serbian",
    "su": "Sundanese",
    "sv": "Swedish",
    "sw": "Swahili",
    "ta": "Tamil",
    "te": "Telugu",
    "th": "Thai",
    "tl": "Filipino",
    "tr": "Turkish",
    "uk": "Ukrainian",
    "ur": "Urdu",
    "vi": "Vietnamese",
    "zh-CN": "Chinese",
}
Package: pyaudioconvert
pyaudioconvertSimple utility to convert audio from one form to another (via sox). We will use Sox until we find a fast and efficient way to convert reliably in pythonRequirementsAt least py3xHave sox installedInstallpip install pyaudioconvertExample UsageConverting Single WAVs#let's start with a 24bit 48kz audio wav 2 channel wav>>>soxiexample_24bit_48k_2ch.wavInputFile:'example_24bit_48k_2ch.wav'Channels:2SampleRate:48000Precision:24-bitSampleEncoding:24-bitSignedIntegerPCM#we prefer 16-bit 16kz mono for our systems, let's use python>>>importpyaudioconvertaspac>>>pac.convert_wav_to_16bit_mono('example_24bit_48k_2ch.wav','example_16bit_16k_1ch.wav')Out[2]:'example_16bit_16k_1ch.wav'#let's check the new file...>>>soxiexample_16bit_16k_1ch.wavInputFile:'example_16bit_16k_1ch.wav'Channels:1SampleRate:16000Precision:16-bitSampleEncoding:16-bitSignedIntegerPCMConverting Directory of WAVsMaybe I have a whole folder of WAVS that need converting... this will create a _16k.wav version.(py36)rob:~/example_test$ls1.wav2.wav3.wav4.wav>>>pythonPython3.6.5(default,Apr12018,05:46:30)Type'copyright','credits'or'license'formoreinformationIPython6.4.0--AnenhancedInteractivePython.Type'?'forhelp.In[1]:importpyaudioconvertaspacIn[2]:pac.convert_all_wavs_in_folder()2.wav2_16k.wav3.wav3_16k.wav1.wav1_16k.wav4.wav4_16k.wav(py36)rob:~/example_test$ls1_16k.wav1.wav2_16k.wav2.wav3_16k.wav3.wav4_16k.wav4.wav
Package: pyaudiodevice
DescriptionAudioDeviceCmdlets is a suite of PowerShell Cmdlets to control audio devices on WindowsFeaturesGet list of all audio devicesGet default audio device (playback/recording)Get default communication audio device (playback/recording)Get volume and mute state of default audio device (playback/recording)Get volume and mute state of default communication audio device (playback/recording)Set default audio device (playback/recording)Set default communication audio device (playback/recording)Set volume and mute state of default audio device (playback/recording)Set volume and mute state of default communication audio device (playback/recording)Installationpip install pyaudiodeviceUsagefrom your_module_name import DefaultPlayback

# Get the default playback device's mute state as <bool>
is_mute = default_playback.get_is_mute()

# Get the default playback device's volume level on 100 as <float>
volume_level = default_playback.get_volume()

# Set the default playback device's mute state to the opposite of its current mute state
default_playback.toggle_mute()

# Set the default playback device's mute state to the given <bool>
default_playback.set_mute(True)

# Set the default playback device's volume level on 100 to the given <float>
default_playback.set_volume(0.5)from pyaudiodevice.common import Common

# Create an instance of DefaultPlayback
common = Common()

# Get the default playback device as <AudioDevice>
default_device = common.get_default_device()

# Get a list of all enabled devices as <AudioDevice>
device_list = common.get_audio_device_list()

# Get the device with the Index corresponding to the given <int>
device_info = common.get_audio_device_by_index(index)

# Get the device with the ID corresponding to the given <string>
device_info = common.get_audio_device_by_id(id)AttributionBased on codehttps://github.com/frgnca/AudioDeviceCmdlets
Package: pyAudioDspTools
Copyright (c) 2020 Arjaan AuingerPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.Description: pyyAudioDspTools is a python 3 package for manipulating audio by just using numpy. This can be from a .wav or as a streamvia pyAudio for example. pyAudioDspTool’s only requirement is Numpy. The package is only a few kilobytes in size.
You can find the readthedocs here:https://pyaudiodsptools.readthedocs.io/en/latest/You can use pyAudioDspTools to start learning about audio dsp because all relevant operations are in plain sight,
no C or C++ code will be called and nearly no blackboxing takes place. You can also easily modify all available audio
effects and start writing your own, you only need to know python and numpy as well as audio dsp basics. As this package
is released under the MIT licence, you can use it as you see fit. If you want to examine the code, just open the
‘pyAudioDspTools’ folder in this Git and you can see all the relevant modules.Platform: UNKNOWN
Requires-Python: >=3.6
Package: pyaudio-helper
PyAudio HelperDependencies forpyaudioAcross the three popular platforms, Windows, macOS, and Linux,pyaudio, is
the underlying framework thatpyaudio_helperrelies upon. GettingPyAudioconfigured is  different for all three OS's. Conda and CondaForge have support for installingpyaudioon both Linux and Windows. Under Python 3.6 and below PyAudio will install whenpipinstalling the scikit-dsp-comm package, as described below. For Python 3.7+PyAudiofirstneeds to be installed usingconda install pyaudioto obtain binary (whl) files.The real-time audio DSP capabilities ofpyaudio_helperallow for two channel algorithm development with real-time user control enabled by theipywidgetswhen running in the Jupyter notebook.Finally, we now can utilize the real-time DSP capabilities ofpyaudio_helperto work in combination with streaming of I/Q samples using new functionsrtlsdr_helper. This allows in particular demodulation of radio signals and downsampling to baseband analog signals for streaming playback of say an FM broadcast station. This new capability is featured as a shortarticleat the end of this readme file.All the capability of the package is available lessPyAudioand the RTL-SDR radio, without doing any special installations. See thewiki pagesfor more information. Just keep in mind that now a Python 3.7+ install on windows must include the installationPyAudioas described above.Installation NotesPart of the processing architecture makes use ofipwidgets. These can be installed for you by specifying theextrasoption:pipinstallpyaudio-helper[extras]Installation is described in greater detail below.pyaudio_helper.pywraps a class around the code required inPyAudio(wraps the C++ libraryPortAudio) to set up a non-blocking audio input/output stream. The user only has to write the callback function to implement real-time DSP processing using any of the input/output devices available on the platform. This resulting object also contains a capture buffer for use in post processing and a timing markers for assessing the processing time utilized by the callback function. When developing apps in the Jupyter Notebook there is support for theIPywidgetsalong with threading.Authors@mwickert@andrewsmitty
Package: pyaudio-wheels
PyAudio v0.2.8: Python Bindings for PortAudio.Copyright (c) 2006-2014 Hubert PhamPermission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY
OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: pyaud-plugins
Plugin package for PyaudDependenciespip install pyaudInstallpip installpyaud-pluginsDevelopmentpoetry installUsageSeepyaudPluginspyaudwill automatically load this package on search for all packages prefixed with“pyaud_”For writing plugins seedocsThis package contains the following plugins on runningpyaud modulesabout-tests     -- Check tests README is up-to-date
audit           -- Read from [audit] key in config
change-logged   -- Check commits with loggable tags are added to CHANGELOG
commit-policy   -- Test commit policy is up to date
const           -- Check code for repeat use of strings
copyright-year  -- Test copyright year is up to date
coverage        -- Run package unit-tests with `pytest` and `coverage`
docs            -- Compile package documentation with `Sphinx`
doctest         -- Run `doctest` on all code examples
doctest-package -- Run `doctest` on package
doctest-readme  -- Run `doctest` on Python code-blocks in README
files           -- Audit project data files
format          -- Audit code with `Black`
format-docs     -- Format docstrings with `docformatter`
format-str      -- Format f-strings with `flynt`
imports         -- Audit imports with `isort`
lint            -- Lint code with `pylint`
modules         -- Display all available plugins and their documentation
params          -- Check docstring params match function signatures
readme-help     -- Test help documented in README is up to date
sort-pyproject  -- Sort pyproject.toml file with `toml-sort`
test            -- Run all tests
tests           -- Run the package unit-tests with `pytest`
toc             -- Audit docs/<NAME>.rst toc-file
typecheck       -- Typecheck code with `mypy`
unused          -- Audit unused code with `vulture`
whitelist       -- Check whitelist.py file with `vulture`
Package: pyaug
PyAugPyAug is a library developed to augment Pandas DataFrames using statistical distributions. Currently, PyAug supports linear, normal, logistic and Laplace statistical distributions. An interactive web-application has been developed using the PyAug framework and is available atwww.pyaug.com.Contact Detailspyaugment@gmail.comInstallationYou can install, upgrade, uninstall PyAug using these commands:$ sudo pip install pyaug$ sudo pip install --upgrade pyaug$ sudo pip uninstall pyaugStatistical DistributionsLinear (PyAugLinear)Normal (PyAugNormal)Logistic (PyAugLogistic)Laplace (PyAugLaplace)Frequently Asked QuestionsWork in progress.TroubleshootingWork in progress.
Package: pyaurn
PyAURN -This is a Python port of functions of theopenairR package. The openair R package
relies on data provided as a set of .RData files on the Defra website, specifically designed for use by the openair project. This Python
package relies on the same data, however imports it into a Python friendly pandas dataframe without the need for R by utilising thepyreadrpackage.Getting startedInstall the via pip:pip install pyaurnExample quickstart functions in the package as below:frompyaurnimportimportAURN,importMeta,timeAverage# Download metadata of site IDs, names, locations etcmetadata=importMeta()# Download 4 years of data for the Marylebone Road site# (MY1 is the site ID for this site)# Note: range(2016, 2022) will produce a list of six years: 2016, 2017, 2018, 2019, 2020, and 2021.# Alternatively define a list of years to use eg. [2016,2017,2018,2019,2020,2021]data=importAURN("MY1",range(2016,2022))# Group the DataFrame by a frequency of monthly, and the statistic mean().data_monthly=timeAverage(data,avg_time="month",statistic="mean")Current FunctionsThe following functions are currently available in the package:importMeta - download meta information on the different sents for specified data source.importAURN - import AURN data for a specified site and year(s).importUKAQ - import UK Air Quality data for a specified site, year(s), and data source.importEurope - import European Air Quality data for a specified site, year(s) - WIP (final dataframe format needs widening to clean pollutants)timeAverage - time average the data to a specified frequency and statistic.windRose - plot a wind rose for a specified site and year(s).Future developmentsintegrate other openair functionsopen to suggestions (please leave enhancement tag inIssues)
Package: pyautd3
pyautd3autd3library for python3.10+Installpip install pyautd3ExampleseeexampleFor macOS and Linux userspyautd3.link.SOEMuseslibpcapwhich requires root permission.
If you want to usepyautd3.link.SOEM, please add permission as follows.macOSsudo chmod +r /dev/bpf*linuxsudo setcap cap_net_raw,cap_net_admin=eip <your python path>LICENSESeeLICENSEandThirdPartyNotice.AuthorShun Suzuki, 2022-2024
Package: pyauth0
pyauth0Python utilities forAuth0.UsageVerify a token.frompyauth0importTokenProviderfromurllib.requestimportRequest,urlopentoken_provider=TokenProvider(issuer="your-domain.auth0.com",audience="https://api.your-domain.com",client_id="1234",client_secret="secret")# Machine to machine requestresponse=urlopen(Request("https://api.your-domain.com",headers={"authorization":token_provider.get_token().get_authorization()},))Get a machine-to-machine token.frompyauth0importTokenVerifier,Auth0Errortoken_verifier=TokenVerifier(issuer="your-domain.auth0.com",audience="https://your-domain.com/api",jwks_cache_ttl=60,# optional)try:decoded_token=token_verifier.verify("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9....")exceptAuth0Erroraserror:status_code=error.status_code# suggested status code (401 or 403)code=error.code# pyauth0 error code (example "token_expired")description=error.description# pyauth0 error description (example "Token is expired.")raiseerrorclaim_value=decoded_token.payload.get("http://your-tenant.com/claim_name","default value")ContributeIf you want to contribute, open aGitHub Issueand motivate your request.
Package: pyauthenticator
pyauthenticatorSimilar to the Google authenticator just written in Python. With more and more services requiring two factor
authentication without supporting application specific passwords or other forms of token based authenication
suitable for automation this python packages allows to generate two factor authentication codes on the commandline
or in python.For UsersInstallationInstallpyauthenticatorvia conda:>>> conda install -c conda-forge pyauthenticatorAlternatively,pyauthenticatorcan also be installed via pip:>>> pip install pyauthenticatorCommand LineGet help how to usepyauthenticatorusing the--help/-hoption:>>> pyauthenticator --help

usage: pyauthenticator [-h] [-qr] [-a ADD] service

positional arguments:
  service            Service to generate optauth code for. Currently no
                     service is defined in the ~/.pyauthenticator config file.

options:
  -h, --help         show this help message and exit
  -qr, --qrcode      Generate qrcode as <service.png> file.
  -a ADD, --add ADD  Add service by providing the <qrcode.png> file as
                     additional argument.Addgoogleas new service after saving the qrcode toScreenshot 2023-07-02 at 12.45.09.pngto your desktop:>>> pyauthenticator google --add ~/Desktop/Screenshot\ 2023-07-02\ at\ 12.45.09.png

The service 'google' was added, from file </Users/jan/Desktop/Screenshot 2023-07-02 at 12.45.09.png>Afterwards, new authentication codes can be generated for the servicegoogleusing:>>> pyauthenticator google

087078Beyond google,pyauthenticatorworks for any service which implements the two factor authentication.If you mistype the name of the service, thenpyauthenticatorsuggests alternative options:>>> pyauthenticator googel

The service "googel" does not exist.

The config file ~/.pyauthenticator contains the following services:
  * google

Choose one of these or add a new service using:
  pyauthenticator --add <qr-code.png> <servicename>SupportFor any support requests feel free to open anissue on Github.For DevelopersPython InterfaceThe same functionality which is available on the command line is also available via the python interface:from pyauthenticator import get_two_factor_code
get_two_factor_code(service)Sopyauthenticatorcan be integrated in existing python packages which need access to resources protected by two
factor authentication.ConfigurationThe configuration is stored in~/.pyauthenticatorit is written in the JSON format. For a given service likegithubthe config file contains:{"google": "otpauth://totp/Google:<username>?secret=<secret>&issuer=Google"}With the Google username<username>and the corresponding secret<secret>being contained in the QR code.LicenseThepyauthenticatorpackage is licensed under theBSD-3-Clause license.
Package: py-auth-header-parser
Python Auth. Header ParserA small and simple library to parse JWT tokens embedded in Authorization or Authentication HTTP headers.Note: This library does not decode the JWT token. It simply extracts the JWT token string from the header string.Usagefrom py_auth_header_parser import parse_auth_header

header = "Authorization: Bearer AAA, Refresh BBB"
parsed = parse_auth_header(header)

# 'parsed' will then contain:
{
  "access_token": "AAA",
  "refresh_token": "BBB",
}parse_auth_header()will always return a dict with two keys:access_tokenandrefresh_token.When a refresh token is no present in the header, therefresh_tokenkey will beNone.
Package: py-auth-micro
Introductionpy_auth_microis a small identity provider library which can use an LDAP/AD as upstream Identity Provider and can also store Users Localy.The Authentication and Authorization is done viaID-TokensandAccess-Tokens. TheID-Tokensare given out after a User successfully logged in.
With thisID-Tokena User can request anAccess-Tokenwhich he can send to other (Micro-)Services to gain access According to his Permissions.The Tokens areJWTTokens which can either be signed with an symetricHMAC-Secret or with anRSA-Key.
Package: pyauthorizer
pyauthorizerA simple authorizer for python project.In some cases, even for a scripting language like Python, it may be necessary to
generate and validate tokens for specific use cases. Thepyauthorizerprovides
a simple way to generate and validate licenses. Additionally, the built-in
plugins make it easy to customize encryptors and decryptors. There is also a
simple command-line tool available.InstallPackage-built has uploaded to pypi and just install with the command:pipinstallpyauthorizerUsageTo generate and validate a license, use the command:pyauthorizercreate-fsimple-Cpassword=1234567890-O/tmp/license.json
pyauthorizervalidate-fsimple-Cpassword=1234567890-I/tmp/license.jsonMore command options can be listed by usingpyauthorizer --help.
Package: pyautoass
—更新1.0.5.5修改getXY等获取图片坐在左边方法位置到pyAutoGui模块下。修改getXY方法逻辑。删除方法中的截屏方法，删除screenshot_img_path参数，新增contrast_img_path参数。新增screencut方法，用于全屏截图。新增getXYByScreencut方法，用于获取图片在屏幕上的坐标位置。新增getXYByList方法，用于获取列表最后一个图片在列表第一个图片的上的坐标位置。新增getXYByList方法，用于获取列表最后一个图片在屏幕的上的坐标位置。新增getAutoXY方法，用于自动选择通过列表或是通过值来获取图片在屏幕上的坐标。