Saravanan666/pypi-org huggingface dataset:
Package: kodespel
kodespelkodespel is a spellchecker for source code.
It is implemented as a small Python script with
all the real work done in a library (packagekodespel).kodespel's nifty trick is that it knows how to split
common programming identifiers like
'getAllStuff' or 'DoThingsNow' or 'num_objects' or 'HTTPResponse'
into words, feed those to ispell, and interpret ispell's output.Requirements & installationkodespel requires Python 3.6+ andispell.
To install ispell, use your OS-specific package manager
(e.g. apt, dnf, brew, ...).To install kodespel itself, use pip:pip install --user kodespel(Or install it in a virtualenv if you prefer.)UsageBasic usage is to run kodespel on one or more individual files
or directories:kodespel foo.py main.go README.mdkodespel uses a collection ofdictionariesto spellcheck each file.
It always uses thebasedictionary,
which is a set of words common in source code
across languages and platforms.
Additionally, there is a language-specific dictionary
for each language the kodespel knows about.
Language-specific dictionaries are automatically chosen for you.In this example, kodespell will spellcheck each file with:foo.py: dictionariesbaseandpythonmain.go: dictionariesbaseandgoREADME.md: dictionarybaseonly
(no language dictionary for Markdown)If run on a directory, kodespel will recurse into that directory
and spellcheck every file that it recognizes:kodespel src/will search for*.py,*.c,*.h, and any other
extension that kodespel has built-in support for.
(Currently: Python, Perl, Go, C, C++, and Java.)
Unsupported files are ignored, but if you pass those filenames
explicitly, they will be checked.kodespel ships with several other common dictionaries.
For example, if the program you are spellchecking uses
a lot of Unix system calls, you would add theunixdictionary:kodespel -d unix foo.py main.go README.mdThe-doption applies to every file being checked.To see the list of all builtin dictionaries, runkodespel --list-dictsFinally, you can create your own dictionaries,
and use as many of them as you like.
A dictionary is a plain text file with one word per line:$ cat myproject.dict
nargs
argsYou can specify your person dictionaries with-d,
just  like kodespel's builtin dictionaries:kodespel -d unix -d myproject.dict foo.py ...See alsoA tool with similar goals but a different implementation iscodespell.The main advantage of codespell is that it seems to have
many fewer false positives.The main advantage of kodespel is that it checks identifiers,
not just comments and strings,
so can find a lot more errors.
And more false positives too, unfortunately.
Package: kodetest
OverviewTilhørende tester for programmeringsoppgavene på kodeklubben.github.ioInstallationInstall usingpip…pipinstallkodetestExampleTODO: Write example.API referenceAPI reference is athttp://kodetest.rtfd.org.DevelopmentInstall dependencies and link development version of kodetest to pip:gitclonehttps://github.com/arve0/kodetestcdkodetestpipinstall-rrequirements.txt# install dependencies and kodetest-packageTestingtoxBuild documentation locallyTo build the documentation:pipinstall-rdocs/requirements.txtmakedocs
Package: kodexa
KodexaKodexa is a platform for building intelligent document processing pipelines. It is a set of tools and services that
allow you to build a pipeline that can take a document, extract the content, and then process it to extract the
information you need.It is built on a set of core principles:Document Centric- Kodexa is built around the idea of a document. A document is a collection of content
nodes that are connected together. This is a powerful model that allows you to build pipelines that can
extract content from a wide range of sources.Pipeline Oriented- Kodexa is built around the idea of a pipeline. A pipeline is a series of steps that
can be executed on a document. This allows you to build a pipeline that can extract content from a wide range
of sources.Extensible- Kodexa is built around the idea of a pipeline. A pipeline is a series of steps that can be executed
on a document. This allows you to build a pipeline that can extract content from a wide range of sources.Label Driven- Kodexa focuses on the idea of labels. Labels are a way to identify content within a document
and then use that content to drive the processing of the document.Python SDKThis repository contains the Python SDK for Kodexa. The SDK is the primary way to interact with Kodexa. It allows you to
define actions, models, and pipelines that can be executed on Kodexa. It also includes a complete SDK client for
working with a Kodexa platform instance.Documentation & ExamplesDocumentation is available at theKodexa Documentation PortalSet-upWe use poetry to manage our dependencies, so you can install them with:poetry installYou can then run the tests with:poetry run pytestContributingWe welcome contributions to the Kodexa platform. Please see ourcontributing guidefor more details.LicenseApache 2.0
Package: kodexa-cli
Kodexa Command Line ToolsKodexa is a platform for building intelligent document processing pipelines. It is a set of tools and services that
allow you to build a pipeline that can take a document, extract the content, and then process it to extract the
information you need.It is built on a set of core principles:Document Centric- Kodexa is built around the idea of a document. A document is a collection of content
nodes that are connected together. This is a powerful model that allows you to build pipelines that can
extract content from a wide range of sources.Pipeline Oriented- Kodexa is built around the idea of a pipeline. A pipeline is a series of steps that
can be executed on a document. This allows you to build a pipeline that can extract content from a wide range
of sources.Extensible- Kodexa is built around the idea of a pipeline. A pipeline is a series of steps that can be executed
on a document. This allows you to build a pipeline that can extract content from a wide range of sources.Label Driven- Kodexa focuses on the idea of labels. Labels are a way to identify content within a document
and then use that content to drive the processing of the document.Command Line ToolsThis repository contains the command line tools for Kodexa. The tools are the primary way to interact with Kodexa. It
allows you to configure components and manage aspects of your Kodexa Platform installation.Documentation & ExamplesDocumentation is available at theKodexa Documentation PortalSet-upWe use poetry to manage our dependencies, so you can install them with:poetry installYou can then run the tests with:poetry run pytestContributingWe welcome contributions to the Kodexa platform. Please see ourcontributing guidefor more details.LicenseApache 2.0
Package: kodexa-spatialkit
Spatial KitA collection of functions and utility to support working with spatial content in Kodexa.You can simply install the package with:pip install kodexa-spatialkitDevelopment EnvironmentIf you are looking to work on Spatial Kit, you will need to have a development environment.First ensure you have Anaconda installed, then runconda env create -f environment.ymlOnce created you can activate the environment with:conda activate kodexa_spatialkitThen install the dependencies:pip install -r requirements.txt(C) Copyright [2020] Kodexa, Inc
Package: kodi-addon-checker
Kodi Addon checkerThis tool checks the Kodi repo for best practices and produces a report containing found problems and warnings.It can also be used locally for detecting problems in your addons.FeaturesChecks if artwork is available and if the size is asdefinedChecks if all artworks(images/fanart/screenshot) are valid.Checks if addon.xml and license file exists for an addon.Checks if the version in addon.xml is valid (for repository generator)Checks if all xml files are valid.Check if all the json files are valid.Checks if the addon id in addon.xml matches with the folder name.Checks if the addon uses the old strings.xml translation format.Check if the addon uses the old language folders (English vs resource.language.en_gb).Checks for various blacklisted strings.Check for blacklisted filetypes.Check for new dependencies present in addon.xml files.Check the complexity of the entrypoint files for addon.Check if addon already exists in any of lower repositoriesCheck if addon already exists in any of the upper repositories (with non-compatible python abi) with a lower version, thus preventing a user kodi migrationCheck if addon is compatible with python3 or notCheck specificversion attributeValidate addon.xml against schemasCheck if files in addon are marked as executable or not.Check for unused script.module addonsCheck presence of extensions in addon dependencies.Check for valid forum, source and website value in addon.xmlCheck if all PO files are validAll of the validation and checks are done according to the kodiaddon rulesInstallationYou will need Python3.Then you can directly install it from pip package:pipinstallkodi-addon-checkerFor DevelopmentClone the repositorygit clone https://github.com/xbmc/addon-checkcd <path-to-cloned-repo>Install the requirements:pip install -r requirements.txtUsageIf you are in add-on directory:Executekodi-addon-checkerIf you want to run it from any other directoryExecutekodi-addon-checker <path-to-addon>You can use the tool with the following options:--version                   version of the tool
--branch                    name of the branch the tool is to run on
--PR                        only when the tool is running on a pull request
--allow-folder-id-mismatch  allow the addon's folder name and id to mismatch
--reporter                  enable a reporter, this option can be used multiple times
--enable-debug-log          enable debug logging to kodi-addon-checker.log
Package: kodicontroller
This package provides an array of functions which can be used to
control a Kodi instance.For full details of exactly what functions are available, the necessary parameters
which must be provided to those functions and exactly what the subsequent processing
of the response is please refer to the source code directly.Note: This is a work in progress and not all Kodi JSON methods are implemented.ExampleThis is an example of the GetMovies method given a kodi server at 192.168.0.1,
using port 8000 (username=’user1’, password=’pwd’):controller=kodicontroller.KodiController()controller.SetServer('192.168.0.1','8000','user1','pwd')controller.VideoLibrary_GetMovies()This will setup the Kodi JSON client given the provided server details and call
the VideoLibrary.GetMovies JSON method with the following parameters:params={'properties':['title','lastplayed','thumbnail','plot','playcount','resume','file']}movies=server.VideoLibrary.GetMovies(params)The response will then be parsed to extract an appropriate resume percentage and
it will also download and (optionally) locally cache any thumbnails.RequirementsThis is a python package and requires the following:Python 3.4+Python kodijsonrpc packageAnd of course to have a purpose a Kodi instance is required:Kodi v13 or laterInstallationInstall using pip:$pipinstallkodicontrollerRequests, Issues, Bugs or SuggestionsAdd any feature requests, issues, bugs or suggestions here:https://github.com/davgeo/kodicontroller/issuesPlease give as much detail as possible.
Package: kodict-core
# kodict_coreA Korean Dictionary bot for searching language and vocabulary information from Krdict and DeepL.` pip installkodict-core`## kodict_corefetch_all(text)
- Searches National Institute of Korean Language’s Korean-English Learners’ Dictionary (한국어기초사전)
- Uses API for Hangul/Hanja and Scraper for English
- Searches DeepL Translate for fallback
Package: kodi-json
python kodi json clientSimple python module that allow kodi control over HTTP Json API.
Virtually support all availables commands.Install it :pipinstallkodi-jsonUsages examples :Client instanciationfromkodijsonimportXBMC,PLAYER_VIDEO#Login with default kodi/kodi credentialskodi=XBMC("http://YOURHOST/jsonrpc")#Login with custom credentialskodi=XBMC("http://YOURHOST/jsonrpc","login","password")Ping kodiprintkodi.JSONRPC.Ping()UI interaction :# Navigate throught windowskodi.GUI.ActivateWindow({"window":"home"})kodi.GUI.ActivateWindow({"window":"weather"})# Show some notifiations :kodi.GUI.ShowNotification({"title":"Title","message":"Hello notif"})# ...and so onParameters can alos be passed as python parameters:kodi.GUI.ActivateWindow(window="home")kodi.GUI.ActivateWindow(window="weather")kodi.GUI.ShowNotification(title="Title",message="Hello notif")Library interaction :kodi.VideoLibrary.Scan()kodi.VideoLibrary.Clean()# ...and so onEverything to build a script thats act as a full remotekodi.Application.SetMute({"mute":True})kodi.Player.PlayPause([PLAYER_VIDEO])kodi.Player.Stop([PLAYER_VIDEO])kodi.Input.Left()kodi.Input.Right()kodi.Input.Up()kodi.Input.Down()kodi.Input.Back()kodi.Input.Down()kodi.Input.Info()# ...and so onSeehttp://wiki.xbmc.org/index.php?title=JSON-RPC_API/v6for availables
commands.Every kodi namespaces are accessible from the instanciated kodi client.Every commands presents in theAPI
documentationshould be available.You can take a look atxbmc-clientfor an
implementation example.ContributePlease make your PR on the branch develop :)
Package: kodijsonrpc
This provides a Kodi JSON-RPC client. All Kodi JSON methods can be
called as methods to the KodiJSONClient instance.UsageThis is an example given a kodi server at 192.168.0.1, using port 8000 (username=’user1’, password=’pwd’):server=KodiJSONClient('192.168.0.1','8000','user1','pwd')server.JSONRPC.Ping()All other Kodi JSON methods can be called in a similar way, with parameters provides as appropriate.e.g. This would provide movie details:params={'properties':['title','lastplayed','thumbnail','plot','playcount','resume','file']}movies=server.VideoLibrary.GetMovies(params)RequirementsThis is a python package and requires the following:Python 3.4+Python jsonrpcclient packagePython requests packageAnd of course to have a purpose a Kodi instance is required:Kodi v13 or laterInstallationInstall using pip:$pipinstallkodijsonrpcRequests, Issues, Bugs or SuggestionsAdd any feature requests, issues, bugs or suggestions here:https://github.com/davgeo/kodijsonrpc/issuesPlease give as much detail as possible.
Package: kodiksnlp
Kodiks Türkçe Doğal Dil İşleme Python KütüphanesiKodiks Türkçe Doğal Dil İşleme resmi Python NLP kütüphanesiKurulumKodiksNLP, Python 3.5 veya üstünü destekler. KodiksNLP'yiPyPI'den pip ile yükleyebilirsiniz.pip install kodiksnlpbu aynı zamanda KodiksNLP'nin bağlımlılıklarından biri olan requests>=2.21.0 paketini de yükler.Şu anda kodiksnlp'nin önceki bir sürümü yüklüyse, şunu kullanın:pip install kodiksnlp -UÇalıştırmaPython paketi detaylı kullanım örnekleri içindökümantasyonuinceleyiniz.
Package: kodipydent
A complete Python client for the Kodi JSON-RPC APIWhy?Because JSON-RPC is one of the trickier communication schemes to write for. And if you want to code for it, then you’re probably going to get into bit of a dysfunctional relationship with the documentation.What?A native-Python JSON-RPC client. Loads all the methods from your Kodi instance each time it gets instantiated, so you know you’re never behind. And, it puts it in some semblance of a reasonable object structure.Future updates will bundle a carefully-manicured static hive that will give you a better object structure at the cost of not always being completely up-to-date.How?>>>fromkodipydentimportKodi>>>my_kodi=Kodi('192.168.1.1')>>>movies=my_kodi.VideoLibrary.GetMovies()Simple as that. beekeeper makes it easy to use and easy to learn; if you don’t know the name of the method you want to use, just do this:>>>print(my_kodi)and you’ll get a printout of all the methods available, and all the variables each one takes.Installation$pipinstallkodipydentUnder the Hoodkodipydent is driven by beekeeper, the family-friendly, object-oriented Python REST library. With beekeeper, even JSON-RPC clients are relatively simple to write. Don’t believe me? Read the code. And you can check outkodipydent/hive.jsonto see what a full hive looks like.Here’s the full signature of the method to create your API:Kodi(hostname[,port=8080,username='kodi',password=None])“Advanced” Usagekodipydent supports Kodi installations that have usernames and passwords set up. If you’ve created a password for web access, then simply construct your kodipydent instance as follows:Kodi('localhost',username='kodi',password='myawesomepassword')
Package: kodipydent-alt
A complete Python client for the Kodi JSON-RPC APIWhy?Because JSON-RPC is one of the trickier communication schemes to write for. And if you want to code for it, then you’re probably going to get into bit of a dysfunctional relationship with the documentation.What?A native-Python JSON-RPC client. Loads all the methods from your Kodi instance each time it gets instantiated, so you know you’re never behind. And, it puts it in some semblance of a reasonable object structure.Future updates will bundle a carefully-manicured static hive that will give you a better object structure at the cost of not always being completely up-to-date.How?>>>fromkodipydentimportKodi>>>my_kodi=Kodi('192.168.1.1')>>>movies=my_kodi.VideoLibrary.GetMovies()Simple as that. beekeeper makes it easy to use and easy to learn; if you don’t know the name of the method you want to use, just do this:>>>print(my_kodi)and you’ll get a printout of all the methods available, and all the variables each one takes.Installation$pipinstallkodipydentUnder the Hoodkodipydent is driven by beekeeper, the family-friendly, object-oriented Python REST library. With beekeeper, even JSON-RPC clients are relatively simple to write. Don’t believe me? Read the code. And you can check outkodipydent/hive.jsonto see what a full hive looks like.Here’s the full signature of the method to create your API:Kodi(hostname[,port=8080,username='kodi',password=None])“Advanced” Usagekodipydent supports Kodi installations that have usernames and passwords set up. If you’ve created a password for web access, then simply construct your kodipydent instance as follows:Kodi('localhost',username='kodi',password='myawesomepassword')
Package: kodi-repo-bootstrap
KodiRepository BootstrapperMany thanks to @Twilight0 and all the others who contributed code for this project before.InstallationYou can install this Python package via pip(x):pip(x)installkodi-repo-bootstrapOtherwise the package can be downloaded from PyPI:https://pypi.org/project/kodi-repo-bootstrap/Usage1. PreperationsYou need two directories:addons_dir: This direcotry contains the Kodi addons you want to publish. The single addons can be present as ZIP files or as a directory with the officialKodi addon structure.A validaddons_dirwill look like this:addons_dir/
    |- plugin.addon.id-versionX.zip
    - and / or -
    |- plugin.addon.id/
    |    |- addon.xml
    |    |- ...
    |    - and / or -
    |    |- plugin.addon.id-versionX.zipIf multiple versions of the same addon (same ID) are present, only the newest version will be used by the script.repo_dirwhere this script creates the necessary structure for a Kodi repository.Please do not make any manual changes to this directory.2. Define repository settingsCreate a configuration file in JSON format (e.g.config.json). An example file with the available options can be found in the root directory of this repository:config.json.exampleORConfigure the Kodi repository with CLI arguments. Seekodi-repo-bootstrap-hfor the available settings.3. Run the scriptkodi-repo-bootstrap<CONFIG_FILE>The path to the config file is mandatory.This will create all files and directories that are necessary for a Kodi repository. No user interaction is needed.4. Publish therepo_dire.g. via HTTP server (webdav)Therepo_dircontains all files and directories that are necessary for Kodi to recognize it as a valid repository. You only have to publish it via HTTP.For a simple Webdav setup with Docker, you can have a look at my other repository:docker-webdav5.[Optional]Change repository settingsTo change any settings you can eitheradjust the config fileORuse a CLI argument. The script will then save the changes to the config file for you.TroubleshootingIf you encounter any errors, please clear therepo_dirfirst and run the script again. This will recreate the Kodi repository file structure.If the error is still present, feel free to open an issue on GitHub.
Package: kodiswift
A micro framework to enable rapid development of Kodi plugins.FeaturesRun the addon from the command lineorwithin Kodi without changing any
code.Helper libraries to make common Kodi api operations easy, like adding items,
getting settings, creating temporary files, etc.Handles all the url parsing involved in plugin routing. No need to deal with
complicated URLs and query strings.DocumentationThe current documentation still needs updatedDevelopmentThis project is a fork of xbmcswift2.Contacthttps://github.com/Sinap/kodiswiftafrase91@gmail.com
Package: kodland-sso-client
Для работы пакета нужен установленный RabbitMQ.Обмен с сервером идет через очереди.После установкиДобавить приложение в список INSTALLED_APPS проекта:INSTALLED_APPS=[...'sso_client']Выполнить миграции:pythonmanage.pymigrateДобавить в settings.py следующие строки:importosimportpika# settings for sso loginAUTH_USER_MODEL='sso_client.OauthUser'AUTHENTICATION_BACKENDS=('sso_client.backends.TokenAuth',)SSO_URL='{адрес sso сервера}/sso/'LOGIN_URL='{адрес на sso сервере для логина}'# корневой домен для cookiesSESSION_COOKIE_DOMAIN='.local'JWT_SECRET=os.environ.get('JWT_SECRET')# если установить в True, то общение с sso сервером авторизации# для получения данных пользователя будет через RabbitMQRABBIT_ON=FalseRABBIT_PARAMS={'host':os.environ.get('RABBIT_HOST','localhost'),'port':os.environ.get('RABBIT_PORT',5672),'credentials':pika.PlainCredentials(os.environ.get('RABBIT_USER','guest'),os.environ.get('RABBIT_PASSWORD','guest'))}Добавить в секцию middleware:'sso_client.middleware.CheckTokenMiddleware','sso_client.middleware.AuthMiddleware'
Package: kodland-sso-server
Для работы необходим RabbitMQ.Consumer запускается так:python3manage.pyrabbit_consumerПосле установкиДобавить приложения в списокINSTALLED_APPSв settings.pyINSTALLED_APPS=[...'rest_framework','rest_framework_swagger','sso_server']Добавить в settings.py переменную, содержащую корневой домен для установки cookiesDOMAIN='.local'Добавить в settings.py следующую строку:importosimportpikaREST_FRAMEWORK={'DEFAULT_SCHEMA_CLASS':'rest_framework.schemas.coreapi.AutoSchema'}RABBIT_PARAMS={'host':os.environ.get('RABBIT_HOST','localhost'),'port':os.environ.get('RABBIT_PORT',5672),'credentials':pika.PlainCredentials(os.environ.get('RABBIT_USER','guest'),os.environ.get('RABBIT_PASSWORD','guest'))}Выполнить миграции:pythonmanage.pymigrateДобавить в settings.py в middleware:'sso_server.middleware.UserCookieMiddleWare'Добавить в urls.py следующий маршрут:urlpatterns=[...path('sso/',include('sso_server.urls'))]
Package: kodoc-tokenizer
kodoc-tokenizerTokenizer for kodocBased ontransformers==4.7.0Installationpip3installkodoc-tokenizerHow to UseVersionimportkodoc_tokenizerkodoc_tokenizer.__version__# 0.2.0rc1clean_textfromkodoc_tokenizerimportclean_texttext="Today a::: :\t\t\x00I\x00a  朝 三暮四 [MASK] m\na fool\n\nbecause I am a fool.\n[SEP][CLS]  "assertclean_text(text)=="Today a::: : I a 朝 三暮四 [MASK] m a fool because I am a fool. [SEP][CLS]"Basic Functionfromkodoc_tokenizerimportget_kodoc_tokenizertokenizer=get_kodoc_tokenizer()tokens=tokenizer.tokenize("다이어트마침표_1부 2013.7.25 02:24 PM 페이지1 제1부 다이어트 핵심 바이블 A`2`Z 다이어트에 실패하는 원인 중 하나는 잘못된 상식도 크게 한몫을 한다.")