Saravanan666/pypi-org huggingface dataset:
Package: ubkisaas
DescriptionБиблиотека для парсинга УБКИ софициального сайта.
Имеет классы для удобной работы как с сайтом, так и обработки и получение в подходящем ввиде данны из отчетов УБКИ.UbkiRequestКласс для осуществленния авторизации на сайте и возможности получения отчетов УБКИ. Отчеты получаються ввиде класса UbkiReport.UbkiReportКласс для хранения полученных входе запроса данных о персоне. Данный класс также предоставляет методы получения этих данных в сыром виде или же обработанных для использования в скоринговом анализе.ИспользованиеДля получения данных нужно инициализировать класс UbkiRequest, который проведет при необходимости авторизацию для получения сессионого ключа для проведения запросов. Потом можно получить данные о пользователе. Для примера сначала проведем тестовое подключение в ходе которого будет получен UbkiReport, из которого можно уже извлечь необходимые данные, такие как сырые данные в виде xml или словарь с полезными для скоринг анализа признаками.Пример использования при подключение к тестовому серверу:>>connect=UbkiRequest("login","password",is_test=True)>>ubki=connect.get_person_credit_report()>>ubki.get_report_xml()# Будет полученна строка xml-представления кредитного отчета о физическом лице>>ubki.get_score_xml()# Будет полученна строка xml-представления кредитного балла>>ubki.get_useful_ubki_fields(){'median_day_credit':1,...'ubki_maxnowexp':None}Пример использования при подключение к оригинальному серверу:>>connect=UbkiRequest("login","password",is_test=False)>>data=\{'okpo':"2111118724",'lname':"РИБАЧКА",'fname':"АННА",'mname':"ІГОРЕВНА",'bdate':"1957-10-19","dtype":"1",'dser':"ВВ",'dnom':"142228",'cval':"+380111111111",'ctype':"3",'email':"email@gmail.com",'reqidout':'00001'}>>ubki=connect.get_person_credit_report()>>ubki.get_report_xml()# Будет полученна строка xml-представления кредитного отчета о физическом лице>>ubki.get_score_xml()# Будет полученна строка xml-представления кредитного балла>>ubki.get_useful_ubki_fields(){'median_day_credit':423,...'ubki_maxnowexp':100}
Package: ublame
UblameArtist’s rendering of the bathyscaphe Trieste – britannica.com/ˈublaːm(ə)/:git blamewith some depth.Portmanteau word from :1.u-boat: anglicised version of the German word U-Boot that refers to any submarine2.blame: git command that annotate each line in a given file with information from the revision which last modified the line.Installcronicle is written for Python 3.6+ and is tested on Linux.Install with pip viapip3 install ublamecommand.Whyublameis born from the frustration of usinggit blameto track the successive editors of a code segment.
It performs a search on a file commits history and reports all the revisions that contain searched term in their diffs.See SO questionGit blame — prior commits?ExampleThe last modification is not always the information you need when you
try to grasp a piece of code.❯ git blame tests/rsrc/example.py | grep "if token in diff"

e65d24b3 (Fabrice Laporte 2020-11-04 2132 +0100  8)     if token in diff:

❯ git show e65d24b3
commit e65d24b336570822d33f91847542743969b17fa2 (HEAD -> main)
Author: Fabrice Laporte
Date:   Wed Nov 4 2132 2020 +0100

    chore: convert tabs to spacesIn that example, the last commit modified the code only to convert tabs
to spaces and previous commits that were probably more interesting to
get the original intention of the developer(s) are not captured bygit blame. So you need to applygit blameon the version of the
file precedinge65d24b3and so on …Withublamethe information is instantly available in one command :❯ ublame tests/rsrc/example.py "if token in diff"

Commit: e65d24b336570822d33f91847542743969b17fa2
Author: Fabrice Laporte
Date: 2020-11-04 2233+01:00

    chore: convert tabs to spaces

 def trim_diff(diff, token):
-       """Keep only context surrounding searched token.
-       """
-       if token in diff:
-               LOC_BEFORE = LOC_AFTER = 3
-       lines = diff.split("\n")

Commit: 01c5f3e2a91bcffbb5bdb24cac20d76f98b33db4
Author: Fabrice Laporte <fabrice@yescapa.com>
Date: 2020-11-04 2230+01:00

    tests: add example.py

+def trim_diff(diff, token):
+       """Keep only context surrounding searched token.
+       """
+       if token in diff:
+               LOC_BEFORE = LOC_AFTER = 3
+       lines = diff.split("\n")Screenshot
Package: ublcii
UBLCIITranslate Invoice UBL 2.1 to/from CrossIndustryInvoice (CII) D16BInstallationPre-required: python2 or python3pipinstallublciiUsagesubl2ciiInput-Invoice-UBL.xmlOutput-Invoice-CII-D16B.xml
cii2ublInput-Invoice-CII-D16B.xmlOutput-Invoice-UBL.xmlAuthorsLudovic Watteaux (Development)Claude Charmot (Specifications)Supporthttps://sourceforge.net/projects/converter-ubl-cii-invoice-xml/supportChangelogv1.0.3 : 2019-07-29 - Fixes and Updates[CII2UBL] Fixes for /Invoice/Delivery/DeliveryLocation/IDAdd xml namespaces: qdt, udt, xsi, xsi:schemaLocation[CII2UBL] Map /IncludedNote/SubjectCode in begin of /Invoice/NoteIncrease xml D16B ram:Content len to 1024Set minimum occurance of UBL /Invoice/InvoiceLine to 0v1.0.2 : 2019-07-23 - Fixes and UpdatesMap field /Invoice/InvoiceLine/AllowanceCharge/ChargeIndicatorSet default mandatory field ChargeIndicator to 'false'Fix /Invoice/PaymentMeansFix /Invoice/InvoiceLine/Price/AllowanceCharge/BaseAmountv1.0.1 : 2019-07-19 - Packaging infos updatesv1.0.0 : 2019-07-18 - First release on pypi
Package: ubo-app
🚀 Ubo App🌟 OverviewUbo App is a Python application for managing Raspberry Pi utilities and UBo-specific
features.⚙️ Features[To be written]📋 RequirementsThese things are already taken care of in the official Ubo Pod image, so if you are
botting from that image, you can ignore this section.Python 3.9 or later.Runraspi-config-> Interface Options -> Enable SPI📦 InstallationNote that as part of the installation process, these debian packages are installed:giti2c-toolslibcap-devlibegl1libgl1libmtdev1libzbar0python3-devpython3-libcamerapython3-alsaaudiopython3-picamera2python3-pippython3-pyaudiopython3-virtualenvAlso be aware that ubo-app only installs in/opt/uboand it is not customizable
at the moment.⚠️Executing scripts directly from the internet with root privileges poses a significant
security risk. It's generally a good practice to ensure you understand the script's
content before running it. You can check the content of this particular scriptherebefore running it.To install ubo, run this command in a terminal shell:curl-sSLhttps://raw.githubusercontent.com/ubopod/ubo-app/main/ubo_app/system/install.sh\|sudobashIf you want to install docker service and configure ubo to be able to use it run
this:curl-sSLhttps://raw.githubusercontent.com/ubopod/ubo-app/main/ubo_app/system/install.sh\|sudoWITH_DOCKER=truebashTo allow the installer to install the latest alpha version of ubo run this:curl-sSLhttps://raw.githubusercontent.com/ubopod/ubo-app/main/ubo_app/system/install.sh\|sudoALPHA=truebash# orcurl-sSLhttps://raw.githubusercontent.com/ubopod/ubo-app/main/ubo_app/system/install.sh\|sudoALPHA=trueWITH_DOCKER=truebash🤝 ContributingContributions following Python best practices are welcome.ℹ️️ ConventionsUseUBO_prefix for environment variables.Useubo:prefix for notification ids used in ubo core and<service_name>:prefix
for notification ids used in services.Useubo:prefix for icon ids used in ubo core and<service_name>:prefix for
icon ids used in services.🔒 LicenseThis project is released under the Apache-2.0 License. See theLICENSEfile for more details.
Package: uboat
This library helps you write command-line python scripts to use sub commands
(e.g. “git commit”, “git checkout”). It is a thin wrapper around the built-in
library argparse.This was written before the author discovered the vastly superior:click. You should use that instead.Installation$pipinstalluboatSupportsuboat has been tested with Python 3.6 and 3.7Docs & SourceDocs:http://uboat.readthedocs.io/en/latest/Source:https://github.com/cltrudeau/uboat
Package: ubo-gui
Ubo GUIGUI sdk forUbo Pod📋 RequirementsUbo Podheadless-kivy-pi📦 InstallationYou can install it using this handle: headless-kivy-pi@git+https://github.com/ubopod/ubo-gui.git# pip:pipinstallheadless-kivy-pi@git+https://github.com/ubopod/ubo-gui.git# poetry:poetryaddheadless-kivy-pi@git+https://github.com/ubopod/ubo-gui.git🛠 UsageCheckoutUbo Appto see a sample implementation.🤝 ContributingYou need to havePoetryinstalled on your machine.To install poetry in Raspbian you need to follow these instructions to install rust compiler, this is temporary untilthis issueis resolved:curl--proto'=https'--tlsv1.2-sSfhttps://sh.rustup.rs|sh
sudoapt-getinstallpkg-configlibssl-dev
curl-sSLhttps://install.python-poetry.org|python3-After having poetry, to install the required dependencies, run the following command:poetryinstall--withdevelopmentAlso be aware ofthis issueand until it is resolved you can manually disable keyring by prefixing your poetry commands like this:PYTHON_KEYRING_BACKEND=keyring.backends.null.KeyringpoetryinstallYou can run linter over whole codebase by running this command:poetryrunpoelint⚠️ Important NoteMake sure to runpoetry run poe download_fontto download Material Symbols font.🔒 LicenseThis project is released under the Apache-2.0 License. See theLICENSEfile for more details.
Package: ubox-service
Service is a Django app. For each question,Detailed documentation is in the “docs” directory.Quick startAdd “service” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'service.apps.ServiceConfig',
]Include the service URLconf in your project urls.py like this:path('api/', include(service.urls)),Add the following configuration to settings:# Name and description of the application
SERVICE_APP_ID = 'test'
SERVICE_APP_NAME = 'Testing service'
SERVICE_APP_DESCRIBE = 'Testing service for reference only.'

# The protocol, address, and port of the service
SERVICE_API_PROTOCOL = ['http']
SERVICE_API_IP = '192.168.X.X'
SERVICE_API_PORT = '80'

# Default service name, request method
SERVICE_DEFAULT_SERVICE = 'test'
SERVICE_DEFAULT_METHODS = ['GET', 'POST', 'PUT', 'DELETE']Add register decorator to an API class view or function:@register('demo', ['/api/demo'], methods=['GET'], hans='demo')
def demo(request):
    return ''Visithttp://127.0.0.1:8000/api/endpoint.
Package: ub-paste
# ub-pasteA handy tool helping you paste your file content to [ubuntu pastebin](pastebin.ubuntu.com)# InstallationInstallation viapip` pip installub-paste`# UasgeJust specify a file`ub-paste[filepath] `Examples:`ub-pastetest.py ``ub-paste/tmp/Main.java `![](https://s11.postimg.org/p47f1breb/ub-paste-demo.gif)ub-pastewill paste their contents to [ubuntu pastebin](pastebin.ubuntu.com) and then automatically open the web page in the browser.Additionally,ub-pastecan automatically detect the language by the filename extension. If it encounters an unknown filename extension, it will handle the file as a normal text file.# Available Options-aor–authorThe author name shown on the post (defaults to your username on your computer)-nor–no-browserDisallow the program to open the browser after pasting (defaults to ‘False’)
Package: ubub
ububA (micro)python library for pub-sub messaging for (u)asyncio appsSimple demo:fromububimportUbtry:importuasyncioasasyncioexceptImportError:importasyncioub=Ub()asyncdefsender(msg="Ahoj!",delay=1):whileTrue:ub.pub("topic",msg)awaitasyncio.sleep(delay)asyncdefreceiver():whileTrue:msg=awaitub.sub("topic")print("Message:",msg)asyncdefmain():# Subscribersasyncio.create_task(receiver())# Sendersasyncio.create_task(sender())asyncio.create_task(sender("Ciao",0.5))whileTrue:awaitasyncio.sleep(1)if__name__=="__main__":asyncio.run(main())Contribution notesDesignLogo - FontAssistantExtra Light 200
Package: ubuf
μBufIntroductionHave you ever needed to create your own network protocol for several languages?
Rewriting every change in multiple languages is tedious and introduces bugs!When I tried to use protobuf, the resulting code was daunting and I observed that the message size was far from optimal.This is why I created a simplistic protocol generator:μBuf.It takes a simple YAML file as input and produces compatible serialization and deserialization code for several languages.Currently, C++ and Javascript are supported as target languages.UsageWrite your protocol in a YAML file (protocol.ymlfor example)Generate the code with:ubuf protocol.yml --lang js > protocol.jsubuf protocol.yml --lang cpp > protocol.hppPut theiolibraries in the same place as the protocol files.Profit!ExampleThis is the config file that defines my protocol for a simple game:types:
  coord_t: double
  Pos:
    x: coord_t
    y: coord_t
  UserId: string

messages:
  ClientRegisterMsg:
    name: string
  ServerRegisterMsg:
  ClientUpdateMsg:
    pos: Pos
  ServerUpdateMsg:
    user_id: UserId
    name: string
    pos: Pos
  ServerDeleteMsg:
    user_id: UserIdAs you can see, it is divided in two sections,typesandmessages. The first define data types that can be used in messages.WriteFrom JS:import*asProtofrom"./protocol.js";constmsg=newProto.ClientUpdateMsg({x:4.2,y:6.9});constbuf:Uint8Array=msg.serialize();From C++:#include"protocol.hpp"ClientUpdateMsgmsg{4.2,6.9};stringbuf=serialize(msg);ReadFrom JS:import*asProtofrom"./protocol.js";constbuf=newProto.InBuffer(data);consttype=buf.readChar();if(type==Proto.ServerUpdateMsg.id){constmsg=buf.readServerUpdateMsg();// msg is a standard JS object that can be intuitively accessed:// msg.user_id, msg.name, msg.pos.x, msg.pos.y}elseif(type==Proto.ServerDeleteMsg.id){constmsg=buf.readServerDeleteMsg();// do something}else{console.log("unknown message type",type);}From C++:#include"protocol.hpp"std::string_viewmsg;InBufferbuffer(msg);if(type==ClientRegisterMsg::id_){ClientRegisterMsgmsg;buffer>>msg;std::stringname=msg.name;// do other things}Supported primitive typescharstringdouble
Package: ubump
ubumpYet another version bumper for your project.Why?I wanted to have a simple version bumper that I could use in my CI/CD pipeline.
I didn't want to have to install a bunch of dependencies or have to write a bunch of configs to just change the version number.This tool having less than 500 lines of code and just one dependency (tomlkit) is the result of that.What does it do?This tool covers basic version management where only the major, minor, and patch numbers are used.Supportingpyproject.tomlor.ubump.tomlconfiguration files.The git commit and tag are also created with the new version number.If you need more than that take a look atbump-my-versionproject.InstallationpipinstallubumpUsageInitialize the config fileubumpinitBump the versionubumppathchubumpminorubumpmajorThat's it!
Package: ubuntu-bug-triage
Ubuntu Bug TriageGet involved and help fix Ubuntu bugs! Obtain a list of bugs for an Ubuntu team or package that were created or updated yesterday.Users can further define the number of days to triage to increase the number of bugs found, the output type to allow machine readable output, or set the behavior to open the bugs in a browser and immediately begin bug triage.InstallUsers can obtain ubuntu-bug-triage as a snap:snapinstallubuntu-bug-triageOr via PyPI:pip3installubuntu-bug-triageUsageUsage is as simple as running the script to get today's bugs needing triage for the 'ubuntu-sever' team. If, however you wish to specify a different team or package that can be added:ubuntu-bug-triage[team|package]ubuntu-bug-triagecloud-init
ubuntu-bug-triagefoundations-bugsUsers can also specify a number of days of bugs to triage:ubuntu-bug-triagemysql-5.710Machine Readable OutputThere are also--jsonand--csvflags to allow for JSON and CSV output respectively. These are available to allow for machine readable output.Open in BrowserUsers on Ubuntu will be able to click on the Launchpad ID (e.g. 'LP: #1234567') in the output to open the browser. However, if a user wishes to open all the bugs quickly in his or her browser then use the--openflag! However, be warned that opening a large number of bugs (i.e. > 15) can lead to multiple browser windows getting opened.
Package: ubuntu-cloud-image-changelog
ubuntu-cloud-image-changelogHelpful utility to generate package changelog between two cloud imagesFree software: GNU General Public License v3InstallInstall from snap storeThis release is also available for download and install from the snap store @https://snapcraft.io/ubuntu-cloud-image-changelog` sudo snap installubuntu-cloud-image-changelog`This is a strict snap as recommended for most snaps, seehttps://snapcraft.io/docs/snap-confinementfor more details.Install from PyPi` pip installubuntu-cloud-image-changelog`Usage`ubuntu-cloud-image-changeloggenerate--from-manifestmanifest1.manifest--to-manifestmanifest2.manifest--from-seriesfocal--to-seriesfocal `If Packages in manifest are known to have been installed from this PPA then you can pass one of more PPAs to ubuntu-cloud-image-changelog for the changelog for those packages to be included in the output.`--ppa`Expected format is ‘%LAUNCHPAD_USERNAME%/%PPA_NAME%’ eg. philroche/cloud-init`--highlight-cves`Highlight the CVEs referenced in each individual changelog entry`--output-jsonchangelog.json `Output changelog to localchangelog.jsonfile`--output-json-pretty`Pretty print JSON output with 4 character indentation.–output-jsonmust also be used for this to take affect.TODOThere are opportunities to improve performance by parallelizing the source package changelog queries and parsing.Refactor the generate function as it is way too long and complex.Add tests for the generate function.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.15.0 (2024-01-23)Improve changelog parsing to work with fips version strings0.14.0 (2023-07-04)Migrated to pydantic 2.0
* This is not a backwards compatible change and requires pydanitc 2.0 or later.
* Seehttps://docs.pydantic.dev/latest/migration/for migration guide used.0.13.2 (2022-11-22)Improved support for JSON outputAdded newgenerateandschemacommands
*schemacommand generates a JSON schema for the given changelog model used in JSON output0.12.2 (2022-11-15)Added support for JSON outputAdded support for including CVE details in the JSON and text output0.8.1 (2020-11-11)Improve handling of changelog parsing if from version or to version not found0.8.0 (2020-11-09)handle package version that do not exactly conform to debian package version
shim-signed is a special package as it appends the version of the
binary shim from Microsoft. This full version will not appear in
the manifest so we can safely remove anything after the binary shim version.Example version: 1.37~18.04.6+15+1533136590.3beb971-0ubuntu10.7.3 (2020-11-09)package versions in a changelog may or may not include the epoch0.7.2 (2020-11-09)use consistent ubuntu-cloud-image-changelog entry point0.7 (2020-11-09)Remove dependency on dpkg-parsechangelog utility.
Use python-debian to parse changelogs instead0.6 (2020-11-09)First release on PyPI.
Package: ubuntudesign.documentation-builder
ArchivedThis project is legacy and should not be used for new documentation. Existing documentation projects using it should be migrated tothe Discourse model, or use another solution. If you manage such a project, please reach out to us to facilitate the upgrade.Ubuntu documentation builderMaintenance modedocumentation-builderis now considered a legacy product, as all user maintained documentation sets should now be moving to thediscourse-docs model.Important fixes will still be performed, but we will not be adding new features.A tool for building a set of documentation files in HTML format, from a
remote git repository containing markdown files.InstallationThe best way to installdocumentation-builderis withsnap:sudosnapinstalldocumentation-builderIf you don’t havesnapon your system, you can also install it withpip3:pip3installubuntudesign.documentation-builderFor more information seethe documentation.Developmentdocumentation-builder is a Python module. The main application code lives inubuntudesign/documentation_builder. Updates
to the markup or styling should be made inthe default template.Checking changesTo check your changes to documentation-builder, it’s probably easiest to install the module locally, in editable mode, within an encapsulated environment:python3-mvenvenv3&&sourceenv3/bin/activate# Create encapsulated environmentpipinstall-e.# Install the module in editable modedocumentation-builder--source-folderdocs# build the documentation-builder's own documentationxdg-openbuild/en/index.html# Open up the documentation pageWatching for changesOn Ubuntu et al. you can useinotifywaitto watch for changes to the source files, and rebuild when something changes as follows:sudoaptinstallinotify-tools# Ensure inotifywait is installed# Force rebuild docs when anything changes in the source folderwhileinotifywait-r-eclose_write"./ubuntudesign";dobin/documentation-builder--force--source-folderdocs;doneTestsTo run tests:./setup.pytestDebuggingTo run a specific test:./setup.pytest--addoptstests/test_operations.py::test_find_filesYou can debug tests byadding a debugger to the codeand running the test again.
Package: ubuntufinder
An utility package to locate the latest Ubuntu AMIs.Quickstart:http://ubuntufinder.readthedocs.org/en/latest/usage.htmlDocumentation (CLI & library usage):http://ubuntufinder.readthedocs.org.Free software: BSD license$ pip install --upgrade ubuntufinder
$ ubuntufinder -r precise -a amd64 -i ebs -v paravirtual us-east-1
ami-fa7dba92If you don’t have pip, install it:http://pip.readthedocs.org/en/latest/installing.htmlHistory1.2.0 (2014-07-06)Python 3 support1.2.0 (2014-07-06)CLI: Add meaningful exit codes1.1.0 (2014-07-06)CLI: Add backwards compatibility with--instance-type1.0.0 (2014-07-06)CLI: Document in READMECLI: Add help textCLI: Rename--instance-typeparameter--image-type0.4.0 (2013-08-25)improved exception handling0.3.0 (2013-08-25)Packaging housekeeping0.2.0 (2013-08-24)Added tests0.1.0 (2013-08-24)First release on PyPI.Locate Images on Ubuntu Cloud Images
Package: ubuntu-iso-download
Ubuntu ISO DownloadDownload the latest Ubuntu ISOsThis is used to download Ubuntu ISOs and verify hash of the download. The following flavors are available:Ubuntu DesktopUbuntu ServerUbuntu Netboot (mini.iso)KubuntuLubuntuUbuntu BudgieUbuntu KylinUbuntu MATEUbuntu StudioXubuntuThe release is the codename and must be a currently supported release and defaults to the latest LTS. Only the amd64 architecture is supported for download.For verification, the SHA-256 hash file and signed GPG hash file are both downloaded. The signed GPG file is used to verify that the hash file is valid and the expected hash saved. Once the ISO is downloaded, the SHA-256 hash is calculated and compared to the expected value. If a mismatch occurs the download ISO is deleted.InstallUsers can obtain ubuntu-iso-download as a snap:snapinstallubuntu-iso-download--classicOr via PyPI:pip3installubuntu-iso-downloadUsageA user needs to provide at the very last the flavor of ISo to download. By default, this will then download the latest released LTS of that flavor:# Latest LTS of Ubuntu desktop and serverubuntu-iso-downloaddesktop
ubuntu-iso-downloadserverA specific, supported release can be specified as well:# Ubuntu Xenial of Ubuntu serverubuntu-iso-downloadserverxenial# Ubuntu Cosmic of Xubuntuubuntu-iso-downloadxubuntucosmicOther options available to a user:--dry-runto not download anything and instead show the URL that would be downloaded--debugprovides additional verbose outputubuntu-iso-download<platform>[release][--dry-run][--debug]