Saravanan666/pypi-org huggingface dataset:
Package: pyTinySoundFont
pyTinySoundFontThis is Python porting of TinySoundFont(https://github.com/schellingb/TinySoundFont)We are still relying on C++ for some sample level tasks, so a building process is needed (see below).The "class TinySoundFont" interface defined in pyTinySoundFont/SF2SynthRT.py provides most of the original functions of TinySoundFont, with the following limitations:Loading SF2 from memory is not implemented"Higher level channel based functions" are not ported yet.Real-time playback is not part of the project, which needs a separate solution.See test/testRT.py for a use case.The "SynthNote()" defined in pyTinySoundFont/SF2Synth.py provides a simple interface for single note synthesis. See test/test.py for a use case.Building with CMakePrerequisites:CMake 3.0+Python3You can simply run CMake to generate makefiles/project files for your system and build.
You can set CMAKE_INSTALL_PREFIX to /test so that the test scripts can find pyTinySoundFont.Building with Setuptools$ python3 setup.py build	
$ python3 setup.py installUse casesRealtime SynthesisPretty similar to the C versionimportpyTinySoundFontastsfg_TinySoundFont=tsf.TinySoundFont('florestan-subset.sf2')g_TinySoundFont.NoteOn(0,48,1.0)# C2g_TinySoundFont.NoteOn(0,52,1.0)# E2# We don't have an output device here, just open a file to simulatewithopen('dmp.raw','wb')asf:buf=bytes(512*4*2)# create a buffer of 512 samplesforiinrange(200):# render 200 times to the buffer when notes are ong_TinySoundFont.Render(buf,512,False)f.write(buf)g_TinySoundFont.NoteOffAll()foriinrange(10):# render another 10 times after notes are offg_TinySoundFont.Render(buf,512,False)f.write(buf)Non-Realtime SynthesisThe use case is that sometimes we just want to render some preprogrammed notes to a buffer as soon as possible, and we don't need immediate play-back. In that case, we can render 1 note each time then blend them together. Bellow example shows how to render a single note.importwaveimportpyTinySoundFontastsfsf2=tsf.LoadSF2('florestan-subset.sf2')presets=tsf.LoadPresets(sf2)# Render C5, required length is set to 2 seconds# The actual returned buffer will be a little longer than 2 seconds# There will some extra samples after the loop is endedres=tsf.SynthNote(sf2[1],presets[0],60,1.0,44100*2)# Utility to convert float32 to short16wavS16=tsf.F32ToS16(res[1],1.0)# Here we write the generated samples to a wav file# We can also program to mix the samples with other bufferwithwave.open('out.wav',mode='wb')aswavFile:wavFile.setnchannels(2)wavFile.setsampwidth(2)wavFile.setframerate(44100)wavFile.setnframes(len(wavS16)//4)wavFile.writeframes(wavS16)LicensepyTinySoundFont is available under theMIT license.
Package: pyTinySoundFontWASM
pyTinySoundFont================This is Python porting of TinySoundFont(https://github.com/schellingb/TinySoundFont)We are still relying on C++ for some sample level tasks, so a building process is needed (see below).VariationsLatest commits in this repo try to use CFFI instead of CPython API, which is still problematic.The branchhttps://github.com/rdb/pytinysoundfontuses the CPython API, and releases tohttps://pypi.org/project/pyTinySoundFont/https://github.com/fynv/wasmhas a WASM (wasmtime) based implementation, and releases tohttps://pypi.org/project/pyTinySoundFontWASM/FunctionsThe "class TinySoundFont" interface defined in pyTinySoundFont/SF2SynthRT.py provides most of the original functions of TinySoundFont, with the following limitations:Loading SF2 from memory is not implemented"Higher level channel based functions" are not ported yet.Real-time playback is not part of the project, which needs a separate solution.See test/testRT.py for a use case.The "SynthNote()" defined in pyTinySoundFont/SF2Synth.py provides a simple interface for single note synthesis. See test/test.py for a use case.BuildingPrerequisites:CMake 3.0+Python3$ mkdir build

$ cd build

$ cmake ..

$ make

$ make installBuilding Wheel$ cd test

$ python3 setup.py bdist_wheelUse casesRealtime SynthesisPretty similar to the C versionimportpyTinySoundFontastsfg_TinySoundFont=tsf.TinySoundFont('florestan-subset.sf2')g_TinySoundFont.NoteOn(0,48,1.0)# C2g_TinySoundFont.NoteOn(0,52,1.0)# E2# We don't have an output device here, just open a file to simulatewithopen('dmp.raw','wb')asf:buf=tsf.F32Buf(512*2)# create a buffer of 512 samples, 2 channelsforiinrange(200):# render 200 times to the buffer when notes are ong_TinySoundFont.Render(buf,512,False)f.write(buf.to_s16(1.0))g_TinySoundFont.NoteOffAll()foriinrange(10):# render another 10 times after notes are offg_TinySoundFont.Render(buf,512,False)f.write(buf.to_s16(1.0))Non-Realtime SynthesisThe use case is that sometimes we just want to render some preprogrammed notes to a buffer as soon as possible, and we don't need immediate play-back. In that case, we can render 1 note each time then blend them together. Bellow example shows how to render a single note.importwaveimportpyTinySoundFontastsfsf2=tsf.LoadSF2('florestan-subset.sf2')presets=tsf.LoadPresets(sf2)# Render C5, required length is set to 2 seconds# The actual returned buffer will be a little longer than 2 seconds# There will some extra samples after the loop is endedres=tsf.SynthNote(sf2[1],presets[0],60,1.0,44100*2)# Convert float32 to short16wavS16=res[1].to_s16(1.0)# Here we write the generated samples to a wav file# We can also program to mix the samples with other bufferwithwave.open('out.wav',mode='wb')aswavFile:wavFile.setnchannels(2)wavFile.setsampwidth(2)wavFile.setframerate(44100)wavFile.setnframes(len(wavS16)//4)wavFile.writeframes(wavS16)LicensepyTinySoundFont is available under theMIT license.
Package: pytinytex
PyTinyTeXPyTinyTeX provides a thin wrapper forTinyTeX, A lightweight, cross-platform, portable, and easy-to-maintain LaTeX distribution based on TeX Live.InstallationInstallation through the normal meanspip install pytinytexOr through poetrypoetry add pytinytexInstalling a version of TinyTeXEach version of TinyTeX contains three variations:TinyTeX-0.* contains the infraonly scheme of TeX Live, without any LaTeX packages. If you install this variation, you may install any other packages via tlmgr (which is a utility included in this variation), e.g., tlmgr install latex-bin framed.TinyTeX-1.* contains about 90 LaTeX packages enough to compile common R Markdown documents (which was the original motivation of the TinyTeX project).TinyTeX-2-* contains more LaTeX packages requested by the community. The list of packages may grow as time goes by, and the size of this variation will grow correspondingly.By default the variation PyTinyTeX will install is variation 1, but this can be changed.import pytinytex

pytinytex.download_tinytex()Getting the TinyTeX pathAfter installing TinyTeX, you can get PyTinyTeX to pick it up with the followingimport pytinytex

# from the current working dir
pytinytex.get_tinytex_path()

# Or from a specific starting base
pytinytex.get_tinytex_path("../../")You can then use the returned string (which is the path to the installed TinyTeX distributions "bin" directory), with other libraries or programs.TODOWrite docs, since this looks to be a bigger wrapper than PyPandocWrap the tlmgr interfaceWrap the PDFLatex engineContributingContributions are welcome. When opening a PR, please keep the following guidelines in mind:Before implementing, please open an issue for discussion.Make sure you have tests for the new logic.Add yourself to contributors at README.md unless you are already there. In that case tweak yourContributorsJessica Tegner- Maintainer and original creator of PyTinyTeXLicensePyTinyTeX is available under MIT license. SeeLICENSEfor more details. TinyTeX itself is available under the GPL-2 license.
Package: pytinyxml2
pytinyxml2Python library to wrap thetinyxml2libraryInstallationLike other ones, just type:pip3installpytinyxml2UsageYou can call C method of tinyxml2 in Python:importpytinyxml2doc=pytinyxml2.XMLDocument()doc.Parse("<?xml version=\"1.0\"?><element>Text</element>")print(doc.FirstChildElement().GetText())
Package: pytionary
Pytionary - A cool dictionary module for python to get meanings, pos, synonyms, antonyms of the given word.It uses requests and BeautifulSoup as dependencies.InstallationThe easiest way to install is through pip:pip install pytionaryWith Easy_Installeasy_install pytionaryUsageIt is very easy to get started with pytionary. You just create an instance of the Pytionary class.from pytionary import Pytionary    #import module
gloss = Pytionary()    #create objectThis will create an instance of the pytionary class. Now, you have access to its methods.To get the meaning of the word:print(gloss.meanings('tuna'))This returns a list of the meanings. For example:['any of several large food and game fishes of the family Scombridae, inhabiting temperate and tropical seas.Compare albacore, bluefin tuna, yellowfin tuna.', 'any of various related fishes.', ' Also called tuna fish. the flesh of the tuna, used as food.', 'any of various prickly pears, especially either of two erect, treelike species, Opuntia tuna or O.
ficus-indica, of Mexico, bearing a sweet, edible fruit.', 'the fruit of these plants.', 'Also called: tunny any of various large marine spiny-finned fishes of the genus Thunnus, esp T. thynnus, chiefly of warm waters: family Scombridae .
They have a spindle-shaped body and widely forked tail, and are important food fishes', 'any of various similar and related fishes', 'any of various tropical American prickly pear cacti, esp Opuntia tuna, that are cultivated for their sweet edible fruits', 'the fruit of any of these cacti']For pos (verb/adj/noun)print(gloss.pos('tuna'))For synonyms:print(gloss.synonyms('tuna'))For antonyms:print(gloss.antonyms('tuna'))Full Examplefrom pytionary import Pytionary

word = 'tuna'

gloss = Pytionary() #Create object

print(gloss.pos(word))    #return pos(noun/verb/adj)
print(gloss.meanings(word))    #return meanings
print(gloss.synonyms(word))    #return synonyms
print(gloss.antonyms(word))    #return antonyms
Package: pytire
pytireA library to make interpreting tire attributes and calculations easier.Table of ContentsTable of ContentsGetting StartedDev SetupGetting StartedTo use this library install it via pip$pipinstallpytireUsage>>>frompytireimportTire>>>tire=Tire("34x10.75-16")>>>tire.diameter0.8636...>>>tire.width0.27305...>>>tire.inner_diameter0.4064...>>>tire.volume()0.203642044328The Docs are here.Dev SetupClone from github$ git cloneInstall using poetry$poetryinstallset up pre-commit$pre-commitinstallAlternatively use the dev container.
Package: py-tisgrabber
py-tisgrabber ‒ Wrapper for IC-Imaging-Control by the Imaging source for modern Python.py-tisgrabberis a Python wrapper for thetisgrabber.dllandtisgrabber_x64.dllof the
IC Imaging Control SDK, allowing the control of cameras byThe Imaging Source.
It works on Microsoft Windows and Python ≥ 3.11This is similar topy-ic-imaging-controlbut
aims to be more pythonic (complies with PEP8 via black code style, proper use of Enums, @properties, some type hinting)
and easier to read. Also, theofficial exampleshave been recreated by using this wrapper.Installationpip install py-tisgrabberFor running theexamples, install the additional dependencies withpip install py-tisgrabber[examples]AuthorsBastian Leykauf (https://github.com/bleykauf)LicenseMIT LicenseCopyright (c) 2022-2023 Bastian LeykaufPermission 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: pytistory
PyTistory는티스토리 오픈 API 가이드를 참고하여 Python으로 작성한 티스토리
API 클라이언트입니다.티스토리 오픈 API 가이드 인증 방식중
Client-side flow 방식에 따라 구현되었습니다. 자세한 사용법은PyTistory Documentation에서
확인하실 수 있습니다.Installationpytistory는pip를 통해 설치할 수 있습니다.$pipinstallpytistory사용법사용자 인증인증정보는 다음과 같은 우선순위를 통해 적용됩니다.직접 설정하는configure함수로 넘어오는access_token인자값configure함수로 넘어오는client_id,tistory_id,tistory_password인자값configure함수로 넘어오는file_name에서 읽어들인 인자값환경변수값기본 파일(~/.pytistory/credentials.ini)에 설정되어 있는 값즉, 환경변수, 기본 설정 파일에 client id가 적용되어 있다 하더라도 직접 넘기는file_name에 존재하는 설정들에 의해 덮어씌워지고,
직접 인자값으로 넘기는client_id등의 인자값에 의해 덮어씌워집니다.access_token이 인자로 넘어올 경우 다른 옵션은 전부 무시하고,access_token만을 설정합니다.직접 Access Token 설정frompytistoryimportPyTistorypytistory=PyTistory()pytistory.configure(access_token='some-example-access-token')함수의 인자값을 통한 설정frompytistoryimportPyTistorypytistory=PyTistory()pytistory.configure(client_id='some-example-client-id',tistory_id='some-example-tistory-id',tistory_password='some-example-tistory-password')파일을 통한 설정frompytistoryimportPyTistorypytistory=PyTistory()pytistory.configure(file_name='./some/path/to/credentials.ini')파일 형식은 ini(Initialization)을 따릅니다.[pytistory]client_id=some-client-idtistory_id=some-tistory-idtistory_password=some-tistory-password환경변수를 통한 설정환경 변수로는 다음과 같이 설정할 수 있습니다.exportPYTISTORY_CLIENT_ID=some-example-client-idexportPYTISTORY_TISTORY_ID=some-example-tistory-idexportPYTISTORY_TISTORY_PASSWORD=some-example-tistory-passwordAPI호출https://www.tistory.com/apis/kind/action와 같은 api를 호출할 경우 아래처럼 호출합니다.frompytistoryimportPyTistorypytistory=PyTistory()pytistory.configure()response=pytistory.kind.action(args...)예시로 블로그 정보를 받아오는 코드는 아래와 같습니다.frompytistoryimportPyTistorypytistory=PyTistory()pytistory.configure()response=pytistory.blog.info()결과값은 아래처럼 받을 수 있습니다.{"status":"200","id":"blogtest_080@hanmail.net","item":[{"url":"http://oauth.tistory.com","secondaryUrl":"http://","nickname":"Tistory API","title":"나만의 앱, Tistory OAuth API 로 만들어보세요!","description":"","default":"Y","blogIconUrl":"http://i1.daumcdn.net/cfs.tistory/blog/79/795307/index.gif","faviconUrl":"http://i1.daumcdn.net/cfs.tistory/blog/79/795307/index.ico","profileThumbnailImageUrl":"http://cfile1.uf.tistory.com/R106x0/1851DB584DAF942950AF29","profileImageUrl":"http://cfile1.uf.tistory.com/R106x0/1851DB584DAF942950AF29","statistics":{"post":"3","comment":"0","trackback":"0","guestbook":"0","invitation":"0"}},{"url":"http://oauth2.tistory.com","secondaryUrl":"http://","nickname":"Tistory API","title":"나만의 비밀 홈","description":"","default":"N","blogIconUrl":"http://i1.daumcdn.net/cfs.tistory/blog/79/795308/index.gif","faviconUrl":"http://i1.daumcdn.net/cfs.tistory/blog/79/795308/index.ico","profileThumbnailImageUrl":"","profileImageUrl":"","blogId":"795308","statistics":{"post":"0","comment":"0","trackback":"0","guestbook":"0","invitation":"0"}}]}기여이 프로젝트는 부족한 점이 많습니다. Contribution은 언제나 환영입니다. 혹시 오류, 버그 혹은 업데이트가 필요한 점이 있으시다면PR또는Issue를 통해
언제든지 알려주세요. 👏Copyright & LicenseCopyright (c) 2018 JeongUkJae. MIT License.
Package: pytitle
Subtitle manipulation library for PythonPyTitle is a subtitle manipulation library for python, it's built on top of Pydantic.note that development of this project is just started and it's not anywhere near complete or ready for production code. use it at your own riskwhat this library can do?well, it's able to do a lot of things, and more in the future, but for now:search for a text or pattern in a subtitle.shift all the timestaps, or just one timestap to forward or backward.split the subtitle from an index or timestamp.fix common problems in a subtitle, such as:re-index .srt subtitles.remove or fix italic, bold and other formatting tags.add coloring or other formattings to a subtitle.fix enconding problems.fix arabic charachters, question marks and other formattings for persian subtitles.fix overlays in timestamps.Installing PyTitlepip install pytitleQuick startFor now, the only supported subtitle format is.srt. other formats will be added to the library soon.Open a .srt Subtitle:frompytitle.srtimportSrtSubtitlesubtitle=SrtSubtitle.open("~/path/to/subtitle.srt")shift all the timestamps for the opened subtitle 2 seconds forward:subtitle.shift_forward(seconds=2)or you can shift only one line, for example the 10th line(.srt indexes start at 1):subtitle.shift_forward(seconds=2,index=10)and when you done editing, save the file:subtitle.save()the above method will override the existing file, if you want to save the file in a different place or seperately:subtitle.save(path="~/path/to/edited_subtitle.srt")Read the full documentation and tutorialhere.supported formats:srtassvtt
Package: pytitler
pytitlerPython package that allows you to easily make pretty title for your python programDeveloped by Flowseal (c) 2022How To UseInstallingpip3 install pytitlerOne string titlefrompytitlerimportpytitlerfrompytitler.pytitlerimportTitleFill,TitleColorsbanner=pytitler.align_titles("My first calculator!",center_x=True,center_y=True)pytitler.print_title(banner,(TitleColors.BLURPLE,(255,255,255)),TitleFill.HORIZONTAL)ASCII Examplefrompytitlerimportpytitlerfrompytitler.pytitlerimportTitleFill,TitleColorsascii1=r'''████████▄     ▄████████   ▄▄▄▄███▄▄▄▄    ▄██████▄  ███▄▄▄▄███   ▀███   ███    ███ ▄██▀▀▀███▀▀▀██▄ ███    ███ ███▀▀▀██▄███    ███   ███    █▀  ███   ███   ███ ███    ███ ███   ██████    ███  ▄███▄▄▄     ███   ███   ███ ███    ███ ███   ██████    ███ ▀▀███▀▀▀     ███   ███   ███ ███    ███ ███   ██████    ███   ███    █▄  ███   ███   ███ ███    ███ ███   ██████   ▄███   ███    ███ ███   ███   ███ ███    ███ ███   ███████████▀    ██████████  ▀█   ███   █▀   ▀██████▀   ▀█   █▀'''ascii12=r"""█████████████████████████▀                 ▀███████▀                       ▀█████▀                           ▀███▀                               ▀██                                 ██   █████                 █████   ██  ██▀▀▀███             ███▀▀▀██  ██  ██▀▀▀▀▀██           ██▀▀▀▀▀██  ██  ██▀▀▀▀▀▀██         ██▀▀▀▀▀▀██  ██▄  ████▀▀▀▀██       ██▀▀▀▀████  ▄█▀█▄   ▀███▀▀▀██     ██▀▀▀███▀   ▄█▀█▄    ▀█████▀     ▀█████▀    ▄███           ▄█ █▄           ████           ██ ██           ████                           ██▀██  ██▀██  █  █  █  ██▀██  ██▀▀████▀ ██  █  █  █  ██ ▀████▀██  █  █  █  ████  █  █  █  ████  █  █  █  ███▄▄█▄▄█▄▄█▄▄█"""banner=pytitler.join_titles((ascii1,ascii12),center=True)banner=pytitler.align_titles(banner,center_x=True,center_y=True)pytitler.print_title(banner,(TitleColors.BLURPLE,(255,255,255)),TitleFill.DIAGONAL_BACKWARDS)ResultGradient typesStatic: color a text with a static colorVertical: fade a text verticallyHorizontal: fade a text horizontallyDiagonal: fade a text diagonallyDiagonalBackwards: fade a text diagonally but backwards
Package: pytiva
Python Tools for Investigating & Visualizing Activity in anesthetic recordsA toolkit for extracting, parsing, and processing anesthetic records and making sense of the activity therein, especially intra-operative records.InstallationAvailable via PyPI using your favorite python package manager.$ pip3 install pytivaWhat can pytiva do?Extract data after export from an electronic health record systemDefine and extract anesthesia activities using intra-operative events or the administration of medicationsUnduplicate these activities by any strata of interest, such as patient or case ID numberDetermine total concurrent activities, including aggregating by day and timeVisualization of so-called gantt charts and heat maps of activity, as belowExamples of visualizationsGantt chart of raw activity for one patientGantt chart of unduplicated activity for one patientHeatmap of concurrent activityLinks and further readingGet started with a brief tutorial:https://github.com/tjbiel85/pytiva/blob/main/tutorial.ipynbBugs and issue tracking:https://github.com/tjbiel85/pytiva/issues
Package: pytivity
# PytivityPytivity is a python 3.5 command line manager for your KDE activities.## Installation`bash pip3 install pytivity `Pytivity rely on thepydbusmodule to connect to dbus which requires additional packages.
See [installation](https://github.com/Ovvovy/pytivity/tree/master/doc/install.md) for additional instructions and informations.## Basic usagePytivity enables you to easily create, update, delete, start, stop or activate an activity from the command line.`bash pytivity create/update/delete/start/stop/activate {name} `And set commands to be run when an activity is started, stopped, activated or deactivated.`bash pytivity create/update {name}--activated{command}--deactivated{command}--started{command}--stopped{command} `## Usage`bash pytivity {main arguments} {command} {command arguments} `### Main arguments-hShow help message and exit-vShow Pytivity version-nDisplay a system notification### commandscreate: Create a new activityupdate: Update an existing activitydelete: Delete an activitylist: List activitiesstart: Start an activitystop: Stop an activityactivate: Activate an activityAll commands have help message that explains the available arguments.`bash pytivity {command}-h`## ContributingAll contribution are welcome !
Package: pytk
PyTK- Python ToolKit:
A thin Pythonic layer on top of TkInter GUI.This Python library intend to provide a thin Pythonic abstraction layer on top
of the most widely usedtkinterfunctionalities.The widget semantic follows, when possible, HTML conventions.InstallationThe recommended way of installing the software is throughPyPI:$pipinstallpytkAlternatively, you can clone the source repository fromGitHub:$mkdirpytk$cdpytk$gitclonegit@github.com:norok2/pytk.git$pythonsetup.pyinstall(some steps may require additional permissions depending on your configuration)The software does not have additional dependencies beyond Python and its
standard library.It was tested with Python 2.7 and 3.5.
Other version were not tested.
Package: pytkapp
Python package for develop an application that provide
multi-documents/single-document interface
with using of tkinter library and set of additional tkinter
widgets.See available demos:pytkapp/demo/run_ptaoptionsdemo.py - run GUI demo for option’s container (available widgets, rules)pytkapp/demo/run_ptamdidemo.py - run demo of MDI application
pytkapp/demo/run_ptasdidemo.py - run demo of SDI applicationpytkapp/demo/run_tkwbasicdemo.py - run demo of basic widgets
pytkapp/demo/run_tkwtldemo.py - run demo of tablelist-based widgetspytkapp/demo/run_diademo.py - run demo for dialog widgets (selector, xmessage)
pytkapp/demo/run_tkwtooltipdemo.py - run demo for tooltipped widget (buttons, entries)DescriptionPython package for develop an application that provide
multi-documents/single-document interface
with using of tkinter library and set of additional tkinter
widgets.NotesPyTkApp package was tested on python 2.7, 3.1If you planning to use tablelist-based widgets then you need to download
tcl Tablelist package fromhttp://www.nemethi.de/