Saravanan666/pypi-org huggingface dataset:
Package: kml2gpx
KML 2 GPX for Private Radar extractionsConverts KML files fromPrivate Radarflights list to a GPX file usable with, for example,ayvri.KML inputExport a Private Radar flight in KML format. It will contain 2 layers:AltitudeandElevation. We will only keepAltitudein the GPX file.Note the totalstartand end times of the flight (not the block times)Run the converter:python-mkml2gpx\kml\--input${INPUT_KML_FILE}\--output${OUTPUT_GPX_FILE}\--start${FLIGHT_START_DATETIME}\--end${FLIGHT_END_DATETIME}If multiple input files are given, there must be as many start and end
times. The results will be stored in a single file.If output is not given, it will be the (first) input file name with the.gpxextension.Start and end date times must be in ISO format, for example:2022-06-06T10:53:00+02:00As the time at each point is missing from the exported KML file, we
consider all points being equally spread between the start and end time.
(I know it's not the case)For example:python-mkml2gpx.main\kml\--inputLFLG-LFLW.kml\--start2022-06-06T08:47:00\--end2022-06-06T10:53:00Private Radar inputThis requires to know how to extract a token from your browser.Get the details to connect Private Radar instance:The base URL is, for example,https://xxx.private-radar.com/wherexxxis the name of your aero club.To get your authentication token:Log into your Private Radar instanceOpen the developer web console in your browser (F12 on Windows)Open theNetworktab in the web consoleRefresh the Private Radar pageIn theNetworktab, click on any line where the first column starts
withget(get,get_aircraft, ...)In theHeadersof that query, look at theRequest headersand copy
the value ofAuthorizationfieldCreate a file namedkml2gpx.iniwith the following content:[PRIVATE_RADAR]url=<base URL to Private Radar>token=<Authorization token>For example:[PRIVATE_RADAR]url=https://xxx.private-radar.com/token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXThe file can be stored in your home directory or in the working directory of
the converter.You can then:List the last flights using:python-mkml2gpxprivate-radar--list--nb50Extract the GPX of a specific flight, using its IDpython-mkml2gpxprivate-radar--flightXXXXXXExtract the GPX of one of last flights, using a negative ID:
-1 for the last flight, -2 for the flight before, ...python-mkml2gpxprivate-radar--flight-1Work in progressPrepare a basic UI supporting both Private Radar listings and drag & drop.Use an authentication process to get the authorization token automatically
Package: kmodpy
The libkmod2 is a library that provides an API for insertion, removal,
configuration and listing of kernel modules.kmodpy is a Python ctypes wrapper module for libkmod, exposing common module
operations: listing of installed modules, modprobe, modinfo, show_depends and
rmmod.Follows an example executed as root:>>> import kmodpy
>>> km = kmodpy.Kmod()
>>> [m for m in km.list()]
    [(u'nfs', 407706),
     (u'nfs_acl', 12741)
     ...
     (u'virtio_blk', 17549)]
>>> km.modprobe("loop", extra_options="max_loop=8")
>>> km.rmmod("loop")
>>> list(km.modinfo("loop"))
    [('alias', 'char-major-10-237'), ('alias', 'block-major-7-*'),
     ('license', 'GPL'), ('parm', 'max_part:Maximum number of
     partitions per loop device'), ('parmtype', 'max_part:int'),
     ('parm', 'max_loop:Maximum number of loop
     devices'), ('parmtype', 'max_loop:int'), ('depends', ''),
     ('intree', 'Y'), ('vermagic', '3.12-1-amd64 SMP mod_unload
     modversions '), ('alias', 'devname:loop-control')]
>>> list(km.show_depends("ext4"))
    ['mbcache', 'crc16', 'jbd2']
Package: kmonitor
K8s MonitorDescriptionSimple wrapper aroundkubernetespackage to monitor the status of a k8s deployment.UsageimportnumpyasnpfromkmonitorimportKubeMonitor,safe_jsonifyif__name__=='__main__':km=KubeMonitor()pods=km.list_pods()ifpodsisnotNone:forpodinpods:print(f"Pod:{pod.metadata.name}in namespace{pod.metadata.namespace}is in phase{pod.status.phase}")else:print("Failed to get pods")namespaces=km.list_namespaces()ifnamespacesisnotNone:fornsinnamespaces:print(f"Namespace:{ns.metadata.name}")else:print("Failed to get namespaces")nr_pods=len(pods)idx=np.random.randint(0,nr_pods)example_pod_name="basic-test"# pods[idx].metadata.nameprint("Checking pod status for pod{}".format(example_pod_name))status=km.check_pod_by_name(example_pod_name)print(safe_jsonify(status,indent=2))example_pod_names=["nvidia","calico-node","emqx"]print("Checking pod status for pods{}".format(example_pod_names))status=km.check_pods_by_names(example_pod_names)print(safe_jsonify(status,indent=2))CitationIf you use this code in your research, please consider citing it with the following BibTeX entry:@misc{KMonitor,author={Andrei Damian},title={kmonitor - a simple K8s monitor framework},year={2023-2024},publisher={GitHub},journal={https://github.com/aidamian/k8s_monitor.git}}
Package: kmor
KMOR NumpyThe python implementation for k-means clustering with outlier removal from the paper written by Guojun Gan et al.[1]Installationpip install kmorYou can also install by condaconda install -c ksunhokim kmorExampleimportnumpyasnpfromkmorimportkmorX=np.array([[1,0,0],[0,1,0],[0,0,1],[0,0,100]])U=kmor(X,1)print(U)# [0,0,0,1]The outliers are assigned to the extra cluster k.Documentationkmor(X, k, y, nc0, max_iteration, gamma)ParameterDescriptionXYour data.kNumber of clusters.yParameter for outlier detection. (default=3) Increase this to make outlier removal subtle.nc0Maximum percentage of your data that can be assigned to outlier cluster. (default=0.1)max_iterationMaximum number of iterations.gammaUsed to check the convergence.References[1]Gan, Guojun, and Michael Kwok-Po Ng. "K-means clustering with outlier removal." Pattern Recognition Letters 90 (2017): 8-14.
Package: kmqc
$gitclonehttps://bitbucket.org/rstm-sf/pykmqc.git
$cdpykmqc
$pip3installvirtualenv
$virtualenv-ppython3venv
$sourcevenv/bin/activate
$pipinstall-rrequirements.txtimportkmqcfromkmqcimportQubit,gates,Programqubit=Qubit(0)p=Program()p.append_instruction(gates.H(qubit))endpoint='http://httpbin.org/post'user_id,api_key='user_id','api_key'conn=kmqc.connect(endpoint,user_id,api_key)r=conn.execute(p)print(r)[qvm_conn]
endpoint = http://httpbin.org/post
user_id  = user_id
api_key  = api_keyimportkmqcfromkmqcimportgates,Programp=Program(gates.X(1),gates.H(0),gates.H(1),gates.CNOT(0,1),gates.H(0))conn=kmqc.connect(**kmqc.config('qvm_conn.ini','qvm_conn'))r=conn.execute(p)print(r)
Package: kms
KMSThis Is KMS Library That Created For Hackers In Python Language. Its For Someone Who Need To Create A PowerFul Tool! Because Its Contains Lots Of Things That Hackers Need And Want...This Is Information Gathering Part Tools:Get (A) RecordsAS LookupDNS LookupFind DNS ServersHTTP HeadersIP LocationPage LinksPingReverse IP LookupReverse DNSSubnet CalcualtorTCP Port ScannerTraceRouteWhoisZone TransferIt Contains Two Or Three Types Of Hashing.
And Contains An Inspector That You Can Get Every Some Tags In A Code Or You Can Get Every Information In Site Really Easy!!!
It Contains Two Admin Finder Part And Contains A CMS Finder! For Example You Can Find CMS Js Web Servers And ... With This Command:import kmskms.find_cms("web Address")Or You Can find Admin Page With These Commands:kms.find_admin_php("web Address")Orkms.find_admin_asp("web Address")You Can See Better Explanation And Full Documentation In Wiki...InstallationFor Install Kms Just Install It From PIP:pip install kmsReally Easy!!
Package: kms-sha-aws
Library to do kms encryption and decryption and sha256 hashing//to importfrom kmsshademo.hashingutils import hashingutils//to craeet objecthashObject=hashingutils()//to do hashinghashvalue=hashObject.getSha256Value("val")print(hashObject)//to do encryptionhashObject.getkmsEncryptedValue("value","kms-key-arn")//to do decryptionhashObject.getkmsDecryptedValue("encrypted value")
Package: kms-signer
eth_kms_signerAWS KMS Signer for ETH transactions(EIP 155/EIP 1559/ EIP 2930)>> Go to documentationDependenciesPython 3.5+QuickStartThis library is available on PyPI. Install via pip as:pipinstalleth-kms-signerUsageInstantiate eth kms signer clientfrometh_kms_signerimportEthKmsClientclient=EthKmsClient(region_name="{aws-kms-region}")Initailize web3fromweb3importWeb3w3=Web3(Web3.HTTPProvider(endpoint_uri="{rpc_url}"))Sign aEIP 155transactiontx={"nonce":nonce,"to":"0x7EeD368F105a6eaC9Ac645bC3440fEa9A6C3D531","value":w3.toWei(12,"wei"),"gas":21000,"gasPrice":w3.toWei(1,"gwei"),"chainId":"0x4",}signed_tx=client.sign_transaction(tx,key_id)tx_hash=w3.eth.sendRawTransaction(signed_tx)Sign aEIP 1559Dynamic Fee transactiontx={"nonce":nonce,"to":"0x7EeD368F105a6eaC9Ac645bC3440fEa9A6C3D531","value":w3.toWei(12,"wei"),"gas":21000,"maxFeePerGas":w3.toWei(1,"gwei"),"maxPriorityFeePerGas":w3.toWei(1,"gwei"),"type":"0x2","chainId":"0x4",}signed_tx=client.sign_transaction(tx,key_id)tx_hash=w3.eth.sendRawTransaction(signed_tx)ExamplesChoose one of the following for a fully detailed example:EIP 155 legacy transfer transactionEIP 155 legacy contract invocationEIP 1559 transfer transactionEIP 1559 contract invocationTerraform to provision AWS KMS KeyThe following example makes use of theCloudPosse Terraform Module:Detailed Example
Package: kmstool
# kmstoolkmstool helps you encrypt data using the Amazon Key Management Service in AWS.## Installing```pip install .```## Usagekmstool has two modes: pack and unpack### store```kmstool pack <key_id> <source>```This command takes a KMS key ID, produces a data key, and uses that key toencrypt the file <source>. An encrypted copy of the data key is stored, alongwith the encrypted files, in the current directory.### retrieve```kmstool retrieve <source>```This command reads the contents of <source> passing the encrypted data key toKMS, and using the resulting plaintext key to decrypt the original data. Thefiles are extracted to the current directory.### Additional OptionsAdditional options are available: see `kmstool -h` for usage information.Unless otherwise specified, AWS credentials are determined by first examiningthe environment, then a search of the AWS metadata service, and finally usingthe "default" botocore profile.```--profileAWS (botocore) profile to use when contacting the KMS.--regionAWS region to connect to for KMS.```An optional encryption context may be passed when storing files. The samecontext must be passed when retrieving them.```-c --encryption-context foo=bar,baz=qux```## InternalsThe output of `kmstool pack` is a gzipped GNU tar file containing theKMS-encrypted data key plus an encrypted tar.gz of the source data. Theencrypted data is stored as follows (numbers are byte offsets).```0-15 Initialization Vector16-N Encrypted data:0-15 Original filesize16-N Original data```
Package: kms-vault
kms-vaultA simple pip installable library for encrypting secrets using the AWS key management service.Installationpip install kms-vaultUsageLog into AWS console.Create a new IAM user. Or if you already have one make sure to create an access key for that user.Stay in the IAM console and on the left there should be a link toEncryption Keys.Once in the Encryption Keys section create a new key, make note fo theAliasyou use.Add the IAM user as an administrator on the encryption key.
Package: kmtm
kmtmA simple CLI tool to convert kilometers to miles so that I don't have to look up the
conversion each time I see someone post about cycling/running stats.Installationpip install kmtkmOkay, well not yet because I haven't looked into adding to pypi yet..UsageExample:kmtm 10 -kFor this example, 10 is the distance that you would like to convert, and-krepresents the unit you would like the distance converted to.  In this situation, 10 miles will be converted to kilometers.The NUMBER is a required argument and both-kand-mare options that can be used individuall or at the same time.kmtm --helpOptions:
  -k, --kilos  Converts miles to kilometers
  -m, --miles  Converts kilometers to miles.
  --help       Show this message and exit.
Package: kmtools
# KMTools[![anaconda](https://img.shields.io/conda/dn/kimlab/kmtools.svg)](https://anaconda.org/kimlab/kmtools/)
[![docs](https://img.shields.io/badge/docs-v0.0.27-blue.svg?version=latest)](https://kimlab.gitlab.io/kmtools/v0.0.27/)
[![build status](https://gitlab.com/kimlab/kmtools/badges/v0.0.27/build.svg)](https://gitlab.com/kimlab/kmtools/commits/v0.0.27/)
[![coverage report](https://gitlab.com/kimlab/kmtools/badges/v0.0.27/coverage.svg)](https://kimlab.gitlab.io/kmtools/v0.0.27/htmlcov/)Bits of reusable code to make our lives easier.Follows theWhole Sort of General Mish Mashdesign principle.## Contents[Tools](#tools)
- [DB tools](#db-tools)
- [DF tools](#df-tools)
- [PY tools](#py-tools)
- [Sequence tools](#sequence-tools)
- [Structure tools](#structure-tools)
- [System tools](#system-tools)[Contributing](#contributing)## Tools### Structure toolsUsing [kmbio](https://github.com/kimlaborg/kmbio) instead of [biopython](https://github.com/biopython/biopython) leads to substantially better performance (> 2x with lots of room for improvement).#### To do[ ] Cythonize more bottlenecks to improve performance.[ ] Add Python / Cython code for generating biological assemblies.## ContributingMake sure all tests pass before merging into master.Follow the PEP8 / PyFlake / Flake8 / etc. guidelines.Add tests for new code.Try to document things.Break any / all of the above if you have a good reason.
Package: kmux.py
kmuxA tmux launcher for Kubernetes that creates one pane per pod, sets the env
variablesPOD,KUBE_CONTEXT, andKUBE_NAMESPACEand runs the commands in
the given input file in every pane.DependenciesPython3.8+smuxtmux (any version)InstallationRun the following command:pip3 install kmux.pyUsageCreate a new file, either from scratch or by copying Sample.kmux.Type in the commands that you want to run, likely dependent on the
selected POD.:---------
command1
command2
command3Note that a pane does not necessary need to run any commands.Runkmux.py <input_file_name>. By default, this will run the commands
in the input file against all pods in the current Kubernetes context.
You may also specify a target context with the command line option--kube_context. It will exhibit undefined behavior if there is no
current context and no context has been specified.
Package: kmy-beautify
kmy-beautifybeautifyallows us to add color to text, banners, menu options in the terminal applicationhow to use!font-decoration-list banner nameExamplefrombeautifyimportBeautify,LoadingBf=Beautify()Ld=Loading()menu=('home','about','contact','check for update')# loadingLd.loading(0.2)Bf.menu(Ld.show(menu),color='cyan',font='fancy102')# banner menuprint(Bf.banner('wolf1',color=Bf.colors(random=True)))# text colorprint(Bf.txtclr(str(menu),color=Bf.colors(random=True)))parametersld=Loading()ld.loading(timeout:intorfloat)# load timeld.show('hello worlds')# loaded valuebf=Beautify()bf.txtclr(text:str,color:str,bg:str,font:str,chr_ignore:boolean,sep:str,decoration:str)bf.colors(random:bool)bf.banner(name:color,bg)-->str# list banner name https://github.com/ExsoKamabay/kmy-beautify/blob/main/list_banners_namebf.menu(add_menu:list,separator:str,rw_num:bool,color:str,bg:str,font:str)
Package: kmy-scrap
kmy_scrapapikey search enggine scraping based!support python version 3.9.xlike this site!GithublinkGooglelinkHappyModlinkRexdllinkOcean Of GameslinkSource Forgelink# download from pippipinstallkmy-scraphttps://pypi.org/project/kmy-scrap/Example#import packageimportkmy_scrapsearch_app_mod=kmy_scrap.Search_App_Mod(query='free fire')search_rexdl=search_app_mod.rexdl(1)search_happymod=search_app_mod.happymod()github=kmy_scrap.Github(query='networking')search_github=github.search(page=2)# it's looking for 1 page# https://github.com/search?q=networking&page=2searches_github=github.searches(page=2)# it searches pages starting from 1 to stop at the specified page# https://github.com/search?q=networking&page=1 and https://github.com/search?q=networking&page=2the result is still in string form, we need to import json to convert the result in json form#load resultsfromjsonimportloadsdisplay the result in json form# Search app mod resultprint(loads(search_rexdl))print(loads(search_happymod))results➡️rexdl➡️happymod#Github search resultsprint(loads(search_github))print(loads(searches_github))results➡️search_github➡️searches_github# kmy_scrap'''random_user_agent -> (function)list_category_OceanOfGame -> (function)Github -> (class)|-> __init__(self,query:str) -> str:|-> total_results -> (@property)|-> search -> (method)|-> searches -> (method)Google -> (class)|-> __init__(self,query:str) -> str:|-> get_content -> (method)|-> search_image -> (method)|-> search_query -> (method)|-> search_video -> (method)Search_App_Mod -> (class)|-> __init__(self,query:str) -> str:|-> happymod -> (method)|-> rexdl -> (method)|-> ocean_of_game -> (method)SourceForge -> (class)|-> __init__(self,query:str) -> str:|-> search -> (method)'''fromkmy_scrapimport*# ParametersGithub(query:str).search(page:int)Github(query:str).searches(page:int)Google(query:str).get_content(url:str)Google(query:str).search_video(max_search:int)Google(query:str).search_image(start:int,related_results:bool,# filter resultorientation:str,# value : portrait,landscape,squareanim:str,# value : yes / noface:str,# value : yes / nosize:str,# value : small,medium,large,wallpapercolor:str,# value : red,orange,yellow,green,teal,purple,pink,brown,gray,white,blackhl:str,# languagecr:str,# country)Google(query:str).search_query(start:int,# start searchstop:int,# end searchlang:str,# languagecountry:str,# country)Search_App_Mod(query:str).happymod(search_mode='fast')# mode option 'fast' or 'slow'Search_App_Mod(query:str).rexdl(page:int)Search_App_Mod(query:str).ocean_of_game(type:str,# value : category / searchpage:int,)Update17-01-2022add theocean_of_gamemethod to theSearch_App_Modclass, a newSourceForgeclass with thesearchmethod to search.29-04-2022added search mode to happymodresultsslow,fast
Package: kmy-web-scraping
kmy_scrapapikey search enggine scraping based!support python version 3.9.xlike this site!GithublinkGooglelinkHappyModlinkRexdllinkOcean Of GameslinkSource Forgelink# download from pippipinstallkmy-scraphttps://pypi.org/project/kmy-scrap/Example#import packageimportkmy_scrapsearch_app_mod=kmy_scrap.Search_App_Mod(query='free fire')search_rexdl=search_app_mod.rexdl(1)search_happymod=search_app_mod.happymod()github=kmy_scrap.Github(query='networking')search_github=github.search(page=2)# it's looking for 1 page# https://github.com/search?q=networking&page=2searches_github=github.searches(page=2)# it searches pages starting from 1 to stop at the specified page# https://github.com/search?q=networking&page=1 and https://github.com/search?q=networking&page=2the result is still in string form, we need to import json to convert the result in json form#load resultsfromjsonimportloadsdisplay the result in json form# Search app mod resultprint(loads(search_rexdl))print(loads(search_happymod))results➡️rexdl➡️happymod#Github search resultsprint(loads(search_github))print(loads(searches_github))results➡️search_github➡️searches_github# kmy_scrap'''random_user_agent -> (function)list_category_OceanOfGame -> (function)Github -> (class)|-> __init__(self,query:str) -> str:|-> total_results -> (@property)|-> search -> (method)|-> searches -> (method)Google -> (class)|-> __init__(self,query:str) -> str:|-> get_content -> (method)|-> search_image -> (method)|-> search_query -> (method)|-> search_video -> (method)Search_App_Mod -> (class)|-> __init__(self,query:str) -> str:|-> happymod -> (method)|-> rexdl -> (method)|-> ocean_of_game -> (method)SourceForge -> (class)|-> __init__(self,query:str) -> str:|-> search -> (method)'''fromkmy_scrapimport*# ParametersGithub(query:str).search(page:int)Github(query:str).searches(page:int)Google(query:str).get_content(url:str)Google(query:str).search_video(max_search:int)Google(query:str).search_image(start:int,related_results:bool,# filter resultorientation:str,# value : portrait,landscape,squareanim:str,# value : yes / noface:str,# value : yes / nosize:str,# value : small,medium,large,wallpapercolor:str,# value : red,orange,yellow,green,teal,purple,pink,brown,gray,white,blackhl:str,# languagecr:str,# country)Google(query:str).search_query(start:int,# start searchstop:int,# end searchlang:str,# languagecountry:str,# country)Search_App_Mod(query:str).happymod(search_mode='fast')# mode option 'fast' or 'slow'Search_App_Mod(query:str).rexdl(page:int)Search_App_Mod(query:str).ocean_of_game(type:str,# value : category / searchpage:int,)Update17-01-2022add theocean_of_gamemethod to theSearch_App_Modclass, a newSourceForgeclass with thesearchmethod to search.29-04-2022added search mode to happymodresultsslow,fast
Package: kmz-custom-maps
kmz custom mapsA simple python script for processing a kmz image overlap so that it
conforms to the requirements to be used as a Garmin custom map.Garmin provides instructions for creating a custom map herehttps://support.garmin.com/en-US/?faq=cVuMqGHWaM7wTFWMkPNLN9However, the catch is that the kmz files must conform to the requirements
listed herehttps://support.garmin.com/en-AU/?faq=UcO3cFueS12IwCnizrJjeAThe most restrictive part is that the jpegs included in the
kmz cannot have more than 1024 by 1024 pixels.This python script solve this problem by taking a kmz file with
a single larger jpeg and turning it into a kmz file with a
number of smaller tiled jpegs.I have done minimal testing of this, other than checking that it does
work on my Garmin GPSMAP 66i. So use at own risk.RequirementsPython >= 3.9Usage:pip install kmz_custom_mapspython -m kmz_custom_map.run ./path/to/map.kmzThe processed kmz will be added to the directory the script was run from.For a 1:25k topo map converted to a jpeg using 200 pixels per inch.
this creates a kmz with about 40 jpeg images. I would be mindful to not
have too many of these custom maps on a garmin device at any time as it
does seem to slow down rendering.Optionally, if you want to create many separate kmz files corresponding
to tiles from the original kmz you can run it this waypython -m kmz_custom_map.run --combine ./path/to/map.kmz