Saravanan666/pypi-org huggingface dataset:
Package: pyspeechkit
pyspeechkitLibrary for working with a range of technologies for speech recognition and synthesis from Yandex (SpeechKit).InstallationpipinstallpyspeechkitUsage exampleYandex SpeechKit requires an API developer key, you can get ithereto use this library.frompyspeechkitimportTTSoauth_token='your-oauth-token'folder_id='folder-id'tts=TTS(oauth_token,folder_id)tts.synthesize(text='Hello World. How are you?')tts.save_voice('path/voice.ogg')
Package: pyspeechwin3
pyspeechwin3 is a text-to-speech conversion library in Python.
Unlike alternative libraries, it works offline, and is compatible with both Python 2 and 3.
Speech synthesis is the artificial production of human speech. A computer system used for this purpose is called a speech computer or speech synthesizer, and can be implemented in software or hardware products. A text-to-speech (TTS) system converts normal language text into speech; other systems render symbolic linguistic representations like phonetic transcriptions into speech.
Synthesized speech can be created by concatenating pieces of recorded speech that are stored in a database. Systems differ in the size of the stored speech units; a system that stores phones or diphones provides the largest output range, but may lack clarity. For specific usage domains, the storage of entire words or sentences allows for high-quality output. Alternatively, a synthesizer can incorporate a model of the vocal tract and other human voice characteristics to create a completely “synthetic” voice output.
The quality of a speech synthesizer is judged by its similarity to the human voice and by its ability to be understood clearly. An intelligible text-to-speech program allows people with visual impairments or reading disabilities to listen to written words on a home computer. Many computer operating systems have included speech synthesizers since the early 1990s.Change Log0.0.1 (01/06/2021)First Release
Package: pySpeedDownloader
Python Downloader DemoBuild a powerful python based downloader app.Requirementspython>=3.6requeststqdmretryhashlibmultitaskingsignalgooey (GUI only / check the Github repo)Example, create atest.pyfile with the following code to download the tensorflow git repo (about 76 MB) and the gitignore git repo (about 100KB)Therunfunction will return the md5 of the downloaded file for checking purposes.frompySpeedDownloaderimportpydownloaderurl="https://github.com/tensorflow/tensorflow/archive/refs/heads/master.zip"file_name="tensorflow-master.zip"output_dir="download/tf"file_md5=pydownloader.run(url,file_name,output_dir)print(file_md5)url="https://github.com/github/gitignore/archive/refs/heads/master.zip"file_name="gitignore-master.zip"output_dir="download/gitignore"file_md5=pydownloader.run(url,file_name,output_dir)print(file_md5)Bash command window output will be like:❯pythontest.py
Downloadingtensorflow-master.zip...
Downloading:tensorflow-master.zip:76029696it[00:21,3457111.70it/s]dd8bfb4bab14f81742574bbe19aae8a6
Downloadinggitignore-master.zip...
Downloading:gitignore-master.zip:103808it[00:02,35557.32it/s]8c0224157f4748eead1423530f52f401If you re-run the code again, it will ask you if you want to overwrite the existing files.❯pythontest.py
Downloadingtensorflow-master.zip...⛔️download/tf/tensorflow-master.zipalreadyexists,overwriteit??(Y/N):N
dd8bfb4bab14f81742574bbe19aae8a6
Downloadinggitignore-master.zip...⛔️download/gitignore/gitignore-master.zipalreadyexists,overwriteit??(Y/N):N
8c0224157f4748eead1423530f52f401
Package: pyspeedtest
Python script to test network bandwidth using Speedtest.net serversInstallationThis package is available from PyPI so you can easily install it with:sudopipinstallpyspeedtestOr only for your user$pipinstall--userpyspeedtestUsageIn a terminal:$pyspeedtest-husage:pyspeedtest[OPTION]...TestyourbandwidthspeedusingSpeedtest.netservers.optionalarguments:-dL,--debugLsethttpconnectiondebuglevel(defaultis0)-mM,--modeMtestmode:1-download2-upload4-ping1+2+4=7-all(default)-rN,--runsNuseNruns(defaultis2)-sH,--serverHusespecificserver-v,--verboseoutputadditionalinformation--versionshowprogram'sversionnumberandexit$pyspeedtestUsingserver:speedtest.serv.ptPing:9msDownloadspeed:148.17MbpsUploadspeed:18.56MbpsFrom a python script:>>>importpyspeedtest>>>st=pyspeedtest.SpeedTest()>>>st.ping()9.306252002716064>>>st.download()42762976.92544772>>>st.upload()19425388.307319913
Package: pyspell
PySpellPySpell provides functionality for spell checking and sentence correction. It uses a dictionary of words and the Levenshtein distance algorithm to suggest corrections.Functionsload_dictionary(file_path)This function loads a dictionary from a text file. Each line in the file should contain a single word.get_difference(word1, word2)This function calculates the Levenshtein distance between two words. The Levenshtein distance is a measure of the difference between two sequences of words.spell_check(word, amount: int, show_distance=False)This function checks the spelling of a word and suggests corrections. The number of suggestions is determined by theamountparameter. Ifshow_distanceis set to True, the function will also return the Levenshtein distance for each suggestion.correct_word(word)This function returns the most likely correction for a word.correct_sentence(sentence)This function corrects all the words in a sentence and returns the corrected sentence.UsageFirst, load the dictionary:# Import the libraryimportpyspell# Load words from text filedictionary=pyspell.load_dictionary("words.txt")# Get top 5 closest words to heloprint(pyspell.spell_check("heelo",5,dictionary))# Get top suggestion to heloprint(pyspell.correct_word("heelo",dictionary))# Correct all words in a sentanceprint(pyspell.correct_sentence("heelo wrold",dictionary))
Package: pySpellbook
A PDF spellbook creation utility in pythonWhat is it?Do you play in a d20 game and play a spellcaster? Chances are, that you
do not know all your spells and effects by heart. This software lets you
choose a selection of spells and generate a pdf version of the
spellbook.In addition you can browse and filter your spell library by class,
rulebook, school/subschool, descriptor and fulltextsearch.How to install?WindowsDownload the current release from [Releases]
(https://github.com/christofsteel/pySpellbook/releases)Mac OSXDownload the current release from [Releases]
(https://github.com/christofsteel/pySpellbook/releases)Linux (Ubuntu/Debian)Seehttps://launchpad.net/~christofsteel/+archive/ubuntu/pyspellbookfor
instructions on how to add the PPA to your system. Debian users can pick
any release, they contain the same files anyway.Linux (Archlinux)You can installpySpellbookfrom the [AUR]
(http://aur.archlinux.org)Linux (Other)If you are on linux and have python 3 and pip installed, then install it
viapip install pySpellbookthis will fetch all python dependencies and install the binary
pySpellbook.PrincepySpellbook uses Prince to render the pdf output. Unfortunately Prince
is not open source software, but free for personal use.The first run wizard should install Prince on your system, but you can
decide to install it manually fromhttp://www.princexml.com.If you do not want to use Prince, you can use an internal renderer or
print the intermediate html with your favourite browser (Firefox
recommended), but those have serious drawbacks in terms of support for
printed media css.How to add spells?Either by [hand]
(https://github.com/christofsteel/pySpellbook/wiki/generateDatasets), or
import a dataset available here:Pathfinder PRD [Download]
(https://christofsteel.github.io/pySpellbook/datasets/pathfinder-20150914.json)Pathfinder DPRD [German] [Download]
(https://christofsteel.github.io/pySpellbook/datasets/pathfinderDE-20150914.json)D&D 3.5 SRD [Download]
(https://christofsteel.github.io/pySpellbook/datasets/d20srd-20150928.json)
Package: pyspelling
PySpellingOverviewPySpelling is a module to help with automating spell checking in a project withAspellorHunspell. It is essentially a wrapper around the command line utility of these two spell checking tools, and
allows you to setup different spelling tasks for different file types. You can apply specific and different filters and
options to each task. PySpelling can also be used in CI environments to fail the build if there are misspelled words.Aspell and Hunspell are very good spell checking tools. Aspell particularly comes with a couple of filters, but the
filters are limited in types and aren't extremely flexible. PySpelling was created to work around Aspell's and
Hunspell's filtering shortcomings by creating a wrapper around them that could be extended to handle more kinds of file
formats and provide more advanced filtering. If you need to filter out specific HTML tags with specific IDs or class
names, PySpelling can do it. If you want to scan Python files for docstrings, but also avoid specific content within the
docstring, you can do that as well. If PySpelling doesn't have a filter you need, with access to so many available
Python modules, you can easily write your own.DocumentationExtension documentation is found here:https://facelessuser.github.io/pyspelling/.LicenseMIT
Package: pyspex
pySpexPython package pyspex contains software to access SPEXone data.
This package contains software scripts and classes to:Read data in CCSDS format from the SPEXone instrument and write the data in Level-1A format.Read Level-0 data from the SPEXone after integration on the PACE platform and write the data in Level-1A in-flight science and calibration products.Read SPEXone CKD productRead in-flight PACE engineering and housekeeping (HKT) products.Handle SPEXone binning tables (read, write, visualize).For more information on PACE mission visit:https://pace.gsfc.nasa.govhttps://pace.oceansciences.org/mission.htmFor more information on SPEXone instrument visit:https://www.sron.nl/earth-instrument-development/spex/spexonehttps://pace.oceansciences.org/spexone.htmDocumentationOnline documentation is available fromRead the Docs.InstallationThe module pyspex requires Python3.8+ and Python modules: h5py, netCDF4, numpy and xarray.Installation instructions are provided onRead the Docsor in the INSTALL file.
Package: pyspextools
PyspextoolsPyspextools is a collection of python tools for the SPEX X-ray spectral fitting package (see theSPEX website).InstallInstalling pyspextools can be done directly using pip. Before you continue, please think about where you want
to install pyspextools. It may be wise to create an Anaconda environment where pyspextools can be compiled with
the most compatible versions of the modules that pyspextools depends on.Install pyspextools as follows:(conda) linux:~/> pip install pyspextoolsOther install options can be found on theinstall page of the documentation.UsagePlease see the documentation pages for tutorials and reference documentation:Full documentation of pyspextoolsScientific citationsIf pyspextools and SPEX were useful for your scientific paper, please cite these packages with their DOIs on Zenodo:Pyspextools publication on ZenodoSPEX publication on ZenodoUnder developmentPlease note that pyspextools is still under development. Feel free to submit bug reports or feature requests by
raising an issue on ourGithub page.
Package: pysphalt
PysphaltLibrary of machine learning models for Brazilian asphalt material data.InstallationLocal Quickstart1. Install dependenciesBuilding DocsDeploy to PyPiInstallationpipinstallpysphaltLocal QuickstartThe fastest way to get Pysphalt up and running locally for development.1. Install dependenciesThere are three things to installCondaPython librariesPre-commit hooksCreate a new miniconda environment.condacreate-npysphaltpython=3.10
condaactivatepysphaltInstall all python libraries. Libraries related to development are kept separate, inrequirements-dev.txt. Make sure to add any dependencies you introduce into these files!pipinstall-rrequirements.txt-rrequirements-dev.txtInstallpre-commitand spin it up:pre-commitinstall
pre-commit⚠️ Whenever you work on this codebase,remember to activate the conda environment:condaactivatepysphaltBuilding Docscddocs
makehtmlYou can access the generated docs ondocs/build/html/index.htmlDeploy to PyPiDeploys to PyPi are managed automatically by Github Actions. To upload a new version of the library, just bump the version field onpyproject.tomland push a new tag tomain.
The Action to publish a new version to PyPi will be triggered by the pushing the tag.
Package: pyspherex
PySphereXPySphereX is a Python tool to perform spherical harmonics expansion of data given on a uniformly spaced grid on a sphere. Its features include:Expansionclass that defines an arbitrary complex spherical harmonics expansionConvenience constructorExpansion.from_datathat initializesExpansionobject from gridded data on a sphere up to a maximum degreeEvaluation ofExpansionobject at arbitrary coordinatesAngular power spectrumAlgebraic operations: Addition, subtraction and overlap between twoExpansionobjectsGetting StartedMake sure that Python 3.7 or newer is available and installpyspherexusingpip,pip install pyspherexAs a "getting started guide" we provide an example (in folderexamples/) that shows the basic functionalities of this package. For further information see the doc-strings and the unit tests.ContributingReport an issueWe use the issue-tracking management system associated with the project provided by Github. If you want to report a bug or request a feature, open an issue athttps://github.com/marstaa/PySphereX/issues. You may also comment on existing issues.Development environmentWe strongly recommend to usePython virtual environments.To setup the development environment, use the following commands:git clone git@github.com:marstaa/PySphereX.git
cd PySphereX
python -m venv venv
source ./venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -e .WorkflowThe project's development workflow is based on the issue-tracking system provided by Github, as well as peer-reviewed pull requests. This ensures high-quality standards.Issues are solved by creating branches and opening pull requests. Only the assignee of the related issue and pull request can push commits on the branch. Once all the changes have been pushed, the pull request can be marked as ready for review and is assigned to a reviewer. They can push new changes to the branch, or request changes to the original author by re-assigning the pull request to them. When the pull request is accepted, the branch is merged onto main, deleted, and the associated issue is closed.Pylint and pytestWe enforcePEP 8 (Style Guide for Python Code)withPylintsyntax checking, and testing of the code via unit and integration tests with thepytestframework. Both are implemented in the continuous integration system. Only if all tests pass successfully a pull request can be merged.You can run them locallypylint */**.py
pytestHow to citeIf you intend to use this package in your own research please be sure to cite it. For BibTex we suggest:@misc{pyspherex,
    author = {Martin Staab},
    title = {PySphereX},
    howpublished = {\url{http://github.com/marstaa/PySphereX}},
    year = {2021},
    DOI={<insert DOI from Zenodo>}
}AcknowledgementsMany thanks to Ulrike Proske (prosku) for providing the example script.ContactMartin Staab (martin.staab@aei.mpg.de)
Package: pyspherical
pysphericalAn implementation of the fast spin-weighted spherical harmonic transform methods of McEwan and Wiaux (2011) [1], using
the recursion relations of Trapani and Navaza (2006) [2] to calculate Wigner-d functions. Transforms are
supported for any spherical sampling pattern with equally-spaced samples of azimuth at each latitude (iso-latitude sampling).
Additional functions are provided to evaluate spin-weighted spherical harmonics at arbitrary positions.These methods are written entirely in Python, taking advantage of numba jit compilation and numpy vector operations
for speed.This README, a tutorial, and all function docstrings may be found onReadTheDocs.DependenciesRequired:numpynumbascipyOptional:sympypytestInstallationThe latest release ofpysphericalis available on PyPi:pip install pysphericalThe bleeding-edge version may be installed directly from the repository:> git clone https://github.com/aelanman/pyspherical.git
> python setup.py install
# or
> pip install .Quick StartTests can be run usingpytestto confirm that the installation was successful.An example scriptscripts/example_1.pydemonstrates how to use some of the available evaluation and transform functions. Another scriptscripts/example_2.pyplots the spherical harmonics for el < 4. Further documentation is under development.References[1] McEwen, J. D., and Y. Wiaux. “A Novel Sampling Theorem on the Sphere.” IEEE Transactions on Signal Processing, vol. 59, no. 12, Dec. 2011, pp. 5876–87. arXiv.org, doi:10.1109/TSP.2011.2166394.[2] S, Trapani, and Navaza J. “Calculation of Spherical Harmonics and Wigner d Functions by FFT. Applications to Fast Rotational Matching in Molecular Replacement and Implementation into AMoRe.” Acta Crystallographica Section A, vol. 62, no. 4, 2006, pp. 262–69. Wiley Online Library, doi:10.1107/S0108767306017478.
Package: pySphericalPolygon
Perform point in polygon operationsOn github:https://github.com/omrivolk/pySphericalPolygonInstallpipinstallpySphericalPolygonUsageimportpySphericalPolygonaspyspCreate a spherical polygon with vertices [[tetah_1,phi_1],[tetah_2,phi_2]…].For geographical purpuses tetha is latitude and phi is longtitude.sp=pysp.SpericalPolygon([[0,0],[80,30],[10,60]])Check if a point is insideprintsp.contains_points([[30,30]])[True]Check many points at onceprintsp.contains_points([[30,30],[-30,30],[-90,40]])[TrueFalseFalse]Both vertices and/or points may be specified in radiansprintsp.contains_points([[0.52359878,0.52359878],[-0.52359878,0.52359878],[-1.57079633,0.6981317]],radians=True)[TrueFalseFalse]Convention deafult is geographic:(-π/2 rad) -90°  ≤ tetha ≤ 90°  (π/2 rad)(-π   rad) -180° ≤  phi  ≤ 180° (π   rad)But mathematic convetion is supprted too:(0 rad) 0° ≤ tetha ≤ 180° (π rad)(0 rad) 0° ≤  phi  ≤ 360° (2π rad)sp=pysp.SpericalPolygon([[90,0],[10,30],[80,60]],convention='math')
Package: pysphero
PySpheroThis is an unofficial Sphero library for BLE toys.The Sphero protocol is reverse-engineered using the official Sphero Edu application for Android andthislibrary.This code is tested only on Sphero Bolt. Probably it will work on the other BLE toys too.Install the dependenciesFor using this library need bluepy and libgtk2.0-dev.# apt-get install libgtk2.0-dev# pip install bluepy# To use gatt BT stack, install it manually# pip install gattInstallTo installpyspherousepip:# pip install pyspheroExamplefromtimeimportsleepfrompysphero.utilsimporttoy_scannerdefmain():withtoy_scanner()assphero:sphero.power.wake()sleep(2)sphero.power.enter_soft_sleep()if__name__=='__main__':main()TipsWhile using gatt, if you are facing connection issues# Connection failed: Device does not exist, check adapter name and MAC address.You must check if your BLE device is known on your system list (thanks to bluez-tools).# bt-device -lIf not, used bluetoothctl to do so.sudobluetoothctl
Agentregistered[bluetooth]# power onChangingpoweronsucceeded[bluetooth]# scan on[CHG]ControllerAB:CD:EF:12:34:56Discovering:yes[NEW]Device12:34:56:78:90:AB(yourSpherotoy)[bluetooth]# exitBLE device list must have been populatedUnknownPacket contains sourceID and targetID. Their meaning is unknown.
Package: pysphinxdoc
Pysphinxdoc is a tool for generating automatically API documentation
for Python modules, based on their reStructuredText docstrings, using thesikit-learntheme,BootstrapandSphinx.
Visit thismodule documentationfor a live example.Here is an exemple to generate the ‘pysphinxdoc’ module documentation:
first execute ‘sphinxdoc -v 2 -p $HOME/git/pysphinxdoc/ -n pysphinxdoc
-o $HOME/git/pysphinxdoc/doc/’ and then in the $HOME/git/pysphinxdoc/doc/
folder ‘make raw-html’.Expect a ‘$name_module/doc/source/_static’ folder containing a logo named
‘$name_module.png’ and an ‘carousel’ subfolder containing a list of images
to be displayed in the index banner of the site.The documentation is generated from the reStructuredText docstrings of each
module, function or class.In order to find module information, an ‘info.py’ module is expected at the
root of the module with mandatory keys:NAME: the name of the module.DESCRIPTION: the module short description that will be displayed in the
banner.LONG_DESCRIPTION: the index page content.URL: the module URL.AUTHOR: the author of the module.AUTHOR_EMAIL: the author e-mail.__version__: the module version.And optional keys:EXTRANAME: a name that will be displayed in the last element of the
navbar (default ‘PYSPHINXDOC’).EXTRAURL: the associated URL (default the pySphinxDoc URL).
Package: py-sph-shabal
# py_sph_shabalSphlib 3.0 bindings for Python**examples:**```pythonfrom py_sph_shabal import shabal192, shabal224, shabal256, shabal384, shabal512shabal192("Hello!").hex()  # 7ca45359b11df111fd65cc581d4b7e79b4785317d1ef4913shabal224("Hello!").hex()  # 9718c690eba617ba7b600b11da593f067e84971728fdbfd15484c057shabal256("Hello!").hex()  # 609c6c167a761f312ab12ffff0eee7b739e4dd762a6cd523d3f79636193533ddshabal384("Hello!").hex()  # 83bec3ff06722571b7bed8844476774b51f8038cba0f749b8b759a36ae32da77de59bd066248323aeb28f0c9c4325fdashabal512("Hello!").hex()  # 4dc5b0c34f1d8773dcf6bd9dbd0d2759ed243f671cf46c501cfed800ea382803fb45254653329f9a4dba12c01fea919c8c7f88e70b33ab0f163c126d2c9eaf23```