Saravanan666/pypi-org huggingface dataset:
Package: iati2json
Convert IATI XML to JSONInstallpip install iati2jsonUsageSave to file (fastest option)import iati2json
iati2json.convert("my_iati_file.xml", file="converted.json")Convert to Stringimport iati2json
import json
iati_json_string = iati2json.convert("my_iati_file.xml")
iati_dict = json.loads(iati_json_string)Pretty (indented output)import iati2json
iati2json.convert("my_iati_file.xml", file="converted.json", pretty=True)Custom Iati SchemasBy default will work with 2.03 version of standard. You can provide your own versions of schemas:import iati2json

schemas = [
    "https://raw.githubusercontent.com/IATI/IATI-Schemas/version-2.04-beta/iati-activities-schema.xsd",
    "https://raw.githubusercontent.com/IATI/IATI-Schemas/version-2.04-beta/iati-organisations-schema.xsd",
]

iati2json.convert("my_iati_file.xml", schemas=schemas)
Package: iatikit
iatikit is a toolkit for usingIATI data.
It includes a query language wrapper aroundXPath, to make dealing with disparate
IATI versions easier.The name was inspired byOpen Contracting’socdskit.Installationiatikit is tested for pythons 3.6, 3.7 and 3.8.You can install it usingpip:pipinstalliatikitDocumentationCheck outRead the Docs!RoadmapThegithub issue
trackerwill hopefully provide
some idea.DevelopmentYou can set up a local version by creating a virtualenv and running:pipinstall-rrequirements_dev.txtYou can run tests with:pytestDeploymentiatikit isdeployed to pypiautomatically by GitHub Actions whenever a newtag is pushed to github.LicenseThis work isMIT licensed.
Package: iatisplit
Parsing very-large XML files into an in-memory DOM can cause a memory-usage
explosion that shuts down even a large server. This streaming library is optimised to handle very
large IATI activity reports and split them into smaller XML documents that a system can import
individually. It can load the IATI activity reports either from a local file or direct download
from a (public) URL. Memory usage is relatively constant regardless of the source-file size, so it
is entirely reasonable to process 100+ MB XML files, even on a resource-constrained system.
Output goes into a user-specified directory.
Package: iaTorrent
DescriptioniaTorrent snatches all of the torrents for a given collection in the
Internet Archive.You’ll need a json file for all the items in the collection with at
least the title and identifier. You can get that from the Internet
Archiveadvanced search page.
You’ll need Query parameters as well. I grab the parameters from the
‘All items (most recently added first) link on a collection page.Example:York University Library
collectionQuery
parameters:(collection:yorkuniversity AND format:pdf) AND -mediatype:collectionFields to return: identifier, title Number of results: 2608 (number of
items in the collection)ExampleInstallationiaTorrent is a single-file python module that you can drop into your
project as needed or you can install globally with:pip install iaTorrentorcd ia-torrent
sudo python setup.py installUsageFrom python you can use the iaTorrent module to snatch a collection of
torrents like this:import iaTorrent
torrent = iaTorrent.download_torrents('url_for_json', 'path_to_download_directory')Or from the commandline:iaTorrent.py -f 'url_for_json' -d 'path_to_download_directory'Test suitepython setup.py testDevelopmentFork the repositoryDo something awesome!Submit a pull
requestexplianing what your plugin doesLicenseCC0 - Public Domain
Package: iatransfer
Inter-Architecture Knowledge Transferiatransfer is a PyTorch package for transferring pretrained weights between models of different architectures instantaneously.Drastically speed up your training process using two additional lines of code.InstallationpipinstalliatransferUsagesimpleimporttorchfromiatransfer.toolkitimportIATtransfer=IAT()# run training on Model1()model_from:nn.Module=Model1()train(model_from)# instantiate new modelmodel_to:nn.Module=Model2()# enjoy high-accuracy initializationtransfer(model_from,model_to)parametrizationfromiatransfer.toolkitimportIATiat=IAT(standardization='blocks',matching='dp',score='autoencoder',transfer='trace')# ==== oriat=IAT(matching=('dp',{'param':'value'}))# ==== orfromiatransfer.toolkit.matching.dp_matchingimportDPMatchingiat=IAT(matching=DPMatching())pluginsfromiatransfer.toolkit.base_matchingimportMatchingclassCustomMatching(Matching):defmatch(self,from_module,to_module,*args,**kwargs)# provide your implementation# This will instantiate the above CustomMatching in IATiat=IAT(matching='custom')CitationWhen referring to or using iatransfer in a scientific publication, please consider including citation to the following thesis:@manual{iat2021,title        = {Inter-Architecture Knowledge Transfer},author       = {Maciej A. Czyzewski and Daniel Nowak and Kamil Piechowiak},note         = {Transfer learning between different architectures},organization = {Poznan University of Technology},type = {Bachelor’s Thesis},address = {Poznan, Poland},year = {2021}}DevelopmentInit:./dev/init.shRun tests:noseteststestsInstall in edit mode:pip install -e .Research reproduction:Copy the source code to the GCP cloudshell or installiatransfer_researchpackage.Run:/bin/bash./scripts/research/iatransfer_full_run.shoriatransfer_full_run.shifiatransfer_researchhas been installed.
Package: iatransfer-research
Inter-Architecture Knowledge Transferiatransfer is a PyTorch package for transferring pretrained weights between models of different architectures instantaneously.Drastically speed up your training process using two additional lines of code.InstallationpipinstalliatransferUsagesimpleimporttorchfromiatransfer.toolkitimportIATtransfer=IAT()# run training on Model1()model_from:nn.Module=Model1()train(model_from)# instantiate new modelmodel_to:nn.Module=Model2()# enjoy high-accuracy initializationtransfer(model_from,model_to)parametrizationfromiatransfer.toolkitimportIATiat=IAT(standardization='blocks',matching='dp',score='autoencoder',transfer='trace')# ==== oriat=IAT(matching=('dp',{'param':'value'}))# ==== orfromiatransfer.toolkit.matching.dp_matchingimportDPMatchingiat=IAT(matching=DPMatching())pluginsfromiatransfer.toolkit.base_matchingimportMatchingclassCustomMatching(Matching):defmatch(self,from_module,to_module,*args,**kwargs)# provide your implementation# This will instantiate the above CustomMatching in IATiat=IAT(matching='custom')CitationWhen referring to or using iatransfer in a scientific publication, please consider including citation to the following thesis:@manual{iat2021,title        = {Inter-Architecture Knowledge Transfer},author       = {Maciej A. Czyzewski and Daniel Nowak and Kamil Piechowiak},note         = {Transfer learning between different architectures},organization = {Poznan University of Technology},type = {Bachelor’s Thesis},address = {Poznan, Poland},year = {2021}}DevelopmentInit:./dev/init.shRun tests:noseteststestsInstall in edit mode:pip install -e .Research reproduction:Copy the source code to the GCP cloudshell or installiatransfer_researchpackage.Run:/bin/bash./scripts/research/iatransfer_full_run.shoriatransfer_full_run.shifiatransfer_researchhas been installed.
Package: iauto-desktop
iautoiautois a Python library for intelligent automation.Key FeaturesWorkflow Orchestration: Defining workflow using YAML, for collaboration and version controlPlaywright Integration: Automate web workflows with PlaywrightAppium Integration: Automate web, iOS, Android, Windows, and macOS workflows with AppiumLLMs Integration: Integrate AI into automated workflows, support OpenAI API and self-hosting LLMsRoadmappyautogui Integration: Cross-platform keyboard and mouse controlOCR: Support ORC-based screen element recognitionOpenAI Assistants API: Support Orchestrating OpenAI Assistants APIQuick StartInstallationPython version requirement: >=3.8iautocan be installed from PyPI usingpip. It is recommended to create a new virtual environment before installation to avoid conflicts.pipinstall-UiautoTo enable cuBLAS acceleration on NVIDIA GPU:CMAKE_ARGS="-DGGML_CUBLAS=ON"pipinstall-UiautoTo enable Metal on Apple silicon devices:CMAKE_ARGS="-DGGML_METAL=ON"pipinstall-UiautoPlaybookAutomate your workflow by writing a playbook.Example: Web automationbrowser.yamlplaybook:description:Open browser and goto https://bing.comactions:-browser.open:args:exec:/Applications/Google Chrome.app/Contents/MacOS/Google Chromeresult:$browser-browser.goto:args:browser:$browserurl:https://bing.comresult:$page-repeat:actions:-browser.eval:args:page:$pagejavascript:new Date()result:$now-log:$now-time.wait:2Run the playbook:python-miauto./browser.yamlExample: Chatbotchatbot.yaml:playbook:description:Chat to OpenAIactions:-llm.session:result:$session-repeat:actions:-shell.prompt:args:"Human:"result:$prompt-llm.chat:args:session:$sessionprompt:$promptresult:$message-shell.print:"AI:{$message}"Set your OpenAI API key:exportOPENAI_API_KEY=sk-<YOUR_API_KEY>Run the playbook:python-miauto./chatbot.yamlMore example playbooksControl FlowAppium WebdriverPlaywright BrowserOpenAI REPL ChatbotChatGLM REPL ChatbotQWen REPL ChatbotContributionWe are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.Development setupCode Style:PEP-8Docstring Style:Google Style# Create python venvpython-mvenv.venvsource.venv/bin/activate# Install dependenciespipinstall-rrequirements.txt
pipinstall-rrequirements-dev.txt# Apply autopep8, isort and flake8 as pre commit hookspre-commitinstallBuild./build.shLicenseMIT
Package: iauto-server
iautoiautois a Python library for intelligent automation.Key FeaturesWorkflow Orchestration: Defining workflow using YAML, for collaboration and version controlPlaywright Integration: Automate web workflows with PlaywrightAppium Integration: Automate web, iOS, Android, Windows, and macOS workflows with AppiumLLMs Integration: Integrate AI into automated workflows, support OpenAI API and self-hosting LLMsRoadmappyautogui Integration: Cross-platform keyboard and mouse controlOCR: Support ORC-based screen element recognitionOpenAI Assistants API: Support Orchestrating OpenAI Assistants APIQuick StartInstallationPython version requirement: >=3.8iautocan be installed from PyPI usingpip. It is recommended to create a new virtual environment before installation to avoid conflicts.pipinstall-UiautoTo enable cuBLAS acceleration on NVIDIA GPU:CMAKE_ARGS="-DGGML_CUBLAS=ON"pipinstall-UiautoTo enable Metal on Apple silicon devices:CMAKE_ARGS="-DGGML_METAL=ON"pipinstall-UiautoPlaybookAutomate your workflow by writing a playbook.Example: Web automationbrowser.yamlplaybook:description:Open browser and goto https://bing.comactions:-browser.open:args:exec:/Applications/Google Chrome.app/Contents/MacOS/Google Chromeresult:$browser-browser.goto:args:browser:$browserurl:https://bing.comresult:$page-repeat:actions:-browser.eval:args:page:$pagejavascript:new Date()result:$now-log:$now-time.wait:2Run the playbook:python-miauto./browser.yamlExample: Chatbotchatbot.yaml:playbook:description:Chat to OpenAIactions:-llm.session:result:$session-repeat:actions:-shell.prompt:args:"Human:"result:$prompt-llm.chat:args:session:$sessionprompt:$promptresult:$message-shell.print:"AI:{$message}"Set your OpenAI API key:exportOPENAI_API_KEY=sk-<YOUR_API_KEY>Run the playbook:python-miauto./chatbot.yamlMore example playbooksControl FlowAppium WebdriverPlaywright BrowserOpenAI REPL ChatbotChatGLM REPL ChatbotQWen REPL ChatbotContributionWe are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.Development setupCode Style:PEP-8Docstring Style:Google Style# Create python venvpython-mvenv.venvsource.venv/bin/activate# Install dependenciespipinstall-rrequirements.txt
pipinstall-rrequirements-dev.txt# Apply autopep8, isort and flake8 as pre commit hookspre-commitinstallBuild./build.shLicenseMIT
Package: iaweb.mosaic
Tell me what your product doesFeaturesCan be bullet pointsExamplesThis add-on can be seen in action at the following sites:
- Is there a page on the internet where everybody can see the features?DocumentationFull documentation for end users can be found in the “docs” folder, and is also available online athttp://docs.plone.org/foo/barTranslationsThis product has been translated intoKlingon (thanks, K’Plai)InstallationInstall iaweb.mosaic by adding it to your buildout:[buildout]

...

eggs =
    iaweb.mosaicand then runningbin/buildoutContributeIssue Tracker:https://github.com/collective/iaweb.mosaic/issuesSource Code:https://github.com/collective/iaweb.mosaicDocumentation:https://docs.plone.org/foo/barSupportIf you are having issues, please let us know.
We have a mailing list located at:project@example.comLicenseThe project is licensed under the GPLv2.ContributorsAuroreMariscal,aurore@affinitic.beChangelog1.0.0 (2021-01-04)MWEBIMI-25: Hide slides after the first one to improve page loading
[mpeeters]1.0a7 (2020-02-10)Add attributes for slick.
Serveral options to make custom responsive slider.
[thomlamb]1.0a6 (2020-02-06)Bad release
[bsuttor]1.0a5 (2020-01-06)Updating attr for slick.
add centerMode, fade, vertical, autoplay, pauseOnFocus, cssEase, autoplaySpeed attr.
[thomlamb]1.0a4 (2020-01-29)integration of imio.patterns made by Aurore
(affinitic & boulch) during the january 2020 sprint.
The actual imio.patterns (https://github.com/IMIO/imio.patterns)
just adds a slider (usinghttps://kenwheeler.github.io/slick/)
and was made to test functionnalities before the integration.
It’s been merged and so is this release.
[AuroreMariscal, boulch, thomlamb, dmshd]1.0a3 (2019-08-02)Add resources for slider.
[bsuttor]Adapt news and events tile for folder
[AuroreMariscal]1.0a2 (2019-04-02)Display dates if the element is an event
[mpeeters]1.0a1 (2019-02-23)Adapt template of news
[AuroreMariscal]Initial release.
[AuroreMariscal]
Package: iaweb.privacy
This package implement collective.privacy rules for IMIO web projectsInstallationInstall iaweb.privacy by adding it to your buildout:[buildout]

...

eggs =
    iaweb.privacyand then runningbin/buildoutContributeIssue Tracker:https://github.com/collective/iaweb.privacy/issuesSource Code:https://github.com/collective/iaweb.privacyLicenseThe project is licensed under the GPLv2.ContributorsMartin Peeters, mpeeters [original author]Changelog1.0a2 (2022-01-19)SUP-21477: Change default cookies texts
[laulaz]1.0a1 (2021-12-13)Initial release.
[mpeeters]
Package: ib110hw-testing
This library was created for the courseIB110 - Introduction to InformaticsatMUNI FI. It builds on top of theib110hwand thehypothesislibraries.SetupPython version required for this library is>=3.6. It can be installed usingpiplike so:pip install ib110hw_testingUsing venv to install the library is recommended as it has some dependencies (ib110hw,exrex,hypothesis).ModulesTestingThe moduletestingcontains some predefined strategies which can be used with thehypothesislibrary.Example Use-caseBelow code shows a simple example of strategies used with tests.fromhypothesisimportgivenfromib110hw.automaton.dfaimportDFAfromib110hw_testing.testing.strategiesimportdfas,strings_from_regexfromtypingimportSet@given(dfas(alphabet={"a","b","c"}),strings_from_regex(regex="[abc]*"))deftest(dfa:DFA,strings:Set[str])...TransformationThe moduletransformationcontains implementations of some algorithms which can be used to transform automata.Example Use-caseBelow code shows a simple example of automata comparison.fromib110hw.automaton.dfaimportDFAfromib110hw.automaton.nfaimportNFAfromib110hw_testing.transformation.transformationimportcompare_automatanfa:NFA=NFA(...)# an arbitrary NFAdfa:DFA=DFA(...)# an arbitrary DFAcompare_automata(nfa,dfa)# returns True/False
Package: ib2parqet
Interactive Brokers to Parqet Converterib2parqetis a simple command-line utility that converts Flex-Query exports from Interactive Brokers into csv files that can be imported into Parqet.Installationpython-mpipinstallib2parqetUsageusage:ib2parqet[-h][-v][-oOUTPUT]input

positionalarguments:inputpathtoFlexQueryxmlgeneratedinIB

options:-h,--helpshowthishelpmessageandexit-v,--versionshowprogram'sversionnumberandexit-oOUTPUT,--outputOUTPUToutputfilepath
Package: ib3
IRC bot framework using mixins to provide commonly desired functionality.OverviewTheircpython library’sirc.bot.SingleServerIRCBotprovides a nice
base for making a new bot, but there are many common tasks needed by a robust
bot that it does not handle out of the box. IB3 collects some commonly desired
behaviors for a bot asmixinclasses that can be used viamultiple
inheritance:from ib3 import Bot
from ib3.auth import SASL
from ib3.connection import SSL
from ib3.mixins import DisconnectOnError

class TestBot(SASL, SSL, DisconnectOnError, Bot):
    passInstallationpython3-mpip install--upgradeib3(recommended)python3-mpip install .(from source distribution)LicenseIB3 is licensed under theGPL-3.0-or-laterlicense.CreditsSome code and much inspiration taken from Wikimedia irc botsAdminbot,Jouncebot, andStashbot.
Package: ibackupper
backup maker with s3this package help you to create and upload backup from a directory to s3 storage.###install ibackupperpip install ibackupper###config
first you should set s3 configuration with this command:ibackupper set_configthis command prompt and ask your config###usage
with this command you can backup directory and upload to s3 storage:ibackupper backupthis command will open a prompt and ask directory for backup
Package: ibackupy
iBackupyA Python package to parse iTunes backup.Install$pipinstall-UibackupyUsagefromibackupyimportBackupbak=Backup()# or Backup(custom_backup_dir)bak.get_device_list()bak.set_device(device_udid)# get files from backupbak.get_files(app="com.apple.Pages",relative_path="xx/xx.dat",real_path=True,)LicenseMIT
Package: ibalert
Simple NotificationA basic & minimal example, of handling notification using websocket.ToolsDjango 3.1Channels 3.0.1InstallationOn your terminal/shellpip3installibalert

sudodockerrun-p6379:6379-dredis:5Quiz setupIn your project's settings.py file. Add ibalert and channels to intallled apps and configure redis.# settings.pyINSTALLED_APPS=[...,"ibalert","channels"]ASGI_APPLICATION="ibalert.asgi.application"CHANNEL_LAYERS={"default":{"BACKEND":"channels_redis.core.RedisChannelLayer","CONFIG":{"hosts":[("localhost",6379)]},}}In your project's urls.py...fromdjango.views.genericimportTemplateViewurlpatterns=[path("",TemplateView.as_view(template_name="home.html")),...]In your templates directory add home.html file. (Just to make sure the app is working. Later you can implement it the way you want.)<html><head><title>IB-Alert</title><linkhref="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"rel="stylesheet"/></head><body><divclass="container"><h4class="text-center">Notifications<spanclass="badge bg-danger"id="counter">0</span></h4><ulid="notifylist"></ul></div></body><script>constwebSocket=newWebSocket("ws://localhost:8000/notifications/")webSocket.onclose=function(e){console.error("Chat socket closed unexpectedly")}webSocket.onopen=function(e){webSocket.send(JSON.stringify({userID:1}))}webSocket.onmessage=function(action){constdata=JSON.parse(action.data)console.log(data.event=="Notification",data)constnl=document.querySelector("#notifylist")if(data.event=="Notification"){varcounter=document.getElementById("counter")counter.innerText=data.unread_countvarel=document.createElement("li")el.innerHTML=`<b>New Notification </b>:${data.text}!`nl.appendChild(el)}}</script></html>Now make migrations, migrate,createsuperuserand runserver. You should see something like below.startingASGI/Channelsversion3.0.4developmentserverathttp://127.0.0.1:8000/Open django shellpython3 manage.py shellalong with openhttp://127.0.0.1:8000on a browser. And run the following on your django shell.fromibalert.modelsimportNotifications
Notificatons.objects.create(text='hello there!',user_id=1)You should see new notification on your browser.
Package: ibancheck
IBAN CheckUse ibancheck to validate IBAN bank account numbers.UsageThere are currently to main purposes of this module:Validating an IBAN number:is_valid("NL00 BANK 1122 3344 55"). Will return True or raise a ValueError.Creating an IBAN number and create a checksum:create_iban("NL", "BANK1122334455").TestingTesting is done in aselftestmanner. So tests are in the code and are run on import. To test manually dopython3 -c 'import ibancheck'ReferencesThe International Bank Account Number is described byEuropean Committee For Banking StandardsinEBS204 v3.2 August 2003The official registry is inISO 13616
Package: ibancom
ibancomPython client forIBAN.comAPIFree software: MIT licenseDocumentation:https://ibancom.readthedocs.io.FeaturesIBAN validationIBAN bank data detailsTestsTests will be automatically run by travis on commit to master.They can also be executed locally using docker-compose by running`docker-composeup`Requirements upgradesCheck for upgradeable packages by running`docker-composerun--rmpythonpip-check`Making a new releasebumpversionis used to manage releases.Add your changes to theHISTORYand run`docker-composerun--rmpython bumpversion <major|minor|patch>`, then push (including tags)CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.6.1 (2019-09-25)Replace IBAN URLUse Black for formatting0.6.0 (2019-10-30)Upgrade packagesRemove Python 2.x supportAdd tests for Python 3.80.5.6 (2018-01-08)Add checking againt SEPA supports for SCT, SDD, COR1, B2B and SCC0.5.5 (2018-01-08)Add imports in module __init__0.5.4 (2018-01-08)Improve the way of usage of the library by returning an IBAN objectAdd pytest-cov to run tests coverage with pytest0.5.3 (2018-01-06)Update contributing file and fix pep8 errors0.5.2 (2018-01-06)Updating README and documentation usage0.5.1 (2018-01-06)Remove python 2.6 from travis and setup.py0.5.0 (2018-01-06)Remove tests for python 2.6 and add tests for python 3.6.0.1.1 (2018-01-06)First release on PyPI.
Package: ibans
ibansA simple yet powerfull package for validating parsing ibansFEATURESValidating IBANChecks if the country suports ibanValidate the IBAN string size for the specific countryValidate the check code for countries with fix checkcodeValidate the structure of BBAN for the specific countryValidate the entire IBAN using MOD 97 operaationas decribed byISO-7064Parsing IBAN will get the following infoCountry nameCountry Alpha2 codeCheck CodeBasic Bank Acount Number(If Available) Bank Code(If Available) Account number(If Available) SWIFT(If Available) Sigla(If Available) Bank Name(If Available) Branch code(If Available) Account Type(If Available) Account Holder(If Available) Balance Account Number(If Available) Currency CodeInstalationInstall using pip with:pip install ibansUsageUsing the package is as simple as shown belowParse IBANto parse an iban just call>>>importibans>>>iban=ibans.parse("AO06005500009209313310152")>>>iban.country'Angola'>>>iban.country_code'AO'>>>iban.check_digit'06'>>>iban.basic_bank_account_number005500009209313310152>>>iban.bank_code'0055'>>>iban.account_number'00009209313310152'>>>iban.bank_name'Banco Privado Atlântico, S.A.'>>>iban.sigla'BPA'>>>iban.swift_bic'PRTLAOLU'Format IBANFormating example>>>fromibansimportIban,IbanFormat>>>iban=ibans.parse("AO06 0055 0000 9209 3133 1015 2")>>>iban.format(IbanFormat.PRINT)'AO06 0055 0000 9209 3133 1015 2'>>>iban.format(IbanFormat.PRINT_HIDDEN)'AO06 **** **** **** **** *015 2'>>>iban.format(IbanFormat.ELECTRONIC)'AO06005500009209313310152'Formating example for (Belgium)>>>fromibansimportIban,IbanFormat>>>iban=ibans.parse("BE71096123456769")>>>iban.format(IbanFormat.PRINT)'BE71 096 1 2345 67 69'Formating example for (Cyprus)>>>fromibansimportIban,IbanFormat>>>iban=ibans.parse("CY17002001280000001200527600")>>>iban.format(IbanFormat.PRINT)'CY17 002 0 0128 0000 0012 0052 7600'ContributingContribuitions are welcome, please open an issue or send a PR.
Please read our Contributing and code of conductLicenseThis project is available under MIT License