Saravanan666/pypi-org huggingface dataset:
Package: kivy-garden.wordcloud
WORDCLOUDSeehttps://kivy-garden.github.io/wordcloud/for the rendered flower docs.Please see the gardeninstructionsfor how to use kivy garden flowers.Flower informationDisplay words in a cloud-like fashion, with optional animations on them.youtube demoYou can execute the module's__init__.pyfile with python to try the example.Installpipinstallkivy_garden.wordcloudUsagewc=WordCloud(label_options=dict(font_size=40,padding=(10,10),),label_cls='CloudLabel',words=('Kivy','Open','source','Python','library','for','rapid','development','of','applications','that','make','use','innovative','user','interfaces','such','as','multi','touch','apps',))wc.bind(on_post_populate=wc.animate_random_word,on_pre_populate=wc.cancel_animate_random_word,)root.add_widget(wc)ContributingCheck out ourcontribution guideand feel free to improve the flower.LicenseThis software is released under the terms of the MIT License.
Please see theLICENSE.txtfile.How to releaseSee the gardeninstructionsfor how to make a new release.
Package: kivy-garden.xcamera
XCamera: Android-optimized camera widgetXCamera is a widget which extends the standard Kivy Camera widget with more
functionality. In particular:it displays a "shoot button", which the user can press to take pictureson Android, it uses the native APIs to take high-quality pictures,
including features such as auto-focus, high resolution, etc.it includes a method to force landscape mode. On Android, it is often
desirable to switch to landscape mode when taking pictures: you can
easily do it by callingcamera.force_landscape(), and latercamera.resource_orientation()to restore the orientation to whatever it
was before.Screenshot:Notes:On Android, theresolutionproperty of theXCamera(and also of the
plainCamera) widget controls thepreview size: in other words, it
only affects the quality of the preview, not the size of the pictures
taken.As it is now, the camera will shoot using the default setting for the
picture size, which seems to be what the camera think it is "the best". In
theory, we could add a method to retrieve the list of all possible picture
sizes, and add a property to control it.  It would also be nice to add a
new button to allow the user to manually select the preferred size.  Pull
requests are welcome :)Install & Usagexcamera is available on PyPI.
Therefore it can be installed viapip.pip3installxcameraOnce installed, the demo should be available in yourPATHand can be ran from the command line.xcameraAnd the widget can be imported via:fromkivy_garden.xcameraimportXCameraDemoA full working demo is available insrc/kivy_garden/xcamera/main.py.
You can run it via:makerunDevelop & ContributeTo play with the project, install system dependencies and Python requirements using theMakefile.makeThen verify everything is OK by running tests.maketestIf you're familiar withDocker, the project can also run in a fully isolated container.
First build the image.makedocker/buildThen you can run tests within the container.makedocker/run/testOr the application itself.makedocker/run/app
Package: kivy-garden.zbarcam
zbarcamReal time Barcode and QR Code scanner using the camera.
It's built on top ofKivyandpyzbar.How to useSimply import and instanciateZBarCamin your kvlang file and access itssymbolsproperty.#:import ZBarCam kivy_garden.zbarcam.ZBarCam#:import ZBarSymbol pyzbar.pyzbar.ZBarSymbolBoxLayout:orientation:'vertical'ZBarCam:id:zbarcam# optional, by default checks all typescode_types:ZBarSymbol.QRCODE, ZBarSymbol.EAN13Label:size_hint:None, Nonesize:self.texture_size[0], 50text:','.join([str(symbol.data) for symbol in zbarcam.symbols])A full working demo is available insrc/main.py.InstallUbuntuInstall system requirements (Ubuntu 18.04):makesystem_dependenciesInstall zbarcam:pipinstallzbarcamThen import it in your Python code via:fromkivy_garden.zbarcamimportZBarCamAndroidBuild for Android via buildozer, seebuildozer.spec.ContributeTo play with the project, install system dependencies and Python requirements using theMakefile.makeThen verify everything is OK by running tests.maketestmakeuitestTroubleshootingAndroidValueError: Empty module nameMore likely an import issue in your.kvfile.
Try tofrom zbarcam import ZBarCamin yourmain.pyto see the exact error.
It's common to forgetPillowinbuildozer.specrequirementssection.
Package: kivyir
kivy persianThe first kivy Persian users.I converted the kivy library into Farsi for Iranians so that Iranians can use it.I have added a sample test file so you can understand how to use it.DownloadYou can install this from pypi.pip install kivyirYou can also install from this repository.git clone https://github.com/goldaaa/kivyir.gitThen, install the library withpython setup.py installImportingImport kivyir commands, menus, and the shellfrom kivyir import *        # Line 1 should always be placedCommandsCommands that can be usedSome changes if neededfrom kivyir import *
config = Config()
config.change(
    direction='ltr',
    font_name='Sahel',
    file_regular='{path}.ttf',
    file_bold='{path}.ttf',
    file_italic='{path}.ttf',
    file_bolditalic='{path}.ttf'
)Custom madefrom kivyir import IrLabel, IrTextInputSample image testedInstall the required packagekivy
facleaningIf you are interested in financial support, you can send a message through Gmail if you have any questions.gmail:goldaaa.program@gmail.comgithub kivy persianIf you Arab speaking friends need to use it, let me know so that I can apply it for you too.
Package: kivy-matplotlib-widget
kivy_matplotlib_widgetA fast matplotlib rendering for Kivy based on Kivy_matplotlib project (https://github.com/jeysonmc/kivy_matplotlib) and kivy scatter. Matplotlib used 'agg' backendHow to useJust copy graph_widget.py and graph_generator_template.py in your project. Modify graph_generator_template as your needed. See examples for more informationsinstall with pip install (just import module in your header: import kivy_matplotlib_widget)pip install kivy-matplotlib-widgetkey featureszoom with 2 fingers or mouse scrollpan with 1 finger or mouse left clickzoom box like plotly libraryreset axis on double-click (home button)fast rendering mode (axis not updated for faster draw)use only 1 package (matplotlib) and no additional backendcursor and hover option (touch or desktop mode)legend widget like plotly libraryinteractive axis like plotly librarymin/max touch option to easily change axis limit
Package: kivymd-extensions
KivyMD ExtensionsKivyMD Extensions is a project to centralize community addons for KivyMD.
You can find all extensions under@kivymd-extensionsorganization.Extensions are maintained by community members such as yourself.
If you want to create new extension,
generate a repository fromextension_template,
change allextension_templateandexample_extensionto your new extension
name and edit code.
When you will be ready to publish extension,
create new issue atkivymd-extensions/KivyMD_Extensionswith a link to your repository.
We will create repository under organization profile and push your code there.LicenseKivyMD Extensions is released under the terms of theMIT License, same asKivyMD.
Package: kivymd-extensions.akivymd
Awesome KivyMDAwesome KivyMD is a package containing customized and non-material widgets for KivyMD.Installationpipinstallkivymd_extensions.akivymd#orpipinstallhttps://github.com/kivymd-extensions/akivymd/archive/main.zipUsage with Buildozerrequirements=https://github.com/kivymd-extensions/akivymd/archive/main.zipDependencies:KivyMD>= 0.104.2 (from master branch)Kivy>= 1.11.1 (Installation)Python 3.6+DocumentationUsagefromkivy.langimportBuilderfromkivymd.appimportMDAppimportkivymd_extensions.akivymdKV="""<NavigationButton@Button_Item>icon_color: app.theme_cls.text_colortext_color: app.theme_cls.text_colorbutton_bg_color: app.theme_cls.primary_colormode: 'color_on_active'badge_disabled: TrueMDScreen:AKBottomNavigation2:bg_color: app.theme_cls.bg_darkestNavigationButton:text: 'Alert'icon: 'bell-outline'NavigationButton:text: 'Bank'icon: 'bank-outline'NavigationButton:text: 'Download'icon: 'arrow-down-bold-outline'"""classTest(MDApp):defbuild(self):returnBuilder.load_string(KV)Test().run()Examplesgitclonehttps://github.com/kivymd-extensions/akivymd.gitcdakivymdcdexamples/full_example
pythonmain.pyBuild Docsgitclonehttps://github.com/kivymd-extensions/akivymd.gitcddocs
sphinx-build-bhtmlsources./_buildSupportIf you need assistance or you have a question, you can ask for help on our mailing list:Discord server:https://discord.gg/wu3qBSTEmail:kivydevelopment@gmail.comLicenseMIT License
Package: kivymd-extensions.example-extension
Example ExtensionThis extension adds beautiful button to your app.SeeKivyMD_Extensions.Installationpipinstallkivymd_extensions.example_extensionDependencies:KivyMD>= 0.104.1Kivy>= 1.10.1 (Installation)Python 3.6+DocumentationSee source files.Examplesgitclonehttps://github.com/kivymd-extensions/extension_template.gitcdextension_templatecdexamples/full_example
pythonmain.pySupportIf you need assistance or you have a question, you can ask for help on our mailing list:Discord server:https://discord.gg/wu3qBSTEmail:kivydevelopment@gmail.com
Package: kivymd-extensions.filemanager
File ManagerDesktop file manager developed on the Kivy platform using the KivyMD library.
Perhaps the file manager will work on mobile devices, but we are not even trying to check if this is the case.
We are not testing this library on mobile devices or adapting it for mobile devices.
Because, as the name suggests, we are developing this module for desktop use.Installationpipinstallkivymd_extensions.filemanagerDependencies:KivyMD>= 0.104.1Kivy>= 1.10.1 (Installation)Python 3.6+DocumentationUsagefromkivymd.appimportMDAppfromkivymd_extensions.filemanagerimportFileManagerclassMainApp(MDApp):defon_start(self):FileManager().open()if__name__=="__main__":MainApp().run()CustomizationFileManager(path_to_skin="/Users/macbookair/data/images").open()Examplesgitclonehttps://github.com/kivymd-extensions/filemanager.gitcdfilemanagercdexamples/full_example
pythonmain.pySupportIf you need assistance or you have a question, you can ask for help on our mailing list:Discord server:https://discord.gg/wu3qBSTEmail:kivydevelopment@gmail.com
Package: kivymd-extensions.sweetalert
Sweet AlertBeautiful, responsive, customizableand accessible popup replacement.See SweetAlertdocumentationInstallationpipinstallkivymd_extensions.sweetalertDependencies:KivyMD>= 0.104.2 (currently master branch)Kivy>= 1.10.1 (Installation)Python 3.6+DocumentationSee SweetAlertdocumentation.Usagefromkivy.langimportBuilderfromkivymd.appimportMDAppKV="""#:import SweetAlert kivymd_extensions.sweetalert.SweetAlertMDScreen:MDRaisedButton:text: "EXAMPLE"pos_hint: {"center_x": .5, "center_y": .5}on_release:SweetAlert(window_control_buttons="mac-style").fire("Any fool can use a computer!")"""classMainApp(MDApp):defbuild(self):returnBuilder.load_string(KV)if__name__=="__main__":MainApp().run()Examplesgitclonehttps://github.com/kivymd-extensions/sweetalert.gitcdsweetalertcdexamples/full_example
pythonmain.pySupportIf you need assistance or you have a question, you can ask for help on our mailing list:Discord server:https://discord.gg/wu3qBSTEmail:kivydevelopment@gmail.com
Package: kivymd-extensions.title-bar
Title barInstallationpipinstallkivymd_extensions.title_bar# orpipinstallhttps://github.com/kivymd-extensions/title_bar/archive/master.zipDependencies:KivyMD>= master versionKivy>= 2.0.0 (Installation)Python 3.6+Usagefromkivymd.appimportMDAppfromkivymd_extensions.title_barimportMDTitleBarclassMainApp(MDApp):defbuild(self):returnMDTitleBar()if__name__=="__main__":MainApp().run()SupportIf you need assistance, or you have a question, you can ask for help on our mailing list:Discord server:https://discord.gg/wu3qBSTEmail:kivydevelopment@gmail.comLicenseMIT License
Package: kivy-pinview
kivy-pinviewThis is an android pinview implementation for kivy
You can usethis platformto write your content.installation:pip install kivy-pinviewuninstall:pip uninstall kivy-pinviewkivy-pinviewThis module is built using some ready to use kivy widgets like Label, TextInput, BoxLayout, FloatLayout etc.
    Structure:
            FloatLayout:
              -> TextInput:
              -> BoxLayout:
                  -> Labels:
    Working:
            On touching the view, TextInput takes focus and text entered in that is rendered to the Labels and on fully entering data into labels, on_otp(self, caller_obj, otp) is fired which can be overridden.
    Use:
            can be used to take otp(one time password) inputs...Example:from kivy.lang import Builder
    from kivy.app import App

    kv = """
    #:import PinView kivy-pinview.PinView

    PinView:
            size_hint_x:.8
            pos_hint:{'center_x':.5,'center_y':.5}
        #Box Related:
            box_spacing:10
            box_radius:[5, 5]
            box_count:5

        #Text Related:
            text_color:[0,.4,1,1]
            default_text:'-'
            #font_name:'your_font_name.ttf'
            font_size:50
            markup:True
            on_otp:print(self.otp)

         #Box Canvas related:
            box_bg_color:[1,.4,1,1]
            #box_bg_image:'your_bg_image.jpg'
    """

    class MyApp(App):
        def build(self):
            return Builder.load_string(kv)
Package: kivy-reloader
Kivy ReloaderHot reload your Kivy app on multiple phones and computer in real-time.This tool allows you to instantly update your Kivy app on multiple devices simultaneously by pressingCtrl+S, saving your precious development time and effort.How to usefromkivy_reloaderimportAppclassMainApp(App):defbuild_and_reload(self):fromscreens.main_screenimportMainScreenreturnMainScreen(name="Main Screen")MainApp()https://github.com/kivy-school/kivy-reloader/assets/23220309/f1459d7e-ca53-4ed6-b4d1-980cdae4ce16PrerequisitesInstallscrcpyon your operating system:Linux,WindowsormacOS. You will be able to control your device from your computer.Installkivy: choose your operating system onKivy School Tutorial.How to install:I recommend you to usepoetryto installkivy-reloader.Option 1) Using poetry - recommendedpoetry add kivy-reloaderOption 2) Using pippip install kivy-reloaderConfigure the constantsThe first time you runfrom kivy_reloader import App, you will be prompted on the terminal:Just press enter. This will create a file calledsettings.pyon your project folder.Every line has an explanation above. The most important constants on this file are:PHONE_IPS: Put the IP of your phone here. You can find the IP of your Android phone on: Settings > About phone > Status > IP Address.HOT_RELOAD_ON_PHONE: Set it to True to hot heload on your phone when you pressCtrl+SWATCHED_FOLDERS_RECURSIVELY: This is a list of folder names, for example["screens", "components"]. Ifanyfile inside these folders change, your Kivy app will reload.WATCHED_KV_FOLDERS_RECURSIVELY: This is a list of folder names, for example["screens", "components"]. This is where the Reloader will find your.kvfiles to reload them every time you pressCtrl+S.Open the filesettings.pyand explore the other constants.This message will also appear for you on the first time you use Kivy Reloader.Just press enter. This will create a file calledbuildozer.specon your project folder.How to use:Connect your phone to the computer using a USB cable.Create a scriptcompile.pywith the following code:fromkivy_reloaderimportcompile_appcompile_app.start()Run on the terminalpython compile.py, type1and press enter. Buildozer will compile the app and deploy on your phone.Once the app is on your phone, runpython main.pyand the hot reload will be already working. Just pressCtrl+Sin any file insidescreensfolder ormain.pyand your app will be updated on computer and phone at the same time.Do you want to test directly from this repo?Clone this project, open the folder on terminal and type:poetry shellpoetry installpython main.pypython compile.pyand press 1, enter.Wait the compilation to finish on your phone.Enjoy the Kivy Reloader!I am too impatient, I want to see it working RIGHT NOW!Clone this project, open the folder on terminal and type:poetry shellpoetry installadb install bin/kivy_super_reloader-0.1-armeabi-v7a_arm64-v8a-debug.apkpython main.pyKeep calm and enjoy the Kivy Reloader! 😄
Package: kivysome
kivysomeFont Awesome 5 Icons for KivyUsageEnable itUsing a versionThis will only work for free versions of Font Awesome.importkivysomekivysome.enable(kivysome.LATEST,group=kivysome.FontGroup.REGULAR)Using a kitThis might be extended to commercial versions of Font Awesome on demand.1. Generate your kitGo toFont Awesomeand generate your kit there.
The specified version is respected.
For the moment, only free licenses are supported.2. Enable itIn your main.py register your font:importkivysomekivysome.enable("https://kit.fontawesome.com/{YOURCODE}.js",group=kivysome.FontGroup.SOLID)3. Use itIn your.kvfile or string, reference the short Font Awesome (i.e., withoutfa-prefix) as you can copy them from their website.#: import icon kivysome.iconButton:markup:True# Always turn markup ontext:"%sComment"%icon('comment', 24)CachingKivysome will cache the files in the font folder and not redownload them from GitHub.
If a kit is given, however, the kit version will have to be fetched from Font Awesome on every execution.
Ifkivysome.LATESTis given, the latest version will also have to be determined from GitHub's servers.
Font packs will only be downloaded if new versions are published, then.
To completely avoid regular server access, a pinned version will have to be given.
The initial download can also be circumvented by downloading it a single time on the developer's machine and publishing
the downloadedfontsfolder with the project. The folder should then contain a.css,.fontd, and a.ttffile
matching the pinned Font Awesome version and font group.Check theexamplesfolder for more insight.
Package: kivytransitions
KivyShaderTransitionsContains a variety of shader screen transitions to choose fromHow to useInstall:pipinstallkivytransitionsImport:fromkivytransitions.transitionsimportCubeUse:# ....screenmanager.transition=Cube(duration=2,direction="lr")#two available directions: "lr" and "rl"# ....GLSL transitions taken from:https://gl-transitions.com/Available TransitionsAngularBounceBowTieHorizontalBowTieVerticalBurnButterflyWaveScrawlerCannabisLeafCircleCircleOpenColorPhaseColourDistanceCrazyParametricFunCrossHatchCrossWarpCrossZoomCubeDirectionalEasingDirectionalWarpDirectionalWipeDisplacementDoomScreenTransitionDoorwayDreamyDreamyZoomFadeFadeColorFadeGrayscaleFilmBurnFlyEyeGlitchDisplaceGlitchMemoriesGridFlipHeartHexagonalizeKaleidoscopeLeftRightLinearBlurLumaLuminanceMeltMorphMosaicMultiplyBlendPageCurlPerlinPinwheelPixelizePolarFunctionPolkaDotsCurtainRadialRandomNoiseRandomSquaresRippleRotateScaleFadeRotateTransitionSimpleZoomSquaresWireSqueezeStereoViewerSwapSwirlTangentMotionBlurTopBottomUndulatingBurnOutWaterDropWindWindowBlindsWindowSliceWipeDownWipeLeftWipeRightWipeUpZoomInCircles
Package: kivy-widgets
Kivy-WidgetsWelcome to the "Kivy Widgets" repository! This repository contains a collection of custom widgets for the Kivy Python library. These widgets are designed to enhance the functionality and user experience of your Kivy applications.IconViewer:fromkivy.appimportrunTouchAppfromkivy.langimportBuilderfromkivy_widgets.iconsimportIconViewerrunTouchApp(Builder.load_string("""IconViewer:"""))https://user-images.githubusercontent.com/23220309/228534067-bab84dda-8910-45f8-be38-1242dada9c17.mp4ContributingWe welcome contributions to this repository from the Kivy community. If you have created a custom widget that you think would be a good fit for this repository, please feel free to submit a pull request with your changes.LicenseThis repository is licensed under the MIT License, which allows for both personal and commercial use of the code provided.AcknowledgementsWe would like to thank the Kivy community for helping to make Kivy a powerful and versatile library for Python developers.
Package: kiwanocr
KiwanOCRThis package takes a single PDF file or a list of PDF files and returns their content as a text file.RequirementsMethodsRequirementspip installorbrew installMake sure you have installed these dependencies:brew install tesseractbrew install popplerpip pdf2imagesimportImport the following:from PIL import Imageimport pytesseract## python interface for tesseractimport os## navitage, create directoriesimport shutil## to delete the image folders with their imgsfrom pdf2image import convert_from_path## to turn pdf to imageimport glob## to glob files into a listfrom pathlib import Path## to specify path to your filesfrom natsort import natsorted, ns## natural sortingimport re## for regexMethodsSetuppip install kiwanocr.from kiwano import ocrOCR a single PDFocr.ocr_file(file_name, output_file_name, language, resolution)Argumentsfile_name: as a stringoutput_file_name: as a stringlanguage: default is English (usetesseract --list-langsto retrieve langague codes )resolution: default is 300 dpi (use integer value between 100 and 1200)OCR a list of PDFsocr.ocr_files(list_name, output_file_name, language, resolution)list_name: The only difference is to enter a list nameOutputA.txtfile is placed in aoutputfolder.
Package: kiwano-portfolio
Kiwano PortfolioThe purpose of this project is to provide an interface with Binance now, and more exchanges to come,
to be able to backtest, livetest and livetrade your trading algorithms on crypto-currencies.
We thought we could let you focus all your creativity and effort on your trading strategies,
and let us handle the rest, since this part is simpler but necessary.The code is composed of two classes, aportfoliomanager
that tracks the progress over time and provides useful statistics
on the performance of the trading algorithm. And the
inheriting classstrategythat plays the trading algo.FunctionalitiesTo understand how to use this repository, have a look at themain.pyfile.
The typical way to use the code is the following:Createportfolio;Add astrategy;Run in one of the threemodes(see below);Obtain log and plots displaying the performance of your trading strategy.The threemodesare:Backtesting(or FastBacktesting if the strategy loops already in time): will
run your algorithm on historical data, and will provide the performance
that your algorithm would have had if it was trading in the past.Livetesting: will run your algorithm on real-time data, and will provide the performance that your algorithm would have had if it was trading live, but
without actually trading with real money.Livetrading: will run your algorithm on real-time data, and will provide the performance
that your algorithm is having while trading live, with real money.The workflow ofstrategyis:Compute themetricson dataCompute the first layerstrategyto createorderCompute the second layerstrategyto make theordereffective in theportfolioRequirementsInstall the content of the requirements.txt file withpip install -r requirements.txt.
You will then need to create an API key and secret on Binance to be able to use the code.
Go to API Management in Settings on Binance, and click on Create API. Select System generated API key,
name the API, and once you pass the authentication, you have to
edit restriction and tick Enable Spot and Margin Trading if you want to livetrade with your algorithm.
This is not necessary if you only want to backtest or livetest. You can then copy the API key and secret
in aconfig.pyfile and define the variables as strings with the following names:api_key='your key as a string'api_secret='your secret as a string'For an example check theconfig_template.pyin theAPI/binance/folder.
You can finally save the file in theAPI/binancefolder or pass the filepath
as theapi_keys_locationargument when creating the portfolio. Then you are ready to go!ToDo[CLEAN] Code + simplifystrategyclass [DONE][CODE] Add multiple crypto input [DONE][CODE] multiple crypto in outputSocial mediaWant to participate in the Kiwano adventure, join our Discord !