Saravanan666/pypi-org huggingface dataset:
Package: unithon
unithon - Python library to unify datasetsIntroductionunithonis a python library for unifying heterogeneous datasets, primarily focused on IoT data processing.
Several datasets with different structure and refresh times can easily be combined into a single well-formatted dataset.
Furthermore, it provides some commonly used functions for data processing.InstallationIn order to get this package working you will need to install it using pip by typing on the terminal:$ python -m pip install unithon --upgradeOr just install the current release or a specific release version such as:$ python -m pip install unithon==0.1ContributeAs this is an open source project it is open to contributions, bug reports, bug fixes, documentation improvements,
enhancements and ideas.Also there is an open tab ofissueswhere anyone can contribute opening
new issues if needed or navigate through them in order to solve them or contribute to its solving.
Package: unitils
What is it and why do I care?Unitils has been incredibly useful for my co-workers and myself. They are simplified, altered forms of common and useful utilities you are likely to find on most Unix-like operating systems. They are written as command line utilities, but also present a single Python generator which can be used from within Python without “shelling” the command out.Because of the simplified nature of these utilities along with the compromises we have made. We wished to differentiate ourselves from similar commands which were our inspiration. Each of our utilities appends “.py” to the end of the command. For instance, our version ofgrepcan be invoked with thegrep.pycommand.For instance,grep.pyis designed to be used just like this:$ grep.py -i 'warn' /var/log/*.logAnd from Python it can be used like this:from glob import iglob
from unitils import grep

for match in grep("warn", iglob('/var/log/*.log'), ignore_case=True):
    print(match)Why should I use it?Unitils is a collection of useful utilities which have been re-written to be simple
and to provide a CLI as well as a Python API.Unitils was written to be:Fast, everything is an generator (where possible) and strives to be as efficient in both memory and cpu time.Tested, Unittests are important and we strive for high test coverage.Cross Platform, Written in Python these utilities can run on Windows, Linux and Mac OSx.Provides an API to use these utilities in Python, cross-platform and without “shelling out”.Open Source, This project is released under theGPLv3How does it work?Each command we target, we create a Python generator which yields the output and send it to stdout. So we in effect have native, memory efficient access to many common utilities directly from within Python. We then wrap a command line interface around this generator tp provide our users with a convenient cross-platform utility.How do I get it?To get the most supported version:$ pip install unitilsTo get the latest version:$ pip install https://github.com/ilovetux/unitils/archive/master.zipFor the nightlies:$ pip install https://github.com/ilovetux/unitils/archive/dev.zipHow do I run the tests?You can clone the repository and use the following command:$ make testor alternately:$ python setup.py nosetestsIn general, the master branch is what is available on PyPI.What is this compatible with?Unitils is tested and confirmed to work withPython 3.5Python 3.4Python 3.3Python 2.7pypyUnitils should work on all platforms on which Python runs.What is the current list of utilities provided by unitils?catcpfindgrepheadlsmvwatchwcwhichWhat is on the list to be done?Seethis issuefor the state of
our current prgress.How can I help?You can do all the github type things, submit an issue in ourissue trackeror fork and submit apull request. If none of that appeals to you, you can always send me an email personally atme@ilovetux.com
Package: unitlib
📐 unitlibPhysical units for NumPy arrays.Fast, simple, high voltage ⚡Whyunitlibwas born out of frustration with other Python unit packages.
Those packages work well for toy experiments, but they greatly slow down your code.
This makes their use unfeasible for even moderate scale scientific simulations.Installation$ pip install unitlibThis will get you theunitlibis tested on Python versions 3.9 down to 3.6, on Windows, Linux and MacOS.For developersThe following indicates whether the latest commit on the main branch passes all tests:(This only pertains to development code. Theunitlibversions on PyPI
pass all tests on release, of course).
Package: unitmeasure
unitmeasure: Swift units and measurement in Pythonunitmeasureis a simple Python library that tries
to implement the features of Swift'sUnits and Measurement
framework.Withunitmeasure, you can label numeric quantities
with physical dimensions and convert between related units.ContributingFor anyone looking to contribute, you can look at doing any of the following:Submit bugs and feature requestsReview any documentation and create pull requests for anything from typos to new content.Installationunitmeasurecan be installed from PyPI:pip install unitmeasureOverviewBase available classesThe basic available classes should match the classes found in swift.Unit- represents a unit that has asymbolto describe it.Dimension- subclass ofUnitand has multiple child classes defining different dimensions.Measurement- Immutable. wraps a number with a unit. Supports comparison operators, addition and subtraction with another measurement, and multiplication and division with a scalar value.Supported UnitsAll supported units can be found in the units sub directory.
Any unit class can be imported directly fromunitmeasure.Examplesfor more detailed usage see unit tests.Create a measurementimportunitmeasuredur=unitmeasure.Measurement(value=2,unit=unitmeasure.UnitDuration.minutes)print(dur)Convert a measurementimportunitmeasuredur=unitmeasure.Measurement(value=2,unit=unitmeasure.UnitDuration.minutes)dur.convert(unitmeasure.UnitDuration.seconds)print(dur)Convert a measurement and return new objectimportunitmeasureminutes=unitmeasure.Measurement(value=2,unit=unitmeasure.UnitDuration.minutes)seconds=minutes.converted(unitmeasure.UnitDuration.seconds)print(minutes)print(seconds)add measurementsimportunitmeasureminutes=unitmeasure.Measurement(value=2,unit=unitmeasure.UnitDuration.minutes)seconds=minutes.converted(unitmeasure.UnitDuration.seconds)# adding measurements will automagically convert the measurement  into its base unit.print(minutes+seconds)Create a custom UnitimportunitmeasurecustomLengthUnit=unitmeasure.UnitLength(symbol="FLARB",coefficient=2.0)customLength=Measurement(value=1,unit=customLengthUnit)meters=customLength.converted(to:unitmeasure.UnitLength.meters)Converting to and from JSONNOTE: JSON struct should match swift's so it should be possible to import json data to/from swift.importunitmeasureseconds=unitmeasure.Measurement(value=2,unit=unitmeasure.UnitDuration.seconds)withopen("measurement.json","w")asf:f.write(unitmeasure.to_json(seconds))withopen("measurement.json","r")asf:# if a dimension is not specified you will end up with# a measurement that has a basic unit (only a symbol)loaded_measurement=unitmeasure.from_json(f.read(),dimension=unitmeasure.UnitDuration)
Package: unitn-course-scraper
UniTN Courses ScraperInteractive scraper for your unitn courses.It allows you to get resources from the courses that you are takeing and the courses you can enroll in. Download everything in an organized way and more.Getting startedInstall a fresh version of Python 3.11 to your local machine (with your virtual environment management of choice)Install the requirements withpip install -r requirements.txtAdd a copy of the.envfile to the root of the project (instructions are found in the.env.examplefile)Do not use "studenti" inside your username, just @unitn.itRun thestart.shfile to get started
Package: unitools
Unitoolsunitoolsis a cohesive collection of utility tools designed for Python 3, encapsulating various utility functions developed over the years. Given the absence of such tools in earlier times,unitoolsserves as a treasure trove for developers seeking a unified solution for various tasks.InstallationYou can installunitoolsvia pip:pipinstallunitoolsModulesunitoolsoffers multiple modules, each tailored for a specific purpose. Below is a description of a few key modules:ICMPv4 ModuleTheICMPv4module offers a way to generate and handle ICMP (Internet Control Message Protocol) echo requests, commonly known as "pings". It has been built to be cross-platform compatible, seamlessly operating on both Windows and Linux.FeaturesPing Utility: Send ICMP echo requests and retrieve the response.Dynamic Packet Creation: Build ICMP packets on the fly based on the operating system.Response Handling: Decode ICMP responses and provide a structured representation.Usagefromunitools.ICMPv4importRequesticmp_request=Request(address="8.8.8.8")response=icmp_request.ping()print(response)Methodsping: Initiates an ICMP request and awaits its response.create_socket: Establishes the required socket for ICMP communication.create_icmp_packet: Constructs the ICMP packet ready for transmission.send_on_socket: Sends the constructed ICMP packet.ICMPv4.ResponseAn inner class,Response, embodies the ICMP reply, furnishing details like the responder's IP address, byte size of the packet, round-trip time, and TTL (Time-to-Live).TCPv4 ModuleTheTCPv4module provides tools to check the reachability of TCP ports. It offers a "ping" on a TCP port and an extended ping functionality with multiple packets, delivering insights about the responsiveness and reliability of a TCP service.FeaturesTCP Ping: Test if a specific port on a host is reachable.Extended TCP Ping: Transmit multiple packets to ascertain the consistency and average response time.Response Parsing: Parse and present the ping responses in a structured manner.Usagefromunitools.TCPv4importRequest# Initialize with target host and portrequest=Request(host='example.com',port=80)# Single TCP Pingresponse=request.tcp_ping()print(response)# Extended TCP Ping with 5 packetsresponses=request.tcp_ping_extended(ping_count=5)print(responses)Methodstcp_ping: Send a TCP request to the provided host and port and await its response.tcp_ping_extended: Transmits multiple TCP pings and collates the responses.TCPv4.Response & TCPv4.ResponsesResponsecaptures the outcome of a single TCP ping, detailing if the port was reachable and the latency.Responses, on the other hand, aggregates results from the extended ping, offering insights like average latency and packet loss percentage.ContributeContributions tounitoolsare always welcome. Feel free to submit pull requests or raise issues.LicenseMIT License
Package: unitpackage
This module provides a Python library to interact with a collection offrictionless datapackages. Such datapackages consist of a CSV (data) file which is annotated with a JSON file.
This allows storing additional information such as units used in the columns of a CSV or store metadata describing the underlying data.
Example datapackages can be foundhereand a JSON could be structured as follows{"resources":[{"name":"demo_package","type":"table","path":"demo_package.csv","scheme":"file","format":"csv","mediatype":"text/csv","encoding":"utf-8","schema":{"fields":[{"name":"t","type":"number","unit":"s"},{"name":"j","type":"number","unit":"A / m2"}]},"metadata":{"echemdb":{"description":"Sample data for the unitpackage module.","curation":{"process":[{"role":"experimentalist","name":"John Doe","laboratory":"Institute of Good Scientific Practice","date":"2021-07-09"}]}}}}]}The metadata of an entries' resource in a collection is accessible from the python API.>>>fromunitpackage.collectionimportCollection>>>fromunitpackage.localimportcollect_datapackages>>>db=Collection(data_packages=collect_datapackages('./doc/files'))>>>entry=db['demo_package_cv']>>>entry.description'Sample data for the unitpackage module.'From the API also a simple 2D plot can be drawn.>>>entry.plot()Ultimately, theunitpackageallows for simple transformation of data within a resource into different units.>>>entry.get_unit('j')'A / m2'>>>entry.dftEj00.000000-0.1969620.04300910.011368-0.1963930.051408...>>>entry.rescale({'E':'mV','j':'uA / m2'}).dftEj00.000000-196.96173043008.84216210.011368-196.39332151408.199892...Collections for specific measurement types can be created, which provide additional accessibility to the meatadata or simplify the representation of such data in common plot types. An example of such a collection can be found onechemdb.org, which shows Cyclic Voltammetry data annotated followingechemdb's metadata schema, which can be stored in aCVCollectionCollections can be generated from local files or data published in repositories such as onechemdb.orgDetailed installation instructions, description of the modules, advanced usage examples, including
local collection creation, are provided in ourdocumentation.Installation instructionsThis package is available onPiPYand can be installed with pip:pipinstallunitpackageThe package is also available onconda-forgean can be installed with condacondainstall-cconda-forgeunitpackageor mambamambainstall-cconda-forgeunitpackagePlease consult ourdocumentationfor
more detailedinstallation instructions.LicenseThe contents of this repository are licensed under theGNU General Public
License v3.0or, at your option, any later version.
Package: unitplus
unitplusEnhancement for unittestInstallpipinstallunitplusSimple UseDocument:https://python-yapi.readthedocs.io/en/latest/中文文档:https://python-yapi.readthedocs.io/zh_CN/latest/Register and Loginfrompython_yapiimportYApiyapi=YApi(base_url='http://localhost:3000')username,email,password='Kevin','kevin@126.com','abc123'yapi.register(username,email,password)# return a dictyapi.login(email,password)# return a dictSimple UseWrite TestCasefromunitplusimportTestCase,testclassTestDemo(TestCase):priority='p1'status='ready'owner='superhin'iteration='v0.1.0'tags=['demo']@test(title='test demo a',priority='p2')deftest_a(self):self.logger.info('a demo test case')@test(title='test ddt with data',data=['a','b','c'])deftest_b(self,item):self.logger.info('item =',item)Use TesPlan  to run testsfromunitplusimportTestPlanclassTestPlanDemo(TestPlan):# test names for suitetests=['cases.testdemo',]# filter tests by attributesfilter={'priorities':['p0','p1'],'status':['ready'],'tags':['demo'],# include tags'exclude_tags':['post'],'exclude_names':['cases.test_case3.TestA.test_get03','cases.test_case4.TestA.test_get02',]}if__name__=='__main__':# run suite , supporting multiple threadsTestPlanDemo().run(verbosity=3)
Package: unitradeapi
Cryptocurrency API Clients for Binance and BybitThis project provides a comprehensive library for interacting with the APIs of the Binance and Bybit cryptocurrency exchanges. It's designed for developers and analysts who need to access market data, trading information, and statistical insights in real-time.FeaturesVersatile Market Data Access: Retrieve real-time market data including exchange information, order books, recent trades, and more.Support for Multiple Market Types: Compatible with different market types such as spot, derivatives, futures, and options.Advanced Trading Operations: Facilitates advanced trading operations like historical trades lookup, aggregated trades lists, and K-line (candlestick data) queries.Websocket Support: Integration with Binance and Bybit Websockets for real-time data streaming.Error Handling and Logging: Robust error handling and logging capabilities for reliable application development.InstallationTo install the library, use the following pip command:pipinstallUniCryptTradeAPIfrom UniCryptTradeAPI import SyncBinancePublic
from UniCryptTradeAPI import SyncBybitPublicInitialize clientsbinance_client = SyncBinancePublic(market_type='spot')
bybit_client = SyncBybitPublic(category='spot')Example usageexchange_info = binance_client.get_exchange_information()
order_book = bybit_client.get_order_book(symbol='BTCUSD')## Main methods from Bybit
SyncBybitPublic:
- instrument
- symbols_in_trading
- tickers

SyncBybitPrivate:
- wallet-balance
- transaction-log

AsyncBybitPrivate:
- wallet-balance
- transaction-log

SyncBybitWebsocketPublic:
- base class
Package: unitrans-evalir
# UniversalTranslatorFinal individual project for the “Tendencias en desarrollo de aplicaciones” class.## App objectiveThis CLI (Command Line App) can be used to convert from one longitude unit from the International Unit System to another one.## App installationFirst, you need to have pip installed; it’s the python package manager that you’ll use to then install the application. You can get it [here](https://www.liquidweb.com/kb/install-pip-windows/), however, it should be preinstalled on your system; still, I recommend upgrading to the latest version to avoid conflicts.After installing pip, you can just run this command:pip install unitrans-evalirWhen you install it with pip (beware, this will also install all of the CLI dependencies), you can then use it by runningUniversalTranslator –help: this will display the help file with all the command options.Example:` pip installunitrans-evalirUniversalTranslator--pathnameinput.txt--writepathoutput.txt `This example will take the input.txt file that you have created on the folder you’re in, process the contents, and write to theoutput.txtfile the converted units.### Note for windows usersFor using the command line app, you MUST have installed these 3 things:The latest version of Python 3.The latest version of PyPI.Git Bash.
Using the normal windows prompt and powershell will not work. You MUST use the linux subsystem command line or the Git bash to use the application.### Input Format example:1 m cm: 1 meter to centimeters.2 dm km: 2 decimeters to kilometers.
For further info about usage, please refer to [this table on wikipedia.](https://en.wikipedia.org/wiki/Metre)## Contributing:Please take a look at the CONTRIBUTING.MD file.## Miscellaneous[CRC Cards](https://www.dropbox.com/s/ziuwpm2cyhquio0/CRC%20responsiblity.png?dl=0)[UML Diagram](https://www.dropbox.com/s/634thy9jduy5mgd/UML%20Diagram.png?dl=0)
Package: uni-translate
uni-translatePython library to "translate" a variety of unicode special characters to normal textcan be used as a command line util for strings and text files, or as a library for easier and more flexible integrationLib Examples:examples can be found in the /examples directoryLib Documentation:[class] translator[kwarg] Union[dict, List[str]]=None key:key used to contruct a translation table, can be a list of strings contaning 52 characters (one for each letter, upper and lowercase), or a dict contaning key/value pairs that map each character in the key to a character in the value. (default is provided)[kwarg] Union[str, List[str]]=None remove:characters to be stripped during translation (default is provided)[kwarg] (bool)=False debug:toggles debug prints in the __init__[method] translate -> str:[arg] (str) text: text to be translated[method] text_to_unicode -> str:[arg] (str) text: text to be translated[kwarg] (int) mode: translation mode to use, this should correspond to an index in the key[staticmethod] _trans -> str:method to translate text via the given table[arg] (str) text: text to be translated[arg] Union[dict, Union[List[str], Tuple[str]]] table: table to use for translation, when a list or tuple is passed, the first element is treated as the key and the second element is treated as the value. dict should only be passed if it is a valid translation table (as obtained from str.maketrans)[staticmethod] clean_key -> Tuple[str]:returns the key cleaned of "normal" characters and duplicates, and its respective alphabet value[arg] (str) key - key to be cleanedCommand line:uni-translate -t #unicode herepaths to text files can be passed aswell, if nothing is passed the user will be prompted
Package: unitree-legged-sdk
v3.8.6The unitree_legged_sdk is mainly used for communication between PC and Controller board.
It also can be used in other PCs with UDP.Noticesupport robot: Go1not support robot: Laikago, B1, Aliengo, A1. (Check releasev3.3.1for support)DependenciesUnitreeLegged_sport>=v1.36.0
firmwareH0.1.7>=v0.1.35H0.1.9>=v0.1.35Boost(version 1.5.4 or higher)CMake(version 2.8.3 or higher)g++(version 8.3.0 or higher)Buildmkdirbuildcdbuild
cmake..
makeIf you want to build the python wrapper, then replace the cmake line with:cmake-DPYTHON_BUILD=TRUE..RunCppRun examples with 'sudo' for memory locking.Pythonpython wrapper of unitree_legged_sdk withpybind11, only support python3.x now.More you can seepython_wrapper
Package: unitrees
IntroductionUnitrees is a very simple Python module for printing out little text "trees" generated from lists, turning out to look rather like this:Note that the font on PyPi may affect the way this is seen. If all goes well, it should be perfect, but online it may not be. However, the following text, when viewed in the terminal/shell, should be devoid of gaps between the lines.
\┐├─A├─B├─C├┐│├─D│├─E│├┐││├─F││├─G││├┐│││├─H││├┘│├┘│├─I├┘... [shortened for clarity] ...├─O├─P┘UsageThis module is incredibly easy to use. It has three main functions;visual_standard(...),visual_space(...), andvisual_ascii(...). It comes with multiple character sets (in list form), that can be plugged into thevisual_standard(...)function. Here is a list of the character sets:characters_thickcharacters_thincharacters_unicodecharacters_altcharacters_dublcharacters_audiowavesEach character set has it's own style. The style used for the demonstration tree wascharacters_thin, the default option (it looks the best on a mac - if you are using windows,characters_thickmay look better). In order to generate a tree using one of the character sets, you simply have to type the following python line into a python shell:>>> unitrees.visual_standard(<your list, eg. ['A', ['A, 'B', ['C']], 'D']>, charset=unitrees.characters_thin)This command will print out a unicode tree.visual_space(...) & visual_ascii(...)If you would like to have an ascii tree, you can either use the characters_unicode character set or use the specalised function. Furthermore, if you would like a tree puerly based off indention, you may use thevisual_space(...)function.Technical ⚙️Creating your own character setsIt is actually quite easy to create your own character sets; all you have to do is define a five character list containing all the symbols that the function might request. The list used for characters_thin is shown below:characters_thin = ['├', '┐', '┘', '│', '─']\
The first item in the list is used as a junction between the main line and either a sub-line or a text snippet. An example of this section in the tree is shown below:├ ─ ANote that the characters have a space between them for clarity.As also shown above, thelastcharacter in the list adds as a "cross beam" of sorts, seperating  the letter form the junction.The second character acts as a sub-tree start symbol, and can also be found at the begining of the tree. The text snippet below shows this:├┐│├─DThe third also acts as a terminator for a sub-tree, and the overall main tree:│├─I├┘The fourth character does not seem very important, but it is actually cruital - it continues through to show depth when a sub-tree is being displyed. An example is shown below:├┐│├─D│├─E│├┐││├─F││├─G││├┐│││├─H││├┘│├┘│├─I├┘Tip: If you cannot see what I mean, look at the first character of every line. That line is unbroken while the sub-tree is being printed. That is the fourth character in every list.CreditsCredits go to:Pigeon Nation!! :]