Saravanan666/pypi-org huggingface dataset:
Package: uibbq
Micropython iBBQMicropython support for BLE iBBQ thermometers such as those made by Inkbird.DependenciesThis driver depends onuasyncioandaioble.Note that aioble requires a build of MicroPython created after Feb 18 2021 which are the unstable 1.14 releases or 1.15.FeaturesRead temperature levels from all probesRead battery levelSet the display to either celcius or farenheit (temperature readings are in celcius)Asynchronous apiUsageConnect and read the temperaturedefhandle_data(d):print("Result:",d)asyncdefrun():ibbq=iBBQ(handle_data)awaitibbq.connect()awaitibbq.disconnect()asyncio.run(run())Read the battery levelasyncdefrun():ibbq=iBBQ(handle_data)awaitibbq.connect()print("Battery:",awaitibbq.battery_level())awaitibbq.disconnect()asyncio.run(run())Set the units on the displayasyncdefrun():ibbq=iBBQ(handle_data)awaitibbq.connect()awaitibbq.set_display_to_celcius()awaitibbq.set_display_to_farenheit()awaitibbq.disconnect()asyncio.run(run())CreditsAdafruit circuitpython iBBQandGo iBBQwere very useful for decoding the iBBQ protocol.
The Adafruit library in particular has an empirically worked formula for calculating the battery voltage.
Package: uib-vfeatures
UIB - V Featuresis a library to extract useful features of different types(morphological, texture
and color). To increase the flexibility of the library all functions can be used with masks or contours.UIB - V Features was originally developed by researchers ofUGIVIA. This research group
is centered on computer vision and artificial intelligence.All the features available are grouped in one iterator to simplify the use of this library.InstallationInstall the library is very simple with pip$ pip install uib-vfeaturesList of featuresMorphologicalSolidityConvex hull perimeterConvex hull areaBounding box areaRectangularityMinor radiusMaximum radiusFeretBreadhCircularityRoundnessFeret AngleEccenctricityCenterSphericityAspect RatioArea equivalent diameterPerimeter equivalent diameterEquivalent elipse areaCompactnessAreaConvexityShapePerimeterColorMean of the LAB channelsMean of the RGB channelsMean of the HSV channelsStandard deviation of the LAB channelsStandard deviation of the RGB channelsStandard deviation of the HSV channelsTexture featuresContrastDissimilarityHomogeneityASNEnergyCorrelationDemoWe're going to use our library with a mask image .fromuib_vfeatures.masksimportMasksfromuib_vfeaturesimportFeatures_maskasftrsimportcv2First of all we read the image from a file, then we try our features with visualizations. We only have
three features with visualization: the bounding box area, the eccentricity and the solidity.mask=cv2.imread("mask.jpg")Masks.bounding_box_area(mask,True)Masks.eccentricity(mask,True)Masks.solidity(mask,True)IteratorYou can use an iterator and implement every morpholical feature.features={}forkey,funcinfeatures.items():features[key]=func(mask)As a result we had a dicctionary of the form{'Feature_name': value}CitationIf you use this code, please cite@article{PETROVIC2020104027,
    title = {Sickle-cell disease diagnosis support selecting the most appropriate machine learning method: Towards a general and interpretable approach for cell morphology analysis from microscopy images},
    author = {Nataša Petrović and Gabriel Moyà-Alcover and Antoni Jaume-i-Capó and Manuel González-Hidalgo},
    journal = {Computers in Biology and Medicine},
    volume = {126},
    pages = {104027},
    year = {2020},
    issn = {0010-4825},
    doi = {https://doi.org/10.1016/j.compbiomed.2020.104027},
    url = {https://www.sciencedirect.com/science/article/pii/S0010482520303589}
}
Package: uic
uicSelf-check digit calculator for UIC wagon numbers.  Tools around UIC wagon
numbers. Check validity of self-check digits, calculate self-check digits.Copyright NoticeCopyright (C) 2014-2023 Daniel Jung
Contact:proggy@mailbox.orgLicenseThis program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
Package: uic920
Author:Neil AlbrockVersion:0.1.0UIC 920-14 defines numeric country codes for use in international rail data exchange.python-uic920is a self contained module that converts between these codes and the
corresponding ISO-3166-1 alpha-2 code, allowing for quick cross-referencing.
UIC country names are also supplied for reference.Installation$ pip install uic920Usage>>> from uic920 import countries
>>>
>>> countries.get(70)
Country(name=u'United Kingdom of Great Britain and Northern Ireland', iso='GB', uic='70')
>>> countries.get('es')
Country(name=u'Spain', iso='ES', uic='71')
Package: uiclasses
Powered byPython 3 Data Classes.Objects optimized for user interfaces.Methods to traverse nested dicts, convert to and from jsonModelList and ModelSet collections for robust manipulation of collections of models.No I/O happens in models.Collections can be easily cached to leverage responsive user interfaces.InstallationpipinstalluiclassesBasic UsagefromuiclassesimportModelclassBlogPost(Model):id:inttitle:strbody:strpost1=BlogPost({"id":1,"title":"title 1","body":"body 1","wimsical_extra_field":"lala land"})post2=BlogPost(id=2,title="title 2",body="body 2",extradata='stored but invisible')published=BlogPost.List([post1,post2])print(published.format_pretty_table())print(published.format_robust_table())Notes:This is not designed to be fast, when adding data to models their
types might cast and validated, which is costly.
- filtering collections by string values cause glob match
Package: uidgenerator-utils
## Installation1. Get the code: pip install uidgenerator-utils2. Add "uidgenerator" to your INSTALLED_APPS## Usage*  To use it in your model class:```from django.db import modelsfrom uidgenerator.models import UIDFieldclass Tag(models.Model):tag_id = UIDField(primary_key=True)....```*  if you want to change the default configuration, alter the parameter in settings:```UIDGENERATOR_START_TIMESTAMP = 1514736000000 #2018-1-1 0:0:0UIDGENERATOR_REGIONIDBITS = 3UIDGENERATOR_WORKERIDBITS = 10UIDGENERATOR_SEQUENCEBITS = 10UIDGENERATOR_REGIONID = 1UIDGENERATOR_WORKERID = 1```
Package: uifunc
Provides the following convenience functionsFile DialoguesDepending on the availability, these dialogues use tk, wxpython, or qt4.
If it falls back to tk, FoldersSelector multi-folder selector does not
work.@FileSelector(['py','pyc','pyx'])defopen_python_file(file_path:str)->Any:# here the file you select is in file_pathwithopen(file_path,'r')asfp:# do something@FilesSelector(['py','pyc','pyx'])defopen_python_file(file_paths:List[str])->Any:# here the file you select is in the list file_pathsforfile_pathinfile_paths:withopen(file_path,'r')asfp:# do something@FolderSelectordefopen_python_file(folder_path:str)->Any:# here the folder you select is in the list folder_pathforfile_entryinscandir(folder_path):# do something@FoldersSelectordefopen_python_file(folder_paths:List[str])->Any:# here multiple folder paths in the variable# do somethingAdditionallySaveFolderSelector# selects a single folder for savingSaveSelector# selects a single file for saving
Package: uighur-reshaper
Uighur ReshaperEnglishDescriptionUighur Reshaper is a Python tool for converting Uighur text to and from extended character sets. It provides functionality to reshape Uighur text, making it compatible with various display and processing needs.Installationpipinstalluighur_reshaperUsageTo use Uighur Reshaper in a Python script:fromshaperimportuighur_reshaperconverter=uighur_reshaper()reshaped_text=converter.basic2extend("ئۇيغۇرچە خەت")中文描述Uighur Reshaper 是一款用于将 Uighur 文本转换为和从扩展字符集转换为 Uighur 的 Python 工具。它提供了功能来重塑 Uighur 文本，使其与各种显示和处理需求兼容。安装pipinstalluighur_reshaper用法在 Python 脚本中使用 Uighur Reshaper：fromshaperimportuighur_reshaperconverter=uighur_reshaper()reshaped_text=converter.basic2extend("ئۇيغۇرچە خەت")ئۇيغۇرچەچۈشەندۈرۈشUighur Reshaper ئۇيغۇر تېكىستنى كېڭەيتىلگەن ھەرپ بەلگىلىرىگە ئايلاندۇرۇش ياكى شۇلاردىن قايتۇرۇش ئۈچۈن ئىشلىتىلىدىغان Python قورالى. بۇ قورال ئۇيغۇر تېكىستنى قايتا شەكىللەندۈرۈش ئىقتىدارىنى تەمىنلەيدۇ.ئورنىتىشpipinstalluighur_reshaperئىشلىتىشfromshaperimportuighur_reshaperconverter=uighur_reshaper()reshaped_text=converter.basic2extend("سىزنىڭ ئۇيغۇرچە تېكىستىڭىز")
Package: uiipythonapi
UII Python APIThis repository contains an implementation of a client for theVirtomize Unattended Install Images API.Build an ISOBuilding an ISO requires two steps.Create a client.
This requires the API token created in the UI (see below).importuiipythonapiasuiiapi=uii.Client("token here")Building the ISO by usingbuildon the client object.err=api.build("debian10.iso","debian","10","x86_64","hostnamehere",[{"dhcp":True,"nointernet":False,}])buildrequires the following parameters:A path to the output fileThe name of the distributionThe version number of the distributionThe architecture of the distribution (x86_64in most cases)A configuration of the network interfacesRegister an API tokenBefore using this client library, you need to register an API token under your account.
For this, login into thewebsiteand go to the "API-Token" tab.There, create a new API token by clicking "Create" and give it a name. Then click save.A new token will be created.
Copy this token, as it will be hidden, once you log out.
There, create a new API token by clicking "Create" and give it a name. Then click save.
Package: ui-map-parser
Library that helps you with storing ui elements in filesHOWTO Install:pip install ui-map-parserHOWTO Use:First you should create a folder where you will store ini files with selectors.
In this folder create common.ini file.
Now you can create elements in this file or create another ini files which will represent pages.Example of common.ini:[DEFAULT]type=xpath[SimpleXpathElement]selector=//div[SimpleCssElement]type=cssselector=div#some-idExample of how you can access this elements:fromui_map_parserimportUIMapParser# common is page by default but you can change it specifying default_page variable during initializationui_map_parser=UIMapParser(ini_files_folder)selector_type,selector=ui_map_parser.parse_element('SimpleXpathElement')# name of element is case insensitive# selector_type will be equal to "xpath", selector will be equal to "//div"You can add another page for example login.ini:[DEFAULT]type=xpath[EmailTextField]selector=//div[@id="login-panel"]/input[@id="email"][PasswordTextField]selector=//div[@id="login-panel"]/input[@id="password"]and then access it in following way:selector_type,selector=ui_map_parser.parse_element('Login.EmailTextField')You can replace repeating sections such as "//div[[@id="login-panel"]" by using "parent" property:[DEFAULT]type=xpath[LoginPanel]selector=//div[@id="login-panel"][EmailTextField]parent=Login.LoginPanelselector=/input[@id="email"][PasswordTextField]parent=Login.LoginPanelselector=/input[@id="password"]parent=Login.LoginPanelindicates that we are searching for parent element in login.ini file with name "LoginPanel".
In case if parent element located in "default_page" (common.ini by default) you can skip this and use without specifying pageparent=LoginPanel.Important note: you can use parent only on elements with same typeTo work with more complex elements templates are supported, you can specify template in your selector:[RegionButtonTemplate]type=xpathselector=//input[@id="region-%%region%%-button"]and then use it like:selector_type,selector=ui_map_parser.parse_element('Login.RegionButtonTemplate',template={'region':'na'})# selector will be equal to "//input[@id="region-na-button"]"Also you can specify selectors for different languages:[SomeElement]type=xpathselector=//diven=[text()="some en text"]es=[text()="some es text"]and then specify language when initializing UIMapParser:ui_map_parser=UIMapParser(ini_files_folder,language='en')selector_type,selector=ui_map_parser.parse_element('SomeElement')# selector will be equal to "//div[text()="some en text"]"
Package: uims-api
uims-apiThis is a Python library which scrapeshttps://uims.cuchd.infor account information. Our goal is to wrap
commonly used web functionality as easy-to-use methods.Installation$ pip install uims-apiRunning locally:You need to have Python 3 installed on your system. Python 2 might work but we won't provide any
support for it. You also need to have the command-line version forgitinstalled, otherwise you could directly download and extract the ZIP file of this repository and follow
along.Open up a terminal and run:
(The$sign indicates the commands are to be run in a shell. It is not supposed to be a part of
the command)$ git clone https://github.com/cu-unofficial/uims-api
$ cd uims-api
$ pip install -e .Usage Examplesfromuims_apiimportSessionUIMS# replace these with your credentialsmy_account=SessionUIMS("YourUID","YourPass")# `my_acc.attendance` returns attendance info for available subjects in JSON formatsubjects=my_account.attendance# display attendance for each subjectforsubjectinsubjects:subject_attendance="{}-{}%".format(subject["Title"],subject["TotalPercentage"])print(subject_attendance)Available MethodsMethodsDescriptionfull_namereturns user's full nameattendancereturns user's minimal attendancefull_attendancereturns user's attendance including day-wise marked report history for each subjecttimetablereturns user's timetableavailable_sessionsreturns user's available sessionsmarks(session)returns marks for the session provided as argumentDocumentationComing soon?ContributingLet's keep this as minimal as possible usingrequestsandBeatifulSouplibraries.Relying on browser automation tools (selenium) could work but isn't a very portable solution. It is
slower and takes up more processing power. Also, setting up such tools could end up being a nightmare
when attempting them to run on headless devices (such as a Raspberry Pi).That said, if you know Python, any pull requests to enhance capabilities or cover up more end points that make use ofrequestsandBeautifulSouplibraries are most welcome! Otherwise if you don't know Python, you could help me complete my assignments!
Package: uinspect
uinspectThis is a small Python package that offers fast runtime inspection similar to that ofinspectmodule in Python. To install, simply dopip install uinspectbenchmarkThe following benchmark is generated from running the scripts inbenchmark/.Task nameuinspect method1uinspect method2inspectspeedupCost (us/op)Source locationuinspect.get_location()- 0.21suinspect.Frame()- 0.48s16.43s79.7x0.21 us/opLocalsuinspect.Frame().locals- 0.99sN/A0.82s0.82x0.99 us/opLocals diffuinspect.Frame(2).collect_vars()- 2.94sN/A1.20s0.41x2.94 us/opFrame walkinguinspect.FrameWalker({}).get_location()- 1.45sN/A52.27s35.9x1.46 us/opIt turns out that theuinspectdoes not speed up the local variable calculation. This is because we have to run an expensive Python C API call regardless of whether it’suinspectorinspect. As a result, the overhead is caused by the fact thatuinspectneeds to convert Python object to C++ object.The lesson is to useinspectmodule for any local variables related manipulation since it’s faster, but useuinspectto obtain source location.install from sourcegit clone https://github.com/Kuree/uinspect.git
cd uinspect
git submodule update --init
python setup.py install
Package: uint
uintFixed-width integer and calculation for Python$ pip install uintFixed-width integers for Pythonuint provides two classes:UintandInt. They are calculated likeintbut is fixed-width so they behave like ones that you're familiar with ... like in C language.In [1]: from uint import Uint, Int

In [2]: u, i = Uint(0xff, 8), Int(0xff, 8)

In [3]: u
Out[3]: <uint8, value=255>

In [4]: i
Out[4]: <int8, value=-1>

In [5]: u << 2 >> 1
Out[5]: <uint8, value=126>

In [6]: i << 2 >> 1
Out[6]: <int8, value=-2>Of course they overflows when you do like:In [1]: from uint import Uint, Int

In [2]: u, i = Uint(0xff, 8), Int(0x7f, 8)

In [3]: u, i
Out[3]: (<uint8, value=255>, <int8, value=127>)

In [4]: u+1, i+1
Out[4]: (<uint8, value=0>, <int8, value=-128>)Register with multiple fields insideThe original purpose of this package is to reduce labor of calculating "register values" in several MCUs and SoCs. Seeexamplesdirectory for detailed usage.In [1]: from uint import Register

In [2]: reg = Register('reg')

In [3]: reg[15:8] = 'f1'

In [4]: reg[7:0] = 'f2'

In [5]: reg['f1'] = 0x5A

In [6]: reg['f2'] = 0x0F

In [7]: hex(reg.encode())
Out[7]: '0x5a0f'

In [8]: reg.decode(0x1234)

In [9]: reg['f1'].value.wire.hex
Out[9]: "8'h12"

In [10]: reg['f2'].value.wire.hex
Out[10]: "8'h34"
Package: uio-exoplanet-group
uio-exoplanet-groupUiO exoplanet group tools for data processing. Created forCentre for Earth Evolution and Dynamicsand its successorCenter for Planetary Habitability.InstallingFrom sourcesFrom PyPIModulesDataDocumentationAPIwikiTestsInstallingFrom sources$cd/path/to/uio-exoplanet-group/
$pipinstall./Add an-eargument, if you intend to modify the original sources.You can also build a wheel and install/distribute that instead:$cd/path/to/uio-exoplanet-group/
$python-mbuild
$pipinstall./dist/uio_exoplanet_group-0.1.0-py3-none-any.whlFrom PyPILater the package will also be published at PyPI, so it could be installed with pip.Modulesutility - reusable/common utility modules;tasks - special module for performing particular tasks.DataWherever you see a reference to some data files in documentation, examples, comments or anywhere else, for example some function taking a path like./data/systems-528n.pkl, check thedatafolder - chances are, that file will be provided there.DocumentationThere are two different pieces of documentation.APILocated indocumentation. This is the package API documentation, which is publishedhere.It is generated withpdoc:$pipinstallpdoc

$cd/path/to/uio-exoplanet-group
$rm-r./documentation/_deploy/*

$UIO_PACKAGE_VERSION=$(gitrev-parse--shortHEAD)pdoc./src/uio/utility./src/uio/tasks\--template-directory./documentation/_templates/\--edit-url="uio=https://github.com/retifrav/uio-exoplanet-group/blob/master/src/uio/"\--output-directory./documentation/_deploy/
$cp./documentation/{favicon.ico,phab.jpg}./documentation/_deploy/For now it's a blunt deployment of generated HTML, but later it probably will be better to rely on GitHub Actions (if it won't spend too much of free quota) by customizingthis workflow.wikiLocated inwiki. This is general purpose / technical manuals, articles, notes, etc: how to install/build various tools, dependencies, how to set-up environments and so on.It is meant to be published somewhere else, but for now it will do being a part of repository. GitHub wikis could've been an option, but those are still quite bad in terms of organizing the content.TestsTo run tests:$pipinstallpytest
$python-mpytest./src/uio/tests/*[^_*].py
Package: uipath-scaffold
UiPath-ScaffoldScaffolds out UiPath projects using one of the selected Frameworks.
Generates project.json with project name and description.
Adds sequences as needed.Installation:pip install uipath_scaffoldUsagepython -m uipath_scaffoldScaffolds a new project after allowing you to choose the generator you would like.Note:you must install a generator before this program will do anything
Package: uipcalc
Universal (IPv4/IPv6) CIDR calculatorSource available at:http://bitbucket.org/asenci/uipcalc/Please report any issues at:http://bitbucket.org/asenci/uipcalc/issues/Installing:$ pip install uipcalcUsage:uipcalc [-h] address

Universal (IPv4/IPv6) IP address and netmask calculator

positional arguments:
  address     IP address with netmask in CIDR or dotted-decimal notation

optional arguments:
  -h, --help  show this help message and exitExamples:$ uipcalc 192.0.2.4/12
Number of addresses:  1048576

Network:    192.0.0.0
Broadcast:  192.15.255.255
Netmask:    255.240.0.0 (12)

Network:    11000000.0000 0000.00000000.00000000
Broadcast:  11000000.0000 1111.11111111.11111111
Netmask:    11111111.1111 0000.00000000.00000000

$ uipcalc 192.0.2.4/255.255.255.192
Number of addresses:  64

Network:    192.0.2.0
Broadcast:  192.0.2.63
Netmask:    255.255.255.192 (26)

Network:    11000000.00000000.00000010.00 000000
Broadcast:  11000000.00000000.00000010.00 111111
Netmask:    11111111.11111111.11111111.11 000000

$ uipcalc 2001:DB8::/48
Number of addresses:  1208925819614629174706176

Network:    2001:0db8:0000:0000:0000:0000:0000:0000
Broadcast:  2001:0db8:0000:ffff:ffff:ffff:ffff:ffff
Netmask:    ffff:ffff:ffff:0000:0000:0000:0000:0000 (48)

Network:    0010000000000001.0000110110111000.0000000000000000. 0000000000000000.0000000000000000.0000000000000000.0000000000000000.0000000000000000
Broadcast:  0010000000000001.0000110110111000.0000000000000000. 1111111111111111.1111111111111111.1111111111111111.1111111111111111.1111111111111111
Netmask:    1111111111111111.1111111111111111.1111111111111111. 0000000000000000.0000000000000000.0000000000000000.0000000000000000.0000000000000000

$ uipcalc 2001:DB8::/60
Number of addresses:  295147905179352825856

Network:    2001:0db8:0000:0000:0000:0000:0000:0000
Broadcast:  2001:0db8:0000:000f:ffff:ffff:ffff:ffff
Netmask:    ffff:ffff:ffff:fff0:0000:0000:0000:0000 (60)

Network:    0010000000000001.0000110110111000.0000000000000000.000000000000 0000.0000000000000000.0000000000000000.0000000000000000.0000000000000000
Broadcast:  0010000000000001.0000110110111000.0000000000000000.000000000000 1111.1111111111111111.1111111111111111.1111111111111111.1111111111111111
Netmask:    1111111111111111.1111111111111111.1111111111111111.111111111111 0000.0000000000000000.0000000000000000.0000000000000000.0000000000000000Requirements:Python 2 >= 2.7 or Python 3 >= 3.4ipaddress (for Python < 3.3)sixLicense:Licensed under ISC license.SeeLICENSE.txtfile for details.
Package: uiro
le Web framework for Python.Uiro provides a foundation to create a pluggable Web application.For creating a database-driven web application.Providing basict to create pluggable application.Designed to make user enable to use a lot of great WSGI libraries.A simple Uiro application will be like this.fromwsgiref.simple_serverimportmake_serverfrommatchaimportMatching,make_wsgi_appfromuiro.controllerimportBaseControllerfromuiro.viewimportview_configclassController(BaseController):@view_config(method='get')defget_view(self,request,context):return'Hello{name}!'.format(**request.matched_dict)matching=Matching('/hello/{name}',Controller())if__name__=='__main__':app=make_wsgi_app(matching)server=make_server('0.0.0.0',8888,app)server.serve_forever()And setup.pipinstalluiropythonhello.pyNow, you can visithttp://localhost:8888/hello/worldin a browser, you will see the text ‘Hello world!’.Next stepAbove example is too tiny to create a common-sensible Web application.
You can seeUiro documentationand
learn more about UiroDependentsUiro is Deciding necessary packages to avoid version collisions:webob==1.2.3gearbox==0.0.2matcha==0.3mako==0.9.0SQLAlchemy==0.8.3To use these packages, Uiro (and it’s third party app) users can
be free by version collisions.WarningUiro 0.2 is still Pre-alpha, not for production usage.ResourcesRepositoryPyPIDocs.Changes0.2 (2013-11-8)Feature handling Resources.Entry point to apply predicates/wrappers by users to view_configFixed Controller to consider primaries of viewsChanged depending SQLAlchemy version.0.1 (2013-10-29)Initial release.Basic request/response handlingController/ViewConfiguation by view_config decoratorCreating WSGI application by matcha’s matching object.Basic support for using mako template.Basic support for SQLAlchemy.Necessary commandscreate: Starting for project using scaffolding.initdb: Creating tables to databases.serve: Running your application.Automatically creating of apps publishing static files.