Saravanan666/pypi-org huggingface dataset:
Package: pykraken2
pykraken2pykraken2provides a server/client implementation ofkraken2.Installationpykraken2 is pre-alpha software, there are currently no packaged versions.
Please use the Development instructions before for installation and use.DevelopmentThe Git repository contains Python code implementing a server and client pair,
it also contains a fork of kraken2 as a git submodule. To obtain the repository:git clone --recursive https://github.com/epi2me-labs/pykraken2.gitFor the purposes of development the Python components of pykraken2 can be installed
using an in-place (editable) install:make developThis will make a virtual environment at./venvand create and inplace
(editable) install of the Python code, along with compilingkraken2and
copying the executables to thebindirectory of the virtual environment.UsageTwo command-line entry points are provided:pykraken2 serverto run a kraken2 service to classify reads, andpykraken2 clientto send read data to the service and receive results.APIThe server and client are straight-forward, we recommend the context managers
are used:# create a server
from pykraken2.server import Server
with Server(database, address, port, threads=8) as server:
    while True:
        passAlthough this code looks a little goofy, we intend to change the behaviour of
the context manager.databaseis a database directory created by kraken2,addressa location on which to listen for requests (e.g.'localhost),portthe network port on which to listen, andthreadsthe number of threads
to kraken2 to use. An optional argumentk2_binarycan be used to specify the
location of a kraken2 binary to use.A client can be constructed as:# create a client
from pykraken2.client import Client
with Client(address, ports) as client:
    with open('output.txt', 'w') as fh:
        for chunk in client.process_fastq(args.fastq):
            fh.write(chunk)Currently theprocess_fastqiterator returns chunks of the kraken2 output.
The chunks are verbatim output: a chunk may contain multiple records, the last
record may be incomplete in any non-final chunk.
Package: pykrakenapi
WarningThis repository is not maintained actively at the moment.I will, however, respond to issues and integrate code contributions.pykrakenapiImplements the Kraken API methods using the low-level krakenex python
package. Seehttps://www.kraken.com/help/apiandhttps://github.com/veox/python3-krakenexWhenever convenient, methods return pandas.DataFrame objects. Also implements a
call rate limiter based on your Kraken tier level, as well as automatic retries
on HTTPErrors/Kraken API Errors.Quick Startpykrakenapi can be installed via pip fromPyPI$ pip install pykrakenapiThen, import and get started with:>>> from pykrakenapi import KrakenAPI
>>> help(KrakenAPI)pykrakenapi requires Python >= 3.3, krakenex >= 2.0.0 and pandas. These
requirements should be installed automatically via pip.ExampleimportkrakenexfrompykrakenapiimportKrakenAPIapi=krakenex.API()k=KrakenAPI(api)ohlc,last=k.get_ohlc_data("BCHUSD")print(ohlc)time    open    high     low   close    vwap       volume  count
dtime
2017-11-19 18:31:00  1511116260  1175.0  1175.0  1175.0  1175.0     0.0   0.00000000      0
2017-11-19 18:30:00  1511116200  1175.0  1175.0  1175.0  1175.0     0.0   0.00000000      0
2017-11-19 18:29:00  1511116140  1175.0  1175.0  1175.0  1175.0  1175.0   0.30000000      1
2017-11-19 18:28:00  1511116080  1171.2  1175.0  1170.3  1170.3  1174.9  10.02137467      3
2017-11-19 18:27:00  1511116020  1166.4  1171.2  1166.4  1171.2  1171.2   0.20043000      1
...                         ...     ...     ...     ...     ...     ...          ...    ...
2017-11-19 06:36:00  1511073360  1217.5  1217.5  1217.5  1217.5     0.0   0.00000000      0
2017-11-19 06:35:00  1511073300  1219.7  1219.7  1217.5  1217.5  1218.8   2.60803000      5
2017-11-19 06:34:00  1511073240  1221.3  1221.3  1221.3  1221.3     0.0   0.00000000      0
2017-11-19 06:33:00  1511073180  1220.4  1221.3  1210.7  1221.3  1216.3  17.37500000     11
2017-11-19 06:32:00  1511073120  1222.0  1222.0  1222.0  1222.0     0.0   0.00000000      0

[713 rows x 8 columns]DocumentationSee the docstrings of the methods of the KrakenAPI class.>>> from pykrakenapi import KrakenAPI
>>> help(KrakenAPI)FAQWhy is my order not executed? Why can’t I see my order in Kraken?Kraken’s API “Add standard order” call enables a validate only feature thatdefaults to Truehere. In order to have your order executed, try withvalidate=False.k.add_standard_order(pair="ATOMXBT",type="buy",ordertype="limit",volume="420.0",price="0.00042",validate=False)DevelopmentThis package should be considered beta state, since some methods have not been
properly tested yet. Contributions in any way, shape or form are welcome!Bug ReportsTo search for bugs or report them, please use the bug tracker:https://github.com/dominiktraxl/pykrakenapi/issuesLicenceDistributed with aGNU GPL:Copyright (C) 2017 pykrakenapi Developers
Dominik Traxl <dominik.traxl@posteo.org>
Package: pykrete
python-utilsCommon python utilities, currently for Build scriptspykretePython package for import in Build scripts:pykrete|-- args - argument types verifiers|-- builder - build management|-- calls - shell calls|-- ci - manage Continuous Integration|-- credentials - manage access credentials|-- distrib - distutils commands| . |-- pylint - pylint commands|-- io - I/O management| . |-- file - file I/O
|-- logging - logging helpers|-- packages - package management|-- patterns - Design patterns bases| . |-- visitor - Visitor pattern bases|-- repo - repository management|-- source - source code management|-- tools - tool wrappers|-- versioning - version management
Package: pykrev
PyKrev: van Krevelen analysis and beyondPyKrev is a Python 3 library to help with analysis of high resolution mass spectrometry data.To install use:pip install pykrevCore tutorials:PyKrev User GuideBatch Analysis with PyKrevOther tutorials:Making UpSet plots with PyKrev and UpSetPlotPerforming PCA with PyKrev and scikit-learnPageRank and network visualisation on FT-ICR-MS dataRaw FT-MS data processing with PyKrev and CoreMSVersion 1.2.4ChangelogCitation: Kitson, E., Kew, W., Ding, W. & Bell, N. G. A. PyKrev: A Python Library for the Analysis of Complex Mixture FT-MS Data. J. Am. Soc. Mass Spectrom. jasms.1c00064 (2021)doi:10.1021/jasms.1c00064Please send any feedback or comments toezra.kitson@ed.ac.uk
Package: pykriweather
Weather-ForecastA Python script that displays the 5-day weather forecast (3 hour intervals) for a given location. This was implemented using the pyOWM API (Open Weather Map).Locations can be searched by city name, postal code, or coordinates. Furthermore, after searching a given location, the forecast is printed to the console. After the forecast finishes, the user is prompted to search for another location. The script doesn't terminate until the user exits. Just before terminating, the forecasts for any search locations are dumped to a .csv file.RequirementsPythonYou need Python 3.4 or later to run this script. You can have multiple Python versions (2.x and 3.x) installed on the same system without issue.In Ubuntu, Mint and Debian you can install Python 3 like this:$ sudo apt-get install python3 python3-pipFor other Linux flavors, macOS and Windows, packages are available athttps://www.python.org/getit/PyowmFurthermore, you need the PyOWM wrapper library for OpenWeatherMap web APIs installed locally. The dependency can be installed through the pip installer like this:$ pip install pyowm
Package: py-kr-number
py-kr-number(pkn)Simple Korean unit conversion modulepy-kr-number(pkn)is a very convenient Korean unit converter. This module converts numbers into Korean units when you enter them.Using this module is very simple. How to use :import pkn
pkn.convert(number, "won")There are no other features other than this.Note: You are free to modify the code.
The modification method is specified in the file.
Package: pyks
TitlesummarypyksThe goal ofpyksis to help do calculation KS statistic for a model.
The R versionrawKSis hosted
from GitHub.InstallationYou can install the released version ofpyksfromAnaconda
Cloudwith:conda install -c jiaxiangbu pyksor the released version ofpyksfromPython Package
Indexwith:pip install pyksor the development version fromGitHubwith:pip install git+https://github.com/JiaxiangBU/pyksCitationsIf you use pyks, I would be very grateful if you can add a citation in
your published work. By citing pyks, beyond acknowledging the work, you
contribute to make it more visible and guarantee its growing and
sustainability. For citation, please use the BibTex or the citation
content.@misc{jiaxiang_li_2019_3351276,author={Jiaxiang Li},title={JiaxiangBU/pyks: pyks 1.1.3},month=jul,year=2019,doi={10.5281/zenodo.3351276},url={https://doi.org/10.5281/zenodo.3351276}}Jiaxiang Li. (2019, July 25). JiaxiangBU/pyks: pyks 1.1.3 (Version
v1.1.3). Zenodo.http://doi.org/10.5281/zenodo.3351276DisclaimersCode of ConductPlease note that thepyksproject is released with aContributor Code
of Conduct.By contributing to this
project, you agree to abide by its terms.LicenseMIT \u00a9Jiaxiang LiExamplesimportpandasaspdimportnumpyasnpdf1=pd.read_csv('refs/two_class_example.csv')frompyKS.ksimportperfperf(df1).chart()0.727689153693382The function `plot` is depreciated, use `perf.plot()`



<Figure size 432x288 with 0 Axes>perf(df1).table()The function `summary` is depreciated, use `perf.table()`<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }.dataframe tbody tr th {
    vertical-align: top;
}

.dataframe thead th {
    text-align: right;
}</style>min_scrmax_scrbadsgoodstotaloddsbad_rateksmax_ks01.794262e-070.002773500500.00100.00%20.6612.810221e-030.036310491500.0298.00%40.5223.670582e-020.122027437500.1686.00%55.5831.225460e-010.3257153713500.3574.00%65.8343.269821e-010.6551643119500.6162.00%71.27<----56.587248e-010.8534432228501.2744.00%69.5168.561391e-010.958957743506.1414.00%55.7479.623505e-010.9871791495049.002.00%37.1689.875471e-010.9978972485024.004.00%19.3899.979229e-010.99999705050inf0.00%-0.00
Package: pykss
PyKSS is a Python implementation ofKSS. KSS attempts to provide a
methodology for writing maintainable, documented CSS within a team.The officialdocsprovide a good introduction to KSS. The complete
syntax can he found on thesyntaxpage.InstallingpipinstallpykssUsage>>>importpykss>>>>>>styleguide=pykss.Parser('static/css')>>>>>>styleguide.section('2.1.1')<pykss.section.Sectionobjectat0x10c1d1190>>>>>>>styleguide.section('2.1.1').description'A button suitable for giving stars to someone.'>>>>>>styleguide.section('2.1.1').modifiers[0]<pykss.modifier.Modifierobjectat0x10c1d1290>>>>>>>styleguide.section('2.1.1').modifiers[0].name':hover'>>>>>>styleguide.section('2.1.1').modifiers[0].class_name'pseudo-class-hover'>>>>>>styleguide.section('2.1.1').modifiers[0].description'Subtle hover highlight'Django UsageIf you would like to use KSS within a Django projectpykss.contrib.djangoprovides a view and template tag to make it easier. Check out the example
Django project for usage.
Package: pyKStroke
I know that there are others Python packages similar to this on the web, but i make this because mymain goalwould be
to create aneasy-to-useandfast-responsekeyboard input event hook package that can be adapted to different types of use.The main modules are**ksSys.py**and**ksApp.py**.The classes directly included in the above modules are the only ones that you can use for input purposes.I’ve tried to use the same interface in both modules classes to achieve an easy interpretation of what they do,
even if“under the hood”is used a different code implementation.Both returs a tuple withWindows Virual-Key code(with some additions) and key state code.
Package: pyktc
Python Keyword Transposition CipherAn implementation of a basic keyword transposition cipher in Python.Installationpip install .UsageInitializefrom pyktc.cipher import Cipher; ktc = Cipher('secret')Encryptktc.encrypt('CRYPTOLOGY')Decryptktc.decrypt('MNYDX WHWJY')LimitationsThe basic implementation only works with A-Z though it can easily be extended to support other characters.
Package: pyku
# Pyku![pyup shield](https://img.shields.io/pypi/v/pyku.svg)https://pypi.python.org/pypi/pyku>![travis-ci status](https://img.shields.io/travis/sethwoodworth/pyku.svg)https://travis-ci.org/sethwoodworth/pyku![Documentation Status](https://readthedocs.org/projects/pyku/badge/?version=latest)https://pyku.readthedocs.io/en/latest/?badge=latest![Updates](https://pyup.io/repos/github/sethwoodworth/pyku/shield.svg)https://pyup.io/repos/github/sethwoodworth/pyku/Turn sentences into haiku.Free software: GNU General Public License v3Documentation: &lt;<https://pyku.readthedocs.io>&gt;.## FeaturesTODO## CreditsThis package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter) and the [audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage) project template.History0.0.0 (2018-04-19)Nothing yet
Package: pykube
Python client library for KubernetesKel is an open source Platform as a Service (PaaS) from Eldarion, Inc. that
makes it easy to manage web application deployment and hosting through the
entire lifecycle from development through testing to production. It adds
components and tools on top of Kubernetes that help developers manage their
application infrastructure. Kel builds on Eldarion’s 7+ years experience running
one of the leading Python and Django PaaSes.For more information about Kel, seekelproject.com, follow us on Twitter@projectkel, and join ourSlack team.FeaturesHTTP interface using requests using kubeconfig for authenticationPython native querying of Kubernetes API objectsInstallationTo install pykube, use pip:pip install pykubeUsageQuery for all ready pods in a custom namespace:importoperatorimportpykubeapi=pykube.HTTPClient(pykube.KubeConfig.from_file("/Users/<username>/.kube/config"))pods=pykube.Pod.objects(api).filter(namespace="gondor-system")ready_pods=filter(operator.attrgetter("ready"),pods)Selector query:pods=pykube.Pod.objects(api).filter(namespace="gondor-system",selector={"gondor.io/name__in":{"api-web","api-worker"}},)pending_pods=pykube.objects.Pod.objects(api).filter(field_selector={"status.phase":"Pending"})Watch query:watch=pykube.Job.objects(api,namespace="gondor-system").filter(field_selector={"metadata.name":"my-job"}).watch()# watch is a generator:forwatch_eventinwatch:print(watch.type)# 'ADDED', 'DELETED', 'MODIFIED'print(watch.object)# pykube.Job objectCreate a ReplicationController:obj={"apiVersion":"v1","kind":"ReplicationController","metadata":{"name":"my-rc","namespace":"gondor-system"},"spec":{"replicas":3,"selector":{"app":"nginx"},"template":{"metadata":{"labels":{"app":"nginx"}},"spec":{"containers":[{"name":"nginx","image":"nginx","ports":[{"containerPort":80}]}]}}}}pykube.ReplicationController(api,obj).create()Delete a ReplicationController:obj={"apiVersion":"v1","kind":"ReplicationController","metadata":{"name":"my-rc","namespace":"gondor-system"}}pykube.ReplicationController(api,obj).delete()Check server version:api=pykube.HTTPClient(pykube.KubeConfig.from_file("/Users/<username>/.kube/config"))api.versionRequirementsPython 2.7 or 3.3+requests (included ininstall_requires)PyYAML (included ininstall_requires)LicenseThe code in this project is licensed under the Apache License, version 2.0
(included in this repository under LICENSE).ContributingBy making a contribution to this project, you are agreeing to theDeveloper
Certificate of Origin v1.1(also included in this repository under DCO.txt).Code of ConductIn order to foster a kind, inclusive, and harassment-free community, the Kel
Project follows theContributor Covenant Code of Conduct.Commercial SupportCommercial support for Kel is available through Eldarion, please contactinfo@eldarion.com.
Package: pykubeyaml
pykubeyamlpykubeyamlis a tool that aims to Automate Kubernetes workflow, It automatically
creates yaml file.Installation$pipinstallpykubeyamlUsage$pykubeyamlUsage:pykubeyaml[OPTIONS]COMMAND[ARGS]...Useforkubernetes,designedtoautomateKubernetesworkflow.Options:--helpShowthismessageandexit.Commands:generateUseforgeneratekubernetesyamlfile.Generate the yaml file:$pykubeyamlgenerate--helpUsage:pykubeyamlgenerate[OPTIONS]Useforgeneratekubernetesyamlfile.Options:--kind[deployment|service|ingress]Thekindofyaml.--helpShowthismessageandexit.
Package: py-kucoin-extra
===============================
Welcome to python-kucoin-extra v1.0.0This is an unofficial Python wrapper for another unofficial Python wrapper theKucoin exchanges REST and Websocket API v2 <https://docs.kucoin.com/>_.
I am in no way affiliated with Kucoin, use at your own risk.Forked Source codehttps://github.com/javadebadi/python-kucoinOriginal Source codehttps://github.com/sammchardy/python-kucoin
Package: pykumaapi
pykumaapiБиблиотека для работы с Kaspersky Unified Monitoring and Analysis Platform
по APIНеобходимо установить библиотеку:
pip install pykumaapiВ проекте сделать импортfrom pykumaapi.pykumaapi import geteventСозданы функции:getevent()Необходимо передать функции следующие параметры:url: 
api_key_user:
clusterID:
sql:
period_from:
period_to: :
Package: pykuna
pykunaPython3 async library for interacting with the Kuna camera mobile APIRequirements:aiohttp, asyncio, async_timeoutInstall pykuna withpython3 -m pip install pykuna.Usagepykuna's main class is KunaAPI; create an API object, and authenticate it, like this:fromaiohttpimportClientSessionfrompykunaimportKunaAPIwebsession=ClientSession()kuna=KunaAPI(USERNAME,PASSWORD,websession)awaitkuna.authenticate()Where:USERNAMEis the email address you use for the Kuna app;PASSWORDis your password for the Kuna app; and,websessionis an instance of aiohttp.ClientSession().After authenticating, populate (or refresh) a dict of all cameras in the Kuna account (key = camera serial number, value = camera object) by calling theupdate()method on the API object:awaitkuna.update()MethodsThe following methods are available on a camera device object in the KunaAPI.cameras dict; all are async and must beawaited:update()- refresh only that camera's properties from the API.get_thumbnail()- returns a camera snapshot as a jpeg image.set_property(property=state)- sets a property of the device. Properties currently settable via pykuna are:bulb_on(boolean) - set the lightbulb  on (true) or off (false)led_mask(boolean) - set the status led on the device on (true) or off (false)volume(int) - set the speaker volume of the device (minimum 0, maximum 100)light_on()- turn on the camera's light bulblight_off()- turn off the camera's light bulbenable_notifications()- enable Kuna app notifications for the cameradisable_notifications()- diable Kuna app notifications for the cameraget_recordings_by_time(timedelta)- returns a python-list of recording objects for the pastdatetime.timedeltatime period.example.pyAn example script is provided to demonstrate the usage of pykuna; it prints a list of cameras associated with the Kuna account, and retrieves the currently-existing recordings for the camera, printing the timestamp of each recording and its associated download link.pythonexample.pyUSERNAMEPASSWORDCaveatspykuna interacts with Kuna's (private) mobile device API, which could change at any time. And, without official documentation or terms of service, there's no way to know what type or rate of usage may result in your account being banned by Kuna. Use carefully!pykuna does not implement timeouts; use asyncio_timeout in your client code to wrap calls to the API as needed.pykuna was inspired by the investigative work of @loghound:https://github.com/loghound/kuna-camera-api, but does not yet implement all known endpoints; this project is primarily intended to interface Home Assistant with the Kuna API, and will be further developed with that goal in mind.pykuna will hit v1.0.0 when it's ready for Home Assistant. Until then, pykuna's API may change at any time!ContributingPlease open issues or pull requests.
Package: py-kunaki
py-kunakiInfo:Python module to interface with the Kunaki.com XML APIVersion:0.1Author:Netlandish Inc. (http://www.netlandish.com)DependenciesPython 2.6+InstallationPIP:pip install py-kunakiBasic Manual Install:$ python setup.py build
$ sudo python setup.py installAlternative Install (Manually):Place kunaki directory in your Python path. Either in your Python installs site-packages directory or set your $PYTHONPATH environment variable to include a directory where the webutils directory lives.UsagePlease first refer to Kunaki XML Web Service documentation:http://kunaki.com/XMLService.htmGet shipping options for a prospective order:from kunaki import ShippingProduct, ShippingOptions

product1 = ShippingProduct(product_id='XZZ1111111', quantity=2)
product2 = ShippingProduct(product_id='PXZZ111112', quantity=3)
shipping_opts = ShippingOptions(
    country='United States',
    state='NY',
    postal_code='10004',
    products=[product1, product2],
)
# Optionally add a product
shipping_opts.add_product(ShippingProduct(product_id='PXZZ111111', quantity=1))
# Submit the shipping options request
shipping_opts.send()

if shipping_opts.success:
    # Retrieve options list
    options = shipping_opts.get_options()
    for opt in options:
        print 'Description:', opt.description
        print 'Delivery Time:', opt.delivery_time
        print 'Price:', opt.price
else:
    print 'Error:', shipping_opts.error_msgRequest to manufacture and fulfill an order:from kunaki import ShippingProduct, Order

products = [
    ShippingProduct(product_id='XZZ1111111', quantity=2),
    ShippingProduct(product_id='PXZZ111112', quantity=3),
]
order = Order(
    username='santaclaus@northpole.com',
    password='Rednose',
    name='John Smith',
    address1='215 Maple Street',
    address2='Room 134',
    city='New York',
    postal_code='10004',
    country='United States',
    shipping_description='USPS Priority Mail',
    products=products,
    state='NY',
    company='Smith Enterprises',
)
# Optionally add a product
order.add_product(ShippingProduct(product_id='PXZZ111111', quantity=1))
# Submit the order request
order.send()

if order.success:
    print 'Order Id:', order.order_id
else:
    print 'Error:', order.error_msgRequest for an order status:from kunaki import OrderStatus

order_status = OrderStatus(
    username='santaclaus@northpole.com',
    password='Rednose',
    order_id='567129',
)

if order_status.success:
    print 'Status:', order_status.status
    print 'Tracking Type:', order_status.tracking_type
    print 'Tracking Id:', order_status.tracking_id
else:
    print 'Error:', order_status.error_msgCommercial SupportThis software, and lots of other software like it, has been built in support of many of
Netlandish’s own projects, and the projects of our clients. We would love to help you
on your next project so get in touch by dropping us a note athello@netlandish.com.
Package: pyKurtuba
Python api-client for**Kurtuba**Api клиент для облачного хранилища**Kurtuba**Как начать?:Установите библиотеку черезpipinstallpyKurtubaПодключите библиотекуimportpyKurtubaПример использования:frompyKurtubaimportKurtubatest=Kurtuba('http://localhost:3199')test.new_token()APIСоздание и получение токена:Токен это ключ к доступу к конкретному хранилищу, а так же своего рода
namespace. Получить новый токен можно с помощью запроса:frompyKurtubaimportKurtubatest=Kurtuba('http://localhost:3199')test.new_token()Добавление данных в хранилище, а так же обновление:После получения токена, мы можем записать, что-нибудь в наше хранилище,
сделать это можно отправив POST запрос по адресу/set:test.set_data(token,data)token- ваш токен (можете его предварительно сохранить где нибудь,
либо использовать метод получения токена)data- ваши данные в формате ключ-значение(напримерpython data = {test:2}Удаление элементаtest.remove(token,key)token- токенkey- имя элементаУдаление храналищаtest.delete(token)token- токенПолучение данныхЕсли вам нужно получить все данные, которые есть в хранилище:test.get_all(token,name)token- токенname- имя коллекцииЕсли вам нужно получить определенные данные:test.get(token,key)token- токенkey- имя ключа