Saravanan666/pypi-org huggingface dataset:
Package: utmos
NOTE: Not affiliated with original authors of UTMOS!Unofficial UTMOS Python PackageThis is an unofficial Python package forUTMOS (UTokyo-SaruLab MOS Prediction System). This repository is based on theoriginal code. The paper is availablehere.What is UTMOS?UTMOS is designed for calculating the mean opinion score (MOS) for a given voice sample. It can be used to calculate audio quality for datasets.NoteThe score is on a scale of 1 to 5. If you'd like a score on 1 to 100, just multiply the score by 20 (score * 20).Example:new_score = round(score * 100, 2)SupportThis implementation supports CPU, CUDA, and MPS, as well as ROCm if PyTorch is configured properly. This implementation will automatically use the GPU if available.InstallationpipinstallutmosUsageCLI (Command Line Interface)utmosaudio.wavPython APIimportutmosmodel=utmos.Score()# The model will be automatically downloaded and will automatically utilize the GPU if available.model.calculate_wav_file('audio_file.wav')# -> Float# or model.calculate_wav(wav, sample_rate)LicenseThis software is licensed under the MIT license.
Package: utmp
Pure-Python library to decode/read utmp and wtmp files.
Please note that there is an alternative library which uses the underlying C API:pyutmpThis package requires Python 3.4.What is utmp/wtmp?utmp,wtmp,btmpand variants such asutmpx,wtmpxandbtmpxare files on Unix-like systems that keep track of all logins and logouts to the system.The utmp file keeps track of the current login state of each user. The wtmp file records all logins and logouts history. The btmp file records failed login attempts.On Linux thewtmpandbtmpfiles are usually located in the/var/log/directory.UsageTheutmp.readfunction decodes a binary utmp/wtmp stream and yields record objects:withopen('/var/log/wtmp','rb')asfd:buf=fd.read()forentryinutmp.read(buf):print(entry.time,entry.type,entry)
Package: utm-zone
utm-zoneFind the UTM zone for your GeoJSON.Provided a GeoJSON object (with coordinates using WGS84), calculate the Proj.4 definition or EPSG code for a suitable UTM zone for this geometry. This will only work if the geometry has limited geographic size, so that it can fit into a single UTM zone.Note that this module does not do any reprojection of coordinates, you might want to look atpyprojfor that.For a rough overview of how the UTM zone is calculated, have a look athttps://gis.stackexchange.com/a/190209/467.See alsohttps://github.com/perliedman/utm-zonefor a JavaScript version of this module.APIepsg(geojson)Returns the EPSG code for the UTM zone of the provided GeoJSON object.proj(geojson)Returns the Proj.4 string for the UTM zone of the provided GeoJSON object.
Package: utnamtte
This is a convertor that takes normal mathematical text expressions as String inputs (eg. “2+ln2√π) and return the expression as it would be written in python (2+(math.log(2))*(math.sqrt(math.pi))To do sopip install utnamtte———————–#Method 1———————————import utnamtte
print(utnamtte.tte(“2+ln2”))————————#Method 2———————————-from utnamtte import tte
print(tte(“2+ln2”))————————#Method 3———————————from utnamtte import tte as xy
print(xy(“2+ln2”))watch tutorial on youtubehttps://bit.ly/ytutnamtteChange Log0.0.2 (7/06/2023)Fixed some bugs
Package: utokeniz
UToken - Secure tokensUToken (or Unhandleable Token) is a library designed to generate secure tokens with a guarantee of integrity for any type of project. With this project you can add payload and token lifetime.To install UToken, use thepippackage manager:pip install utokenizHow to useHere's a short tutorial on how to use UToken in a simple way.Creating a tokenLet's start by creating a token, see the code below:fromutokenimportencode# defining our keyKEY='secret-key'# encodingmy_token=encode({'message':'Hello World!'},KEY)print(my_token)First we pass as a parameter toutoken.encode()the payload of the token, which must be a dictionary, then we pass the key that will be used to encode the token. After that we have our token in a string returned by the function.Define expiration timeWe can add the token expiration time using theexpires_inargument of theutoken.encodefunction. After the maximum time is reached theExpiredTokenErrorexception will be thrown. In the example below, the token will expire in5 minutes:fromutokenimportencodefromdatetimeimporttimedeltatoken=encode({'name':'Maria'},'secret-key',expires_in=timedelta(minutes=5))Decoding a tokenNow, let's decode a token. See the code below:importutokenfromdatetimeimporttimedelta# defining our keyKEY='secret-key'# create a tokentoken=utoken.encode({'name':'Maria'},KEY,expires_in=timedelta(minutes=5))# decode a tokenpayload=utoken.decode(token,KEY)print(payload)Ready! Our token has been decoded. Inutoken.decode()we pass as a parameter the token and the key used in the encoding, simple.LicenseCopyright © 2023 Jaedson Silva
BSD-3-Clause LicenseThis project uses theBSD-3-Clauselicense. Pleasesee the license fileto more informations.
Package: utool
utoolNotice: This is a “kitchen sink” library. While it is still somewhat maintained, I am trying to “end-of-life” it as soon as possible. I have refactored it into several other projects. Please seehttps://github.com/Erotemic/ubeltfor a well-maintained curated collection of utilities. Also seehttps://github.com/Erotemic/xdevfor ports of the more developer-y functions in this libray.This project is only maintained for the benefit ofhttps://github.com/Erotemic/ibeisand is being phased whenever possible.Useful Utility Tools For You!Theutoollibrary is a collection of tools that I’ve found useful. I’ve
written most of them from scratch, but there are a few I’ve taken or partially
taken from StackOverflow. References are given in most locations.In my experience the most useful functions in this library are:ut.flattenut.takeut.take_columnut.compressut.ichunksut.itertwout.isiterableut.group_itemsut.dict_subsetut.dict_histut.map_dict_valsut.map_dict_keysut.memoizeut.get_argflagut.get_argvalut.ProgIterut.Timerut.Timeritut.MemoryTrackerut.InteractiveIterut.color_printut.ensuredirut.globut.greput.sedut.lsut.repr2Warning: This module does contain personalized functions that help glue
together my projects.  Over time these will be removed.  While many of the
functions in this repo are mature, the repo itself is a work in progress.  Some
functions may be broken, deprecated, unfinished, or undocumented. Thus, some
APIs may refactored or removed in the future.Documenationhttp://erotemic.github.io/utoolInstallationInstallation can now be done via pypipipinstallutool
Package: utoolbox
uToolboxA Python image processing package for LLSM.TODOintroFor more information, refer tothe documentation.InstallationuToolbox is published onPyPIand can be installed from there:pip install -U utoolboxBeta releases are also published:pip install -U --pre utoolboxIf you wish to install uToolbox for development purposes, refer tothe developer guide.DocumentationDocumentation is available fromreadthedocs.io.TODOmigrate platform support infomacOSHigh Sierra 10.13.6, Darwin 17.7.0CUDA 9.2.64.1WindowsWindows 7 (64-bit) SP1CUDA 9.2.88.1LinuxDebian 8.10 (jessie), Linux 3.12.72CUDA 8.0.44AuthorsLiu, Yen-TingLicenseThis project is licensed under the Apache 2.0 License - see theLICENSE.mdfile for detailsAcknowledgmentsLLSpyby Talley Lambert.
Package: utoolbox-core
uToolbox [Core]A Python image processing package for LLSM.For more information, refer tothe documentation.InstallationuToolbox is published onPyPIand can be installed from there:pip install -U utoolboxBeta releases are also published:pip install -U --pre utoolboxIf you wish to install uToolbox for development purposes, refer tothe developer guide.DocumentationDocumentation is available fromreadthedocs.io.AuthorsLiu, Yen-TingLicenseThis project is licensed under the Apache 2.0 License - see theLICENSE.mdfile for detailsAcknowledgmentsLLSpyby Talley Lambert.
Package: utoolc
PyJustToolc(utoolc)PyJustToolc: ❤PyJustToolc(utoolc) > Python Tools For U (You)❤https://github.com/ahviplc/PyJustToolchttps://gitee.com/ahviplc/PyJustToolcslogan❤PyJustToolc(utoolc) > Python Tools For U (You)❤如何使用？安装导入,即可使用.安装包Via pip(recommend):: > pip install utoolcVia easy_install:: > easy_install utoolcFrom source:: > python setup.py install使用包importutoolcif__name__=='__main__':# 使用 utoolc.do 统一使用入口 当然其他入口也开放 自由发挥utoolc.do.utils.print_a_line()print(utoolc.do.get_num_cpu())print(utoolc.do.get_random.get_random_str_with_counts(3))print(utoolc.do.get_os())print(utoolc.do.is_mac_os())print(utoolc.do.is_win_os())print(utoolc.do.is_linux_os())print(utoolc.do.get_num_cpu())utoolc.do.utils.print_a_line()
Package: utools
utoolsA set of useful functions to use for various purposes in any Python
project.Author: Julien CHAUMONT (https://julienc.io)Version: 1.3Date: 2016-10-07Licence: MITUrl:http://github.com/julienc91/utoolsDescriptionutoolsis a Python 3 library that gather multiple useful functions
for various domains. Developers often have their own private tool
library;utoolsis just one of them being publicly released. It does
not claim to be exhaustive, always optimized and clearly implemented,
but it certainly does the job.Most of the functions were specially designed to work with projects likeGoogle Code JamandProjectEuler.Even ifutoolsis at first a personal collection of snippets, every
developer is invited to use it and contribute to its code.Contentprime generatorsprime testerbinomial coefficient calculatorfile parsermore to use and more to come!DocumentationThe complete documentation is available at:http://utools.readthedocs.org/en/latest/
Package: utools.dev
Utools.devusage：cmd: uimgconfig.py::configs={'ext':['.png'], # 需要压缩的文件类型'record_dir':'record','diff_record':'diff.txt','exclude':[],'safe':True ,# True 时会拷贝一份到safe_dir目录中'safe_dir':'tmp','force':True # 压缩后是否覆盖原文件，safe=True时，默认会覆盖}
Package: utopya
Theutopyapackage provides a simulation management and evaluation
framework with the following feature set:Run model simulationsin parallel and on cluster architecturesConveniently perform parameter sweeps of arbitrary parameters with the help
of theparamspacepackage.Apowerful CLIto run and evaluate models, including interactive plottingIntegrates thedantrodata processing pipeline:Loads data into a hierarchical data tree, supplying a uniform interfaceGives access to a configuration-baseddata transformation framework,
separating data preprocessing from visualization for increased generalityEasy extensibility of plot creators via model-specific plot implementationsAversatile configuration interfacefor both simulation and evaluation:Assembling multi-level model configurations, including several default
levelsAssembling plot configurations with multiple inheritance, reducing
redundant definitionsModel, project, and framework registration and handlingManaging data output directoriesTools to simplify model test implementations or working without a CLI… and moreTheutopyapackage evolved as part of theUtopia Projectand provides the frontend of
theUtopia modelling framework.
Having been outsourced from that project, it can be used with arbitrary model
implementations with a very low barrier for entry: in the simplest case, only
the path to an executable is required to run simulations.
With more compliance to the utopya interface, more features become available.Theutopyapackage isopen source softwarereleased under theLGPLv3+license.Visit theutopya project websiteor thedocumentation pagefor more
information about utopya.
Package: utpy
utpysimple python library for download youtube video or playlist.utpy = U (you) - T (Tube) - PY (python)InstallationUse the package managerpipto install utpy.pipinstallutpyUsageimportutpy# Default Settings. The default is like this if you dont define settings.default_settings={'save_to':None,# Path to save downloaded video(s) if you want. Read Note (1)'file_name':None,# you can select video files name'quality':None,# Select video quality: 360p or 720p (default: 720p)'dl_range':(),# Define a range to videos in that range in playlist. example: (2, 8)'dl_list':[],# Select some videos form playlist to download them. example: [5, 7, 8, 12]'retries':2,# Retries to download video if content not received.}# video or playlist urlurl='https://www.youtube.com/watch?v=bIGBYOcxMqM'# Load utpy!yt=utpy.Load(url,settings=default_settings)# return all information as dictionaryyt.data# download video or videos of playlistyt.downloadNote (1): Correct save_to formts:{'save_to' : 'D:/path/to/directory'}
or
{'save_to' : r'D:\path\to\directory'}
or
{'save_to' : 'D:\\\path\\\to\\\directory'}
Package: utr
UTRUniversal Tennis Rating python libraryDescriptionInstallationTo install the latest version:pipinstallutrTo install the library from GitHub:pipinstallgit+https://github.com/userlerueda/utr.gitUsage GuideUsing via CLIGetting Player Information$utrplayer909618{"eventViewModel":null,"id":"909618","firstName":"German Andres","lastName":"Castillo Contreras","gender":"M","city":"Bogot\u00e1","state":"Bogota","hasYobOnly":false,"singlesUtr":0.0,"singlesUtrDisplay":"0.xx","ratingStatusSingles":"Unrated","ratingProgressSingles":"0","ratingStatusImgageSingles":null,"doublesUtr":0.0,"doublesUtrDisplay":"0.xx","ratingStatusDoubles":"Unrated","ratingProgressDoubles":"0","ratingStatusImgageDoubles":null,"importSource":null,"nationality":"COL","myUtrSingles":0.0,"myUtrSinglesDisplay":"0.xx","myUtrStatusSingles":"Unrated","myUtrDoubles":0.0,"myUtrDoublesDisplay":"0.xx","myUtrStatusDoubles":"Unrated","finalPbr":null,"pbrRatingDisplay":null,"memberId":91765,"utrRange":{"minUtr":5.25,"maxUtr":7.25,"lastReliableRating":null,"lastReliableRatingDate":null,"minUtrDisplay":"5.xx","maxUtrDisplay":"7.xx","lastReliableRatingDisplay":"0.xx","pbrRange":null},"historicRatings":{"historicSinglesRating":null,"historicSinglesRatingReliability":null,"historicSinglesRatingDate":null,"historicDoublesRating":null,"historicDoublesRatingReliability":null,"historicDoublesRatingDate":null,"historicSinglesRatingDisplay":"0.xx","historicDoublesRatingDisplay":"0.xx"}}Getting Results for a Club$utrresults12610+--------------+------------+-------------+---------------------+----------------------------------+-------------+--------------------------------+------------+--------------+---------------------+------------------+|event|event_id|result_id|date|winner|winner_id|loser|loser_id|sourceType|excludeFromRating|score||--------------+------------+-------------+---------------------+----------------------------------+-------------+--------------------------------+------------+--------------+---------------------+------------------||ClubMatches||34601132|2022-09-24T21:00:00|PabloLEMUS|2581102|JorgeGonzález|3525582|myutr|False|6-26-2|...
...
...|ClubMatches||34590366|2022-02-19T19:00:00|AnaMaríaPeláez|3541392|PabloRico|3178932|myutr|False|2-66-210-7|+--------------+------------+-------------+---------------------+----------------------------------+-------------+--------------------------------+------------+--------------+---------------------+------------------+Using as a LibraryCreditsCredits tohttps://blakestevenson.github.io/utr-api-docs/for trying to document the API.LicenseThis project is covered under the terms described inLICENSE.ContributingSee theContributingif you want to contribute.ChangesSee theChangelogfor a full list of changes.
Package: utracto
U-fiber tractographyWelcome to the UTracto's Github repository!DescriptionThis repository contains a package facilitating the tracking of sub-cortical U-Fibers. The main function of this package is the creation of angular maps, enabling a tractography with a position-dependent maximum angle between tractography steps. The function creating these angular maps iswmfod_to_anglein thecore.pyfile.This angular map is to be used with a forked version ofDIPY.Installing & importingOnline installThe UNRAVEL package is available throughpip installunder the nameutracto. Note that the online version might not always be up to date with the latest changes.pip install utractoTo upgrade the current version :pip install utracto --upgrade.To install a specific version of the package usepip install utracto==0.0.8All 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/UTracto.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 UTracto
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 utractoChecking current version installedThe version of the UNRAVEL package installed can be displayed by typing the following command in your python environmentutracto.__version__Uninstallingpip uninstall utractoExample data and codeAn example use of the main methods and outputs of UTracto is written in theexample.pyfile.
Package: utrcalling
RequisitesShould download GTF and fasta files fromhttp://ftp.ensembl.org/pub/InstallingRequirementsBefore using this module, you must have the following software installed in your environment:Python (tested on 3.9 but should work for later versions)BEDTools for generating the UTR reference regions pkl file. To install, visithttps://github.com/arq5x/bedtools2. Alternatively, if using Anaconda, runconda install-cbioconda bedtoolsto install BEDTools in your current environment. Finally, make sure BEDTools is callable on the command-line.Using pipThis module is currently not available from PyPi.From sourceClone the git repository hosted at:https://github.com/AndreMacedo88/utrcallingGo to the cloned directory in your local machine.Run $pip install .DevelopmentClone the git repository hosted at:https://github.com/AndreMacedo88/utrcallingGo to the cloned directory in your local machine.Run $pip install-e.--use-feature=in-tree-buildThis will install the package locally and in editable mode, where changes to the
local files will update the package in real-time.Run TestsAfter installation, you can:run the individual test files (example for one test file):python-munittest tests.test_coreRun all test files at once:utrcalling run_tests
Package: uts
## Unsupervised Text Segmentation### Installsudo pip install uts### Usage```pythonimport utsdocument = ['this is a good day', 'good day means good weather',\'I love computer science', 'computer science is cool']model = uts.C99(window=2)boundary = model.segment(document)# output: [1, 0, 1, 0]print(boundary)```
Package: utsc-core
AboutThis package contains a set of utilities useful for building python libraries, scripts, and command-line utilitiesIt's designed to be easy to include in other projects. all of its mainline dependencies are vendored and all modules which have external un-vendorable dependencies are available as optional extrasInstallpip install utsc.coreto include all optional dependencies, runpip install utsc.core[all]UsageThis toolkit makes it really easy to write small, simple, well designed CLI utilities
In fact, the aim of this project is to make well-engineered CLIs almost as easy to write and deploy as basic python scripts
it leverages a lot of really fantastic modern libraries and tools to do so, likepoetry,typer, andlogurulet's assume you've created a new project withpoetry new, and you want to add a CLI interface to it. here's one way to do that:
create acommon.pyfiles with your super handy dandy useful function in it:fromloguruimportloggerdefmy_super_awesome_function():logger.debug("I'm running my_package.common.my_super_awesome_function!")create a__main__.pyfile in your package like so:importosfrom.commonimportmy_super_awesome_functionfromat.utilsimportconfigure_loggingimporttyperfromloguruimportloggerapp=typer.Typer()@app.callback()defcallback(verbose:bool=False):"""Here is my app's main help stringUsers will see this when they run `python -m my_package`"""log_level='DEBUG'ifverboseelse'INFO'configure_logging('my_app_name',stderr_level=log_level,logfile_level='DEBUG',sentry_level=None)@app.command()defmy_command(option:bool):"""Here's the help text my users will see when they run `python -m my_package my-command -h`"""logger.debug("running my-command")# this will only get printed if the --verbose flag is setmy_super_awesome_function(option)if__name__=="__main__":ifos.environ.get('PYDEBUG'):# we're in a debugger session# here we can put whatever debugging code we want# we can configure logging so all messages up to DEBUG are logged to stderr, and nothing gets logged to file:configure_logging('my_app_name','DEBUG',None,None)# do debugging stuff herelogger.debug("I'm a debug message!")exit()try:app()# cli code goes hereexceptKeyboardInterrupt:print("Aborted!")exit()the main api (all the stuff directly importable fromat_utils) consists of:every function defined in themainmoduletheconfigure_loggingfunction from thelogmoduleconfigure_logginghas an option to enable logging to sentry. in order to use it, you need to install at_utils with thesentryextra (iepip install at-utils[sentry]orpoetry add -D at-utils[sentry])apart from that, there are other modules which can be imported separately:yamlhas a whole bunch of useful and sometimes esoteric utilities for working with yaml files, built on top ofruamel.yamldev_utilshas commmand-line utilities for working with python projects, specifically made for projects that usepoetry
Package: utsessions
Introductionutsessionsallow the features of timed and unique sessions for an user
account in Django.What does it do ?utsessionsis a middleware that makes all opened user sessions unique.When an user session is opened, the user account can’t be reused
before a certain amount of time. After this time, if the user account
is reused, the first session is closed and a second one is opened.A session can also be automaticaly closed after a choosen time.This kind of behavior is useful for websites providing access to data
by unique user account.Philosophyutsessionswas written to be easily :Installed in your projects, by simply registering the middleware.Extended thanks to his design in object: each component can be removed or reused.Configured, with the settings.py file which allows different behaviors.InstallationDownload the latest packaged version athttp://code.google.com/p/django-ut-sessions/and unpack it.You can also perform a Subversion checkout to get the latest code.svn checkout http://django-ut-sessions.googlecode.com/svn/trunk/ django-ut-sessionsInside the package use this command line to install the package into
your PYTHONPATH.$> python setup.py installProject installationNow simply add this following line into yourMIDDLEWARE_CLASSESsection.utsessions.middleware.UTSessionMiddlewareIt must be after the SessionMiddleware and AuthentifcationMiddleware
like this :MIDDLEWARE_CLASSES = (
  'django.middleware.common.CommonMiddleware',
  'django.contrib.sessions.middleware.SessionMiddleware',
  'django.contrib.auth.middleware.AuthenticationMiddleware',
  'utsessions.middleware.UTSessionMiddleware',
)SettingsIf you want to define the period of a session before being logged out,
set a value in seconds toSESSION_LIMIT_SECONDSin your settings.pyA session can be released for another user before a certain amount of
time, set to default at 300 seconds. To change this value defineSESSION_TOKEN_LIMIT_SECONDS. If set to 0, no lock will be created.TestsPut utsessions into yourINSTALLED_APPSsection and run :$> python manage.py test utsessions