Saravanan666/pypi-org huggingface dataset:
Package: unrar2-cffi
unrar2-cffi -- Work with RAR files.Descriptionunrar2-cffi is a python extension that exposesunrar libraryfunctionality through azipfile-like interface.This is a fork/modified version ofunrar-cffithat supports modern Python starting from 3.9+This build also target unrar 6.x instead of unrar 5.x from the original unrar-cffi project.DifferenceThis packages has some difference to the original one:Added typing informationAdded__slots__to improve performance a bit.Moved all theRarInfointo at-property dataNow you can access the raw header data by usingfile._headerAdded docstring to most functions.ImplementRarFile.printdir()FeaturesThe package implements the followingRarFilefunctions:namelist()infolist()getinfo()read()open()testrar()rarfile.is_rar_file()UsageInstall with PIP:pip install unrar2-cffiUse from code:fromunrar.cffiimportrarfilerar=rarfile.RarFile('sample.rar')assertrar.testrar()==Noneforfilenameinrar.namelist():info=rar.getinfo(filename)print("Reading{},{},{}bytes ({}bytes compressed)".format(info.filename,info.date_time,info.file_size,info.compress_size))data=rar.read(filename)print("\t{}...\n".format(data[:100]))BuildRequirementsLinux/macOS:gcc compiler suite (build-essentialpackages should be enough)docker (only forbuildmanylinux)Windows:VS2022 Build Tools (PLATFORM_TOOLSET=v143)Visual C++ compiler suitevswhereCompile and test./build.sh init./build.sh build./build.sh testIf you have docker installed, you can build all themanylinuxwheels:./build.sh within [manylinux docker image] buildmanylinux./build.sh within [manylinux docker image] testmanylinuxBy deafult the imagequay.io/pypa/manylinux2010_x86_64will be used.
Use$DOCKER_IMAGEand$PLATvariables to customize the build.ProblemsWindows:If you need to retarget solution, apply the0001-build-retarget-to-vs2022-10.0-v143.patchthat will utilize the latest version.macOS:The macOS version are monkeypatching unrar 6.x makefile to utilize C++11
Package: unrar-cffi
unrar-cffi -- Work with RAR files.Descriptionunrar-cffi is a python extension that exposesunrar libraryfunctionality through azipfile-like interface.FeaturesThe package implements the followingRarFilefunctions:namelist()infolist()getinfo()read()open()testrar()rarfile.is_rar_file()UsageInstall with PIP:pip install unrar-cffiUse from code:fromunrar.cffiimportrarfilerar=rarfile.RarFile('sample.rar')assertrar.testrar()==Noneforfilenameinrar.namelist():info=rar.getinfo(filename)print("Reading{},{},{}bytes ({}bytes compressed)".format(info.filename,info.date_time,info.file_size,info.compress_size))data=rar.read(filename)print("\t{}...\n".format(data[:100]))BuildRequirementsLinux:gcc compiler suite (build-essentialpackages should be enough)docker (only forbuildmanylinux)Windows:VS2017 Build Tools (PLATFORM_TOOLSET=v141)Visual C++ compiler suiteCompile and test./build.sh init./build.sh build./build.sh testIf you have docker installed, you can build all themanylinuxwheels:./build.sh within [manylinux docker image] buildmanylinux./build.sh within [manylinux docker image] testmanylinuxBy deafult the imagequay.io/pypa/manylinux2010_x86_64will be used.
Use$DOCKER_IMAGEand$PLATvariables to customize the build.
Package: unrasterize
# Unrasterize [![PyPI version](https://badge.fury.io/py/unrasterize.svg)](https://badge.fury.io/py/unrasterize) [![Build Status](https://travis-ci.org/tetraptych/unrasterize.svg?branch=master)](https://travis-ci.org/tetraptych/unrasterize) [![Documentation Status](https://readthedocs.org/projects/unrasterize/badge/?version=latest)](http://unrasterize.readthedocs.io/en/latest/?badge=latest) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)Unrasterize is a Python library for converting raster datasets into GeoJSON objects by selecting representative points based on their pixel values. The conversion process results in less granular data with dramatically reduced file sizes for use in other applications that accept GeoJSON inputs.The inspiration and original use case for this library is the 100m resolution population data provided by [WorldPop](http://www.worldpop.org.uk/). This is also the source of the files in thedatadirectory used by the unit tests.## Installationunrasterizeis available on [PyPI](https://pypi.python.org/pypi/unrasterize) and can be installed via the commandpip install unrasterize.rasterio, a depedency ofunrasterize, may require the installation of additional GIS-specific tools outside ofpip. Refer to the [Dockerfile](Dockerfile) for a list of these tools and how to install them.## Sample output![Representative points for France created using WorldPop raster data](https://farm5.staticflickr.com/4708/39370187915_693f694b79_z_d.jpg“Representative points for France created using WorldPop raster data”)
Package: unratedwriting
My Typewriter Effect PackageA Python package that creates a typewriter effect for text output.InstallationYou can install this package usingpip:pipinstallunratedwritingUsagefromunratedwritingimporttypewritetext_to_type="Hello, this is a typewriter effect!"typewrite(text_to_type)`Parameterstext(str): The text you want to display with the typewriter effect.delay(float, optional): The delay in seconds between each character typing. Default is 0.05 seconds.ContributingContributions are welcome! If you'd like to contribute to this project, please follow these steps:Fork the repository.Create a new branch for your feature or bug fix.Make your changes and test them thoroughly.Create a pull request with a clear description of your changes.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.AcknowledgmentsInspired by the typewriter effect in Python.ContactAnozie JoelEmail:chibuikeanozie0@gmail.comGitHub:Anozie Chibuike
Package: unravel
UNRAVELUNRAVEL (UNfold RAdar VELocity) is an open-source modular Doppler velocity dealiasing algorithm for weather radars. UNRAVEL is an algorithm that does not need external reference velocity data, making it easily applicable. The proposed algorithm includes eleven core modules and two dealiasing strategies. UNRAVEL is an iterative algorithm. The goal is to build the dealiasing results starting with the strictest possible continuity tests in azimuth and range and, after each step, relaxing the parameters to include more results from a progressively growing number of reference points. UNRAVEL also has modules that perform 3D continuity checks. Thanks to this modular design, the number of dealiasing strategies can be expanded in order to optimise the dealiasing results.Changelog:Version 1.2.5:New box check using a fast and robust striding window algorithm, up to 10x faster for that function call.
Version 1.2.0:Multiprocessing usingunravel_3D_pyart_multiprocVarious optimization and speed up.InstallationThe easiest method for installing UNRAVEL is to use pip:pip install unravelDependenciesMandatory dependencies:numpynumbaPy-ARTReferences:Louf, V., Protat, A., Jackson, R. C., Collis, S. M., & Helmus, J. (2020). UNRAVEL: A Robust Modular Velocity Dealiasing Technique For Doppler Radar. Journal of Atmospheric and Oceanic Technology, 4(1), 741–758. [https://doi.org/10.1175/jtech-d-19-0020.1]
Package: unravel-python
UNRAVEL - UtiliziNg tRActography to uncoVEr muLti-fixel microstructureWelcome to the UNRAVEL's Github repository!The documentation of the code is available onreadthedocsDescriptionTounravelhas two meanings :to disentangle the fibers ofto resolve the intricacy, complexity, or obscurity ofWith the UNRAVEL framework, we utilize tractography to unravel the microstructure of multi-fixel models.This repository contains the code used to combine macroscopic tractography information with microscopic multi-fixel model estimates in order to improve the accuracy in the estimation of the microstructural properties of neural fibers in a specified tract.Installing & importingOnline installThe UNRAVEL package is available throughpip installunder the nameunravel-python. Note that the online version might not always be up to date with the latest changes.pip install unravel-pythonTo upgrade the current version :pip install unravel-python --upgrade.To install a specific version of the package usepip install unravel-python==1.0.0All available versions are listed inPyPI. The package names follow the rules ofsemantic versioning.Local installIf you want to download the latest version directly from GitHub, you can clone this repositorygit clone https://github.com/DelinteNicolas/unravel.gitFor a more frequent use of the library, you may wish to permanently add the package to your current Python environment. Navigate to the folder where this repository was cloned or downloaded (the folder containing thesetup.pyfile) and install the package as followscd UNRAVEL
pip install .If you have an existing install, and want to ensure package and dependencies are updated use --upgradepip install --upgrade .ImportingAt the top of your Python scripts, import the library asimport unravelChecking current version installedThe version of the UNRAVEL package installed can be displayed by typing the following command in your python environmentunravel.__version__Uninstallingpip uninstall unravel-pythonExample data and codeAn example use of the main methods and outputs of UNRAVEL is written in theexample.pyfile. A tractogram of the middle anterior section of the corpus callosum is used as tractography input.Publication & citationMain publication DOI :10.3389/fnins.2023.1199568Cite article as : "Delinte N, Dricot L, Macq B, Gosse C, Van Reybroeck M and Rensonnet G (2023) Unraveling multi-fixel microstructure with tractography and angular weighting. Front. Neurosci. 17:1199568. doi: 10.3389/fnins.2023.1199568"
Package: unreadable
Unreadable is an encode and a decoder.Installationpip install unreadableUsageunreadable.encode(string,key='generate')string: the string you want to encodekey (Optional): the encode key (Can be made with generate_key, more on that later).encoded_string=encode('An encoded string!')Will output something likeZXI5X@>*5*IP]0nX,-+AacsB_"|z}M7-YDxOCK&r^\fd50] 8n>UvH:P*=,hWk<6u;4@gNX?$GJVE(L%j[!R2)T.{Zm9Qe/pb1loiw#3FSyqt'Iwithoutkey.unreadable.decode(string,key='generate')string: the encoded string you want to decodekey (Optional): the key you used to encode the string (Not needed if you left key blank).decoded_string=decode('ZXI5X@>*5*IP]0nX,-+AacsB_"|z}M7-YDxOCK&r^\fd50] 8n>UvH:P*=,hWk<6u;4@gNX?$GJVE(L%\[!R2)T.{Zm9Qe/pb1loiw#3FSyqt'+"'"+'I')Will outputAn encoded string!unreadable.generate_key(chars=r'1234567890-=!@#$%^&*()_qwertyuiop[]asdfghjkl;'+"'"+r'zxcvbnm,./|QWERTYUIOP{}ASDFGHJKL:"ZXCVBNM<>? ')chars: The characters the encoder will encode (Otherwise it will just be the same charater. Example: Ã· encoded will be Ã· unless it's in the chars).key=generate_key()encoded_string=encode('Encoded using a custom key!',key)decoded_string=decode(encoded_string,key)print(decoded_string)Will outputEncoded using a custom key!
Package: unread-decorator
Two decoratorsadd_unreadandadd_unnextfor file-like objects and iterators, respectively.add_unreadintroduces a functionunread()for pushing data
obtained byread()orreadline()back into the input stream.add_unnextintroduces a functionunnext()for pushing an item
back into an iterator (to be returned by the next__next__())add_unreadwill work for all kinds of streams:
memory-based or file-based, binary or text,
buffered or unbuffered.
It will also work with higher level operations
if those are properly built on top ofread()orreadline()and also allows to insert content not previously read, because
the actual stream is never modified (only a pushback buffer added).import io
from unread_decorator import add_unread

f = io.StringIO("one\ntwo\nthree")  # or: f = open("myfile.txt")
f = add_unread(f)  # decorate
data = f.readline()  # 'one\n'
data = f.readline()  # 'two\n'
f.unread(data)
data = f.readline()  # 'two\n'
f.unread(data)
f.unread("more than ")
print(f.read())  # prints "more than two\nthree"add_unnextwill work for all kinds of iterators as well as
iterables.
It is useful if you want to forward some part of an interation to
a separate function based on what you encountered.
It also allows to insert content not previously received from the iterator.from unread_decorator import add_unnext

items = add_unnext([11, 12, 13])
results = []
for item in items:
    results.append(item)
    if len(results) == 2:
        items.unnext(item)
        items.unnext(77)
assert results == [11, 12, 77, 12, 13]Find the documentation athttps://github.com/prechelt/unread-decorator
Package: unreal-ini-parser
Unreal INI ParserParser for Unreal Engine config files.How to installpipinstallunreal-ini-parserUsage examplefrompathlibimportPathfromunreal_ini_parserimportIniParser"""assume example of ini file:[MySection]IsBool = TruePath = path/to/fileJustArray = oneJustArray = twoJustArray = three"""defexample_print(obj):print(type(obj).__name__,obj,sep=" | ")# Create an instance of IniParserparser=IniParser()# read ini fileparser.read("example.ini")# all ini data stored in sectionsexample_print(parser.sections)# dict | {'MySection': {'IsBool': ['True'], 'Path': ['path/to/file'], 'JustArray': ['one', 'two', 'three']}}# all paths that was read# you can read more files, all data will be added to "sections"# ini parser also supports @requires keyword to validate required ini files was parsedexample_print(parser.paths)# set | {WindowsPath('example.ini')}# get string value of "IsBool" keyis_bool=parser.get_value("MySection","IsBool")# same as:# is_bool = parser.get_value("MySection", "IsBool", str)example_print(is_bool)# str | True# get bool value of "IsBool" keyis_bool=parser.get_value("MySection","IsBool",bool)example_print(is_bool)# bool | True# get path value of "Path" keypath=parser.get_value("MySection","Path",Path)example_print(path)# Path | path/to/file# get array of "JustArray" key# you can use type converters in this casejust_array=parser.get_values("MySection","JustArray")example_print(just_array)# list | ['one', 'two', 'three']
Package: unreal-qt
unreal qtQT PySide2 support for unreal engine 5 (likely works in unreal 4)prevent widget from instantly dissapearing due to garbage collectionautomatically style all Qt widgets using Xingyu Lei'sunreal_stylesheetdark window bar for a better visual match with Unrealparent widget to Unreal's main window to stay on topQuickstartthis guide assumes you have PySide2 installed already!Add the unreal_qt folder in your python path. Seeunreal docsUse the following code snippet to createsample.pyand add it to unreal python path.# 1. SETUP - this step can automatically run on editor startup when added to your init_unreal.pyimportunreal_qtunreal_qt.setup()# 2. CREATE WIDGET - create your qt widget# every widget you make after setup won't block the editor & have unreal stylingfromPySide2.QtWidgetsimportQLabel,QWidget,QVBoxLayoutw=QWidget()layout=QVBoxLayout()w.setLayout(layout)layout.addWidget(QLabel("Hello World!"))# 3. WRAP WIDGET - (optional) manage garbage collection, add darkbar, stay on topunreal_qt.wrap(w)# 4. SHOW WIDGET - if using stay on top this needs to run after the wrap stagew.show()import script in unreal with the Python terminal to run it.importsampleDark title barThe windows bar is by default white on Windows, and QT can't change the bar color.With unreal_qt you can add a custom bar.default window bar & framecustom bar, no frame (no resize support!)custom bar, frame, no title bar (supports resize)communitytech-artists.orgPySide and Unreal5threadTODO unreal forums threadsimilar tohttps://github.com/FXTD-ODYSSEY/Unreal-PyToolkit
Package: unreal-script-editor
Unreal Python EditorA Qt widget that's the Unreal equivalent of the "Maya Script Editor".This repo hosts the Python module, for the Unreal plugin, seethis repoAbout The ProjectWith the rapid advancement of Unreal Engine and the Python support in Unreal
Engine, more and more people are jumping into Unreal Python scripting.
Hence the creation of this tool!Getting StartedPrerequisitesThe tool needs the following library to be installed:Qt for Python:PySide2orPyQt5Python shim for all Qt bindings:Qt.pyAdd as Menu ButtonThe tool is meant to be launched from a menu bar button like such:You can set up this very easily by addingstartup.pyas a startup script,
underProject Settings - Plugins - Pythondownload & extract the project zip filefind thestartup.pylocation, and add it to the startup scripts: e.g.C:\Downloads\unrealScriptEditor\startup.pySimple Launch ScriptIfyou just want to launch the tool in Unreal's python console without adding it to menu,
or if you want to customize the location where the tool is being launched;
refer to the following command:the tool has to be in a path that Unreal will search for!fromunrealScriptEditorimportmainglobaleditoreditor=main.show()Install as moduleinstall with pippipinstallunreal-script-editorInstall the module from the repopython-mpipinstallgit+https://github.com/hannesdelbeke/unreal-script-editorFeaturesUnreal "native"stylesheetSave and load python files and temporary scriptsCode editor short-cut support and HighlighterAuto-completionSupportThis tool is still in development, if there's any issue please submit your bughereor contacttechartlei@gmail.com
Package: unreal-stylesheet
Unreal StylesheetA Qt stylesheet designed to make your tools look native in Unreal Engine 5Quickstart sample code:importunreal_stylesheetif__name__=='__main__':app=QtWidgets.QApplication(sys.argv)# style your QApp, requires a QApplication instanceunreal_stylesheet.setup()# <== Just 1 line of code to make the magic happen# create & show your Qt widgetwindow=TestWindow()window.show()sys.exit(app.exec_())InstallationPIP install thelatest releasefrom PYPi (recommended):python -m pip install unreal-stylesheetor install from the repo:python -m pip install git+https://github.com/leixingyu/unrealStylesheetComparisonThe following.uifiles for testing can be found inside the/uifolder.default (editor.ui)ue.qssdefault (tree.ui)ue.qssdefault (progress.ui)ue.qssContributeFeel free to make a PR or issue if you find a bug, or want to request a feature.Some guidelines to modify this stylesheet:Modifying the style sheetModify theCSSpreprocessor.scssfileRe-compile the.qss:qtsass ue.scss -o ue.qss⚠️ If you modify the.qssstyle sheet directly, your changes will be lost when the.qssis re-compiled in the futureDocumentation about .scss can be found:Sass Official websiteYou'll also need to install a Qt specific Sass:qt-sassModifying iconsThe icons are handled with Qt's resource system (see thedocs) (which is dropped in qt6)Modify the.qrcfileRe-compile the.rcc:rcc -binary icons.qrc -o icons.rccReferencesQt documentation:stylesheets examplesstylesheets referenceGithub repo:Qt-MaterialUnreal has a different UI framework (Slate), futurereadon comparing Qt to SlateAn example of this stylesheet in action:unrealScriptEditor
Package: unrec
再帰呼び出しを全自動でloopに直すツールです。
関数呼び出しの深さが非常に深くなっても正常に実行できます。This is a tool to fix recursive calls to loop in a fully automatic manner.
It can execute successfully even when the depth of the function call is very deep.How to use: 使用法# pip install unrecimportunrec@unrecdeffrac(n):ifn==0:return1returnn*frac(n-1)print(frac(9999))# -> NO ERROR!!This description is under construction.
Package: unred
Unredden-starsThis package allows to determine the interstellar extinction for stars lying on the color-color plane. Using:theoretical stars sequencereddening line slopepositions of starspackage functions calculate which part of the sequence the reddened stars come from. This allows to determine the color excess and hence the extinction of each star.InstallationTo install the package please type from the command line:$sudopip3installunredor alternatively:$gitclonehttps://github.com/pbrus/unredden-stars
$cdunredden-stars
$sudopython3setup.pyinstallUsageAt the beginning call the script from the terminal window with the-hoption:$unred_stars.py-hThis will give you a description of available options. If you need to see the program in action immediately, you can use files from theexample_data/directory:$unred_stars.pyexample_data/stars.datexample_data/ub_bv_dwarfs.dat0.723.1Moreover, you can filter the output (by extinction value for each star) using--minor--maxoption:$unred_stars.pyexample_data/stars.datexample_data/ub_bv_dwarfs.dat0.723.1--minI encourage to visit my website to see more detailed description of this program. The current link can be found on myGitHub profile.LicenseUnredden-starsis licensed under theMIT license.
Package: unredoable
unredoablePython package providing object-specific undoing & redoing functionality through wrapper classDownloadpip install unredoableUsagefromunredoableimportUnredoableclassStateManager:def__init__(self,state_variable):self.unredoable_state_variable=Unredoable(state_variable,max_stack_depths=10,craft_deep_copies=False)# state_variable may be of whatever type, whether custom or not,# the sole restraint it's subject to, is that is needs to implement# either __copy__ or __deepcopy__, depending on the passed# 'craft_deep_copies' parameterdefalter_state_variable(self):self.unredoable_state_variable.push_state()self.unredoable_state_variable.obj+=1if__name__=='__main__':manager=StateManager(69)manager.alter_state_variable()manager.alter_state_variable()manager.unredoable_state_variable.undo()# unredoable_state_variable = 70manager.unredoable_state_variable.redo()# unredoable_state_variable = 71AuthorJanek ZangenbergLicenseMIT
Package: unrest-schema
Unrest SchemaA library for converting Django forms to json schema endpointsUsageFirst install withpip install unrest_schemaand then register any form:fromdjangoimportformsfromunrest_schemaimportregisterfrommyapp.modelsimportMyModel@registerclassMyModelForm(forms.ModelForm):classMeta:model=MyModelfields=('field1',...)Then, in your urls add a the urls for unrest_schemafromdjango.urlsimportincludeurlpatterns=[...,#other url patternsre_path('',include('unrest_schema.urls')),]Now visit/api/schema/MyModelForm/in a browser to get the json representation of MyModelForm. Additionally you can post to/api/schema/MyModelForm/to create a new MyModel instance or/api/schema/MyModelForm/1/to modify the MyModel instance withid=1.Contributing/follow upFeel free to open a github issue if you want to suggest any features or ask for help. Additionally, the python code for this project is ~150 lines so don't be afraid to dig in!
Package: unroll
Unroll is a Python module to ease transcription of piano rolls to sheet music.
It transcribes either a MIDI file or a video of a piano roll. It finds
the notes, the tempo, roughly separates the hands, and writes the result
in a Lilypond file. In particularYou can use it like this:# TO TRANSCRIBE FROM A VIDEO

from unroll import video2scan, rollscan2keystrikes
focus = lambda im : im[[156],58:478]
scan = video2scan(videofile = "limehouse_nights.mp4", focus = focus)
keystrikes = rollscan2keystrikes(scan)
keystrikes = ks.transposed(26)
keystrikes.transcribe('score.ly', quarter_durations = [2,10,0.02])

# TO TRANSCRIBE FROM A MIDI FILE

from unroll import midi2keystrikes
keystrikes = midi2keystrikes('tiger_rag.mid')
ks.transcribe('score.ly', quarter_durations = [50,100,0.02])Then you must editscore.lyto correct the mistakes and when you are done you compile it withlilypond score.lyInstallationUnroll can be installed by unzipping the source code in one directory and using this command:(sudo) python setup.py installYou can also install it directly from the Python Package Index (PYPI) with this command:(sudo) pip unroll installContributeUnroll is an open-source software originally written byZulkoand released under the MIT licence.
The project is hosted onGithuband everyone is welcome to contribute ! Please give feedback if you are using it and encounter difficulties.