Saravanan666/pypi-org huggingface dataset:
Package: kass-flow
Helper for theKASSpayment gateway. Written for python 3.8.5 (probably works on versions >= 3.6).See theKASS API docsfor more info.This module is not affiliated with KASS.TODO[x] Create payment[ ] Retreive payment info[ ] Retreive payment status[ ] Cancel payment[ ] Add concurrency with RQ when dispatching multiple paymentsUsageHere is a short guide to get you started.This will dispatch a payment to the KASS API.poetryaddkass-flow# orpipinstallkass-flowfromkass_flow.kassimportKassBillingfromkass_flow.interfacesimportKassRequestPaymentDictkass_token:str="some-token"kass_url:str="https://api.kass.is/v1/payments"instance=KassBilling(kass_token,kass_url)payload:KassRequestPaymentDict={"amount":2199,"description":"Kass bolur","image_url":"https://photos.kassapi.is/kass/kass-bolur.jpg","order":"ABC123","recipient":"7798217","terminal":1,"expires_in":90,"notify_url":"https://example.com/callbacks/kass",}result,is_valid=instance.dispatch(payload)When the recipient cancels or pays the requested order KASS will send a callback to thenotify_url, which you need to catch on your server and probably validate the signature that is included in the POST payload.At some point in time the user will pay/reject the requested order. Here is an example on how to validate the payload.fromkass_flow.kassimportKassBillingfromkass_flow.interfacesimportKassRequestPaymentDictdefsome_view_that_handles_kass_callback(request):payload=request.datakass_token:str="some-token"kass_url:str="https://api.kass.is/v1/payments"instance=KassBilling(kass_token,kass_url)ifinstance.is_signature_valid(payload):# process the payload.Developmentpipinstallpoetry# to manage envs yourselfpoetryconfigvirtualenvs.createfalsepoetryinstallpytesttestsIf you are using VSCode for development there is a.vscode/settings.example.jsonfor sensible defaults. Since mypy is used you need to install themypylslanguage server.poetry install "https://github.com/matangover/mypyls/archive/master.zip#egg=mypyls[default-mypy]"
# or
pip install "https://github.com/matangover/mypyls/archive/master.zip#egg=mypyls[default-mypy]"
Package: kasten
Kasten 🖃Binary serialization format with metadata, validation, and configurable hash IDs with proof-of-work (VDF) support.Kasten is intended to wrap messages for transport agnostic communication.Sending a message:import kasten

# Bob creates message

message = b"hello world"
# Mode for any external lib to use
encrypt_mode = 0
packed_message: bytes = kasten.generator.pack.pack(message, 'txt', encrypt_mode)

# We pick the base generator which checks for sha3_256 validity and that's it
# However we could also pick KastenMimcGenerator which has both validity and proof-of-work ratelimiting
# Or, we could make our own. Both parties just need the same logic.
kasten = kasten.generator.KastenBaseGenerator.generate(packed_message)

message_checksum: bytes = kasten.id

# Bob sends packed_message and message_checksum to AliceReceiving a message:import kasten

# Alice receives message
bobs_message = b'\x93\xa3txt\x00\xce_F\xc7!\nhello world'
bobs_checksum = b"\xac\x83K=n\xdb\xba\x9aJ\xca:\x82]'9b\xd0\x98\xda\xee'\x9f\xf2\xd7\x94\x9e\x91\x94\x9dnh6\x02\x03\xf0\xfe\x85\xbdrLj]R\xeb;xB@"

# Recreate on Alice's end using the checksum, message, and the same generator
# The generator will automatically check message validity and throw a kasten.exceptions.InvalidID exception if failed
kasten_message = kasten.Kasten(bobs_checksum, bobs_message, kasten.generator.KastenBaseGenerator)
Package: kasushi
KasushiBuilding blocks and utility extensions for discord.py botsKasushi is an extension of thediscord.pylibrary. It provides a number of
useful features for bots, such as cache, IPC, tortoise models and more.It is really easy to use, and requires a minimum amount of configuration.Download kasushi on the command line using pip:pipinstall-UkasushiConfigure the extensions:importkasushi# See below for settings you can pass to configure.awaitkasushi.configure(bot,{})Load the extensions in your bot code before it runs:awaitbot.load_extension('kasushi.cache')You're done!Modules and settingsMany modules are available in kasushi. You should load them in your bot, and pass settings to configure.Depending on the module(s) you want to use, you can pass different settings to configure.CacheThe cache module allows for connecting to amemcachedserver. It can be used to store cached
data between reboots of the bot, like cooldowns and user data.UsageOnce installed and loaded, the cache class is made available inbot.cache.awaitbot.cache.set("coins",0)awaitbot.cache.set("coins",10)awaitbot.cache.get("coins")# 10awaitbot.cache.delete("coins")awaitbot.cache.get("coins",default=5)# 5Configuration exampleYou can pass the following dictionary to configure:{"cache":{"server_ip":"127.0.0.1","server_port":11211,}}IPCIPC stands for Inter-Process Communication. It allows for sending messages between processes, or, in our case, different
processes for the same bot.The process hosting the first shard (shard 0) will be the "master process". It'll host the webserver allowing other
processes to connect to it.It'll also pass messages to the other bots if needed.UsageOnce installed and loaded, the IPC class is made available inbot.ipc. All bots need to be able to access the first
shard's IPC server.Configuration example{"ipc":{"shared_secret":"secret",# This is used to authenticate with the IPC server."server":{"host":"0.0.0.0","port":12321,},"client":{"server_url":"http://127.0.0.1:12321",},"handlers":[GuildInfoHandler]# See above for handlers.},}
Package: kasutils
Kas-UtilsMy utility library with zero dependencyFunctionsadd_jsonAppend new entry in array and write in json fileappendAppend texts to a filebgtaskRun task in background supressing output by setting stdout and stderr to devnullcatA poor alternative of GNU/Linux 'cat' command returning file contentcenter_textCenters texts to terminalclearClear the screen and show logocopyCopies files or foldersdeleteDelete files/folders if existextractExtract zip/tar/tgz filesgenerate_readmeGeneated markdown with function name and docstringget_docstringsReturns a dictionary of function name as key and docstring as valueget_toml_verGrab version from toml fileget_verConverts 1.2.3 to 123 for easy comparisongrepAnother poor alternative of GNU/Linux 'grep' command for regex searchinst_moduleTry to install pip modulesinstallerInstall package by shell command. Specify a package name if it is different than the executableis_installedCheck if a process is running by 'command -v' command. If it has a output exit_code will be 0 and package is already installedis_jsonCheck if a json is validis_onlineChecks for a valid internet connectionis_runningCheck if a process is running by 'pidof' command.If pidof has a output exit_code will be 0 and process is runningkillerKill processes by pidlolcatPrints colorful textsmoveCopies files or folderspretty_printPrint decorated file contentreadableBytes to KB, MB converterrenameCopies files or folderssedAnother poor alternative of GNU/Linux 'sed' command to replace and writesend_mailSend mail by smtp libraryshellRun shell commands in pythonsprintPrint lines slowlywriteWrite texts to a file
Package: kaszubski-tlumacz
Make sure you have upgraded version of pipWindowspy -m pip install --upgrade pipLinux/MAC OSpython3 -m pip install --upgrade piprequired packagepip install beautifulsoup4Project descriptionThe package uses the beautifulsoup4 package which uses the page to fetch a word from the page:https://kaszebe.org/.
The package itself can translate short sentences, because too long code causes errorsWho use a pacpage?from kaszubski_translate_Szymtest import a
print(a.tlumacz_p_k(""))
This a function print translate from Polish to Kashubian.
print(a.tlumacz_k_p(""))
This a function print translate from Kashubian to Polish.
Package: kata
# Kata
[![Travis](https://img.shields.io/travis/FlorianKempenich/kata.svg)](https://travis-ci.org/FlorianKempenich/kata) [![PyPI](https://img.shields.io/pypi/v/kata.svg)](https://pypi.org/project/kata/)Kata: A single command to get a ready to use TDD setup for your Kata, in your language of choiceTemplates for all Katas can be found:https://github.com/swkBerlin/kata-bootstraps### Note
To differenciate between the Repository pattern and a Git/Github repo, the following naming convention has been used:
*GRepo: Refers to a Git/Github Repo
*Repo: Refers to a repo in the sense of the Repositry pattern (none as of now)—
## Author Information
Follow me on Twitter: [@ThisIsFlorianK](https://twitter.com/ThisIsFlorianK)
Find out more about my work: [Florian Kempenich — Personal Website](https://floriankempenich.com)
Package: kata2angka
kata2angka: Konversi Kata ke Angkakata2angkaadalah sebuah library Python yang memungkinkan Anda untuk mengkonversi kata dalam bahasa Indonesia menjadi bentuk angka numerik. Ini dapat berguna untuk mengubah ekspresi angka yang diucapkan menjadi angka dalam penghitungan.InstalasiAnda dapat menginstalkata2angkamenggunakan pip:pipinstallkata2angkaPenggunaanBerikut adalah contoh penggunaan dari library ini:fromkata2angkaimportword_to_numangka_tertulis="seratus dua puluh lima"angka=word_to_num(angka_tertulis)print(f"Angka dari '{angka_tertulis}' adalah{angka}")KontribusiKontribusi dipersilakan! Anda dapat membantu memperbaiki bug, menambahkan fitur baru, atau meningkatkan dokumentasi. Silakan buat pull request ke repositori ini.LisensiProyek ini dilisensikan di bawah Lisensi MIT. Lihat berkas LICENSE untuk informasi lebih lanjut.SitasiJika Anda menggunakan kata2angka dalam proyek Anda, kami akan menghargai jika Anda memberikan sitasi kepada kami:@misc{kata2angka,
  title = {kata2angka: Konversi Kata ke Angka},
  author = {Herman Sugi Harto},
  year = {2023},
  howpublished = {\url{https://github.com/hermansh-id/kata2angka}},
}
Package: kata-anagrams-weabreu
Kata AnagramsThis is a python library to solveKata Anagram.Set UpShould have Python version greater than or equal 3.7.Then, clone the repository and now you should have installed the library.Run TestsGo to thetestsfolder. Then, open the file you want to run test and run by the following command:$pytest/<file_name>.pyExample:$pytest/test_anagrams.py
Package: kata-baku-checkr-po-file
Kata Baku Checker for PO FileBuild StatusTravisGithub Action - DockerPython PackageUsagepythoncheck.py-i[InputFile]-tpoDocker Image & Docker ComposeBuilddocker-composebuildRunningdocker-composerunconsolepythoncheck.py-iexample/id.po-tpoForked fromhttps://github.com/turfaa/IndonesianKataBakuCheckerData Example SourceFrom Geany Repository.LICENSEMIT License

Copyright (c) 2018 Bervianto Leo Pratama

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: kataloger
KatalogerKataloger can help update your project dependencies with ease! All you need is point tolibs.versions.tomlfile and supply it with repositories that you use in project.FeaturesBetter than Android Studio built-in tool :)Gradle-freeCan be used on CIFlexible and open-sourceHow to use?Kataloger offers handy CLI which you can use locally or on CI.You can pass path to version catalog using-pparameter and path to repositories that should be used to search for with-rpparameter:kataloger -p ~/ProjectDir/libs.versions.toml -rp ~/ProjectDir/default.repositories.tomlRepositories should be specified in separate.tomlfile separately for libraries and plugins. You can usedefaultrepositories file as template.If repositories not provided kataloger usedefaultset of repositories (Maven Central, Google Maven and Gradle Plugin Portal):kataloger -p ~/ProjectDir/libs.versions.tomlOr you can omit paths to version catalog and repositories if they are located in current working directory. In this mode kataloger trying to find all catalogs (files with.versions.tomlextension) and repositories indefault.repositories.tomlfile in current directory:cd ~/ProjectDir
katalogerCLI options-p [path]or--path [path]— specifies path to gradle version catalog file. You can pass more than one version catalog path. If no path provided kataloger try to find version catalogs (files with extension.versions.toml) in current working directory.-rp [path]or--repositories-path [path]— specifies path to .toml file with repositories credentials where updates will be looked for. If no path provided kataloger try to find default repositories file with namedefault.repositories.tomlin current working directory. If repositories can't be found in current directory kataloger use predefined set of repositories (Maven Central, Google and Gradle Plugin Portal).-vor--verbose— if specified print more info to console.-uor--suggest-unstable— if specified suggest artifact update from stable version to unstable.-for--fail-on-updates— if specified return non-zero exit code when at least one update found. Can be useful on CI.InstallationKataloger available in Python Package Index (PyPI). You can install kataloger using pip:pip install katalogerUse kataloger in python scriptsKataloger has convenient API (I did my best), so you can write custom logic on top. More info about it can be foundhere.LicenseCopyright 2023 Dzmitry Pryskoka

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: katalytic-images
katalytic-imagesDon't use in production yet.I will probably introduce backwards incompatible changesProcess images with less boilerplate and more flexibility than you've ever dreamed of.loading images in a specific colorspace (RGB, HSV, grayscale, and more) with a single commandconverting image colorspacesThe functions accept numpy arrays and Pillow images as input and return the same typedefining the shapes to be drawn on top of an image in a declarative way as a list of dicts and passing it to draw()Many more (TODO: Link to tocs)Example (TODO)InstallationFirst, install opencvif[[!$(pipfreeze|grep-Pi'opencv')]];thenpipinstallopencv-pythonfiThen, install this packagepipinstallkatalytic-imagesRoadmapmake pillow an optional dependency.setup_load_image() should pick opencv if pillow is not availableimage thresholding and masking operationsinteractive data exploration widgets (maybe as part of another package)higher level API on top of opencvutilities for video processingContributingWe appreciate any form of contribution, including but not limited to:Code contributions: Enhance our repository with your code and tests.Feature suggestions: Your ideas can shape the future development of our package.Architectural improvements: Help us optimize our system's design and API.Bug fixes: Improve user experience by reporting or resolving issues.Documentation: Help us maintain clear and up-to-date instructions for users.
Package: katanaframework
Katana is Warrior Framework’s web based case creation and execution tool. From Katana, users can create cases, suites, projects, input data files and testdata files. Cases, suites, projects, input data files and testdata files in Katana are web based forms that once saved, create the appropriate xml files. Katana also allows you to execute cases, suites, and projects from the execution app.Install:pip install katanaframeworkRequires:Python 3.6 and aboverequests==2.21.0
Django==2.1.2
xmltodict==0.12.0
python-ldap
django_auth_ldap
djangorestframework==3.10.3
cryptography==2.9.2
gcg==0.2.0
termcolor==1.1.0
psycopg2==2.8.5To start the Katana Server :manage.py runserverLinks:Documentation:https://github.com/warriorframework/Katanaframework/blob/release-katana-1.0.0/docs/Katana%20User%20Guide%20-1.0.pdfLicense      :http://www.apache.org/licenses/LICENSE-2.0Source       :https://github.com/warriorframework/Katanaframework
Package: katapayadi
Katapayadi sankhya is a simplification of Aryabhata’sSanskrit numerals, due probably to Haridatta from Kerala.
In Malayalam it is also known as ‘Paralperu’
For eg: ചണ്ഡാംശുചന്ദ്രാധമകുംഭിപാല represents 31415926536 which
is π*1000000000000000
More examples in Malayalam are given in this page
Package: kataria
katarianame. why?Kataria anisodonta, the oldest known ancestor of today's pythons[Katari](https://en.wikipedia.org/wiki/Amaru_(mythology)(aymara), a winged mythological snakelibrary. why?is your brain oxidized beyond repair?
did you get hooked on doing parts of your code in a functional style?
are you tired of list comprehensions and for loops?
do you have to write something in python regardless?katarialets you apply most of the concepts from rust in pythoncheck out the tests for some ideas on how to use this library.
I'll write proper docs if people actually express further interest in this.
Package: katbeam
katbeamPrimary beam model library for the MeerKAT project, providing functionality to
compute simplified beam patterns of MeerKAT antennas.JimBeam classMeerKAT simplified primary beam models for L and UHF bandsA cosine aperture taper (Essential Radio Astronomy, Condon & Ransom, 2016,
page 83,link) is used as a simplified model of the co-polarisation primary beams.
While the sidelobe level accuracy may be coincidental, the model attains a good fit
to measurements for the mainlobe region. The model is parameterised by measured
frequency dependent pointing, and frequency dependent full width half maximum
beam widths (FWHM). The MeerKAT beams are measured using holography techniques,
and an averaged result at 60 degrees elevation is used here to determine the
frequency dependent parameter values. The pointing errors are determined in
the aperture plane using standard phase fitting techniques, while the FWHM
values are measured in the beam plane along axis-aligned cuts through the beam
centers.Notes:This model is a simplification.The actual beam varies per antenna, and depends on environmental factors.Since per-antenna pointing errors during an observation often exceed 1 arc
minute, the nett ‘imaging primary beam’ will be slightly broader, and could
be approximated by averaging several individual antenna beams with
respective antenna pointing errors inserted.Depending on the usecase it may be necessary to do reference pointing (or
use another technique) to remove the antenna pointing errors during the
observation in order to use a beam model successfully.Request:As a user, please email the author (mattieu@ska.ac.za) with details about
your usecase requirements. This may influence future releases. A general
description, what extent of the beams are needed, pixelation, frequency
resolution, and accuracy requirements are of interest.Example usage:importmatplotlib.pylabaspltfromkatbeamimportJimBeamdefshowbeam(beam,freqMHz=1000,pol='H',beamextent=10.):margin=np.linspace(-beamextent/2.,beamextent/2.,128)x,y=np.meshgrid(margin,margin)ifpol=='H':beampixels=beam.HH(x,y,freqMHz)elifpol=='V':beampixels=beam.VV(x,y,freqMHz)else:beampixels=beam.I(x,y,freqMHz)pol='I'plt.clf()plt.imshow(beampixels,extent=[-beamextent/2,beamextent/2,-beamextent/2,beamextent/2])plt.title('%spol beam\nfor%sat%dMHz'%(pol,beam.name,freqMHz))plt.xlabel('deg')plt.ylabel('deg')uhfbeam=JimBeam('MKAT-AA-UHF-JIM-2020')showbeam(uhfbeam,800,'H',10)History0.1 (2020-10-15)Initial release of katbeam
Package: kat-bulgaria
SummaryThis is a python library to check for obligations to KAT Bulgaria programatically.It doesNOTsave or log your data anywhere and it works with a single HTTPS request.Installationpipinstallkat_bulgariaExample:importasynciofromdataclassesimportasdictfromkat_bulgaria.obligationsimport(KatError,KatApi,)EGN="0011223344"LICENSE_NUMBER="123456789"defexample_code():"""Example Code"""api=KatApi()try:# Validates EGN and Driver License Number locally and with the APIverify=asyncio.run(api.async_verify_credentials(EGN,LICENSE_NUMBER))print(f"IsValid:{verify.data}")print(f"{verify}\n")# Checks if a person has obligations, returns true or falsehas_obligations=asyncio.run(api.async_check_obligations(EGN,LICENSE_NUMBER))print(f"HasObligations:{has_obligations.data}")print(f"{has_obligations}\n")# Returns an object with additinal data (if any)obligations=asyncio.run(api.async_get_obligations(EGN,LICENSE_NUMBER))print(f"ObligationDetails:{obligations.data}")print(f"{obligations}")exceptKatErroraserr:# Malformed response.# If you get this probably KAT updated their website.# Open an issue or contact me for fix.print(f"Error:{str(err)}")returnexample_code()Known raw API responses (debug info):# No fines/obligations:{"obligations":[],"hasNonHandedSlip":false}# One or more fines/obligations, which have not been served{"obligations":[],"hasNonHandedSlip":true}# One or more fines/obligations, which *have* been served{"obligations":[{"status":0,"amount":100,"discountAmount":80,"bic":"UBBSBGSF","iban":"BG22UBBS88883122944101","paymentReason":"НП 22-1085-002609 14.10.2022","pepCin":"","expirationDate":"2023-04-06T23:59:59","obligedPersonName":"ИМЕ ПРЕЗИМЕ ФАМИЛИЯ","obligedPersonIdent":"1234567890","obligedPersonIdentType":1,"obligationDate":"2023-04-06T00:00:00","obligationIdentifier":"PENAL_DECREE||22-1085-002609|100","type":2,"serviceID":349,"additionalData":{"isServed":"True","discount":"20","isMainDocument":"False","documentType":"PENAL_DECREE","documentSeries":null,"documentNumber":"22-1085-002609","amount":"100","fishCreateDate":"2022-10-14"}}],"hasNonHandedSlip":false}# Invalid EGN or Driver License Number:{"code":"GL_00038_E","message":"Няма данни за посоченото СУМПС/ЕГН или не се намира съответствие за издадено СУМПС на лице с посочения ЕГН/ЛНЧ"}# The service is down, that happens a couple of times a day:{"code":"GL_UNDELIVERED_AND_UNPAID_DEBTS_E","message":"По технически причини към момента не може да бъде извършена справка за невръчени и неплатени НП и/или електронни фишове по Закона за движението по пътищата и/или по Кодекса за застраховането."}# Timeout:# From time to time the API hangs and it takes more than 10s to load.# You can retry immediately, you can wait a couple of minutes# Господине, не виждате ли че сме в обедна почивка???# At this point it's out of your hands
Package: katello-cli
This is Katello command line client.Usage: katello [options]HACKINGRun unit tests (install python-mock - available in Fedora 17+)make testCompile a test RPM:tito build –rpm –test –rpmbuild-options=–nodepsInstalling via pip into a virtualenv:Locally:env SWIG_FEATURES=”-cpperraswarn -includeall -D__`uname -m`__ -I/usr/include/openssl” pip install -r requirements.txtFrom the virtualenv:env SWIG_FEATURES=”-cpperraswarn -includeall -D__`uname -m`__ -I/usr/include/openssl” pip install -r <env-name>/etc/katello-cli/requirements.txt