Saravanan666/pypi-org huggingface dataset:
Package: ucolor
UltraCOLOR library v0.2.0Table of Contents1. Description2. Features2.1 Does not require dependencies2.2 Lightweight2.3 Easy to use2.4 All major color spaces are supported2.5 Accurate color conversion3. Installation3.1 Install prebuilt package3.2 From source code4. Supported Color Spaces5. Release history6. Found a bug or want to contribute?1. DescriptionUltraCOLOR is a Python library that provides functionality for working with different color spaces. It supports RGBA, Hex, HSLA and HSVA color spaces, allowing for accurate color conversion. The library does not require any third-party dependencies and only utilizes the Python standard library. With UltraCOLOR, you can easily convert colors between different color spaces and perform various operations on them.2. Features2.1 Does not require dependenciesThis librarydoes not requirethird party dependencies:onlythe Python >= 3.8 is required2.2 LightweightUltraCOLOR is a lightweight library, making it a perfect choice for projects where performance is a key factor.2.3 Easy to useThe library provides a simple and intuitive API, making it easy to perform complex color operations with just a few lines of code.2.4 All major color spaces are supportedAll major color spaces are supported: RGB, Hex, HSL and HSV.2.5 Accurate color conversionThis is achieved by using the built-in typeDecimalfromucolorimportColorRGBA,convertfoo=ColorRGBA(33,33,33)bar=convert.rgba_to_hsla(foo)baz=convert.hsla_to_rgba(bar)print(foo==baz)# True3. Installation3.1 Install prebuilt package$pip3installucolor3.2 From source codeNOTE: when installing this way you get the latest version of the library, it may contain bugs or not work at all.$pip3installgit+https://notabug.org/Aserogl/ucolor.git@main4. Supported Color SpacesRGBAHexHSLAHSVA5. Release historyv0.2.0 (current)AddedColor space HSVASupport for Hex short formatChangedHex color space format: long - #FFFFFF, short - #FFF (no compatibility with v0.1.0)Builtin HSLA green colorv0.1.0First version6. Found a bug or want to contribute?If you found a bug, please open an issuehere. If you would like to contribute to the development of the library, you can make a merge requesthere
Package: ucom_eli
UCOM-ELIintroductionUCOM-ELI is an ergonomic launcher interface. It is launchers displayed
as buttons with icons or text. Launchers can be configured by a Markdown
list of the following form using icon and command specifications:- launchers
   - <launcher 1 name>
      - command: <launcher 1 command>
      - icon: <launcher 1 icon>
   - <launcher 2 name>
      - command: <launcher 2 command>
      - icon: <launcher 2 icon>
   - <launcher 3 name>
      - command: <launcher 3 command>Launchers can be configured by a Markdown list of the following form
usingdesktop
entryspecifications:- launchers
   - <launcher name>
      - desktop entry: <.desktop file path>An example configuration file is included, which can be used in the
following way:./ucom-eli.py --configuration="configuration_example.md"
Package: ucommander
uCommander - The Micro CommanderThis library simplifies interfacing with code written on
a microprocessor like an Arduino, Teensy, or similar devices
via serial communication.The Python code is designed to work with theuCommander Arduino library.Basic CLI UsageFirst, install the ucommander Python library with pip, ideally in a
virtual environment.$ cd myproject
$ python -m venv venv
$ pip install ucommanderAfter you have theucommanderlibrary installed in your Python environment,
ensure your microprocessor is attached to your host and determine what
serial port you will use to communicate with it.Thelistportscommand can help with this.$ python -m ucommander listports
Attempting to enumerate serial ports...
/dev/cu.SOC - n/a
/dev/cu.usbmodem - USB SerialOnce you know the serial port, run the discover command to learn which
commands you can run and what arguments they require.$ python -m ucommander -p /dev/cu.usbmodem discover
Available commands:
 ledIfPi        FLOAT(4)Finally, run the commands, providing any required arguments after the command
name.$ python -m ucommander -p /dev/cu.usbmodem ledIfPi 3.14
$ python -m ucommander -p /dev/cu.usbmodem ledIfPi 3.24Copyright (C) 2019 Mark A Kendrick
Package: ucon
uconPronounced:yoo · cahnBackgroundNumbers are particularly helpful when describing quantities of some thing (say, 42 ice cream cones 🍦).
They are also useful when describing characteristics of a thing such as it's weight or volume.
Being able to describe a thing by measurements of its defining features and even monitoring said features over time, is foundational to developing an understanding of how the thing works in the world.
"Units" is the general term for those quantifying descriptors that characterize an object.
Specific units include those likegramsfor weight,literfor volume, and even thejiffyfor time.
With means to refer to an object's physical characteristics, their extent can be communicated using a scale to answer the question:"how many of a given unit accurately describe that aspect of the object?".IntroductionSince themetric scaleis fairly ubiquitous and straightfowrward to count with (being base 10 and all..),uconuses the Metric System as the basis for measurement thoughbinary prefixesare also supported.
The crux of this tiny library is to provide abstractions that simplify the answering of questions like:"If given two milliliters of bromine (liquid Br2), how many grams of bromine does one have?"To best answer this question, we turn to an age-old technique (dimensional analysis) which essentially allows for the solution to be written as a product of ratios.2 mL bromine | 3.119 g bromine
--------------x-----------------  #=> 6.238 g bromine
      1       |  1 mL bromineSetupEnsurenoxis installed.pip install noxRunnox -s uconto installuconand run tests.UsageThe above calculation can be achieved using types defined in theuconmodule.two_milliliters_bromine=Number(unit=Units.liter,scale=Scale.milli,quantity=2)bromine_density=Ratio(numerator=Number(unit=Units.gram,quantity=3.119)denominator=Number(unit=Units.liter,scale=Scale.milli))two_milliliters_bromine*bromine_density#=> <6.238 gram>One can also arbitrarily change scale:answer=two_milliliters_bromine*bromine_density#=> <6.238 gram>answer.to(Scale.milli)#=> <6238.0 milligram>answer.to(Scale.kibi)#=> <0.006091796875 kibigram>
Package: uconf
UConf is a small tool aiming to provide simple handling of configuration files for an heterogeneous
computer set.Its key concepts are:Abstract host-specific config to common features (server, relay, …)Host-specific configuration may range from a single-line change to a whole file rewriteConfiguration files are modified in place, not in the source - versionned - repository.In other words, it provides the following features:Map each host to a set of categories (e.g laptop, server, dev, remote, …)For each category (or combination thereof), list the files to install and their destinationsFor each file, conditionnally include some parts depending on the active categoriesUsageConfigurationFirst, create the folder structure:$cd~/conf$mkdir.uconf$touch.uconf/configThen, set a few settings:# .uconf/config[core]# Install files to my home foldertarget=~/[categories]# The host names "myhostname" belongs to the 'shell' and 'x11' categoriesmyhostname:shell x11[files]# Hosts in the 'shell' category should install# the 'shell/gitconfig' and 'ssh/config' filesshell:shell/gitconfig ssh/config# Hosts in the 'shell' but not the 'work' category should install# our authorized_keysshell && !work:ssh/authorized_keys[actions]# Files located in ~/conf/ssh are parsed and written to ~/.ssh/ssh/*=parse destdir=".ssh/"# shell/gitconfig goes to ~/.gitconfigshell/gitconfig=parse destdir="~/.gitconfig"FilesThe heart ofuconfis its file processing engine.On the surface, it is a simple preprocessor that will parse files
based on the categories defined in the.uconf/configfile.In other words, if the fileshell/gitconfigcontains:[user]#@if workname=Raphaël Barroisemail=raphael.barrois@example.org#@elsename=Xelnoremail=raphael.barrois@polytechnique.org#@endifAnd is build on themyhostnamefrom the above example, the output will be:# ~/.gitconfig[user]name=Xelnoremail=raphael.barrois@polytechnique.orgCommandsOnce your configuration folder is set up, basic commands will be:$cd~/conf$uconfmakeBuildingfileshell/gitconfig(FileProcessingAction)Buildingfilessh/config(FileProcessingAction)Buildingfilessh/authorized_keys(FileProcessingAction)If you have modified a file, just backport its changes:$cd~/conf$uconfbackshell/gitconfigBackportingfileshell/gitconfig(FileProcessingAction)This will update the source file (~/conf/shell/gitconfigin this example)
to incorporate the changes from the destination file (here,~/.gitconfig).This works even if the file contained branches, i.e if the source file was:[user]#@if workname=Raphaël Barroisemail=raphael.barrois@example.org#@elsename=Xelnoremail=raphael.barrois@polytechnique.org#@endifAnd the destination (on a non-work machine) was modified to read:[user]name=Raphaël "Xelnor" Barroisemail=raphael.barrois@polytechnique.orgThen the result of runninguconf back shell/gitconfigwill be:[user]#@if workname=Raphaël Barroisemail=raphael.barrois@example.org#@elsename=Raphaël "Xelnor" Barroisemail=raphael.barrois@polytechnique.org#@endif
Package: uconfig
uconfig is a simple parser for unix style configurations written in pure python.Sorry for the lack of documentation.Examplesexample.conffoo bar;
foo {
   foobar Hello World;
}$ python>>>importuconfig>>>cfg=uconfig.ExtendedConfig()>>>cfg.load("example.conf")>>>cfg.get_value("foo")'bar'>>>cfg["foo"].get_value("foobar")'Hello World'
Package: ucopy
Union copier:Default copy behavior offer to skip or replace files which names already existed in the target directory
This script allowed to copy files from one or more directories at once to target directory with union mode;
if a file with same name present in the destination directory, then the file will be renamed with a unique suffixNote:symlinks are ignoredInstallationpython3 -m pip install --user ucopyUsageDefinition: ucopy sourcepath  destpath  [-e allowed_extensions] or [-x excluded_extensions] [-v|--verbose]Example 1: copy only png files, show progress logucopy /src/path/ /dest/path/ -e png --verboseExample 2: copy files with extensions .png .jpg .txtucopy /src/path/ /dest/path/ -e .png,.jpg,.txtExample 3: copy all files, but exclude ones with .zip and .gz extensionsucopy /src/path/ /dest/path/ -x zip,tar.gzExample 4: copy all files without restrictionucopy /src/path/ /dest/path/ -e *Example 5: copy from multiple source directories matched by glob patternucopy /src/path/*/some/*/ /dest/path/Note: You can specify file extensions with or without dots
Package: ucord
ucordUcord is a discord library build using threads for maximum performanceBot exampleimportucordclient=ucord.Client()client.set_token("token")client.run()@client.on_readydefon_ready(client):print(f"Logged in as{client.user}")@client.slash_command(name="ping",description="Ping command")defping(ctx):embed=ucord.Embed(title="Pong!",description="Pong!")ctx.reply("Bot is online",embed=embed)
Package: u-coreutils
u-coreutilsGNU coreutils implementation with Python 3.8Tools✔ cat✔ echo✔ head✔ mkdir✔ false✔ base64✔ factorINSTALLpipinstall-Uu_coreutilsUSEu-cata.txt
u-echo-e-n'Hello,World!\n'u-head-n5a.txt
u-mkdir-p-va/b/c/d
u-false
u-base64-w100a.txt
u-factor10
Package: ucp9
UCP9 - Unicode To CP932 TranscoderA small python package which helps transcode cp932-incompatible kanji characters to their cp932-compatible equivalentsThis module provides a transcoding service:FROM: An arbitrary unicode character.TO: A cp932-compatible, semantically similar but differently encoded version of the same character.Usage:import ucp9
    ucp9.convert(string, option)[string]: a string that contains cp932-incompatible characters[option]: Option to handle cp932-inconvertible characters."keep": keep the cp932-inconvertible characters. NOTE: the return string WON'T be cp932-compatible."remove": remove the cp932-inconvertible characters."replace": (Default behaviour) replace the cp932-inconvertible characters with "?"Currently supported unicode character blocks:Kangxi RadicalsPrint Standard CharacterOld typeCJK Radicals SupplementKatakana Phonetic ExtensionsCJK Unified IdeographsCJK Compatibility IdeographsCJK Compatibility Ideographs SupplementsNote:cp932-incompatible: characters which cannot encode to cp932 using string.encode(), but could potentially have equivalent cp932-encodable versions of themselves.cp932-inconvertible: characters which cannot encode to cp932, and doesn't have a cp932-encodable version.
Package: ucpbased
UCP-BasedThis is the first version of UCP-based library.Installationpip install ucpbasedUsagefromucpbased.ucpimportucpucp=ucp()uaw=ucp.input_UAW(0,0,5)uucw=ucp.input_UUCW(0,29,0)uucp=ucp.get_UUCP()tcf=ucp.input_TFactor(3,3,3,3,0,3,3,0,3,3,3,0,3)ecf=ucp.input_EFactor(3,3,3,3,3,3,0,0)useCasePoints=ucp.get_UCP()mh=ucp.get_MH(28)print('UAW     :{:10.2f}'.format(uaw))print('UUCW    :{:10.2f}'.format(uucw))print('UUCP    :{:10.2f}'.format(uucp))print('TFactor :{:10.2f}'.format(tcf))print('EFactor :{:10.2f}'.format(ecf))print('UCP     :{:10.2f}'.format(useCasePoints))print('MH      :{:10.2f}'.format(mh))Expected output:UAW     :      15.00
UUCW    :     290.00
UUCP    :     305.00
TFactor :       0.93
EFactor :       0.81
UCP     :     231.17
MH      :    6472.89
Package: uc-pidfile
uc_pidfileA set of classes and functions for managing pidfile.It is part of the Unicon project.https://unicon.10k.meUsing:importuc_pidfileFunctions:process_exists(pid)Checks if the process is running.
Returns True if process exists and False if not.read_pid(filename)Reads pid from file.If the file exists and is successfully read,
then returns pid otherwise returns None.May raise exceptions:PermissionErrorValueErrorvalidate_pidfile(filename)Checks the contents of pidfiles for an integer.Returns True if valid or False if not.May raise exceptions:FileNotFoundErrorPermissionErroris_running(filename)Returns True if the process is running, otherwise returns False.It will also be considered that the process is started even if there is no access to the file.
And it will be considered that the process is not started if there is no file or the file contains incorrect data.Classes:PidFile(filename, overwrite=False)Creates pid file.If the file already exists and overwrite = True it will be overwritten. But if overwrite = false then this will throw an exception FileExistsError.May raise exceptions:FileExistsErrorPermissionErrorFileNotFoundError (If the target directory does not exist, for example.)
Package: ucr
Universal Character Recognizer (UCR) is an Open Source, Easy to use Python library to build Production Ready OCR applications with its highly Intuitive,  Modular & Extensible API design and off-the-shelfPretrained Modelsfor over25 languages.Read UCR Documentation onucr.docyard.aiFeatures•Setup•Usage•AcknowledgementDemoFor details, clickhere!FeaturesSupports SOTA Text Detection and Recognition modelsBuilt on top of Pytorch and Pytorch LightningSupports over 25 languagesModel Zoo contains 27 Pretrained Models across 25 languagesModular Design Language allows Pick and Choose of different componentsEasily extensible with Custom Components and attributesHydra config enables Rapid Prototyping with multiple configurationsSupport for Packaging, Logging and Deployment tools straight out of the boxNote: Some features are still in active development and might not be available.SetupInstallationRequire python version >= 3.6.2, install withpip(recommended)Prerequisites:Install compatible version of Pytorch and torchvision fromofficial repository.Installation:Install the latest stable version of UCR:pipinstall-Uucr[Optional]Test InstallationRun dummy tests!ucrtest# Optional: Add -l/--lang='language_id' to test on particular language!ucrtest-l='en_number'UsageWorkflowExecution flow of UCR is displayed above. Broadly it can be divided into 4 sub-parts:Input (image/folder path or web address) is fed into the Detection model which outputs bounding box coordinates of all the text boxes.The detected boxes are then checked for Orientation and corrected accordingly.Next, Recognition model runs on the corrected text boxes. It returns bounding box information and OCR output.Lastly, an optional Post Processing module is executed to improve/modify the results.Quick StartThe following code snippet shows how to get started with UCR library.fromucrimportUCR# initializationocr=UCR(lang="en_number",device="cpu")# run predictionresult=ocr.predict('input_path',output='output_path')# for saving annotated imageresult=ocr.predict('input_path',output='output_path',save_image=True)For complete list of arguments, referArgument ListModel ZooA collection of pretrained models for detection, classification and recognition processes is presenthere!These models can be useful for out-of-the-box inference on over 25 languages.AcknowledgementSubstantial part of the UCR library is either inspired or inherited from thePaddleOCRlibrary. Wherever possible the repository has been ported from PaddlePaddle to PyTorch framework including the direct translation of model parameters.
Also, a big thanks toClova AI, for open sourcing their testing script and pretrained models (CRAFT).LicenseApache License 2.0
Package: ucron
uCron 是一个微型的执行定时任务（Crontab）和任务队列（Task queue）的小工具，易于安装和运行，配置简单且依赖少。特别地，如果你使用 Windows，没有 Crontab，这个小工具能为你提供类似的功能。当然它也可在 Linux 上工作。安装$pipinstallucron程序依赖 bottle，在 Win10 上，Python2.7 和 3.5+ 测试通过，在 Archlinux 上，Python2.7 和 3.3+ 测试通过。使用$python-mucron这是最简单的使用方法，使用浏览器访问http://127.0.0.1:8089/将会看到一个简单的欢迎页面。运行 python -m ucron -h 可查看全部可用参数，简单说明如下：--host    指定程序运行的 IP，默认为 127.0.0.1。
--port    指定程序运行的端口，默认为 8089。
--cron    指定定时任务的配置文件，格式见 ucron.tab 或下文。
--dbn     指定文件用于 SQLite，默认为 :memory:，即内存模式。
--log     指定日志文件，默认为当前目录下的 ucron.log。
--max     指定日志文件的最大行数，默认为 10240。
--utc     指定时区，默认为 +8。
--quiet   指定 bottle 的 quiet 选项，默认为 False。
--reload  指定是否自动重载 ucron.tab，默认为 False。
--tab     指定清理日志文件的执行周期，默认为每天早上 5 点。
--add     增加队列，需指定端口、队列名和类型。
--cls     清空队列，需指定端口和队列名。
--del     删除队列，需指定端口和队列名。
--list    列出全部队列和它们的剩余长度，需指定端口。请注意，当 SQLite 使用内存模式，即 –dbn 使用默认值时，程序关闭时会丢失队列。典型的使用方法可能是这样：$python-mucron--cronucron.tab这会读取当前目录下的 ucron.tab 增加定时任务。指定的文件可使用相对或绝对路径。定时任务*/10 * * * * https://httpbin.org/post hello=world&text=test POST这是 ucron.tab 中的一行，它使用和 Crontab 类似的格式，每行为一个任务，每个任务有四个部分，使用空格分隔，最后两个部分均为可选。第一部分是执行周期，使用和标准 Crontab 一致的格式；第二部分是要访问的地址；第三部分是提供给地址的数据，使用 key1=value1&key2=value2 的格式；最后一部分是访问方法，可为 GET 或 POST，默认为 GET。第三、四部分均为可选，也可忽略第三部分直接提供第四部分。请注意各个部分使用空格来分隔，也正因为如此，所以 URL 或参数中不能含有空格。读取配置时会忽略以 # 开始的行。如果在运行中修改了该配置文件，并且没有指定 –reload 为真，那么需要访问http://127.0.0.1:8089/reload以使配置生效（假设使用了默认端口 8089，下同）。还有一点很重要，请使用 UTF-8 编码保存 ucron.tab。如果你不熟悉 Crontab 格式，这个在线Crontab 编辑器可能会有帮助。任务队列要添加任务到队列中很简单：fromucronimportadd_taskbody={'page':1,'text':'测试'}resp=add_task('http://setq.me',body,method='GET')print(resp)add_task 方法接受的参数有 path、args、method、name、port、host 和 json，其中只有 path 是必需的，其他均为可选参数。path 是要访问的地址，args 为发送给地址的数据，接受一个字典，默认为空字符串，method 可为 GET 或 POST，默认为 GET。name 是队列名，默认为 default_seq，这个参数在下面会有详细说明。port 默认为 8089，host 默认为 127.0.0.1。在最新版本中，你还可以把字典传给 add_task 的 json 参数，此时会把 Content-Type header 设置为 application/json 并发送 POST 请求。队列类型uCron 中的任务队列有顺序队列和并发队列两种类型。程序在运行的时候会新建两个默认的队列，default_seq 和 default_con，分别对应着顺序队列和并发队列。你也可以自己增加队列并在 add_task 中指定 name 参数。有三种方法创建队列：$python-mucron--add8089bot_seqseq这会向 8089 端口运行着的 uCron 增加一个名为 bot_seq 的顺序（seq）队列。fromucronimportadd_queueadd_queue('bot_con','con',port='8089')这会向 8089 端口运行着的 uCron 增加一个名为 bot_con 的并发（con）队列。向新建的队列添加任务：fromucronimportadd_taskforiinrange(500):# 顺序队列body={'page':i}add_task('http://setq.me',body,name='bot_seq')foriinrange(500):# 并发队列body={'page':i}add_task('http://setq.me',body,name='bot_con')同样也有三种方法删除队列：$python-mucron--del8089bot_seq这会删除刚才增加的 bot_seq 队列。fromucronimportdel_queuedel_queue('bot_con',port='8089')这会删除刚才增加的 bot_con 队列。第二种方法为代码在运行时临时增删队列提供了便利。第三种方法是使用浏览器访问http://127.0.0.1:8089/进行操作。提醒一下，并发队列不保证严格有序。add_task、add_queue 和 del_queue 均定义在 ucron/ext.py 中，它们都很简单，请查看以了解更多详情。杂项这个小工具产生于我写饭否机器人的过程中，由于当时不知道已经存在很多优秀的类似工具，如schedule和Celery，所以重复造了轮子，但造轮子还是挺开心的。最后，感谢使用，若有疑问或建议请 Email 联系我。
Package: ucs
Implements the CAM02-UCS (Luo et al. (2006), “Uniform Colour Spaces Based on CIECAM02 Colour Appearance Model”) forward transform symbolically, using Theano.See also:CIECAM02 and Its Recent Developments.The forward transform is symbolically differentiable in Theano and it may be approximately inverted, subject to gamut boundaries, by constrained function minimization (e.g. projected gradient descent orL-BFGS-B).Package contentsconstants.pycontains constants needed by CAM02-UCS and others which are merely useful.functions.pycontains compiled Theano functions, as well as NumPy equivalents of other symbolic functions. It also containsucs_to_srgb()anducs_to_srgb_b(), which approximately invert the CAM02-UCS forward transform with L-BFGS-B.symbolic.pyimplements the forward transform symbolically in Theano. The functions therein can be used to construct custom auto-differentiable loss functions to be subject to optimization.
Package: ucsc-cse40
UCSC CSE 40Materials for UCSC's CSE 40 course taught by Dr. Lise Getoor and managed by theLINQS lab.
This package is available on PyPi atucsc-cse40.DependenciesThis package is meant to be the sole direct dependency for CSE 40 students.
Instead of specifying each dependency for students, this package defines the necessary dependencies to be installed along with it.
So if you install this package (e.g. via pip), then it will also install all the necessary Python package dependencies for the course.Working with the AutograderAll interfacing with the autograder is done via theautograder-pypackage.
You should refer tothe documentationfor information on how to use it.
Package: ucscgenome
The package allows to easily download and use genomic data at UCSC.
This is essentially a thin “caching” wrapper around thetwobitreaderlibrary.InstallationThe simplest way to install the package is viaeasy_installorpip:$ easy_install ucscgenomeDependenciestwobitreaderUsageThe primary usage example is the following:from ucscgenome import Genome
g = Genome('sacCer2')
print str(g['chrI'][0:100])On the second line of the above example the following steps are performed:The localcache directoryis searched for the pre-downloaded genome data. If the data is readily available, it is opened for reading.If there is not cached version of thesacCer2genome, it is downloaded from the UCSC site to the cache directory.The local data is downloaded and stored using the compact2bitformat.You can configure the details of the procedure by providing additional options to theGenomeconstructor:g = Genome('hg19', cache_dir='my_genomes', use_web=False)which means that the genome data is to be searched for in the./my_genomesdirectory and in no case should a download be attempted, or:g = Genome('hg19', source_url_pattern='http://my.site.com/genomes/%(id)s/%(id)s.2bit')which means that the genomic data is to be downloaded from your own server rather than UCSD’s.See alsoReport issues and submit fixes at Github:https://github.com/konstantint/ucscgenomeRelated packageshttp://pyucsc.readthedocs.org/https://pypi.python.org/pypi/twobitreaderhttps://pypi.python.org/pypi/pyfastahttps://pypi.python.org/pypi/cruzdbhttps://pypi.python.org/pypi/pyliftover