Saravanan666/pypi-org huggingface dataset:
Package: kweb
kweb 1.2.1KLayout Web ViewerBased onhttps://github.com/klayoutmatthias/canvas2canvasInstall & RunThrough pypiFrom a python virtual environment run:python-mpipinstallkwebexportKWEB_FILESLOCATION="/path/to/gds/folder"# or the windows equivalent with setuvicorn--reloadkweb.default:appAdvanced UsageKWeb offers two basic apps:Browser:A version that provides a version with a file browser for a folder and the kweb viewer for viewing the gds file in that folder.
This can be used by importing the funcitonkweb.browser.get_appand settings theKWEB_FILESLOCATIONenv variable of passingfileslocation=<Path object for target folder>to the function. Alternatively there is a default one inkweb.default.appthat
will only look for the env variable.Viewer:Only enables the/gds/<filename>endpoints, no root path, i.e. no file browser. Available atkweb.viewer.get_app. This version
doesn't provide a listener for the env variable. Use thefileslocationparameter in the function instead.DevelopmentClone & Installl# Clone the repository to your localgitclonehttps://github.com/gdsfactory/kweb.git# Install the necessary dependeciescd/kweb
python-mpipinstall-e.[dev]Set a folder for kweb to use when looking for gds filesexportKWEB_FILESLOCATION=/path/to/folder/with/gdsfilesRuncdsrc/kweb
uvicorn--reloaddefault:appCopy the linkhttp://127.0.0.1:8000/gds/file.gds(orhttp://localhost:8000/gds/file.gdsalso works) to your browser to open the waveguide exampleContributingPleas make sure you have also installed pre-commit before committing:python-mpipinstallpre-commit
pre-commitinstall
Package: kwextractor
Welcome to Keywords Extractor 🐣This is a simple library for extracting keywords from a text. It is based on theTF-IDFalgorithm for extracting keywords. Beside, it also uses theYAKEandRapidFuzzlibraries.Fast and easy to use. But it still works better than the other libraries I've tried. I think so  (●´ω｀●).If you have any complain, my mail here  (>‘o’)>:trinhhungsss492@gmail.com. Or my facebook here  (｡◕‿◕｡):https://www.facebook.com/trinhdoduyhungss.InstallationDownload and install through pip with wheel support:pipinstallkwextractorUsagefromkwextractor.process.extract_keywordsimportExtractKeywordsfromkwextractor.process.extract_numverseimportExtractNumversefromkwextractor.process.replacing_w2nimportReplacingWtoNkeywords=ExtractKeywords().extract_keywords("tôi thích nghe các bản nhạc của Trịnh Công Sơn")print(keywords)# "bản nhạc,Trịnh Công Sơn"num_verse=ExtractNumverse().extract_numverse("sinh cho tui bài thơ gồm hai chục câu nhé",20)#20 is the maximum value returned. It can be any integer number, you can set it fit your need.print(num_verse)# 20replacing_w2n=ReplacingWtoN().replacing_w2n("cho hỏi làm sao để sinh ra mười bài thơ")print(replacing_w2n)# "cho hỏi làm sao để sinh ra 10 bài thơ"keywords=ExtractKeywords().extract_keywords("Tổng thống Mỹ Donald Trump đã đề nghị các nước thành viên NATO tăng cường đầu tư trong lĩnh vực an ninh, đặc biệt là trong lĩnh vực phòng chống tấn công từ các quốc gia có thể xâm nhập vào các thành phố của các nước thành viên. Đây là lần đầu tiên tổng thống Mỹ đề nghị các nước thành viên NATO tăng cường đầu tư trong lĩnh vực an ninh.")print(keywords)# "cường đầu,quốc gia,xâm nhập,ninh đặc,an ninh,Donald Trump,Tổng thống lĩnh vực phòng chống tấn công,NATO"🤘 Version v0.0.3:  Customize is available now🤘Customizefromkwextractor.process.extract_keywordsimportExtractKeywordstext="tôi thích nghe các bản nhạc của Trịnh Công Sơn"fake_data={"author":["Trịnh Thăng Bình","Lê Bảo Bình","Phan Mạnh Quỳnh","Karik","Ngô Kiến Huy","Chí Tâm","Trang Yue","B Ray","ERIK","Emcee L (Da LAB)","Badbies","Vũ","Sơn Tùng M-TP"]}kw=ExtractKeywords(lan='vi',data_keywords=fake_data,return_group=True)# all parameters: data_keywords, lan, ngram, stop_wordsprint(kw.extract_keywords(text))#{'author': ['bản nhạc', 'Trịnh Công Sơn']}FeaturesFeatureDescriptionAvailable at version🍎Extract keywords from a sentenceExtract keywords from a sentence. If the sentence has more than one keyword, the keywords will be separated by a comma. And empty if the sentence has no keyword.✅ v0.0.1 ⇪🍎Extract keywords from a paragraphExtract keywords from a paragraph and return a list of keywords✅ v0.0.2 ⇪🍎Extract num-string from a sentenceExtract num-string (number as text) from a sentence. Only return 1 number as a integer in a sentence.✅ v0.0.1 ⇪🍎Replace num-string with a numberReplace num-string with a number in the sentence.✅ v0.0.1 ⇪DevelopmentInstall dependenciespipinstall-rrequirements.txtBuildpythonsetup.pybdist_wheelTestpytestAny question? (ு८ு)_/﹋\_
(҂`_´)
<,︻╦╤─ ҉ – – 🍎
_/﹋\_
Package: kwickmapi-python
# kwickmapi-python[![Build Status](https://travis-ci.org/bloodywing/kwickmapi-python.svg?branch=master)](https://travis-ci.org/bloodywing/kwickmapi-python) [![Coverage Status](https://coveralls.io/repos/bloodywing/kwickmapi-python/badge.svg?branch=master&service=github)](https://coveralls.io/github/bloodywing/kwickmapi-python?branch=master)KWICK! Python Library based on KWICKs mapiThis is not officially supported by kwick.deThis library is a community project
Package: kwik
KwikDocumentation:https://kwik.rocksRepository:https://github.com/dmezzogori/kwikKwik is a web framework for building modern, batteries-included, RESTful backends with Python 3.10+.
Kwik is based on FastAPI, builds upon it and delivers an opinionated concise, business-oriented API.The key features are:Conciseness: Kwik is quick (pun-intended :smile:)Battle-tested: developed internally atKheperer, we use it every day to build robust and modern solutions for our customers.Standards-based:warning:
While Kwik is in active development, and already used for production, it is still in apre-release state.The API is subject to change, and the documentation is not complete yet.AcknowledgmentsPython 3.10+Kwik stands on the shoulder of a couple of giants:FastAPI: for the web parts.SQLAlchemy: for the ORM part.Installation$pipinstallkwikIt will install kwik and all its dependencies.ExampleRun it$python-mkwikIf kwik is started in this way, it automatically creates a development server on port8080, with hot-reloading enabledCheck itOpen your browser athttp://localhost:8080/docs.You will see the automatic interactive API documentation, showing the built-in endpoints and schemas.LicenseThis project is licensed under the terms of the MIT license.
Package: kwikapi-django
kwikapi.djangoQuickly build API services to expose functionality in Python.kwikapi.djangowas built by using the functionality of KwikAPI and Django web server.Installation$pip3installkwikapi[django]UsageCreate a Django project(Ref:https://docs.djangoproject.com/en/1.11/intro/tutorial01/)$django-adminstartprojectdjango_kwikapiCreate an app in Django$python3manage.pystartapppollsAdd your app name to settings.pyINSTALLED_APPS=['django.contrib.admin','django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django.contrib.staticfiles','polls',]Make sure the contents of files be like this/django_kwikapi/django_kwikapi/urls.pyfromdjango.conf.urlsimporturl,includefromdjango.contribimportadminurlpatterns=[url(r'^admin/',admin.site.urls),url(r'^',include('polls.urls'))]/django_kwikapi/polls/urls.pyfromdjango.conf.urlsimporturl,includefrom.importviewsfromkwikapi.djangoimportRequestHandlerurlpatterns=[url(r'api/',RequestHandler(views.api).handle_request),]Example of django views/django_kwikapi/polls/views.pyfromdjango.httpimportHttpResponsefromkwikapiimportAPIfromloggingimportLoggerclassBaseCalc():defadd(self,a:int,b:int)->int:returna+bdefsubtract(self,a:int,b:int)->int:returna-bclassStandardCalc():defmultiply(self,a:int,b:int)->int:returna*bdefdivide(self,a:int,b:int)->float:returna/bapi=API(log=Logger,default_version='v1')api.register(BaseCalc(),'v1')api.register(StandardCalc(),"v2")Start Django$python3manage.pymakemigrations
$python3manage.pymigrate
$python3manage.pyrunserver8888Make API request$curl"http://localhost:8888/api/v1/add?a=10&b=10"To know how to use all features, please refer KwikAPI documentationhttps://github.com/deep-compute/kwikapi/blob/master/README.md
Package: kwiki
KWIKIA parser for the Kurdish Wiktionary with >5.9K Kurdish (Kurmanji) words.It is helpful to get the following of Kurdish Wiktionary words:Position of the Kurdish wordGlosses of the Kurdish wordSynonyms of the Kurdish wordTags of the Kurdish wordForm of, of the Kurdish wordSounds of the Kurdish wordInstallation:pipinstallkwikiUsage:Import the package:fromkwikiimportkwikiAvailable methods:getAllWordsData:will return the whole set of words' objects.find:will find an array of the matched words from the set.kwiki.find('dem')[{"name":"cog","args":{"1":"sa","2":"दीति","3":"","4":"brightness; time","tr":"dītí"},"expansion":"Sanskrit दीति (dītí, “brightness; time”)"}],"word":"dem","lang":"Northern Kurdish","lang_code":"kmr","senses":[{"tags":["feminine"],"glosses":["time"],"id":"dem-noun","categories":[]}]}]find_one:will find only one object of the matched wordkwiki.find_one('dem'){"name":"cog","args":{"1":"sa","2":"दीति","3":"","4":"brightness; time","tr":"dītí"},"expansion":"Sanskrit दीति (dītí, “brightness; time”)"}],"word":"dem","lang":"Northern Kurdish","lang_code":"kmr","senses":[{"tags":["feminine"],"glosses":["time"],"id":"dem-noun","categories":[]}]}get_synonyms:will return the synonyms of the word if existedkwiki.get_synonyms('tav'){'synonyms':[{'word':'roj'}]}get_glosses:will return the glosses of the word if existedkwiki.get_glosses('tav'){'glosses':['sun, sunlight']}get_tags:will return the tags of the word if existedkwiki.get_tags('tav'){'tags':['feminine']}get_form_of:will return the "form of" of the word if existedkwiki.get_form_of('aland'){form_of:[{word:'alandin'}]}get_pos:will return the position of the wordkwiki.get_pos('aland'){ 

      'pos':  'verb'

  }get_sounds:will return the sounds of the word if existedkwiki.get_sounds('roj'){'sounds':[{'ipa':'/roːʒ/'},{'rhymes':'-oːʒ'}]}
Package: kwimage-ext
Thekwimage_extmodule, which contains binary extensions for thekwimagemodule.Setting the environment variableDISABLE_C_EXTENSIONS=1will disable C
extensions at compile time, but this package is mostly C-extensions, so that’s
not very useful.Note, that when building from source, the build may fail if you not in a fresh
state (related toskbuild-386. You
can mitigate this by runningpython setup.py cleanto remove build
artifacts. Building from a clean environment should work.Read the docshttps://kwimage_ext.readthedocs.ioPypihttps://pypi.org/project/kwimage_ext
Package: kwl
# kwl
KWL is a semantic representation of natural language. A KWL representation can be transformed into any natural language with a grammar and a dictionary of that language.For example,
&lt;kwl nom:dog ; kwl&gt; becomes [kraman (Akan), dog (English), chien (French)]&lt;kwl pro:you tdy(tu(act:be)) det:a(adj:important_nom:person). ; kwl&gt; becomes [ You are an important person (English) ]Try it here:http://write.kasahorow.org/kwl# Installationpython setup.py install# TestingYou can transform simple English into KWL representation, and then convert the KWL representation into any of the supported languages. Note that all the text is in lowercase.## Text to KWLpython -m kwl ‘the dog’## KWL to Textpython -m kwl ‘det:the_nom:dog’ akanpython -m kwl ‘det:the_nom:dog’ englishpython -m kwl ‘det:the_nom:dog’ oromopython -m kwl ‘det:the_nom:dog’ swahili# Supported kasahorow languages
This means that you can get functional representations suitable forchildren’s comprehensioninto these languages.You still need a native speaker to confirm correctness!akanchewagadangmegbegikuyuhausaigbolingalalugandaluwooromooshonaswahiliyorubazulu## How to add a new languagefooThis is simple to do. There are 2 main steps:
- add a dictionary of thefooin the data/ directory: data/english_foo_woaka.tsv
- set up grammar rules forfoothe data/ directory: data/sua_foo.py### Testing languagefooThere are 2 main testing steps:
- Run python kwl_coverage.py foo to see what tests you need to add in the next step
- Run python kwl_tests.py foo by addingfoointo the KWL_TESTS dictionary.# Known issues
- No support for noun-adjective alliteration (relevant for Bantu languages such as Shona, Swahili, Ururimi)
- No support for vowel-harmony (relevant for Kwa languages such as Akan)
- Partial support for pluralization
- Partial support for stemming
Package: kwmatrix
🔠 kwmatrix: Combine keywords with several modifiers for SEOKeyword 'matrixing' is the process of taking one or more seed keywords and combining it with every combination of modifier keywords.For example, the following seed keywords contain replacement variables:%color shoes%color %type shoesGiven the following modifiers:color: red, bluetype: walking, leatherThese would be combined with the seed keywords to give the following result:red shoesblue shoesred walking shoesblue walking shoesred leather shoesblue leather shoesThis process makes it very quick and easy to create large lists of potential keywords for SEO. The kwmatrix package for Python makes this process very straightforward.Installationkwmatrix can be installed using the pip package manager:pip install kwmatrixAlternatively, using pipenv:pipenv install kwmatrixIt can then be imported in the usual way:import kwmatrixUsagekwmatrix has a single function:matrix(). This has 2 required arguments and a third optional argument:seeds: listA list of seed keywords with variables to replace. Each variable name is preceded by a `%` character e.g. "%color %type shoes".modifiers: dictA dictionary of modifier keywords to replace the variables in the seed keywords. Each key should match the name of a %variable, and the value should be a list of values insert in its place.var_char: str (optional)A single character to use for variables instead of the default `%`. Provide this argument if the default choice is causing issues with your keyword set.Thematrix()function will return a generator. When iterated upon, it will produce a dictionary for each result containing the final keyword and the %variables used, e.g.:{'color': 'red', 'type': 'walking', 'keyword': 'blue walking shoes'}Examplefrom kwmatrix import matrix

SEEDS = [
    '%color shoes',
    '%color %type shoes'
]
MODIFIERS = {
    'color': ['red', 'blue'],
    'type': ['walking', 'leather']
}

results = matrix(SEEDS, MODIFIERS)
Package: kwnpeb
Kiefer-Wolfowitz Nonparametric Empirical BayesCompute the Kiefer-Wolfowitz nonparametric maximum likelihood estimator for mixtures.In contrast to the previous approaches, the optimization problem is reformulated into a convex problem byKoenker and Mizera (2014)'s method and efficiently solved by
interior-point method.Making Predictions With No Features - A Basic UsageGiven a training set T = {y_i}, the algorithm provides a way to construct a predictor of future y-values such that the sum
of squared errors between observations and predictors is minimized.Getting StartedPrerequisitesYou will need:python (>= 3.6)pip (>= 19.0.3)MOSEK (>=8.1.30)Important about MOSEK:MOSEK is a commercial optimization software. Please visitMOSEKfor license information.PIP:pip install -f https://download.mosek.com/stable/wheel/index.html Mosek --userFor different ways of installation, please visit theirinstallation page.MOSEK needs to be installed in the GLOBAL environment.Installingpip install kwnpebExamplessimple- The basic usagebayesball- In-season prediction of batting averages with the 2005 Major
League baseballContributorsSile TaoLi ZhangGuanqi HuangLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: kwpbar
Info:This is the README file for KwPBar.Author:Chris Warrick <chris@chriswarrick.com>Copyright:© 2015-2018, Chris Warrick.Date:2018-09-03Version:0.2.1A simple progress bar for Python programs.INSTALLATIONpip install kwpbarUSAGEimport kwpbarin your program.The following functions are available:get_termlength()→ return terminal length (columns); helper functionpbar(value, max)→ print a progress bar to the screen (stderr).  Can raise ValueError.erase_pbar()→ erase the progress bar from the screenDEMOpython -m kwpbar.demoSEE ALSOKwPBar for CCOPYRIGHTCopyright © 2015-2018, Chris Warrick.
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:Redistributions of source code must retain the above copyright
notice, this list of conditions, and the following disclaimer.Redistributions in binary form must reproduce the above copyright
notice, this list of conditions, and the following disclaimer in the
documentation and/or other materials provided with the distribution.Neither the name of the author of this software nor the names of
contributors to this software may be used to endorse or promote
products derived from this software without specific prior written
consent.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
“AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: kwplot
The main webpage for this project is:https://gitlab.kitware.com/computer-vision/kwplotThekwplotmodule is a wrapper aroundmatplotliband can be used for
visualizing algorithm results.The top-level API is:from.auto_backendsimport(autompl,autoplt,set_mpl_backend,)from.draw_convimport(make_conv_images,plot_convolutional_features,)from.mpl_3dimport(plot_surface3d,)from.mpl_colorimport(Color,)from.mpl_coreimport(distinct_colors,distinct_markers,ensure_fnum,figure,imshow,legend,next_fnum,set_figtitle,show_if_requested,)from.mpl_drawimport(draw_boxes,draw_boxes_on_image,draw_clf_on_image,draw_line_segments,draw_text_on_image,plot_matrix,draw_points,)from.mpl_makeimport(make_heatmask,make_orimask,make_vector_field,)from.mpl_multiplotimport(multi_plot,)from.mpl_plotnumsimport(PlotNums,)One of the key features is thekwplot.automplfunction, which is able to somewhat intelligently set the notorious matplotlib
backend.
By default it will attempt to usePyQt5if it is installed and aDISPLAYis available. Otherwise it will ensure the backend is set toAgg. For convinience, the functions:kwplot.autopltandkwplot.autosnsalso execute this auto-backend behavior, but return the pyplot and seaborn
module, respectively.  It is recommended to call one of these functions before
any use of pyplot due to pyplot’s import-time side effects (note: pre-importing
most other matplotlib modules is ok).Thekwplot.imshowandkwplot.figurefunctions are extensions of thematplotlibversions with slightly extended interfaces (again to help reduce
the density of visualization code in research scripts). Thekwplot.PlotNumshelps manage subplots locations, especially when you are developing /
reordering them.
Package: kwsgi
Yet another WSGI server implementation.UsageUsage is like this:$kwsgihello.pyapp--reloadOptions are below:$kwsgi--helpUsage: kwsgi [OPTIONS] FILEPATH WSGIAPP

  Example: kwsgi hello.py app -p 5000 --reload

Options:
  -h, --host TEXT               The interface to bind to.
  -p, --port INTEGER            The port to bind to.
  --reload / --no-reload        Enable live reloading
  --daemonize / --no-daemonize  Detaches the server from the controlling
                                terminal and enters the background.
  --interval INTEGER            Interval time to check file changed for
                                reloading
  --validate / --no-validate    Validating your WSGI application complying with
                                PEP3333 compliance.
  --help                        Show this message and exit.And you can integrate with kwsgi from python script:fromkwsgiimportWSGIServerdefapplication(env,start_response):start_response('200 OK',[('Content-type','text/plain; charset=utf-8')])return[b'Hello World']if__name__=='__main__':server=WSGIServer(application)server.run_forever()Development RoadmapThese are the current planned major milestones:[DONE] Add minimum implementation (at least this can run django application).Optimize some important performance bottlenecks using C-extensions, mypyc or Rust.Add green threads implementation.
Package: kwutil
The Kitware utility module.This module is for small, pure-python utility functions. Dependencies are
allowed, but they must be small and highly standard packages (e.g. rich,
psutil, ruamel.yaml).These were originally derived fromgeowatchutilities.
Some of them were also fromxdev.In the case that a no-dependency utility in this library proves itself to be
extremely useful, it may be ported toubelt.Current top-level API:fromkwutilimportcopy_managerfromkwutilimportpartial_formatfromkwutilimportslugify_extfromkwutilimportutil_environfromkwutilimportutil_evalfromkwutilimportutil_jsonfromkwutilimportutil_locksfromkwutilimportutil_parallelfromkwutilimportutil_pathfromkwutilimportutil_patternfromkwutilimportutil_progressfromkwutilimportutil_resourcesfromkwutilimportutil_timefromkwutilimportutil_windowsfromkwutilimportutil_yaml
Package: kxg
This library provides a framework for writing multiplayer computer games.  The
game engine is easy to use, requires almost no boilerplate code, and scales
painlessly from prototypes to full-fledged games.  The engine is driven by a
message passing framework that was designed to be intuitive and optimized to
avoid lag.  The game engine is also very good at noticing when it’s being
misused and explaining how it should be used with detailed error messages.
This makes it easier to start using the engine and harder to make subtle
synchronization bugs that would otherwise be very difficult to track down.