Saravanan666/pypi-org huggingface dataset:
Package: kite
KitePreparation of InSAR surface displacement maps for geophysical modellingInstallationInstall from pip:pipinstallkiteWith additional gdal dependency, used for GeoTIFF (GACOS and LiCSAR):pipinstallkite[gdal]IntroductionThis framework is streamlining InSAR displacement processing routines for earthquake inversion throughPyrockoand Grond.Kite features simple and efficient handling of displacement data:Import InSAR displacement data from GAMMA, ISCE, GMTSAR, ROI_PAC, SARScape,COMET LiCSAR,SNAPand MatlabImport of average timeseries fromSTAMPSand GermanBodenBewegungsDienstQuadtreecalculation for data reductionCovarianceestimation from data noiseAPS removalfromGACOSatmoshperic models and empirical elevation correlationCitationRecommended citation for KiteIsken, Marius; Sudhaus, Henriette; Heimann, Sebastian; Steinberg, Andreas; Daout, Simon; Vasyura-Bathke, Hannes (2017): Kite - Software for Rapid Earthquake Source Optimisation from InSAR Surface Displacement. V. 0.1. GFZ Data Services.http://doi.org/10.5880/GFZ.2.1.2017.002DocumentationFind the documentation athttps://pyrocko.org/kite/docs/current/.Short ExamplefromkiteimportScene# Import Matlab container to kitescene=Scene.load('SNAP_data/')scene.spool()# start the GUI for data inspection and Quadtree parametrisationVisual parametrisation of the quadtree and spatial covariance for SLC and InSAR time-series.
Package: kitefly
The Kitefly python library can be used to generate Buildkite pipeline YAML using type-checked composable classes. Additionally, a filter mechanism is available which can be used to reduce the number of jobs in pull requests for mono-repos, or other similar applications.Installationpip install kiteflyUsageCreate a pipeline file in your repository (e.g.generate_pipeline.py). Here's a simple example:#!/usr/bin/env python
# File: generate_pipeline.py

from kitefly import *

# 1. Define your Source Targets (Optional)

lib = Target.src('src/lib', 'src/lib-v2')
app = Target.src('src/app').prio(10)
app >> lib
py_files = Target('**/*.py')


# 2. Define the Pipeline
# You can inherit from Command to apply env vars and agents targeting to
# all steps with that class. Those class properties will be merged in reverse-MRO.

class Linux(Command):
  env = {
    "PYTHON_PATH": "/usr/bin/python3"
  }
  agents = {
    "os": "linux"
  }

class LinuxHighCpu(Linux):
  agents = {
    "instance": "large"
  }

# If you want to declare dependencies, you can create variables for certain
# steps to be used below.
coverage = Command('Collect and publish code coverage', 'script/coverage-collector.sh')

app_tests = LinuxHighCpu('Run app tests', 'script/test-app.sh', targets=[app])
lib_tests = Linux('Run library tests', 'script/test-lib.sh', targets=[lib])
e2e_tests = Command('Run E2E Tests', 'script/e2e.sh', targets=[app])
lint = Command('Run pylint', './script/pylint.sh', targets=py_files, env={PYENV_VERSION: "project-3.6.3"})

lint_phase = Group([lint], label='Lint') 
test_phase = Group([app_tests, lib_tests, e2e_tests], label='Test')
test_phase >> lint_phase

pipeline = Pipeline([
  lint_phase,
  test_phase,
  Wait(),
  Command('Publish test artifacts ', './script/publish-test-artifacts.sh')
])

# 3. Filter your pipeline against targets matching changes from base (optional):
#    By default, `GitFilter` uses the BUILDKITE_PULL_REQUEST_BASE_BRANCH environmental variable.
filtered = pipeline.filter(GitFilter())

# 4. Print out the Pipeline YAML. Alternatively, you could write it to a file
#    and then upload it using `buildkite-agent pipeline upload [file]`
#
print(filtered.asyaml())The pipeline can now be generated as the main executor step in Buildkite:pip install kitefly
generate_pipeline.py | buildkite-agent pipeline uploadAbout FilteringKitefly provides a model to associate build steps with source "targets", enabling filtering to run fewer builds. This is particularly useful for monorepos.For example, if the commandgit ls-files <buildkite-branch>..<base-branch>outputs:src/lib/util.tsThen thetarget_libtarget will match, since its filepath spec includessrc/lib, andtarget_appwill also be included in the list of targets sincetarget_apphas a target dependency ontarget_lib.If, on the other hand, the list of files reported by git is:src/infra/tool.pyThen only thepy_filestarget will match, and so only steps targetingpy_fileswill be included in the pipeline, along with steps that do not specify any target.LicenseMIT
Package: kitehistory
kite-history============|GitHub license| |saythanks|``kitehistory`` is a wrapper around `Kite HistoricalAPI <https://kite.trade/docs/connect/v1/#historical-data>`__Installation :~~~~~~~~~~~~~~::pip install kitehistory|asciicast|Options :~~~~~~~~~::--symbol                         Stock symbol of the instrument.--interval                       Time interval for the tick data.--from_date                      Start date indicating the start of records.--to_date                        End date indicating the end of records.--exchange                       Exchange Name. (MCX/NSE/BSE/NFO/CDS/BFO/MCXSX)--output                         Output filename to save `csv`--path                           Specify path to directory to store instruments masteralong with access token keys--verbose                        Enable verbose loggingExample Usage :~~~~~~~~~~~~~~~::kitehistory -s TCS -i day -f 2017-05-15 -t 2017-06-05 -e NSE -o TCS.csv --verbose.. figure:: screens/tcs.png:alt: imgimgFirst Time Setup~~~~~~~~~~~~~~~~``kitehistory`` depends on Kite API to fetch instruments master file in``.csv``. You need to create an appllication athttps://developers.kite.trade/apps and export the following keys in yourshell::export KITE_API_KEY='your-kite-api-key'export KITE_SECRET='your-kite-secret-key'export KITE_REQUEST_TOKEN='your-kite-request-token'How it works ?~~~~~~~~~~~~~~Kite API requires instrument-token to fetch the historical data. Theidea behind this wrapper is to fetch the instruments master file andquery it for the required symbol to fetch instrument token. Once thetoken is fetched, it uses Kite's API to get the historical data andsaves the output in a ``.csv`` ready for analysis etc.Credits--------  `pandas <http://pandas.pydata.org/>`__-  `Kite API <https://developers.kite.trade/apps/>`__-  `pykiteconnect <pykiteconnect>`__-  `requests <http://docs.python-requests.org/en/master/>`__Contributing------------Feel free to report any issues and/or send PRs for additional features.License~~~~~~~MIT © Karan Sharma `LICENSE included here <LICENSE>`__.. |GitHub license| image:: https://img.shields.io/badge/license-MIT-blue.svg:target: https://raw.githubusercontent.com/mr-karan/kiteHistory/master/LICENSE.. |saythanks| image:: https://img.shields.io/badge/say-thanks-ff69b4.svg:target: https://saythanks.io/to/mr-karan.. |asciicast| image:: https://asciinema.org/a/.png:target: https://asciinema.org/a/
Package: kite-string
kite-string(凧糸) is Python(2.6-3.4) command-line HTTP request wrapper fortakosan.InstallingFor Usersfrom PyPI$pipinstallkite-stringfrom Github$pipinstallgit+https://github.com/laughk/kite-string.gitUsage$kite-hUsage:kite[OPTIONS]TAKOSAN_URLOptions:--versionshowtheversionandexit--channelTEXTNameofnoticechannel,orid(e.g.#example, @id)[required]--nameTEXTsetbotname--colorTEXTsetcolorborderalongtheleftsideofthemessageattachment[good|warning|danger|<hexcolorcode>](e.g.#439FE0)--messageTEXTSimplepostmessages--iconTEXTsetimageurloremoji(e.g.:shachikun:)--pretextTEXTThisisoptionaltextthatappearsabovethemessageattachmentblock--author-nameTEXTSmalltextusedtodisplaytheauthor'sname--author-iconTEXTAvalidURLthatdisplaysasmall16x16pximagetotheleftoftheauthor_nametext.Willonlyworkifauthor_nameispresent--author-linkTEXTAvalidURLthatwillhyperlinkthe`author_name`textmentionedabove.Willonlyworkif`author_name`ispresent--titleTEXTThetitleisdisplayedaslarger,boldtextnearthetopofamessageattachment--title-linkTEXTBypassingavalidURL.the`title`textwillbehyperlinked--textTEXTThisisthemaintextinamessageattachment,andcancontainstandardmessagemarkup--image-urlTEXTAvalidURLtoanimagefilethatwillbedisplayedinsideamessageattachment(Slackcurrentlysupportthefollowingformats:GIF,JPEG,PNG,andBMP.)-h,--helpShowthismessageandexit.exampleSimple Post$kite\>--name'laugh_k'\>--icon'https://pbs.twimg.com/profile_images/498392311491883010/If0DOLYq.jpeg'\>--channel'@laughk'\>--text'hello'\>http://takosan.example.com:4979Multi channel Post$kite\>--name'laugh_k'\>--icon'https://pbs.twimg.com/profile_images/498392311491883010/If0DOLYq.jpeg'\>--channel'#notice_channel1'\>--channel'#notice_channel2'\>--text'hello'\>http://takosan.example.com:4979
Package: kithon
Kithonis universal python transpiler for speedup python programs and use python in other platform, such as browser or game engines, it focused on generating human readable code and integration with tools of target languages including cli and librariesTry out the web demoQuick startFirst, you install it:$ pip install kithon[all]Then, you translate your code to target language, in this example JavaSctipt$ kithon gen --to js hello_world.pyOr translate and run resulting code$ kithon run --to go hello_world.pyIt should be clear what to do. If not, ask us in ourTelegram chat.How to ContributeFollow these steps:installpython>=3.9,poetrypoetry install -E all --with docs --with testpytest
Package: kitica
Kitica APIIntroductionKitica's REST API was built to support parallel device automation testing,
It serves device's information through HTTP protocol.SetupKitica's API service was designed to be hosted behindnginxweb server, but could also
be run locally for development.Development Server SetupStep 1Before anything else, it is recommended that you run the service in a virtual environment.So, first, install python'3 virtualenv.pipinstallvirtualenvAfter installing, create a virtualenv inside the api folder(repository_root/api). Run:virtualenvvenvWhere venv is the name of the virtualenv instance.OutputUsingbaseprefix'/usr'Newpythonexecutablein/home/yourusername/sample/venv/bin/python3
Alsocreatingexecutablein/home/yourusername/sample/venv/bin/python
Installingsetuptools,pip,wheel...done.Next, activate the virtualenv:sourcevenv/bin/activateNow that virtualenv is active, install the dependencies for the api service.pipinstall-rrequirements.txtAfter that, all dependencies should be installed.Step 2To start the API service, run:pythonkiticaApi.pyOutput*ServingFlaskapp"kiticaAPI"(lazyloading)*Environment:productionWARNING:Thisisadevelopmentserver.Donotuseitinaproductiondeployment.UseaproductionWSGIserverinstead.*Debugmode:on*Runningonhttp://0.0.0.0:5000/(PressCTRL+Ctoquit)*Restartingwithstat*Debuggerisactive!*DebuggerPIN:xxx-xxx-xxxService should be running now.To Verify, Create a get request in postman.url:http://localhost:5000/devicesmethod: GETResponse should be something like this:[{"deviceId":3,"deviceName":"Pixel 2","platformName":"Android","server":"xxx.xxx.xxx.xxx","port":"4723/wd/hub","udid":"emulator-5554","platformVersion":"9","status":"FREE","teamName":"TEAM","version":1,"borrowerIp":null,"borrowerHostname":null,"lastBorrowed":"2020-02-12 15:29:29","deviceType":"Emulator"}]That's it, local development server is now running.
Package: kiticaclient
Kitica Host Client ListenerContents:DescriptionInstallationFeaturesUsageDescriptionKitica Host Client Listener enables a machine to host devices for the Kitica Devicepool Setup. It supports device status updates.InstallationIf you havepipinstalled, just runpipinstallkiticaclient==1.1b1To verify installation, you may run:for ADB Client.adb-kitica --helporfor iOS Client.ios-kitica --helpYou may refer to the sample execution below.$adb-kitica--help
usage:adb-kitica[-h][-kKITICASERVER][-wWEBDRIVERPATH][-aADBHOST][-pADBPORT]optionalarguments:-h,--helpshowthishelpmessageandexit-kKITICASERVER,--kiticaserverKITICASERVERKiticaAPIServerURI-wWEBDRIVERPATH,--webdriverpathWEBDRIVERPATHWebDriverPATH-aADBHOST,--adbhostADBHOSTTheadbhosttoconnectto.Defaultstolocalhost.-pADBPORT,--adbportADBPORTTheADBportofthehost.Defaultsto5037$ios-kitica
usage:ios-kitica[-h][-kKITICASERVER][-wWEBDRIVERPATH]optionalarguments:-h,--helpshowthishelpmessageandexit-kKITICASERVER,--kiticaserverKITICASERVERKiticaAPIServerURI-wWEBDRIVERPATH,--webdriverpathWEBDRIVERPATHWebDriverPATHFeaturesKiticaadb-clientsupports auto start of theADB servershould it detect that the client is not running.Client also auto createsKITICA_CLIENT_WEBDRIVERSwhich differs for every Operating System, but, follows the same format. It targets the home folder for the users.ForlinuxIt would be/home/<username>/kitica/client/webdriversForWindowsC:\Users\<username>\kitica\client\webdriversFormacOS/Users/<username>/kitica/client/webdriversUsageADB ClientTo start an Android Debug Bridge kitica client, simply runadb-kiticaon your terminal.$adb-kitica-khttp://kitica.server

BaseClientInstanceStarted..
HOSTIP:xxx.xxx.xxx.xxx
KITICASERVER:http://kitica.server
WebdriverPATH:/home/<username>/kitica/client/webdrivers
StartingAndroidHostClientListenerService....
adbhost:localhost
adbport:5037iOS ClientTO DO!
Package: kitir
kitirThis is a Python3 version of my old projecthttps://github.com/InbarRose/irtools"A collection of useful tools for Automation, Devops, or anything really"News:Now hosted on pypi !https://pypi.org/project/kitir/What is it?A set of tools that I find myself using often.
Compiled over many years of use, gathered here and organized.Installing with pipTo get the most stable version from Pypi (recommended)pip install kitirTo get the most recent master versionpip install git+git://github.com/InbarRose/kitir@master#egg=kitirTo get the development versionpip install git+git://github.com/InbarRose/kitir@development#egg=kitirUsageTo use the tools, you simply do:from kitir import *This will gauruntee that you have the optimal situation, where you can accessutilsfrom your code.It will also make sure that the logging module has been monkey patched with the newtracelevel. (important when running on commandline or with logging enabled)When running from command line, you should include a call toutils.logging_setup()to make sure the logging is setup to work correctly for all the utils.Examplesret=utils.iexec('ping 8.8.8.8')# using iexec you can run any commandSee the rest of this example and more in thequickstart examples fileMore examples in theexamples folder.Authors / Creators / CreditsInbar Rose-Owner-InbarRoseNote about code included or copied from external sourcesThroughout the years I have compiled this set of utilities, most of it is written by me (Inbar) But some of it is copied from other sources, everywhere I have copied code I have included a link to the source, and where possible the type of license or a note about the author. If you believe I have made an error, or something I have included is wrong or needs updating, please let me know. It is not my intention to steal or cheat or claim work as my own, and if you dispute my using of your code, I will happily remove it. In some cases I made slight modifications to code mostly for readability, but in some cases I made modifications to enhance capabilities. Again, if anyone has a problem with anything I have done, please let me know. Thanks.Future PlansAdd examples to try to cover each util lib and kit. (Assistance is welcomed)Improve documentation and add additional comments for increased flow readability (Assistance is welcomed)I plan to add this package to PyPi very soon!LicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: kitman
KitmanA toolkit for solving generic issues when building modern SaaS applications in Python.Kitman is named after the role it plays in sports, where the kitman maintains and brings the gear, so the athlethes can focus on performing.Developers are the athlethes and this project's aim is to bring all the tools that you need to create modern SaaS applications.It solves this issue primarily through creating interoperability between libraries and frameworks that developers already love - but continously struggle or repeat themselves when they incorporate them into products.It builds on top of the interoperability to create building blocks and services that areeasy to:IntegrateExtendCombineNOT PRODUCTION READYRepoDocs
Package: kitools
kitools-pyTools for working with data inKianalyses.Installationpip install kitoolsUsageComing soon...Development Setupgitclonehttps://github.com/ki-tools/kitools-py.gitcdkitools-py
python3-mvenv.venvsource.venv/bin/activate
makeinit_dev
cptests/templates/private.test.env.jsontests/private.test.env.json# Set the test values in: private.test.env.jsonmaketest
Package: kitoolz
A set of utility functions for iterators, functions, and dictionaries.See the PyToolz documentation athttps://toolz.readthedocs.ioLICENSENew BSD. SeeLicense File.Installtoolzis on the Python Package Index (PyPI):pip install toolzStructure and Heritagetoolzis implemented in three parts:itertoolz, for operations on iterables. Examples:groupby,unique,interpose,functoolz, for higher-order functions. Examples:memoize,curry,compose,dicttoolz, for operations on dictionaries. Examples:assoc,update-in,merge.These functions come from the legacy of functional languages for list
processing. They interoperate well to accomplish common complex tasks.Read ourAPI
Documentationfor
more details.ExampleThis builds a standard wordcount function from pieces withintoolz:>>>defstem(word):...""" Stem word to primitive form """...returnword.lower().rstrip(",.!:;'-\"").lstrip("'\"")>>>fromtoolzimportcompose,frequencies,partial>>>fromtoolz.curriedimportmap>>>wordcount=compose(frequencies,map(stem),str.split)>>>sentence="This cat jumped over this other cat!">>>wordcount(sentence){'this':2,'cat':2,'jumped':1,'over':1,'other':1}Dependenciestoolzsupports Python 3.5+ with a common codebase.
It is pure Python and requires no dependencies beyond the standard
library.It is, in short, a lightweight dependency.CyToolzThetoolzproject has been reimplemented inCython.
Thecytoolzproject is a drop-in replacement for the Pure Python
implementation.
SeeCyToolz GitHub Pagefor more
details.See AlsoUnderscore.js: A similar library for
JavaScriptEnumerable: A
similar library for RubyClojure: A functional language whose
standard library has several counterparts intoolzitertools: The
Python standard library for iterator toolsfunctools: The
Python standard library for function toolsContributions Welcometoolzaims to be a repository for utility functions, particularly
those that come from the functional programming and list processing
traditions. We welcome contributions that fall within this scope.We also try to keep the API small to keeptoolzmanageable.  The ideal
contribution is significantly different from existing functions and has
precedent in a few other functional systems.Please take a look at ourissue pagefor contribution ideas.CommunitySee ourmailing list.
We’re friendly.
Package: kitsat
Kitsat python library and CLIOverviewKitsat python is a Python CLI and library for communicating with the Kitsat educational satellite manufactured by Arctic Astronautics Ltd.Project Homepage:https://github.com/netnspace/Kitsat-Python-LibraryDownload Page:https://test.pypi.org/project/kitsat-pythonKitsat Homepage:http://kitsat.fi/Get a Kitsat:https://holvi.com/shop/kitsat/InstallationUse the package managerpipto install kitsat_pythonpipinstallkitsatAdditional installation stepsTo access the USB port at ie. /dev/ttyS0 on Linux, you might have to add your user to dialout group with this command:sudo usermod -a -G dialout <your_user_name>And log off and on again.UsageThis package offers a CLI and a Python library for operating the satellite. The cli can be run from a terminal with the commandkitsat_cliA list of commands for the cli can be found in the directorydocsFor using the library, here is a sample script that connects to a satellite on port /dev/ttyACM0, pings the satellite and prints its response. More example scripts can be found in the directoryexamplesfromkitsatimportModemmod=Modem()mod.connect('/dev/ttyACM0')mod.write('ping')print(mod.read())mod.disconnect()ContributorsTuomas Simula -tuomas@simu.laTessa Nikander -tessa@kitsat.fiSamuli Nyman -samuli@kitsat.fiLicenseGNU GPLv3
Package: kitsune-nh
KitsuneAn asynchronous nhentai.net API wrapper and scraperAs of now the wrapper has most of the functionality the API has to offer, except for the endpoint for filtering galleries by tag which I didn't include in the wrapper due to the fact that the search endpoint can already do that. The only thing left to do is to improve the quality of the code, implement GIF downloading which, according to how they are distributed across nhentai image repositories, will be quite troublesome and writing the documentation.Only contributions I allow will be accepted. This will be worked on only in my free time.Current capabilities:nhentai.net API endpoints data requestingSearching and filtering with webscrapingRatelimit handlingDownloading done via threadsPre-release:Extra polishing, some extra refactoring and last touches.Licensing, uploading the package and guide on how to use.Post-release:GIF downloading support.Even more refactoring.Tweaks and changes for the http handler.InstallationPython 3.8+pip install kitsune-nhHow-to-use guideThe main way to instantiate the wrapper class is via an async context manager which takes care of creating and closing the HTTP session internally.importasynciofromkitsuneimportKitsuneasyncdefmain():asyncwithKitsune()asclient:...You can also opt to pass your own HTTP session.importaiohttpfromkitsuneimportKitsuneasyncdefmain():session=aiohttp.ClientSession()asyncwithKitsune.from_session(session)asclient:...Now that you have your instance of the wrapper, using it is fairly simple. Some examples below.importaiohttpfromkitsuneimportKitsune,Popularity,Tag,Artist,Character,Parody,Groupasyncdefmain():asyncwithKitsune(loop=your_loop)asclient:# Passing your own loop# Wrapper methodsgallery=awaitclient.fetch_gallery(312781)galleries=awaitclient.fetch_galleries([312781,31286,9294])related=awaitclient.fetch_related(312781)random_gallery=awaitclient.fetch_random()comments=awaitclient.fetch_comments(gallery.id)homepage=awaitclient.fetch_homepage()shelf=awaitclient.search(Tag["kitsune"],popularity=Popularity.ALL_TIME)awaitclient.download(shelf,"/home/acertig/Pictures")More examples and explanations can be found on the documentation.Special thanks to hentai-chan for sharing the API endpoints. They were necessary for this async version of the wrapper to work.
You can check his own sync wrapper here:https://github.com/hentai-chan/hentai
Package: kitsupy
kitsupykitsupy is a simple api wrapper for thekitsuapi written in python. It should work without any problems on any reasonably recent version of python.Installationkitsupy can be installed from pypi$pipinstallkitsupyDependenciesThis module requires only one external module,requests, which should be installed by-default with python. In case it's not, you can install it with pip:$pipinstallrequestsNote that when you installkitsupy, it automatically checks whether you haverequestsinstalled and if not, it installs it automatically, so you technically don't have to do anything.Example>>>importkitsupy# import the module>>>kitsupy.search('anime','bakemonogatari'){'count':2,'3919':'Bakemonogatari','4800':'Bakemonogatari Recap'}>>># A dictionary is returned, from where we can get the id of the anime>>>kitsupy.get_info('anime',3919)# Taking the id from the above dictionary{'createdAt':'2013-02-20T17:00:18.998Z','updatedAt':'2021-06-10T06:00:15.132Z','slug':'bakemonogatari','synopsis':'#long description','coverImageTopOffset':20,'titles':{'en':'Bakemonogatari','en_jp':'Bakemonogatari','ja_jp':'化物語'},'canonicalTitle':'Bakemonogatari','abbreviatedTitles':['Ghostory']}>>># Note that a lot more data is returned in the dictionary, but for the sake of keeping it simple, the dictionary has been truncated hereDocsThe documentation can be foundhereLicenseThis project can been licensed under theMITlicense.