Saravanan666/pypi-org huggingface dataset:
Package: k0dasm
Overviewk0dasm is a disassembler for NEC 78K0 binaries that generates output compatible with theas78k0assembler.  It can be used to disassemble firmware for many 8-bit NEC 78K0 microcontrollers.  Note that NEC has several microcontroller families with similar names, such as 78K0S, that use different instruction sets.  These are not supported.k0dasm was developed to disassemble the firmware of theVolkswagen Premium Vcar radios made by Delco.  These radios use the undocumented NEC µPD78F0831Y microcontroller, which is similar to theµPD78F0833Y.  A companion program,k0emu, is a 78K0 emulator developed for the same project.FeaturesIdentical Reassembly.  The assembly language output of k0dasm will assemble to a bit-for-bit exact copy of the original binary using as78k0.  This has been tested using several real firmware binaries.Code / Data Separation.  Starting from the vectors at the bottom of memory, k0dasm uses recursive traversal disassembly to separate code from data.  This automates much of the disassembly process but indirect jumps (br ax) will still need to be resolved manually.Symbol Generation.  k0dasm tries not to write hardcoded addresses in the output when possible.  It will automatically add symbols for hardware registers and vectors, other memory locations used, and will add labels for branches and subroutines.Installationk0dasm is written in Python and requires Python 3.4 or later.  Packages areavailableon the Python Package Index (PyPI).  You can download them from there or you can usepipto automatically install or upgradek0dasm:$ pip install -U k0dasmUsagek0dasm accepts a plain binary file as input:$ k0dasm input.bin > output.asmThe file is assumed to be a ROM image that should be aligned to the bottom of memory.  For example, if a 32K file is given, k0dasm will assume the image should be located at 0x0000-0x7FFF.  After loading the image, the disassembler reads the vectors and starts tracing instructions from their targets.AuthorMike Naberezny
Package: k1a
k1aThis is a supplementary library tok1libthat accelerates a lot of its functionalities by compiling to C directly. As a consequence, you won't/shouldn't use this library directly.InstallationJust do this:pip install k1lib[extras]If you only want to install this alone, for whatever reason, then do this:pip install k1aSome detailsRepo:https://github.com/157239n/k1aDocs:https://k1a.k1lib.comContacts?If you found bugs, open a new issue on the repo itself. If you want to have a chat, then email me at157239q@gmail.com
Package: k1lib
k1libThis library enables piping in Python, and has a lot of prebuilt piping tools
to support this workflow.Installationpipinstallk1lib[all]This will install lots of heavy dependencies like PyTorch. If you want to install
the leanest version of the library, do this instead:pipinstallk1libTo use it in a notebook, do this:fromk1lib.importsimport*Check out the source code for "k1lib.imports" if you're curious what it's
importing. If you hate * imports for whatever reason, you can import cli
tools individually, like this::fromk1lib.cliimportls,cat,grep,apply,batched,displayExamples# returns [0, 1, 4, 9, 16], kinda like maprange(5)|apply(lambdax:x**2)|deref()# plotting the function y = x^2x=np.linspace(-2,2);y=x**2plt.plot(x,y)# normal way[x,y]|~aS(plt.plot)# pipe way# plotting the functions y = x**2, y = x**3, y = x**4x=np.linspace(-2,2)[2,3,4]|apply(lambdaexp:[x,x**exp])|~apply(plt.plot)|deref()# loading csv file and displaying first 10 rows in a nice tablecat("abc.csv")|apply(lambdax:x.split(","))|display()# searching for "gene_name: ..." lines in a file and display a nice overview of just the gene names alonecat("abc.txt")|grep("gene_name: ")|apply(lambdax:x.split(": ")[1])|batched(4)|display()# manipulate numpy arrays and pytorch tensorsa=np.random.randn(3,4,5)a|transpose()|shape()# returns (4, 3, 5)a|transpose(0,2)|shape()# returns (5, 4, 3)# loading images from categories and splitting them into train and valid sets. Image url: dataset/categoryA/image1.jpgtrain,valid=ls("dataset")|apply(ls()|splitW())|transpose()|deref()# shape of output is (train/valid, category, image url). It was (category, train/valid, image url) before going through transpose()# executing task in multiple processesrange(10_000_000)|batched(1_000_000)|applyMp(toSum())|toSum()# this splits numbers from 0 to 10M into 10 batches, and then sum each batch in parallel, and then sum the results of each batch# executing task in multiple processes on multiple computersrange(10_000_000)|batched(1_000_000)|applyCl(toSum())|toSum()You can combine these "cli tools" together in really complex ways to do really complex
manipulation really fast and with little code. Hell, you can even create a full blown
PyTorch dataloader from scratch where you're in control of every detail, operating in 7
dimensions, in multiple processes on multiple nodes, in just 6 lines of code. Check over
the basics of it here:k1lib.cli.After doing that, you can check out the tutorials to get a large overview of how everything
integrates together nicely.Some detailsRepo:https://github.com/157239n/k1lib/Docs:https://k1lib.comContacts?If you found bugs, open a new issue on the repo itself. If you want to have a chat, then email me at157239q@gmail.comIf you want to get an overview of how the repo is structured, readcontributing.md
Package: k1usnsst
K1USN SST LoggerWhat it isThis is a scratch my own itch project. It's just a simple, lightweight logger for theK1USNslow speed CW contest. I consider it now in a usable stable state. Feel free to use it and give me your comments.K1USN SST LoggerWhat it isRecent ChangesInstallingRunningSettingsQRZ / HamDBCATEnabling CW InterfaceCW MacrosWhen the event is overRecent ChangesInterface is now resizableRepackaged for PyPi and it now pip installableInstallingIn a terminal type:pipinstallk1usnsstRunningIn a terminal type:k1usnsstSettingsQRZ / HamDBIf you wish to used QRZ to look up the full name and gridsquare for inclusion in your adif log, Click the gear icon in the lower right corner and enter your username and password for QRZ. Then place a check in the 'use QRZ' box.
If you don't subscribe to the QRZ service, you can place a check in the 'use HamDB' box.CATThe program can monitor your radio for band changes with eitherrigctld,FLRIGor None. Fill in the hostname and port for your choice.Common port numbers are 4532 for rigctld and 12345 for FLRIG.If you don't have rigctld or FLRIG and your a Debian/Ubuntu based Linux user you can install it/them with:sudo apt install libhamlib-utilssudo apt install flrigEnabling CW InterfaceIn the setting screen, switch to the CW tab. Set the host that is running either cwdaemon or PyWinkeyer. Most likelylocalhost. Set the port that the service is listening on. cwdaemon defaults to 6789, Pywinkeyer defaults to 8000. And lastly click the bullet next to the service you will be using.CW MacrosThe program will check in the current working directory for a file calledcwmacros_sst.txt. If it is not there it will create one. It will parse the file and configure the new row of 12 buttons along the bottom half of the window. The macros can be activated by either pressing the corresponding function key, or by directly clicking on the button. You can check the file to glean it's structure, but it's pretty straight forward. Each line has 3 sections separated by the pipe|character. Here's an example line.F3|Run TU|tu {HISNAME} 73 eeThe first field is the function key to program. The second is the name of the button. And lastly the third is the text you would like to send.A limited set substitution macros are offered.{MYCALL}{HISCALL}{MYNAME}{HISNAME}{MYSTATE}{HISSTATE}{MYEXCHANGE}in case you're too lazy to type{MYCALL} {MYSTATE}When the event is overClick the 'Generate Log' button in the lower right side of the screen.
Two files will be generated.SST_Statistics.txt, which holds a breakdown of bands / QSOs / Mults, and a points total for the event.SST.adi, an ADIF file you can use to merge into your main log if you so choose.Before the next SST event you should delete the SST.db file to start fresh.
Package: k2dg
k2dgA command line tool to convert from dissociation constants to free energies and vice versa.Installationpipinstallk2dgUsageTo see the available options, run:k2dg--helpFor example, to convert a dissociation constant of 0.3 uM to a free energy in kcal/mol at 298.15 K:k2dg2dg0.3uMOr, to convert a free energy of -9.4 kcal/mol to a dissociation constant at 310 K:k2dg2kd-9.4kcal/mol-t310
Package: k2eg
K2EG Python LibrarySImple Library for talk with k2eg gateway through kafka message bufConfigurationK2EG python lib uses the configparser package configurator. It need the following keys:[DEFAULT]
kafka_broker_url=<kafka broker url>
k2eg_cmd_topic=<gateway command input topic>
reply_topic=<reply topic>the classdmltake in input the name of the environment to configure the broker. The name of the environment whill be used to select the.inifile for configure the broker class.for example given the below folder:conf-folder/
    env_1.ini
    env_2.inithe below code snippet will take the configuration from the file env_1.inifromk2eg.dmlimportdmlask2egk=k2eg('env_1','app-name')got_value=k.get('pva://...')preconfigurated environment are stored into an internal folder.Custom configuration locationTheK2EG_PYTHON_CONFIGURATION_PATH_FOLDERenvironment variable can be used for specify a custom configuraiton folderK2EG_CLI_DEFAULT_ENVIRONMENT=> is the devault environment for the k2eg demo cliK2EG_CLI_DEFAULT_APP_NAME=> is the default app name to use for the demo cli
Package: k2hash
Overviewk2hash_python is an official python driver fork2hash.InstallFirstly you must install the k2hash shared library:curl -o- https://raw.github.com/yahoojapan/k2hash_python/master/utils/libk2hash.sh | bashThen, let’s install k2hash using pip:pip install k2hashUsageTry to set a key and get it:import k2hash

k = k2hash.K2hash('test.k2h')
k.set('hello', 'world')
v = k.get('hello')
print(v)    // worldDevelopmentClone this repository and go into the directory, then run the following command:$ python3 -m pip install --upgrade build
$ python3 -m buildDocumentsHere are documents including other components.Document top pageAbout K2HASHAbout AntPickaxPackagesHere are packages including other components.k2hash(python packages)LicenseMIT License. See the LICENSE file.AntPickaxk2hash_pythonis a project byAntPickax, which is an open source team inYahoo Japan Corporation.
Package: k2hdkc
Overviewk2hdkc_python is an official python driver fork2hdkc.InstallLet’s install k2hdkc using pip:pip install k2hdkcUsageFirstly you must install the k2hdkc shared library:$ curl -o- https://raw.github.com/yahoojapan/k2hdkc_python/master/cluster/start_server.sh | bashThen, Let’s try to set a key and get it:import k2hdkc

k = k2hdkc.K2hdkc('slave.yaml')
k.set('hello', 'world')
v = k.get('hello')
print(v)    // worldDevelopmentClone this repository and go into the directory, then run the following command:$ python3 -m pip install --upgrade build
$ python3 -m buildDocumentsHere are documents including other components.Document top pageAbout K2HDKCAbout AntPickaxPackagesHere are packages including other components.k2hdkc(python packages)LicenseMIT License. See the LICENSE file.AntPickaxk2hdkc_pythonis a project byAntPickax, which is an open source team inYahoo Japan Corporation.
Package: k2hr3-osnl
K2HR3 OpenStack Notification ListenerAn OpenStack notification listener for the K2HR3 role-based ACL system developed in Yahoo Japan Corporation.Overviewk2hr3_osnlisK2HR3OpenStackNotificationListener that is a part of theK2HR3system, which is a role-based ACL system developed inYahoo Japan Corporation.k2hr3_osnlis anOpenStackNotification Listener that listens to notifications fromOpenStackservices.OpenStackservices emit notifications to the message bus, which is provided
byoslo.messaging.oslo.messagingtransports notification messages to a message broker server.
The default broker server isRabbitMQ. Whenk2hr3_osnlcatches a notification message fromRabbitMQ,
it sends the payload to theK2HR3that is a role-based ACL system that provides access control
for OpenStack virtual machine instances. Figure 1 shows the relationship between the components.Fig.1: overviewDocumentsHere are documents including other components.K2HR3 DocumentK2HR3 Web Application UsageK2HR3 REST API UsageK2HR3 OpenStack Notification Listener UsageK2HR3 Watcher UsageK2HR3 Get Resource UsageK2HR3 Utilities for SetupK2HR3 DemonstrationK2HR3 Command Line Interface UsageAbout k2hdkcAbout k2hashAbout chmpxAbout k2hash transaction pluginAbout AntPickaxRepositoriesHere are repositories including other components.K2HR3 main repositoryK2HR3 Web Application repositoryK2HR3 REST API repositoryK2HR3 OpenStack Notification ListenerK2HR3 Container Registration SidecarK2HR3 Get ResourceK2HR3 Command Line Interfacek2hdkck2hashchmpxk2hash transaction pluginPackagesHere are packages including other components.k2hr3-app(npm packages)k2hr3-api(npm packages)k2hr3-osnl(python packages)k2hr3.sidecar(dockerhub)k2hr3-get-resource(packages)LicenseMIT LicenseAntPickaxk2hr3_osnlis a project byAntPickax, which is an open source team inYahoo Japan Corporation.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History1.0.6 (2023-05-09)Fixes the release build error1.0.5 (2023-05-09)Fixes the inconsistency of the default python versionUpdates the versions of dependent packages1.0.4 (2023-05-09)Fixes the release build errorUpdates the packaging macros1.0.3 (2023-05-08)Fixes the build errorsSets the default python verison 3.9 in GitHubActions1.0.2 (2023-01-13)Fixes the environment settings1.0.1 (2023-01-13)adds Docker image1.0.0 (2021-03-26)Bump up0.9.6 (2020-12-02)Adds GitHubActions workflows0.9.4 (2020-12-01)Changes CI from Travis to GitHub Actions0.9.3 (2020-11-30)Supports OpenStack Ussuri0.9.2 (2019-03-26)Fix systemd unitfile for FHS v3Fix RPM specfile for the indicated items on Fedora Review No.16636680.9.1 (2019-03-19)Fixed systemd unitfile.0.9.0 (2019-03-06)First release on PyPI.
Package: k2l
MachO/ObjC Analysis + Editing toolkit.Library DocumentationInstallation# Installingpip3installk2l# Updatingpip3install--upgradek2lUsagektool is both a convenient CLI toolkit and a library that can be used
in other tools.CLI Usage> $ ktool
Usage: ktool <global flags> [command] <flags> [filename]

Commands:

GUI (Still in active development) ---
    ktool open [filename] - Open the ktool command line GUI and browse a file

MachO Analysis ---
    dump - Tools to reconstruct certain files (headers, .tbds) from compiled MachOs
    json - Dump image metadata as json
    cs - Codesigning info
    kcache - Kernel cache specific tools
    list - Print various lists (ObjC Classes, etc.)
    symbols - Print various tables (Symbols, imports, exports)
    info - Print misc info about the target mach-o

MachO Editing ---
    insert - Utils for inserting load commands into MachO Binaries
    edit - Utils for editing MachO Binaries
    lipo - Utilities for combining/separating slices in fat MachO files.

Misc Utilities ---
    file - Print very basic info about the MachO
    img4 - IMG4 Utilities

Run `ktool [command]` for info/examples on using that command

Global Flags:
    -f - Force Load (ignores malformations in the MachO and tries to load whatever it can)
    -v [-1 through 5] - Log verbosiy. -1 completely silences logging.
    -V - Print version string (`ktool -V | cat`) to disable the animationLibraryLibrary documentation is locatedherewritten in pure, 100% python for the sake of platform independence when operating on static binaries and libraries.
this should run on any and all implementations of python3.Tested on:Windows/Windows on ARM64MacOS x86/arm64Linux/Linux ARM64iOS (iSH, ssh)Android (Termux)WebAssemblyBrythonSpecial thanks toJLevin and *OS Internals for existingarandomdev for guidance + codeBlacktop for their amazing ipsw project:https://github.com/blacktop/ipswArtists behind the images used in this project's logo:https://github.com/0cyn/ktool/tree/master/EXTERNAL_LICENSES#image-notes
Package: k2mosaic
Mosaic Target Pixel Files (TPFs)
obtained by NASA’s Kepler/K2 missions
into CCD-sized images and movies.K2mosaic is a command-line tool which allows the
postage stamp-sized pixel masks obtained byNASA’s Kepler and K2 missionsto be stitched together into CCD-sized mosaics and movies.
The principal use is to take a set ofTarget Pixel Files(TPF)
and turn them into more traditional FITS image files –
one per CCD channel and per cadence.
K2mosaic can also be used
to create fancy animations from these mosaics.The need for this tool arises from the fact
that the analysis of certain Kepler/K2 targets,
such as clusters and asteroids,
is more easily performed on mosaicked data.
Moreover such mosaics are useful to reveal the context
of single-star observations,
e.g. they enable users to check for the presence of instrumental noise
or nearby bright objects.DocumentationRead the docs and see usage examples atk2mosaic.geert.io.AttributionCreated by Geert Barentsen at the NASA Kepler/K2 Guest Observer Office.If this tool aided your research, please cite it.
Please get in touch before submitting your paper
so I can request an entry in the Astrophysics Source Code Library (ASCL).
Package: k2pix
K2-Pix
–This command-line code allows for overlaying a Sky View survey image’s contours onto a K2 pixel stamp.Developed at AAS229 by:
- Stephanie Douglas
- Joseph Glaser
- Erin Maier
- Geert Barentsen… and recently extended by:
- Michael Gully-Santiago
- JJ HermesPlease add any comments and suggestions to the GitHub Issues.
Package: k2-pix
K2-Pix
–This command-line code allows for overlaying a Sky View survey image’s contours onto a K2 pixel stamp.Developed at AAS229 by:
- Stephanie Douglas
- Joseph Glaser
- Erin Maier
- Geert Barentsen… and recently extended by:
- Michael Gully-Santiago
- JJ HermesPlease add any comments and suggestions to the GitHub Issues.
Package: k2-sherpa
Trysherpafrom within your browser without installing anything:https://huggingface.co/spaces/k2-fsa/automatic-speech-recognitionSeehttps://k2-fsa.github.io/sherpa/python/huggingface/for more details.sherpasherpais an open-source speech-to-text (i.e., speech recognition) framework,
focusingexclusivelyon end-to-end (E2E) models, namely transducer- and
CTC-based models.Note: There is no plan to support attention-based encoder-decoder (AED)
models.InstallationPlease first install:PyTorchk2kaldifeatgitclonehttps://github.com/k2-fsa/sherpacdsherpa
mkdirbuildcdbuild
cmake\-DCMAKE_BUILD_TYPE=Release\-DCMAKE_INSTALL_PREFIX=$HOME/software/sherpa\..
make-j6install/strip# If you don't want to strip the binaries and libraries, you can# use "make -j6 install"exportPATH=$HOME/software/sherpa/bin:$PATH# To uninstall sherpa, use#  rm -rf $HOME/software/sherpaorgitclonehttps://github.com/k2-fsa/sherpacdsherpa

python3setup.pybdist_wheel
pipinstall./dist/k2_sherpa-*.whl# Please don't use `python3 setup.py install`.# Otherwise, you won't have access to pre-compiled binaries# To uninstall sherpa, use#  pip uninstall k2-sherpaUsing Dockerdockerbuild.-fDockerfile-tsherpa_server:latest
dockerrun--rm--gpusall--namesherpa_server--nethost-itsherpa_server:latestTo check that you have installedsherpasuccessfully, you can run
the following binaries:sherpa-version

sherpa-offline--help
sherpa-online--help
sherpa-online-microphone--help

sherpa-offline-websocket-server--help
sherpa-offline-websocket-client--help

sherpa-online-websocket-server--help
sherpa-online-websocket-client--help
sherpa-online-websocket-client-microphone--helpUsagesSeedocumentationathttps://k2-fsa.github.io/sherpa/for more usages.
Package: k3-addons
k3-addons: Additional multi-backend functionality for Keras 3.Installationpip install k3-addonsIncludes:LayersPooling:k3_addons.layers.AdaptiveAveragePooling1Dk3_addons.layers.AdaptiveMaxPooling1Dk3_addons.layers.AdaptiveAveragePooling2Dk3_addons.layers.AdaptiveMaxPooling2DAttention:k3_addons.layers.DoubleAttentionk3_addons.layers.AFTFullk3_addons.layers.ChannelAttention2Dk3_addons.layers.SpatialAttention2Dk3_addons.layers.ECAAttentionk3_addons.layers.ExternalAttentionk3_addons.layers.ResidualAttentionk3_addons.layers.MobileViTAttention
Package: k3awssign
k3awssignA python lib is used for adding aws version 4 signature to request.k3awssign is a component ofpykit3project: a python3 toolkit set.This lib is used to sign a request using aws signature version 4. You
need to provide a python dict which represent your request(it typically
containsverb,uri,args,headers,body), and your access key
and your secret key. This lib will add signature to the request.Installpip install k3awssignSynopsisimportk3awssignimporthttplibaccess_key='your access key'secret_key='your secret key'signer=k3awssign.Signer(access_key,secret_key)file_content='bla bla'request={'verb':'PUT','uri':'/test-bucket/test-key','args':{'foo2':'bar2','foo1':True,'foo3':['bar3',True],},'headers':{'Host':'bscstorage.com','Content-Length':len(file_content),},'body':file_content,}signer.add_auth(request,sign_payload=True)conn=httplib.HTTPConnection('ss.bscstorage.com')conn.request(request['verb'],request['uri'],request['body'],request['headers'])resp=conn.getresponse()AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3cacheable
k3cacheableCache data which access frequently.k3cacheable is a component ofpykit3project: a python3 toolkit set.Cache data which access frequently.Installpip install k3cacheableSynopsisimportk3cacheableimporttime# create a `LRU`, capacity:10 timeout:60c=k3cacheable.LRU(10,60)# set value like the `dict`c['key']='val'# get value like the `dict`# if item timeout, delete it and raise `KeyError`# if item not exist, raise `KeyError`try:val=c['key']exceptKeyError:print('key error')cache_data={'key1':'val_1','key2':'val_2',}# define the function with a decorator@k3cacheable.cache('cache_name',capacity=100,timeout=60,is_deepcopy=False,mutex_update=False)defget_data(param):returncache_data.get(param,'')# call `get_data`, if item has not been cached, cache the return valuedata=get_data('key1')# call `get_data` use the same param, data will be got from cachetime.sleep(1)data=get_data('key1')# if item timeout, when call `get_data`, cache againtime.sleep(1)data=get_data('key1')# define a method with a decoratorclassMethodCache(object):@k3cacheable.cache('method_cache_name',capacity=100,timeout=60,is_deepcopy=False,mutex_update=False)defget_data(self,param):returncache_data.get(param,'')mm=MethodCache()data=mm.get_data('key2')AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3cat
k3catJust like nix command cat or tail, it continuously scan a file line by line.k3cat is a component ofpykit3project: a python3 toolkit set.Just like nix command cat or tail, it continuously scan a file line by line.It provides with two way for user to handle lines: as a generator or specifying
a handler function.It also remembers the offset of the last scanning in a file in/tmp/.
If a file does not change(inode number does not change), it scans from the last
offset, or it scan from the first byte.Installpip install k3catSynopsisimportsysimportk3catfn=sys.argv[1]forxink3cat.Cat(fn,strip=True).iterate(timeout=0):print(x)AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com