Saravanan666/pypi-org huggingface dataset:
Package: kong-core
kong-coreUse this Kong CDK Construct Library to deploy Core common infrastructural constructs .This CDK library automatically creates and configures recommended architecture on AWS by:Amazon EKSWell architected EKS cluster from networking standpointCluster autoscalerNode termination handlerSecrets management from AWS Secrets Manager using CSI drivermTLS using AWS ACM for pod to pod communication using private certificate authority and aws-pca-issuerUse of IAM Role for Service Account (IRSA) where applicableAWS EKS encryption at restMetrics server installationLogs and metrics to cloudwatch using AWS CloudWatch Container insightsElasticacheprivate accessibilitymulti azauto failoverauto minor version upgradecwl outputRDS FeaturesEncryption at restPrivate subnetsMultiazauto backupLogs output to CloudWatchnpm Package Installation:yarn add --dev kong-core
# or
npm install kong-core --save-devPyPI Package Installation:pip install kong-coreSampleTry outhttps://github.com/kong/aws-samplesfor the complete sample application and instructions.Resources to learn about CDKCDK TypeScript WorkshopVideo Introducing CDK by AWS with DemoCDK ConceptsRelatedKong on AWS Hands on Workshop -https://kong.awsworkshop.io/Useful commandsrm -rf node_modules && rm package.json && rm package-lock.json && rm yarn.lock && rm tsconfig.dev.jsoncleans the directorynpm install projeninstalls projennpx projen buildTest + Compile + Build JSII packagesnpx projen watchcompile and run watch in backgroundnpm run testperform the jest unit testsTipsUse a locked down version ofconstructsandaws-cdk-lib. Even with CDK V2 i sawhttps://github.com/aws/aws-cdk/issues/542repeating when there is minor version mismatch of construcs. AWS CDK init commands generate package.json file without locked down version of constructs library.
Package: kongctl
A command line client for kong admin APIThis tool ease kong management like getting routes for service name (not id):kongctl-shttps://localhost:8001listroutes-sexample-service1ba43640-6977-4d6a-9804-6e0032d77bb1:example-serviceexample.com/d091d9c4-fde8-4982-b984-8376bd544aaf:example-serviceexample.com/api/v1You can store your configuration in multiple yaml files and apply them individually. Let’s assume you have configuration like this:_format_version:"1.1"services:-name:orders-serviceurl:http://kubernetes-inner.host:80/path-to-ns/ordersroutes:-name:orders-rootstrip_path:truehosts:-orders.example.complugins:-name:jwtenabled:falseroute:name:orders-rootrun_on:firstconfig:key_claim_name:isscookie_names:{}secret_is_base64:falsemaximum_expiration:0anonymous:run_on_preflight:trueuri_param_names:-jwtNow you can call the following command to apply it:kongctl-shttps://localhost:8001ensureorder-service.yamlInstallationbrewtapkepkin/kongctlbrewinstallkongctlorpip3installkongctlQuick guide to usagemkdir~/.kongctlcat>~/.kongctl/qa-env<< EOF
{
  "client": {
    "server": "https://my-kong.url:8001",
    "auth": {
      "password": "pass",
      "type": "basic",
      "user": "user"
    }
  },
  "var_map": {
    "VAR1": "VALUE1",
    "VAR2": "VALUE2"
  }
}
EOFkong-cqa-envlistservicesTODOSupport for OIDC authorizationGet stubs for create operationSupport all key-auth like pluginsSupport update from cmd argsSupport yamlSort by id?list command filter optionAutocompleteAdd images instead of code in README (to show color support)
Package: kong-data-plane
kong-data-planeUse this Kong CDK Construct Library to deploy Kong data plane on Amazon EKS .This CDK library automatically creates and configures recommended architecture on AWS by:Amazon EKSWell architected EKS cluster from networking standpointCluster autoscalerNode termination handlerSecrets management from AWS Secrets Manager using CSI drivermTLS using AWS ACM for pod to pod communication using private certificate authority and aws-pca-issuerUse of IAM Role for Service Account (IRSA) where applicableAWS EKS encryption at restMetrics server installationLogs and metrics to cloudwatch using AWS CloudWatch Container insightsElasticacheprivate accessibilitymulti azauto failoverauto minor version upgradecwl outputnpm Package Installation:yarn add --dev kong-data-plane
# or
npm install kong-data-plane --save-devPyPI Package Installation:pip install kong-data-planeSampleTry outhttps://github.com/kong/aws-samplesfor the complete sample application and instructions.Resources to learn about CDKCDK TypeScript WorkshopVideo Introducing CDK by AWS with DemoCDK ConceptsKong Hands on Workshophttps://kong.awsworkshop.io/
Package: kongfu-plugs
kongfu-plugs------------Plugs is a collection project for kongfu projectkongfu项目中使用的第三方产品的代码仓库plugs列表=======* top: 阿里大鱼短信验证接口kongfu-plugs发布流程=================* 如果有非Python编写的文件要打包发布，则应对 `minifest.in` 文件进行修改，将这类文件包含进来。典型代码如下```include readme.rstinclude *.htmlrecursive-include any-plug-package-such-as-top *.txt, *.css, *.html, *.png```* 新的版本应对 `setup.py` 中的 `version` 值进行设置成正确的版本号* `python setup.py sdist` ：打包成生成easy_install支持格式的可发布包* `python setup.py register` ：在你的主机上做第一次发布时需要执行，根据提示选择 `1. use your existing login`用户名:uniyes  密码:uniyes1234567890* `python setup.py sdist upload` ：向pypi上传打包好的文件
Package: kong-hmac
Kong 网关 HMAC 鉴权 Python SDK介绍Kong 网关的的 Python 客户端
SDK，同样适用于移植到APISIX的HMAC鉴权，相关介绍：https://zhang.ge/5159.html快速上手SDK 安装pipinstallkong-hmac网关鉴权importrequestsfromkong_hmacimportHmacAuthif__name__=="__main__":# 根据实际情况修改USERNAME="demo"SECRET="ujHURnS5Wlb***********QmJdkDMEep"API_URL="http://xxx.xxx.com/hmac_test"param={"xxx":{"xxxx":"xxx"}}# 方式一：在初始化class的时候设置账号密钥hmac_auth=HmacAuth(hmac_user=USERNAME,hmac_secret=SECRET)headers=hmac_auth.get_auth_headers()# 方式二：在生成头部的时候设置账号密钥# hmac_auth = HmacAuth()# headers = hmac_auth.get_auth_headers(hmac_user=USERNAME, hmac_secret=SECRET)resp=requests.post(url=API_URL,json=param,headers=headers)ifresp.status_codein[200,201]:print(headers)exit("Test OK!")else:print(headers)print(resp.text)exit("Test Failed!")
Package: kong-incubator
kongman (fork of aio-kong)Declare theKongyou want, withyaml.
Stop manualcurls and maintaining docs of them.
Manages resources via Kong Admin API (REST, async HTTP, JSON).
Includes an example to add authorization to the Admin API itself.ChangelogSome changes backwards incompatible withaio-kongbyLuca Sbardella.Patch tests (SNI, consumer) to pass on Kong 0.14.x and 1.0.0rc2Adddocker-compose stackfor testsAddmakerules forflake8,mypy,test,build,publish_pypi, ...Add creating.venvs/for dev and release, handled bymakerulesAdd (opinionated)pytestplugins, to help myselfAdd--outputto limit output to a JSON property (for scripts), or haveNoneAddexamples/for Kong Admin API loopback and example endpoint via itAddKONG_ADMIN_URL, defaults tohttp://localhost:8001AddKONG_ADMIN_KEYto use Kong Admin API via loopback and key-authAdd--admin-urland--admin-keyto take precedence over above twoRemoveKONG_URLBWICRemove--ipBWICTODO:Add compatibility for <0.14 Kongs, PR the >=0.14 parts back to aio-kong.InstallationFromPyPI:pip install --upgrade kong-incubatorPython >= 3.6 required.UsageKONG_ADMIN_URLdefaultshttp://localhost:8001.Create or upgrade resources (is aMockbinproxy):kong-incubator --yaml examples/mockbin.yamlGenerate a randomkeyfor its consumer:kong-incubator --key-auth mockerOutput only ifkeyhas been already set.Running with a changed--yamlonly upgrades the changed parts.
Resources been removed from the file are not deleted from Kong.
To delete a resource from Kong, addensure: absentfor it in YAML.Seekong-incubator --helpfor all options.Securing Kong Admin APICreatesKong Admin API Loopbackrequiring key-auth:kong-incubator --yaml examples/kadmin.yaml
kong-incubator --key-auth root --output keyFrom now on, manage Kong via the loopback (checks request headerapikey):export KONG_ADMIN_URL=http://localhost:8000/kadmin
export KONG_ADMIN_KEY={{thekeyabove}}
kong-incubator --yaml ..Options--admin-urlor--admin-keycan be used instead, or to take precedence:export KONG_ADMIN_URL=http://localhost:8000/kadmin
kong-incubator --admin-key={{thekeyabove}} --yaml ..In Kubernetes/OpenShift, remove routes to 8001 and 8444 .Use as libimportjsonfromkong.clientimportKongasyncwithKong()ascli:services=awaitcli.services.get_list()print(json.dumps(services,indent=4))DevelopmentTests assume you have Kong Admin API running athttp://localhost:8001.If you havedocker-composeavailable, you can runmake dcto getkongpose/as a git submodule and start it on background for tests.
Usemake dc_rmto stop and remove the stack, including the volumes for DBs.Runmakeas a shortcut for three other rules:make testcreates.venvs/devthat has also dev requirements installed.
To re-run only the failed tests, if any, usemake retestwhich also skips
installation of requirements. Both clean up the Kong resources they create.make buildcreates.venvs/releaseon each run,
installs build tools and builds source and wheel dists.make installto install package from source tree.Runmake cleanto remove.venvs, builds, dists and caches.Seemake helpfor all options.PublishTwineincluded for uploading over HTTPS.ToTest PyPI:make publish_testToPyPImake publish_pypi
Package: kongming
kongmingCollect arrows from parsing results.Installation$pipinstallkongmingUsagefromkongming.mainimportKomgmingstopwords=["。"]kongming=Kongming(stopwords)arrows=kongming.collect("今日は良い天気だ。")print(arrows)# => [{'modifier': '今日', 'function': 'は', 'head': '天気'},{'modifier':'良い','function':'','head':'天気'}]CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.2 (2020-05-18)First release on PyPI.
Package: kongo
KongodbKongodbis Hybrid Row-and-Document Oriented datastore leveraging SQL/RDBMS database: SQLite, MySQL, MariaDB, PostgresqlKongodb is both RDMBS + Document Oriented together.It supports, regular SQL query along with Document Oriented and Key Value store.Engine:JSONSQLiteMariadbPostgreSQLMySQLInstallpipinstallpython-kongodbUsagefromkongodbimportkongodb# Open the db# or in memory > fun = kongodb()fun=kongodb("./my.db")# Select a collection.# Collection will be created automatically# or explicitely > test = fun.select('test')test=fun.test# Get total entriesprint(test.size)# Insert an entry. It returns kongodb#Documententry=test.insert({"name":"Fun","type":"DB","version":"1.0.0"})# Retrieve document by _id_id="9c5e5fbd05544700995c5fa3ca3ef214"entry=test.get(_id)# Access propertiesentry.name# -> funentry.type# -> DBentry.version# -> 1.0.0# Update a fieldentry.update(version="1.0.1")# ...orentry.update({"version":"1.0.1"})#entry.version# -> 1.0.1# Delete entryentry.delete()# Searchresults=test.find({"version:$gt":"1.0.0"})forentryinresults:print(entry.name)~ API ~Databasekongodb#selectTo select a collection in the databasefun=kongodb()users=fun.select("users")## orusers=fun.users#collectionsList all the collections in the databasefun=kongodb()users=fun.select("users")## orusers=fun.users##D
Package: kongodb
KongodbKongodbis Hybrid Row-and-Document Oriented datastore leveraging SQL/RDBMS database: SQLite, MySQL, MariaDB, PostgresqlKongodb is both RDMBS + Document Oriented together.It supports, regular SQL query along with Document Oriented and Key Value store.Engine:SQLiteMariadbPostgreSQLMySQLInstallpipinstallkongodbUsagefromkongodbimportkongodb# Open the dbdb=kongodb("./my.db")# Select a collection# Collection will be created automaticallycollection=db.collection("test")# Get total itemsprint(len(collection))# Add an item. It returns kongodb#Itemitem=collection.add({"name":"Kongo","type":"DB","version":"1.0.0"})# Retrieve item by _id_id="9c5e5fbd05544700995c5fa3ca3ef214"item=collection.get(_id)# Access propertiesitem.get("name")# -> funitem.get("type")# -> DBall_item_data=dict(item)# Update a fielditem.set("version","1.0.1")# or advance atomic updateitem.update({"version":"1.0.1","download:$inc":True,"ips:$xadd":"0.0.0.0"})#item.get("version")# -> 1.0.1item.get("download")# -> 1 or last value + 1item.get("ips")# -> ["0.0.0.0"]# Delete itemitem.delete()# Searchforitemincollection.find():print(item.get("name"))~ API ~Databasekongodb#collectionTo select a collection in the databasefromkongodbimportkongodbdb=kongodb()users=fun.collection("users")# all usersall_users=users.find_all()#CollectionList all the collections in the databasefromkongodbimportkongodbdb=kongodb()users=fun.collection("users")ColumnTypes For Index:TypeColumnSQliteMariaDBPostgreSQLIntegerIntegerTypeINTINTEGERINTStringStringTypeVARCHAR(n)VARCHAR(n)VARCHAR(n)BoolBoolTypeINT(1)TINYINT(1)BOOLEANDatetimeDatetimeTypeTIMESTAMPDATETIMETIMESTAMPNumericNumericTypeFLOATDOUBLE PRECISIONDOUBLE PRECISION*n = the max number for the charColumnTypetypes.[columtype](
      name:str,  # str: name of the field
      length:int, # int: length of the type if available 
      index:bool, # bool: to index the field
      unique:bool, # bool: to index and make field unique  
      default:Any # Any: any data to set as default
  )
ie:Exampletypes.StringType(
  name="myFieldName",
  length=125,
  index=True,
  unique=True,
  default="Hello"
)Add Columnsfrom kongodb import kongodb, types

COLUMNS = [
  types.IntegerType('count', index=True, default=0),
  types.BoolType('is_active', default=True),
  types.Datetime('created_at', default="NOW()"),
  types.String('full_name'),
  types.NumericType('amount', default=0.00)
]

db = kongodb("sqlite://")

collection = db.collection('test', columns=COLUMNS)
Package: kong-plugin-local-manager
kong-plugin-local-managerUse python package to manage kong plugin, so that the plugin can be published to private pypi server and used internally. A temporary solution for PYTHONER using kong.Installpipinstallkong-plugin-local-managerExampleexample files/example/
    /example/__init__.py
    /example/src/
        /example/src/lua/
            /example/src/lua/handler.lua
            /example/src/lua/schema.lua
        /example/src/plugin.rockspec
    /example/manager.py
    /example/setup.py
    /example/requirements.txt
    /example/README.txt
    /example/MANIFEST.in
    /example/LICENSEcontent of plugin.rockspecpackage = "example"
version = "0.1.0-1"
source = {
    url = "example-0.1.0-1.zip"
}
description = {
    summary = "kong plugin example",
}
dependencies = {
    "lua >= 5.1, < 5.4",
}
build = {
    type = "builtin",
    modules = {
        ["kong.plugins.example.handler"] = "lua/handler.lua",
        ["kong.plugins.example.schema"] = "lua/schema.lua",
    }
}content of example_manager.pyimportosfromkong_plugin_local_managerimportKongPluginLocalManagerapplication_root=os.path.abspath(os.path.dirname(__file__))manager=KongPluginLocalManager(application_root).get_manager()if__name__=="__main__":manager()content of setup.pysetup(
    ...
    entry_points={
        "console_scripts": [
            "example-manager = example.manager:manager",
        ],
    },
)usage of example-managerUsage:example-manager[OPTIONS]COMMAND[ARGS]...

Options:--helpShowthismessageandexit.

Commands:installCreatealuapackageandtheninstallit.packCreatealuapackage.Releasesv0.1.0 2020/07/30First release.
Package: kong-pluginserver
kong-python-pluginserverPlugin server for Python language support in Kong plugin.Requires Kong >= 2.0.0.Install the plugin serverpip3installkong-pluginserver# Replace the go-pluginserver with python plugin servercp/usr/local/bin/kong-pluginserver/usr/local/bin/go-pluginserverConfigure KongAdd the following line intokong.conf:plugins=bundled,py-hello,py-image
go_plugins_dir=/your/path/to/python/plugins/dirFor example, to test examples, clonekong-python-pluginserverto/dir1/kong-python-pluginserverand setgo_plugins_dirto/dir1/kong-python-pluginserver/examplesEnable the pluginSame step as it's a Lua plugin.NotesAll PDK API supported by Go Plugin Server is supported.The plugin server is implemented by gevent module for now, thus only one CPU core will be used. If your plugin is CPU-hungry, consider run the plugin instance in a seperate process and implement a piping IPC.Currently you can't run Go plugins and Python plugins at the same time,
as Kong only accepts one plugin server socket.TODOProcess per instanceTestsHot reload
Package: kong-service-exporter
Kong Service Registry ExporterThis is a small utility to export a Markdown file containing the list of services and other useful information from Kong's config.If you're using Kong withDeclarative Configuration, you'd know the config file can easily grow in 1000s of lines with 40-50 services. This utility aims to extract some of the useful information in a Markdown file and display as a table.Usageusage: main.py [-h] [--config CONFIG] [--output OUTPUT]

Generate Service Registry (markdown) using Kong config

optional arguments:
  -h, --help       show this help message and exit
  --config CONFIG  Path to Kong config file (YAML). (default: config-sample.yml)
  --output OUTPUT  Path to store the generated markdown file. (default: out.md)Quickstart$ python3 main.py --config=config.yml --output=kong-service-registry.mdSample FileYou can see thegeneratedMarkdown file from thesampleconfig file.
Package: koning
De Koning is op de hoogte (ziehttp://koning.rtfd.io) dat de medicijnen toegedient met behulp van de nog in te voeren wetten gif zijn en dus moet hij ook weten dat met het in werking laten treden van deze wetten hij zich schuldig maakt aan het opdracht geven tot het toedienen van gif.
Natuurlijk dient er voor het volksbelang direct opgetreden te worden (ziehttp://president.rtfd.io) , mischien voor de opvolger van deze minister president die schuldig is aan straffeloosheids zekeringen (ziehttp://kamer.rtfd.io).briefBart ThateRaadhuisplein 531701 EH HeerhugowaardZ.M. Koning Willem-AlexanderPaleis NoordeindePostbus 304122500 GK Den HaagHeerhugowaard, 20-09-2018Betreft: bewijs dat antipsychotica gif zijnGeachte Majesteit,er is bewijs dat medicijnen (antipsychotica) gebruikt in de GGZ gif zijn:haloperiodol (haldol) -https://echa.europa.eu/substance-information/-/substanceinfo/100.000.142clozapine (leponex) -https://echa.europa.eu/substance-information/-/substanceinfo/100.024.831olanzapine (zyprexa) -https://echa.europa.eu/substance-information/-/substanceinfo/100.125.320aripriprazole (abilify)https://echa.europa.eu/substance-information/-/substanceinfo/100.112.532De Eerste Kamer heeft wetten aangenomen (de Wet Zorg en Dwang, Wet verplichte Geestelijke Gezondheid Zorg, Wet Forensische Zorg) die een wettelijk voorschrift voor het toedienen van medicatie voorzien, het betreft echter niet medicatie maar gif.Ik hoop dat u de wetenschap dat het hier gif betreft zult gebruiken om deze wetten niet in werking te laten treden.Hoogachtend,Bart Thate
Package: konira
now with 0 calorie syntactic sugar!Konira - A Python DSL Testing FrameworkKonira is a tool that allows you to write minimalistic
descriptions for testing scenarios and unit tests.It is flexible enough to accommodate Behavioral Driven
Development as well as traditional Unit Testing.As a testing tool, it takes testing itselfseriouslyand is tested
and verified to work onPython 2.5, 2.6, 2.7, 3.0, 3.1 and 3.2PyPy 1.5 and 1.6Konira’s own test suite consists of about 200 tests that run in
about0.120sIt provides a test runner, a dsl and you can optionally usepy.testto run these tests (using thepytest-koniraplugin installed separately).If you develop with Vim editor, there is also a plugin that will enable
syntax highlighting and running tests from within Vim (see:https://github.com/alfredodeza/konira.vim)What does a test case look like?describe "a very simple test case for my_module":

    it "has a foo property that is True":
        assert my_module.fooBut this is not valid Python!I hear you. It is a DSL. All tests need to specify thekoniraencoding
at the top and they can be executed with the included command line tool.fast and readable action in the terminal$ konira

a very simple test case for my_module
    It has a foo property that is True


All specs passed in 0.000 secs.Are you sold yet?Full docs can be found athttp://konira.cafepais.comIf you have any ideas or suggestions ping me @alfredodezaThe nameKonirais one of the names of an ancient Inca God. Konira Wirakocha diguised
as a traveler in rags. A trickster, a prankster. No one knew who he was, and the
people he passed called him names. Yet as he walked, he created. With a word he
made the fields and terraced hillsides. Dropping a reed blossom, he made water flow.This is a DSL, it looks like Python - it mostly is, but it packs simplicity and makes
testing look good and easy.
Package: konjingjing
konjingjingA hyper-fast Python module for validating Thai Citizen Card ID written in Rust.Get Started$pipinstallkonjingjingfromkonjingjingimportverify_idassertverify_id('1112034563562')# trueassertverify_id('11120345635')==False# false digit is less than 13assertverify_id('1112034563s62')==False# false mix with alphaNotes 😋This is my first python library written in rust. This is another weekend project.Idea-Fork fromone in npmSensei And Inspirationhttps://www.youtube.com/watch?v=D9r__qxtRMQhttps://github.com/mre/hyperjson
Package: konlpy
Korean, the 13th most widely spoken language in the world, is a beautiful, yet complex language. Myriad Korean NLP engines were built by numerous researchers, to computationally extract meaningful features from the labyrinthine text.KoNLPy is not just to create another, but to unify and build upon their shoulders, and see one step further. It is built particularly in the Python (programming) language, not only because of its its simplicity and elegance, but its powerful string processing modules and applicability to various tasks - including crawling, Web programming, and data analysis.
Package: konlpy-grpc
KoNLPy-gRPCRedesigned KoNLPy (Wrapper) for Usability and Portability with gRPC.Requirements:pipinstallpoetry
pipinstall-r$(pythonmanage.pyrequirements.txt)-r$(pythonmanage.pyrequirements-dev.txt)gRPC Compile needed!python-mgrpc_tools.protoc-Iprotos/--python_out=konlpy_grpc/_generated/--grpc_python_out=konlpy_grpc/_generated/protos/*.protoServerpython-mpipinstallkonlpypython-mkonlpy_grpcserver
python-mkonlpy_grpchannanum_server
python-mkonlpy_grpckkma_server
python-mkonlpy_grpckomoran_server
python-mkonlpy_grpcmecab_server
python-mkonlpy_grpcokt_serverTestspython-mpytest
python-mpytest--grpc-fake-server
python-mpytest--grpc-real-server=[::]:50051
python-mpytest--konlpy-repo=../konlpyReleaserm-rfdist/
poetrypublish--build-rtestpoetryruntwineupload--repository-urlhttps://test.pypi.org/legacy/dist/*TODO[P0] client.py will be a konlpy-alike module.[P0] KoNLPy monkey-patcher[P1] Packaging with Poetrypyproject.toml.PyPI RegisterFind lowerbound-version of requirements.[P1] gRPC Proto Compile[P1] In-house tool:manage.py[P1] KoNLPy Version Matching (set minimum) and Follow-up[P1] gRPC retry/timeout/error_handling logic[P1] gRPC reflection[P1] gRPC heartbeat[P1] gRPC Gateway (gRPC to JSON)[P2] Dockerize / Registerk8s and istio?[P2] CI[P3] Button for deploying this to AWS/GCS/Azure now! (and connect by README.)[P3] CustomDic?[P3] Stream I/O[P3] Redesign tests/ with grpc-testing[P4] Java Edition for KoNLPy-gRPC-ServergRPC protos deploy/versioningAdditional LinksKoNLPy/KoNLPyPruned KoNLPy v0.5.2-rc.1Currently, servers rely on KoNLPy v0.5.2 version.LicenseGNU GPLv3