Saravanan666/pypi-org huggingface dataset:
Package: digit-converter
IntroductionAbstractA cool tool for digits converting.It could be applied in Genetic Algorithm to encode the solutions.KeywordsConverter, DigitsContentClassesBaseConverter: .tonumber(lst), .tolist(num, L)
DigitConverter
BinaryConverter: subclass of DigitConverter
IntegerConverter: only convert integer
IntervalConverter: subclass of IntegerConverter, converts a number in an interval to an integer what is the index of the number then applies IntegerConverterObjectscolorConverter: instance of BinaryConverter, transform a number (0~255) to a 8-length list of 0-1s
unitIntervalConverter: instance of IntervalConverter, transform a number in interval [0,1] to list of 0-1sGrammarimportimport digit_converterBasic usageCodesprint(f'color-converter:{colorConverter.tonumber([1,0,1,0,1,1,1,0])}<->{colorConverter.tolist(174)}')c=BinaryConverter(exponent=3)d=c.tolist(12.223,L=8)print(f'binary-converter:{d}<->{c.tonumber(d)}={c.pretty(d)}')c=IntervalConverter(lb=0,ub=10)d=c.tolist(2.4,L=8)print(f'[{c.lb},{c.ub}]-converter:{d}<->{c(d)}->{c.pretty(d)}-th number')c=DigitConverter(base=16)d=c.tolist(2.4,L=8)print(f'16-converter:{d}<->{c(d)}={c.pretty(d)}')OUTPUT:color-converter: 174<->[1, 0, 1, 0, 1, 1, 1, 0]
binary-converter: [1, 1, 0, 0, 0, 0, 1, 1]<->12.1875=2^{3} + 2^{2} + 2^{-3} + 2^{-4}
[0,10]-converter: [0, 0, 1, 1, 1, 1, 0, 1]<->2.3828125 -> 2^{5} + 2^{4} + 2^{3} + 2^{2} + 2^{0}-th number
16-converter: [0, 2, 6, 6, 6, 6, 6, 6]<->2.399999976158142=2*16^0 + 6*16^-1 + 6*16^-2 + 6*16^-3 + 6*16^-4 + 6*16^-5 + 6*16^-6
Package: digit-index
Digit IndexThis package contains an effective algorithm for finding what
digit is placed on certain 0-based or 1-based index in string
of numbers from zero to infinityInstallpip install digit-indexUsageimport digit_index

digit = digit_index.get_digit_zero_based(0)
print(digit) # 0

digit = digit_index.get_digit_one_based(0)
print(digit) # 1LicenseMIT
Package: digit-interface
DIGIT-INTERFACEPython interface for theDIGIT tactile sensor.For updates and discussions please join the #DIGIT channel at thewww.touch-sensing.orgcommunity.InstallationThe preferred way of installation is through PyPi:pipinstalldigit-interfaceAlternatively, you can manually clone the repository and install the package using:gitclonehttps://github.com/facebookresearch/digit-interface.gitcddigit-interface
pipinstall-rrequirements.txt
pythonsetup.pyinstallIf you cannot access the device by serial number on your system followadding DIGIT udev RuleUsageThe default connection method to the DIGIT tactile sensor is through the unique device serial number. The serial number
is found on the back of each DIGIT.
SeeList all connected DIGIT'sto find device serial numbers which are connected to the
host.Once you have the device serial number, reading data from the sensor should be as easy asfromdigit_interfaceimportDigitd=Digit("D12345")# Unique serial numberd.connect()d.show_view()d.disconnect()Upon connection each DIGIT device initializes with a default stream resolution ofVGA: 640x480at30fpsFurther UsageList all connected DIGIT's:To list all connected DIGIT's and display sensor information:fromdigit_interfaceimportDigitHandlerdigits=DigitHandler.list_digits()Obtain a single frame:fromdigit_interfaceimportDigitd=Digit("D12345")# Unique serial numberd.connect()frame=d.get_frame()List supported stream formats:Additional streams are supported, these streams vary in resolution and frames per second.To list the available stream formats:fromdigit_interfaceimportDigitprint("Supported streams:\n{}".format(Digit.STREAMS))Change resolution:d.set_resolution(Digit.STREAMS["QVGA"])Change FPS,Based on supported fps for each respective resolution. All streams support pre-defined resolutions which can
be found inDigit.STREAMSd.set_fps(Digit.STREAMS["QVGA"]["fps"]["15fps"])Adding DIGIT udev RuleAdd your user to theplugdevgroup,adduser username plugdevCopy udev rule,sudo cp ./udev/50-DIGIT.rules /lib/udev/rules.d/Reload rules,sudo udevadm control --reload
sudo udevadm triggerReplug the DIGIT device into host.LicenseThis code is licensed under CC-by-NC, as found in theLICENSEfile.CitingIf you use this project in your research, please cite thispaper:@Article{Lambeta2020DIGIT,author={Lambeta, Mike and Chou, Po-Wei and Tian, Stephen and Yang, Brian and Maloon, Benjamin and Victoria Rose Most and Stroud, Dave and Santos, Raymond and Byagowi, Ahmad and Kammerer, Gregg and Jayaraman, Dinesh and Calandra, Roberto},title={{DIGIT}: A Novel Design for a Low-Cost Compact High-Resolution Tactile Sensor with Application to In-Hand Manipulation},journal={IEEE Robotics and Automation Letters (RA-L)},year={2020},volume={5},number={3},pages={3838--3845},doi={10.1109/LRA.2020.2977257},}
Package: digitize
digitize - open source available library for determining the bit depth of a number with the output of its namefromdigitizeimportExactvar=Exactprint(var.discharge(5000))# Output: 5,000print(var.discharge(51030.4853))# Output: 51,030.48print(var.discharge(51030.4853,True,"en/ru"))# Output: 51,030.48 thousand
Package: digitrecklib
# digitreck-python**digitreck-python** library enables Python applications to connect to digiTreck servers in a fast and convenient way. It enables using digiTreck APIs as methods alongwith header and checksum management.## 1. Adding DependencyEasiest way to integrate digitreck library to your app is through **pip**```scriptpip install digitrecklib```## 2. Initialize the LibraryTo initialize the library, get Project API Key and Private key from the dashboard.```pythonconfig = {Config.SERVER_KEY: REPLACE_WITH_API_KEY_FROM_PROJECT,Config.PRIVATE_KEY: REPLACE_WITH_SECRET_SALT_FROM_PROJECT}requester = Digitreck(config).getInstance()```## 3. Next StepsCongratulations! You have successfully performed the basic integration. Now lets move to performing functions like location management and session management.* ### Location Management**1. Device Location**```pythondevice_id = DEVICE_IDresult = helper.getLocation(device_id)```**2. Device Path**```pythondevice_id = NAUTILUS_DEVICE_ID_1start_date = "2017-02-20T19:34:01.326Z"end_date = "2017-02-20T19:34:01.326Z"result = helper.getPath(device_id, start_date, end_date)```**3. Nearby Device**```pythoncount = RESULT_COUNTaccess_key = ACCESS_KEYlat = LATITUDElng = LONGITUDErange = RADIUSresult = helper.getNearbyDevice(count, access_key, lat, lng, range)```* ### Session Management**1. Creating a Tracking session**```pythondevice_list = [DEVICE_ID_1,DEVICE_ID_2]result = requester.createSessions(device_list)```**2. Releasing a Tracking session**```pythontracking_id = TRACKING_SESSION_IDresult = helper.releaseSession(tracking_id)```
Package: digitz
digitzTable of ContentsInstallationLicenseInstallationpip install digitzQuickstartfrom digitz import PhoneNumber

num = PhoneNumber.parse("+1 (201) 555-0123")

num.region_code == "US"
num.is_possible() == True

num.to_e164() == "+12015550123"
num.to_international() == "+1 201-555-0123"
num.to_rfc3966() == "tel:+1-201-555-0123"Licensedigitzis distributed under the terms of theMITlicense.
Package: digi-xbee
This project contains the source code of the XBee Python library, an
easy-to-use API developed in Python that allows you to interact with Digi
International’sXBeeradio frequency (RF)
modules.This source has been contributed by Digi International.InstallationYou can install XBee Python library usingpip:$ pip install digi-xbeeInstall from SourceYou can install XBee Python library directly from sources. To do so, extract
the source code to your computer and execute the following command:$ pip install <path_to_xbee-python_dir>DocumentationXBee Python library has user guide and API reference documentation hosted on
Read the Docs. You can find the latest, most up to date, documentation atlatest docs. To see only those
features which have been released, check out thestable docs.How to contributeThe contributing guidelines are in theCONTRIBUTING.rst document.LicenseCopyright 2017-2021, Digi International Inc.TheMPL 2.0 licensecovers the majority of this project with the following exceptions:TheISC licensecovers the contents of the examples directory.
Package: digi-xbee-unofficial
Digi XBee Python library |pypiversion| |pythonversion|This project contains the source code of the XBee Python library, an
easy-to-use API developed in Python that allows you to interact with Digi
International'sXBee <https://www.digi.com/xbee>_ radio frequency (RF)
modules.This source has been contributed by Digi International.InstallationYou can install XBee Python library usingpip <https://pip.pypa.io/en/stable/>_::$ pip install digi-xbeeInstall from SourceYou can install XBee Python library directly from the source file. To do
so, extract the source code to your computer and, from its root
directory, execute the following command::$ python setup.py installDocumentationXBee Python library has user guide and API reference documentation hosted on
Read the Docs. You can find the latest, most up to date, documentation atlatest docs <https://xbplib.readthedocs.io/en/latest/>. To see only those
features which have been released, check out thestable docs <https://xbplib.readthedocs.io/en/stable/>.How to contributeThe contributing guidelines are in theCONTRIBUTING.rst document <https://github.com/digidotcom/xbee-python/blob/master/CONTRIBUTING.rst>_.LicenseCopyright 2017-2021, Digi International Inc.TheMPL 2.0 license <https://github.com/digidotcom/xbee-python/blob/master/LICENSE.txt>_
covers the majority of this project with the following exceptions:TheISC license <https://github.com/digidotcom/xbee-python/blob/master/examples/LICENSE.txt>_
covers the contents of the examples directory... |pypiversion| image::https://badge.fury.io/py/digi-xbee.svg:target:https://pypi.org/project/digi-xbee/.. |pythonversion| image::https://img.shields.io/pypi/pyversions/digi-xbee.svg:alt: PyPI - Python Version
Package: diglet
digleta pure python3 dns query toolusageimportdigletresp=diglet.Mkreq('google.com',qtype=diglet.QType.A)# use resp to make that $$$# more info: https://www.ietf.org/rfc/rfc1035.txtprint(resp)#{'header': {'id': 26519,#             'qr': 'response',#             'opcode': <OpCode.QUERY: 0>,#             'aa': False,#             'tc': False,#             'rd': True,#             'ra': True,#             'z': 0,#             'rcode': <ReturnCode.NO_ERROR: 0>,#             'qdcount': 1,#             'ancount': 1,#             'nscount': 0,#             'arcount': 0#            },# 'questions': [{'qname': 'google.com.',#                'qtype': <QType.A: 1>,#                'qclass': <Class.IN: 1>#               }#              ],# 'answers': [{'aname': 'google.com.',#              'atype': <Type.A: 1>,#              'aclass': <Class.IN: 1>,#              'attl': 236,#              'ardlen': 4,#              'ardata':#              '142.250.72.206'#             }#            ],# 'authority': {}#}
Package: diglett
DiglettWhat it doesDiglett is a collection of my most frequently used and reusable functions for data analysis, data wrangling, and machine learning. I have largely packaged them together for my own benefit, but I hope you will find something useful in here for yourself.InstallingTo install the most recently published version from PyPI:pip install diglettTo install a (possibly more recent, but less polished) version: clone this repo and run:pip install -e .
Package: d-igloo
iglooA command line tool to archive and retrieve project's data to and from Amazon AWS S3 Glacier for D-ICE Engineering needs.PrerequisitesYou need personal AWS credentials on your system to connect to D-ICE AWS account.Installationigloo is available from pipy package repository.pipinstalld-iglooUpgradepipinstalld-igloo-UUsageFor usage of this tool, please refer directly to the help by using:igloo--help
Package: dig-mhd
digStructuredig, python package foldernotebooks, python notebook folder to demonstrate how can we use digInstallPrequisite:MDSplusWe do not support Anaconda. Usevirtualenvinstead if you don't want to mess up your system built-in python environment.# for clientspipinstalldig-mhd# for developerscd/to-somewhere-you-want-to-clone-the-repo
gitclonehttps://github.com/WenyinWei/dig.gitcddig# (not dig/dig)pipinstall-e.# "-e" means editableAddmhd_settings.ini(you can find a template at this repo) to you application data path,e.g.C:\Users\<your-user-name>\mhd\mhd_settings.inifor Windows,/home/<your-user-name>/.mhd/mhd_settings.inifor Debian systems like Ubuntu.Parameters are stored in this.inifile and you need to check and modify some of them. Having configuring the.inifile in a right way, the following import should be successful.importdigUse Python in MatlabCommon Data Format*.npy,*.npzfile formats are common in python/numpy community; while*.matfile format is common in matlab community. Matlab has professionaldocumentsto demonstrate how to use Python from Matlab and vice.fromscipy.ioimportloadmatannots=loadmat('*.mat')% In Matlab, npy-matlab module could help you read and write npy format files, https://github.com/kwikteam/npy-matlaba=rand(5,4,3);writeNPY(a,'a.npy');b=readNPY('a.npy');% In Matlab, configure Python environment https://ww2.mathworks.cn/help/matlab/ref/pyenv.htmlpyenv% 返回当前默认的 Python 环境pyenv('Version',3.8)% 寻找当前电脑上的对应版本的 Python 环境pyenv('Version',path-to-your-python-executable)% 寻找当前电脑上的对应路径的 Python 环境ifcount(py.sys.path,'path-to-your-package')==0insert(py.sys.path,int32(0),'path-to-your-package');endpy.importlib.import_module('dig')py.importlib.reload('dig')returned_tuple=py.dig.utilvar.get_EAST_EFIT_BR_BZ_Bt(shotnum,py.list({tpoint1,tpoint2,...}));R=returned_tuple{1};Z=returned_tuple{2};tpoints=returned_tuple{3};BRs=returned_tuple{4};BZs=returned_tuple{5};Bts=returned_tuple{6};# Rewrite all npy files in mat format, https://ww2.mathworks.cn/matlabcentral/answers/444998-how-do-read-npy-files-in-matlab#answer_624742fromscipy.ioimportsavematimportnumpyasnpimportglobimportosnpzFiles=glob.glob("*.npz")forfinnpzFiles:fm=os.path.splitext(f)[0]+'.mat'd=np.load(f)savemat(fm,d)print('generated ',fm,'from',f)
Package: digneapy
<center><h1>DIGNEApy</h1>
<h4>Diverse Instance Generator with Novelty Search and Evolutionary Algorithms</h4>[![Test](https://github.com/DIGNEA/DIGNEApy/actions/workflows/python-app.yml/badge.svg)](https://github.com/DIGNEA/DIGNEApy/actions/workflows/python-app.yml)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
</center>Repository containing the Python version of DIGNEA, a Diverse Instance Generator with Novelty Search and Evolutionary Algorithms. This framework is an extensible tool for generating diverse and discriminatory instances for any desired domain. The instances obtained generated will be biased to the performance of atargetin a specified portfolio of algorithms.### DependenciesNumpySklearn## PublicationsDIGNEA was used in the following publications:Alejandro Marrero, Eduardo Segredo, and Coromoto Leon. 2021. A parallel genetic algorithm to speed up the resolution of the algorithm selection problem. Proceedings of the Genetic and Evolutionary Computation Conference Companion. Association for Computing Machinery, New York, NY, USA, 1978–1981. DOI:https://doi.org/10.1145/3449726.3463160Marrero, A., Segredo, E., León, C., Hart, E. (2022). A Novelty-Search Approach to Filling an Instance-Space with Diverse and Discriminatory Instances for the Knapsack Problem. In: Rudolph, G., Kononova, A.V., Aguirre, H., Kerschke, P., Ochoa, G., Tušar, T. (eds) Parallel Problem Solving from Nature – PPSN XVII. PPSN 2022. Lecture Notes in Computer Science, vol 13398. Springer, Cham.https://doi.org/10.1007/978-3-031-14714-2_16History0.1.0 (2023-07-10)First release on PyPI.
Package: digocli
openxlab-cliGetting started代码结构├─openxlab
│  ├─config                存放通用配置
│  ├─demo                 给出的一个demo，模型中心，应用中心可以创建自己的文件夹
│  ├─types		   通用参数定义
│  ├─xlab		   主站逻辑架构说明types 中定义定义命令基类sub_command_list 	填入下一级命令对应的类定义add_args        		用于添加当前命令的参数  --xxxtake_action 		用于定义当前命令的行为，未实现默认使用 argparse 的 help命令继承基类实现，通过 sub_command_list 实现多级子命令本地测试python -m openxlab.cli 
python -m openxlab.cli  model help  
python -m openxlab.cli  model uploadtestpypi 联调打包，  命令将生成一个 dist 目录
python setup.py sdist bdist_wheel

上传 pip 包到 test pypi
twine upload --repository testpypi dist/*

从 test pypi 下载
pip install -i https://test.pypi.org/simple/ openxlab==0.0.1
Package: digole
Digole LCD DriverTested with Digole 160x128 Color LCD 1.8” DSDM/SerialRaspberry Pi 3 B using the i2c busExamples at www.github.com/jethornton/digoleInstalling`pip3 install digole`Upgrade`pip3 install digole--upgrade`Or`pip3 install--no-cache-dirdigole--upgrade`Importing`from digole import lcd`Create a new instance and use the default i2c address of 0x27`s =lcd()`Create a new instance and use a different i2c address`s = lcd(0x29)`clear the screen`s.clearScreen()`write a line of text`s.writeLine('Texttowrite')`change X start position from the left edge in columns```s.changePosition(x)```change XY start position of the text from the top left corner in columns, rows`s.changePosition(x,y)``s.changePosition(0,2) # start the text on column 0 row 2`Change Foreground Color color value 0-255`s.changeForeColor(color)`color can be an int 0-255, a hex 0x0-0x255 or a color name from the chart.Black   =   0 = 0x0
Navy    =   2 = 0x2
Blue    =   3 = 0x3
Green   =  24 = 0x18
Teal    =  27 = 0x1B
Lime    =  28 = 0x1C
Aqua    =  31 = 0x1F
Maroon  = 192 = 0xC0
Purple  = 195 = 0xC3
Olive   = 219 = 0xDB
Red     = 224 = 0xE0
Magenta = 227 = 0xE3
Yellow  = 252 = 0xFC
White   = 255 = 0xFF
Package: digquery
A Python package for querying DNS information using thedigcommand.InstallationInstall the package using pip:pipinstalldigqueryUsageTo use thedigquerycommand, run it from the command line followed by the domain name:digqueryexample.compydigexample.commydigexample.comThis will execute separatedigcommands for each query type (A,TXT,MX,NS) and display the results in clear and crisp format.Output of above command will be look like:digquerygoogle.com====================================digqueryfordomain:google.com,type:TXT====================================google.com.3600INTXT"docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e"google.com.3600INTXT"google-site-verification=wD8N7i1JTNTkezJ49swvWW48f8_9xveREV4oB-0Hf5o"google.com.3600INTXT"MS=E4A68B9AB2BB9670BCE15412F62916164C0B20BB"google.com.3600INTXT"google-site-verification=TV9-DBe4R80X4v0M4U_bd_J9cpOJM0nikft0jAgjmsQ"google.com.3600INTXT"facebook-domain-verification=22rm551cu4k0ab0bxsw536tlds4h95"google.com.3600INTXT"globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8="google.com.3600INTXT"webexdomainverification.8YX6G=6e6922db-e3e6-4a36-904e-a805c28087fa"google.com.3600INTXT"v=spf1 include:_spf.google.com ~all"google.com.3600INTXT"onetrust-domain-verification=de01ed21f2fa4d8781cbc3ffb89cf4ef"google.com.3600INTXT"atlassian-domain-verification=5YjTmWmjI92ewqkx2oXmBaD60Td9zWon9r6eakvHX6B77zzkFQto8PQ9QsKnbf4I"google.com.3600INTXT"docusign=1b0a6754-49b1-4db5-8540-d2c12664b289"google.com.3600INTXT"apple-domain-verification=30afIBcvSuDV2PLX"====================================digqueryfordomain:google.com,type:A====================================google.com.142INA142.250.193.238====================================digqueryfordomain:google.com,type:MX====================================google.com.300INMX10smtp.google.com.====================================digqueryfordomain:google.com,type:NS====================================google.com.13296INNSns4.google.com.google.com.13296INNSns1.google.com.google.com.13296INNSns3.google.com.google.com.13296INNSns2.google.com.ContributingContributions are welcome! Here are some ways you can contribute:Report bugs or suggest improvements by creating a new issue on thedigqueryGitHub repository.https://github.com/techdjay/digqueryFork the repository, make changes, and submit a pull request.LicenseThis project is licensed under the MIT License. See theLICENSEfile for more information.AuthorsJay <techdjay@gmail.com>
Package: diGraph
diGraphA python module for plotting Directed Graphs using a simulation of springs and charged particles.You can import this module with PIP.pip install ifsFractals --upgradeorpython3 -m pip install --user ifsFractals --upgradePyPi release page:https://pypi.org/project/diGraph/.Seehttps://share.cocalc.com/share/f6aee960-eb32-4259-a1ff-cddafc5864a0/New%20Projects%20and%20Problems/Springboard%20Graphs.ipynb?viewer=embedfor examples and a mathematical explanation.
Package: digraphtools
Some tools for working with directed acyclic graphs, partial orders and
topological sorting with Pythondigraphtools was written as a lightweight way of using DAGs and partial
ordering to represent, sort and traverse dependency trees in a lightweight
way.The code is hosted on github athttps://github.com/dbasden/python-digraphtoolsGraph RepresentationGraphsA graph is represented as a dict which maps a node to a list
nodes connected via the outgoing edges of that node.e.g.graph = { 1: [2,3],2: [3],
3: [] }is a DAG represented by the edges  (1,2) (1,3) (2,3)
where the edge 2tuple is in the form of (from,to)There are helper methods in deptools to generate graphs from a
list of edges, and vice versaBinary relationsIf a DAG represents dependencies, e.g. the edge (1,2) is taken
to mean “1 depends on 2”, this is backwards from a binary relation.
(1,2) would be the relation 2P1Topological SortingThere are two ways of generating linear extensions / topological sorts of
dependencies (i.e. orders items must be processed in to satisfy dependency
requirements):deptools.dfs_topsort_traversaldeptools.dfs_topsort_traversal will take a graph and iterate over a
single valid topologicaly sorted orderdeptools.topsort.vr_topsortdeptools.topsort.vr_topsort will generate all valid linear extensions /
topological orderings given an initial ‘seed’ linear extension (such as
the one generated by deptools.dfs_topsort_traversal).The method does not take the graph format as used by deptools as input,
but it does have a helper method to generate it’s input matrix from a
partial order set (which can be generated from a graph using helpers in
deptools).See the examples in topsort.py and test/test_topsort.py for how to do this.Authorsdigraphtools was initially written by David BasdenThanksThanks to Yaakov L. Varol and Doron Rotem for the design of the algorithm
in topsort.py
Package: digripy
DiGriPyDistrict Heating Grid Simulation in PythonInstallationFor installation, you can clone this repository and use pip for solving dependencies and installation.
Please use Python3 <3.9, as CoolProp fails to install on Python 3.9.python -m pip install digripyYou can alternatively manually clone this repo and thenpython setup.py installin the cloned directory.RunningFor Running DiGriPy you can simply download thetestsfolder provided in thegit repositoryand runpython -m digripy.run -i tests/example80C -l 20in a command line. This will run the first 20 time steps of the medium temperature scenario and display the results in a browser.OutputResults will not only be displayed in the browser, but also will be saved in your home directory in a folder calleddigripy_results. There you can also find spreadsheets with several results.