Saravanan666/pypi-org huggingface dataset:
Package: ubuntu-namer
ubuntu-namerubuntu-nameris a Python cli/package port ofubuntu-name-generator.Installationpipinstall-Uubuntu-nameror install withPoetrypoetryaddubuntu-namerThen you can runubuntu-namer--helpor withPoetry:poetryrunubuntu-namer--helpMakefile usageMakefilecontains a lot of functions for faster development.1. Download and remove PoetryTo download and install Poetry run:makepoetry-downloadTo uninstallmakepoetry-remove2. Install all dependencies and pre-commit hooksInstall requirements:makeinstallPre-commit hooks coulb be installed aftergit initviamakepre-commit-install3. CodestyleAutomatic formatting usespyupgrade,isortandblack.makecodestyle# or use synonymmakeformattingCodestyle checks only, without rewriting files:makecheck-codestyleNote:check-codestyleusesisort,blackanddarglintlibraryUpdate all dev libraries to the latest version using one comandmakeupdate-dev-deps4. Code securitymakecheck-safetyThis command launchesPoetryintegrity checks as well as identifies security issues withSafetyandBandit.makecheck-safety5. Type checksRunmypystatic type checkermakemypy6. Tests with coverage badgesRunpytestmaketest7. All lintersOf course there is a command torulerun all linters in one:makelintthe same as:maketest&&makecheck-codestyle&&makemypy&&makecheck-safety8. Dockermakedocker-buildwhich is equivalent to:makedocker-buildVERSION=latestRemove docker image withmakedocker-removeMore informationabout docker.9. CleanupDelete pycache filesmakepycache-removeRemove package buildmakebuild-removeDelete .DS_STORE filesmakedsstore-removeRemove .mypycachemakemypycache-removeOr to remove all above run:makecleanup10. AWS LambdaTo make a zip file for AWS Lambda run:makebuild-lambdaThen, upload this zip to AWS Lambda.📈 ReleasesYou can see the list of available releases on theGitHub Releasespage.We followSemantic Versionsspecification.We useRelease Drafter. As pull requests are merged, a draft release is kept up-to-date listing the changes, ready to publish when you’re ready. With the categories option, you can categorize pull requests in release notes using labels.List of labels and corresponding titlesLabelTitle in Releasesenhancement,feature🚀 Featuresbug,refactoring,bugfix,fix🔧 Fixes & Refactoringbuild,ci,testing📦 Build System & CI/CDbreaking💥 Breaking Changesdocumentation📝 Documentationdependencies⬆️ Dependencies updatesYou can update it inrelease-drafter.yml.GitHub creates thebug,enhancement, anddocumentationlabels for you. Dependabot creates thedependencieslabel. Create the remaining labels on the Issues tab of your GitHub repository, when you need them.🛡 LicenseThis project is licensed under the terms of theMITlicense. SeeLICENSEfor more details.📃 Citation@misc{ubuntu-namer,author={ubuntu-namer},title={Awesome `ubuntu-namer` is a Python cli/package created with https://github.com/TezRomacH/python-package-template},year={2022},publisher={GitHub},journal={GitHub repository},howpublished={\url{https://github.com/crypdick/ubuntu-namer}}}CreditsThis project was generated withpython-package-template
Package: ubuntu-netspeed
# ubuntu-netspeedA simple Network speed indicator for Ubuntu![ubuntu-netspeed](https://raw.githubusercontent.com/SapneshNaik/ubuntu-netspeed/master/docs/demo.gif)## Development Setup### Requirements:- python 3.x (sudo apt install python3)- libappindicator1 (sudo apt install gir1.2-appindicator3-0.1)- psutil (sudo apt install python3-psutil)- netifaces (sudo apt install python3-netifaces)### Run the app:- ./main.py
Package: ubuntu-package-buildinfo
Ubuntu Package BuilInfoTool to retrieve Ubuntu Package BuildinfoThis script downloads the changes file, the buildlog file and the buildinfo file and verifies
that the buildinfo file is correct based on the checksum in the .changes file.Seehttps://wiki.debian.org/ReproducibleBuilds/BuildinfoFilesfor more information on buildinfo files.Free software: GNU General Public License v3Documentation:https://ubuntu-package-buildlog-info.readthedocs.io.Example Usageubuntu-package-buildinfo --series jammy --package-version 3.0.4-2ubuntu2.2 --package-name apparmorFeaturesDownloads the changes file, the buildlog file and the buildinfo file for a given package and version in a given
Ubuntu series.It also verifies that the buildinfo file is correct based on the checksum in the .changes file.TODOCode cleanup now that we have a working versionWrite testsComplete support for querying PPAsAdd support for querying latest version of a package in a series if no version is specifiedCreate snapcraft.yaml to build a snap package for easy distributionCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.4 (2024-02-01)Fix for querying by source package even if the package was a copy from a previous Ubuntu release.0.0.3 (2024-01-31)Allow for querying by source package.0.0.2 (2024-01-24)No longer iterate over pocket and publication status for much quicker query times.0.0.1 (2024-01-24)First release on PyPI.
Package: ubuntu-ppa-package-version-report
Ubuntu PPA Package Version ReportUtility to Generate a report on the versions of packages in specified PPAsFree software: GNU General Public License v3FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2022-05-30)First release on PyPI.
Package: ubuntu-release-info
Ubuntu Release InfoUbuntu distribution release informationSimilar to the 'distro-info' package, this class parses and contains
the Ubuntu release information. Instead of a static data file, this
instead downloads the the meta-release information from
changelogs.ubuntu.com, and parses it to determine the most recent
release information.InstallUsers can obtain ubuntu-release-download as a snap:snapinstallubuntu-release-infoOr via PyPI:pip3installubuntu-release-infoUsageRun the command with the flag to see the codenames matching that flag:ubuntu-release-infoOptions:all:lts:devel:supported:unsupported:
Package: ubuntu-server-netboot
ubuntu-server-netbootThis utility generates a netboot directory tree from an Ubuntu Server Live ISO image, an image based on thesubiquityinstaller. The tree contents are similar to the contents of thenetboot.tar.gzfile that debian-installer builds provide. Example:$ ./ubuntu-server-netboot --url http://releases.ubuntu.com/focal/ubuntu-20.04.2-live-server-amd64.iso
INFO: Downloading http://releases.ubuntu.com/focal/ubuntu-20.04.2-live-server-amd64.iso
INFO: Attempting to download http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/uefi/grub2-amd64/current/grubx64.efi.signed
INFO: Netboot generation complete: /tmp/tmpo54145m2/ubuntu-installerThe--urlparameter is used for 2 reasons:ubuntu-server-netbootwill download the image at runtime to extract the necessary files from it.Subiquity-based installs need to download an image at install-time.ubuntu-server-netbootwill generate configuration files that point the installer to this URL.If you have a local copy of the ISO, you can point to it with the--isoparameter to avoid havingubuntu-server-netbootdownload an extra copy. Just be sure that--isoand--urlpoint to the same version of the ISO.Optionally, you can place--autoinstall-urlto tell the netbooting process to enable subiquity automation. Seeour autoinstall exampleand [the autoinstall and Automated Server Installs
Introduction of Ubuntu Server guide](Automated Server Installs Introduction) for more details.You can also add additional kernel command line arguments (e.g."console=ttyS0") to the generated configuration files using the--extra-argsparameter.Usage of the Generated FilesCopy the files generated under the interim folder/tmp/tmpxxx/ubuntu-installer/to your tftp root folder for netboot, for example/srv/tftpor/var/lib/tftpboot.
You may check your tftpd configuration of the root directory, for instance, tftpd-hpa is/etc/default/tftpd-hpa. Let's copy:$ sudo cp -r /tmp/tmpxxx/ubuntu-installer/* /srv/tftpThen your netboot server is ready to go if the corresponding DHCP is set up.TroubleshootingFor more details on setting up a PXE environment for x86 systems using a legacy BIOS, seethis discourse post.For more details on setting up a PXE environment for UEFI-based systems, seethis discourse post.DependenciesTodayubuntu-server-netbootneeds to run on Ubuntu or another Debian derivative with the following packages installed:genisoimagemtoolspython3-distro-infopxelinux (x86-only)syslinux-common (x86-only)This script is tested with Ubuntu 18.04 ("bionic beaver") and above.Contribution and DevelopmentPlease report bugs tothis github issue tracker. The github templates including "Issue" and "Pull requests" are originally forked fromthis "cookiecutter" templates for python.Placepytestto cover the basic test sets.
Package: ubuntu-termux
ubuntu-termuxInstall run a mini distro Ubuntu on Termuxinstalling the lib on termux:~$pkgupdate# update packages~$pkgipython3-y# installing the python3~$pip3installubuntu-termuxinstalling the Ubuntu run:~$installubuntu# installing the Ubuntureturn ...root@localhost:~#init ubuntu~$ubuntu
root@localhost:~#showing that it is ubuntu arm on termuxroot@localhost:~#cat/etc/os-releasePRETTY_NAME="Ubuntu 22.04.2 LTS"NAME="Ubuntu"VERSION_ID="22.04"VERSION="22.04.2 LTS (Jammy Jellyfish)"VERSION_CODENAME=jammyID=ubuntuID_LIKE=debianHOME_URL="https://www.ubuntu.com/"SUPPORT_URL="https://help.ubuntu.com/"BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"UBUNTU_CODENAME=jammy
Package: ubus
Code in this directory enables a subset of libubus functions to be used directly from python.InstallationTo install these bidning you need to have the following libraries and headers installed:libuboxlibubuspython/python3Examplesconnect and disconnectTo connect you need to:import ubus
ubus.connect("/var/run/ubus/ubus.sock")To disconnect you can simply:ubus.disconnect()Note that calling connect()/disconnect() on opened/closed connection will throw an exception.addTo add an object to ubus you can (you need to become root first):def callback(handler, data):
    handler.reply(data)  # this should return exactly the same data to the caller

ubus.add(
    "my_object", {
        "my_method": {"method": callback, "signature": {
                "first": ubus.BLOBMSG_TYPE_STRING,
                "second": ubus.BLOBMSG_TYPE_BOOL,
                "third": ubus.BLOBMSG_TYPE_INT32,
        }},
     },
)You need to enter the loop to serve the object methods afterwards:ubus.loop()Note that it might not be a good idea to call the callback function recursively.objectsTo list the objects which are currently connected to ubus you can call:ubus.objects()

->

{u'my_object': {u'my_method': {u'first': 3, u'second': 7, u'third': 5}}}callTo call an actual method on an object you can use:ubus.call("my_object", "my_method", {"first": "my_string", "second": True, "third": 42})

->

[{"first": "my_string", "second": True, "third": 42}]listenTo listen for an event you can:def callback(event, data):
    print(event, data)  # just print event name and data to stdout

ubus.listen(("my_event", callback))And you need to enter the loop to start to listen:ubus.loop()Note that it might not be a good idea to call the callback function recursively.sendThis will send an event to ubus:ubus.send("my_event", {"some": "data"})NotesThere are some tests present (‘tests/’ directory). So feel free to check it for some more complex examples.
To run the tests you need to have ubus installed and become root:sudo python setup.py test
Package: ubxserial
ubx-packet-exchangeProgramm for sending config-messages to a ublox-receiver via serial port and display the answer.Usage:Usage: ubx-serial [OPTIONS]

  Writes binary config file [CONFIG] to ublox device at [PORT].

Options:
  -p, --port PATH    Serial port of device  [required]
  -c, --config PATH  Binary config to send to device  [required]
  -w, --warn-only    Warn only on read errors
  -v, --verbose
  --help             Show this message and exit.message file will be read line by line (every line should be a UBX-Message)message files could be u-center-configuration files or files like the example files (see config dir)the message will be sent to the UBX receiver and the program waits for an answerif an UBX-Message is recieved from the UBX receiver as answer the Message will be printed in Bytesif there is no answer in timeout the programm will print an information and go to the next lineprepends 0xb5 0x62 header and appends checksum to every Message (Line)outputs first answer from ublox-reciver in bytesAuthors:Wilfried Klaebe <wk-openmoko|at|chaos.in-kiel.de>Justus Paulick <justus.paulick|at|tu-dresden.de>Kai Geissdoerfer <kai.geissdoerfer|at|tu-dresden.de>
Package: ubxtranslator
ubxtranslatorOverviewThis module provides a simple way to decode messages from uBlox GPS devices in the UBX format.
Like the high accuracy NEO-M8U module that I have created,click here for more info.This package has no dependencies! This is written in pure python using only the standard lib and supports any
standard byte stream. The predefined messages are not added to the parser by default, this allows
you to have tight control over what messages can be parsed.Is this the fastest implementation of a UBX parser? Probably not. If speed is critical then you
probably need to go write something in C. If you want something that is fast enough
and easy to use, you are in the right place. Keep reading.Supports Python 3.5 and up.QuickstartInstall the package with pippip install ubxtranslatorImport the core modulefrom ubxtranslator import coreIf the message class you want has already been defined simply import it.
If not you will need to construct the messages and classes yourself, see the examples for more information.from ubxtranslator import predefinedConstruct the parserparser = core.Parser([
  predefined.CLS_ACK, 
  predefined.CLS_NAV
])Then you can use the parser to decode messages from any byte stream.cls_name, msg_name, payload = parser.receive_from(port)The result is a tuple which can be unpacked as shown above.The variablescls_nameandmsg_nameare strings, ie.'NAV','PVT'.The payload is the namedtuple of the message and can be accessed like an object. The attributes share the names of the fields.print(cls_name, msg_name, payload.lat, payload.lng)Bitfields are also returned as namedtuples and can be accessed the same way.print(payload.flags.channel)Repeated Blocks are returned as a list of blocks, the fields within each block are also named tuples. All of the repeated blocks in the predefined messages are nameRB.for i in range(len(payload.RB)):
  print(payload.RB[i].gnssId, payload.RB[i].flags.health)The best way to look at what fields are available is where the fields are defined. However, if you want to inspect on the fly you can eitherhelp(payload)and look at the attributes, or use the named tuple protected methodpayload._asdict()which will return an ordered dict of all of the attributes.ExamplesFor full examples see the examples directory.TODO'sWant to contribute? Please feel free to submit issues or pull requests.
Nothing in this package is very complicated, please have a crack and help me to improve this.Add the ability to pack messages into packets for two way communicationsAdd more and better testsAdd Field type RU1_3Add async support
Package: uc3m-pic
UC3M-PICComputer Vision class evaluation module for Master in Robotics and Automation at UC3MLoginBefore evaluating your models, login with GCP credentials:import uc3m_pic
student = uc3m_pic.eval.User(user_id)
student.login(os.path.join(path_to_credentials))
student.open_by_url(url)EvaluationSubmit your model for evaluation and leaderboard update:student.submit(best_model, exercise=exercise_number)
Package: ucache
![](http://media.charlesleifer.com/blog/photos/ucache-logo-0.png)ucache is a lightweight and efficient caching library for python.[Kyoto Tycoon](https://fallabs.com/kyototycoon/) via [kt](https://github.com/coleifer/kt)[Redis](https://redis.io) via [redis-py](https://github.com/andymccurdy/redis-py)[Sqlite](https://www.sqlite.org/) via [peewee](https://github.com/coleifer/peewee)[Kyoto Cabinet](https://fallabs.com/kyotocabinet/) via [kyotocabinet-python bindings](https://fallabs.com/kyotocabinet/pythondoc/)[DBM](https://en.wikipedia.org/wiki/DBM_(computing)) via [dbm module from standard library](https://docs.python.org/3/library/dbm.html)Simple in-memory cache using Python dictionary.Features:Pickle serialization by default, msgpack also supportedOptional (transparent) compression usingzlibEfficient bulk-operations.Preload context manager for efficient pre-loading of cached data
Package: ucal
ucalThe ucal (unit calculator) module is a Python-based calculator which seamlessly integrates unit conversion.Getting startedThe ucal package requires Python 3.4+ to use.  Install the package by running the following:pip install --user ucalOnce installed, the GUI can be run from the command line.python -m ucal_guiIn addition, ucal can be integrated into your own code as follows:>>> import ucal
>>> ucal.interpret('5km in mi')
'3.10685596118667 mi'
>>> ucal.interpret('67 in hex')
'0x43'
>>> ucal.interpret('1m + 3ft')
'1.9144 m'ScreenshotsMethod of operationThe uCal engine evaluates an expression using the folowing steps.TokenizingTokenizingStarting with a string expression, the string is broken up into substring, each of which represents a token.  The following tokens are possible.ValueThis is a number.  Valid strings are1,1e67,+1,-32.1E+526, etc.VariableThis is text such asmm,kg, etc.FunctionA function follows the same rules as a variable, but is immediately followed by an opening parenthesis token.Opening parenthesisThis is the(sign.Closing parenthesisThis is the)sign.Prefix operatorThis operates on the value immediately following it, such as the first-in3 - -7.Valid operators of this type are+and-.Infix operatorAn infix operator is an operator that operates on the value before and after it, such as+for addition.Valid operators of this type are+,-,*,/,^for exponentiation, and%for modulo operation.Postfix operatorA postfix operator operates on the value immediately preceeding it.The only valid operator of this type is the factorial operator!.Interpret the percent signThe percent sign%can be either the modulo operator or a percentage.  We interpret it by looking at its context and determining which makes sense.It is interpreted as a percentage if the previous token is a value and either it is the last token in the expression, or the next token is an infix operator or an opening parenthesis.Examples where it would be interpreted as the modulo operator are1 % 2.Examples where it would be interpreted as a percentage are30%, and80% - 10%.Percentages are effectively replaced with*(0.01)For example,30%becomes30*(0.01).Interpret implicit multiplicationImplicit multiplication is added between tokens as appropriate.  There are a limited number of instances in which multiplication is implies.  These are the following.Between a value and a variable or function.Example:1 inis interpreted as1 * in.Between a variable and a variable or function.Example:in lbsis interpreted asin * lbs.Between a closing parenthesis and an opening parenthsis.Example:(1) (2)is interpreted as(1) * (2).Check syntaxThe string of tokens is then checked for make sure the syntax makes sense.Check for balanced parenthesisCheck prefix operators are followed by a quantity.Check infix operators are preceeded and followed by a quantity.Check postfix operators are preceeded by a quantity.Check starting token is either a prefix operator or a quantity.Check ending token is either a postfix operator or a quantity.
Package: u-calc
u-calc: A calculator with uncertaintiesTired of doing physics calculations by hand or with spreadsheets? Look no further, because this python module is here to make these calculations as easy as ever!HOW TOA simple use case: adding two numbers with uncertainties.Let's sayx = (23.00 +- 0.01)andy = (12.02 +- 0.03).Open up the python interpreter and:>>>fromu_calc.measurementimportMeasurementasMsm>>>x=Msm(23.00,0.01)>>>y=Msm(12.02,0.03)>>>print(x+y)35.020\pm0.032In your python files, you can justimportthis module just like any other.InstallationTo install it, you only needpip. Example for v0.0.1:$pipinstallu-calc==0.0.1If you want to install thelatest versionfrom this repo, you need to:git clonethis repository(using http or ssh)Make sure you're in themasterbranchRunpip install -e .in the repository root(likely to be a directory calledu_calc/) tocreate a symlinkYou're finished!:smile:Note: sometimes, you might have to usepython3 -m pipinstead of justpip.You can read about this here
Package: ucal-client
DescriptionPython client for server from UcalManager server (https://bitbucket.org/zimka_b/ucal_manager/).InstallTo install package run in terminal (or anaconda prompt):pip install -U ucal_clientorpip install -e git+https://bitbucket.org/zimka_b/ucal_client.git#egg=ucal_clientTestsTo check tests run in terminal (or anaconda prompt):pip install pytest
pytest --pyargs ucal_clientUsageSeeexample.ipynbfor examples and description.DocsTo build docs goto docs/ and runmake.bat htmlTo generate docs from scratch:mkdir docs/
cd docs/
sphinx-quickstart
# modify docs/source/conf.py to be able to import ucal_client
# modify source/*.rst to include necessary modules
# build docsSeehttps://samnicholls.net/2016/06/15/how-to-sphinx-readthedocs/for details.
Package: ucaller
ucallerУстановкаpip install ucallerИспользованиеfrom ucaller_package.ucaller import UCallerSERVICE_ID = ''
KEY = ''
uc = UCaller(service_id=SERVICE_ID, key=KEY)Первый звонокinit_call = uc.init_call(phone_number=79999999999)Повторный бесплатный звонокrepeat_free_call = uc.init_repeat(uid=init_call.get('ucaller_id'))Балансbalance = uc.get_balance()Информация о звонкеinfo = uc.get_info(uid=init_call.get('ucaller_id')
Package: ucamcl
This package provides a simple tool for checking answers
to exercises in a Jupyter notebook.Usage:# Install the grader
!pip install ucamcl

# Log in to the grader. It will prompt you with a "log in" button.
GRADER = ucamcl.autograder('https://markmy.solutions', course='scicomp').subsection('notes1')

# Fetch a question. It will tell you what to do, with what parameters.
q = GRADER.fetch_question('ex5')
print(q)

# Prepare your answer and submit it.
myans = {'x': [i**2 for i in range(q['n'])]
is_correct, answer = GRADER.submit_answer(q, myans)This package is what the student installs in their Jupyter notebook.
The other half is a server that should be set up by the course instructor.
Contact Damon Wischik <djw1005@cam.ac.uk> for details.
Package: ucanlintools
LIN Python libLibrary is under development API will changeFeaturesLIN frame transmission / receptionLDF signals encoding / decoding (only signal and frames currently working, schedule table parsing not implemented, max signal size is 1 byte)Works on windows, linux, mac. Supported hardware ,uCAN LIN USB CONVERTERInstallationpipinstallucanlintoolsExample usageTo load ldffromucanlintools.LDF_parserimportparseLDFldf=parseLDF("D:\\ldfe.ldf")message=ldf.get_message_by_name('FRAME_A')print(message.signals)To decode/ encode frameaaa=message.encode({'SIGNAL_A':1})bbb=b'\x00\x00\x00\x00\x00\x00'message.decode(bbb)To setup LIN USB Converterlin=ucanlintools.LUC('COM7')lin.set_frame_rx_handler(rx_any)lin.set_new_frame_rx_handler(rx_new_data)lin.openAsMaster()lin.addReceptionFrameToTable(52,8)lin.addReceptionFrameToTable(54,8)lin.enable()Example data reception handlerdefrx_new_data(f):globalmessageprint(hex(f.id)+": "+(f.data.hex()))if(message.id==f.id):message.decode(f.data)print(message.diff_str())For more info seehttps://ucandevices.github.io