Saravanan666/pypi-org huggingface dataset:
Package: koch
Command lineKoch methodMorse code audio generation and training program.Implements:Morse code audio playback and file generationwith configurableFarnsworth timing [PDF](defaults to a minimum of 20 WPM characters at any WPM less than 20 WPM)and filters to limit the code’s audio bandwithsupporting aKoch methodCLI training programInstallation$ pip install kochRequires:audiogenPyAudiofor audio playback (as opposed to file generation)Tested with Python 2.7.9 on Mac OS X.Note that to install the PyAudio dependency on Mac OS X, you’ll need to first
installportaudiowith Homebrew:$ brew install portaudioExamplesPlay back strings in Morse by passing them as command line arguments:$ koch hello worldSave the generated code to a WAV file:$ koch -f hello.wav hello worldChange the code speed from the default 20 WPM to 30 WPM:$ koch -c 30 hello worldAnd the tone frequency from the default 770 Hz to 440 Hz:$ koch -H 440 hello worldTry a slower speed, which will default to Farnsworth timing with each character played
at 20 WPM (default) but the inter-character spacings slowed to 10 WPM:$ koch -w 10 hello worldKeep the inter-character speed at 10 WPM, but increase the Farnsworth character speed to
30 WPM:$ koch -w 10 --cwpm 30 hello worldStart a Koch method training sequence, which begins by teaching only the letter ‘K’
(default 20 WPM, 10 characters generated per training run, random word lengths):$ kochMove up to learning the first two characters in the Koch method (i.e. ‘K’ and ‘M’):$ koch -c 2This will randomly play 10 ‘K’ or ‘M’ characters in words of random lengths, then pause
and wait for the user to hit the <Enter> key before printing the actual test sequence
played.You can also try a custom Koch alphabet, e.g. to learn in a different character order:$ koch -a ABCDE -c 3Several options together to generate a WAV file with a 30 WPM, 440 Hz Koch training session
that’s 20 characters long teaching letters ‘K,’, ‘M,’ and ‘R’:$ koch -w 30 -H 440 -c 20 -f koch.wavGet help with CLI options:$ koch -hSee alsoaudiogen(Github project),
a Python generator-based audio generation and processing libraryContributingGet the source and report any bugs on Github:https://github.com/casebeer/kochVersion history0.0.3 - Band pass filter bug fix. Add CLI option to override default 200 Hz
band pass filter bandwidth.0.0.2 - Limit code audio bandwidth to 200 Hz using bandpass filters. Improved
file output behavior for easier scripting.
Package: koch-trainer
Morse code audio generation and training program, with Word Mode, Callsign Mode, and Random Character Mode.Installation$ pip install koch_trainerRequires:audiogenPyAudiofor audio playback (as opposed to file generation)Tested with Python 2.7.9 on Mac OS X.Note that to install the PyAudio dependency on Mac OS X, you’ll need to first
installportaudiowith Homebrew:$ brew install portaudioExamplesPlay back strings in Morse by passing them as command line arguments:$ koch_trainer hello worldSave the generated code to a WAV file:$ koch_trainer -f hello.wav hello worldChange the code speed from the default 20 WPM to 30 WPM:$ koch_trainer --effective-speed 30 hello worldAnd the tone frequency from the default 770 Hz to 440 Hz:$ koch_trainer --hertz 440 hello worldChanging the level will add or remove characters from the training pool. The following will result in a default of 100 characters output using the following characters as a base: K·M·R·S·U·A·P·T·L·O·W·I:$ koch_trainer --level 12 --effective-speed 7 --character-speed 20You can also specify word mode by passing the word-mode flag. Settings exist to customize the experience. The following will result in 20 words being output with character counts ranging from 2 to 6 characters using the same 12 characters as above. Changing the level will change the characters available:$ koch_trainer --level 12 --effective-speed 7 --character-speed 20 --word-mode --word-count 20 --word-char-min 2 --word-char-max 6A callsign practice mode is also available via the following:$ koch_trainer --effective-speed 7 --character-speed 20 --callsign-mode --callsign-count 20Get help with CLI options:$ koch_trainer -hSee alsoaudiogen(Github project),
a Python generator-based audio generation and processing libraryContributingGet the source and report any bugs on Github:https://github.com/rguisewite/koch_trainer
Package: kociamber
kociamberInstallationRun the following to install:pipinstallkociamberUsagefromabstract_algebraimportsay_hello# Generate "Hello, World!"say_hello()# Generate "Hello, Everybody!"say_hello("Everybody")Developing kociamberTo install kociamber, along with the tools you need to develop and run tests, run the following in your virtualenv:$pipinstall-e.[dev]
Package: kockatykalendar
API, nástroje a utiltky pre prácu a integráciu s Kockatým Kalendárom pre Python.InštaláciaZákladná verzia tejto knižnice sa dá nainštalovať pomocou pip:pip install kockatykalendarAk plánujete používať JSON API Kockatého Kalendára, použite:pip install kockatykalendar[api]Ak plánujete použiť Django integráciu pre Kockatý Kalendár, použite:pip install kockatykalendar[django]Ak chcete obe veci, nainštalujte sikockatykalendar[api,django].Udalosti v kalendárikockatykalendarposkytuje Python reprezentáciu udalostí z Kockatého Kalendára. Možno ju využiť na prácu s udalosťami
v kalendári ale aj ich tvorbu.fromdatetimeimportdatefromkockatykalendar.eventsimportEvent,EventType,EventScience,EventContestantevent=Event()event._id="ksp-sus-1"event.name="KSP sústredenie"event.type=EventType.SUSTREDENIEevent.sciences=[EventScience.INF]event.date.start=date(2020,12,13)event.date.end=date(2020,12,20)event.contestants.min=EventContestant(EventContestant.SchoolType.STREDNA,1)event.contestants.min=EventContestant(EventContestant.SchoolType.STREDNA,4)event.places=["TBD"]event.organizers=["trojsten"]event.link="https://ksp.sk/akcie/sustredenia/"print(event.to_json())event=Event.from_json(...)APISúčasťoukockatykalendarje aj prístup do JSON API Kockatého Kalendára.fromkockatykalendar.apiimportget_events,get_current_dataset,get_available_datasetsget_available_datasets()# [#   Dataset(start_year=2020,#           end_year=2021,#           school_year="2020/2021",#           filename="2020_21.json"),#   ...# ]get_current_dataset()# Dataset(start_year=2020,#         end_year=2021,#         school_year="2020/2021",#         filename="2020_21.json")get_events(dataset)# Dataset môže byť: Dataset, filename alebo celá URL.# [#   Event,#   ...# ]Django integráciaZatiaľ iba draft, ešte pracujeme na všetkých detailoch implementácie.Organizátori môžu poskytovať svoje udalosti do Kockatého Kalendára aj prostredníctvom endpointu na ich stránkach.
V prípade Djanga si stačí zadefinovať jeden alebo viac generátorov, ktoré budú tvoriť obsah kalendára:fromkockatykalendar.generatorsimportCalendarGeneratorfromkockatykalendar.eventsimportEvent,EventType,EventScienceclassNaseSeminareGenerator(CalendarGenerator):defitems(self):returnSeminar.objects.all()defevent(self,item):returnEvent(_id="seminar-%d"%item.id,name=item.name,sciences=[EventScience.MAT],type=EventType.SEMINAR,oragnizers=["trojsten"],places=["online"],date=Event.Dates(start=item.start,end=item.end))Generátor nie je závislý na Djangu, možno ho použiť aj s inými frameworkami, pokiaľ sa dodrží formát výstupu.
Následne treba pridať view do URLconf-u:fromkockatykalendar.djangoimportkockatykalendar_jsonpath("kkalendar.json",kockatykalendar_json,{"generators":[NaseSeminareGenerator()]})
Package: koco
kocokocois a library to easily accesskocohubdatasets.kocohubcontainsKOreanCOrpus for natural language processing.InstallationNOTE: The code is tested onPython 3.6.9from pypipip install kocofrom sourcegit clone https://github.com/inmoonlight/koco
cd koco
pip install .UsageUsingkocois similar tonlp. The main methods are:koco.list_datasets(): list all available datasets and their modes inkocohubkoco.load_dataset(dataset_name, mode): load dataset inkocohubwith data-specific modeexample>>>importkoco>>>koco.list_datasets(){'korean-hate-speech':['train_dev','unlabeled','test'],'sae4k':['train_dev','test']}>>>train_dev=koco.load_dataset('korean-hate-speech',mode='train_dev')>>>type(train_dev)dict>>>train_dev.keys()dict_keys(['train','dev'])>>>train_dev['train'][33]{'comments':'2,30대 골빈여자들은 이 기사에 다 모이는건가ㅋㅋㅋㅋ 이래서 여자는 투표권 주면 안된다. 엠넷사전투표나 하고 살아야지 계집들은','contain_gender_bias':True,'bias':'gender','hate':'hate','news_title':'"“8년째 연애 중”…‘인생술집’ 블락비 유권♥전선혜, 4살차 연상연하 커플"'}>>>test=koco.load_dataset('korean-hate-speech',mode='test')>>>type(test)list>>>test[33]{'comments':'끝낼때도 됐지 요즘같은 분위기엔 성드립 잘못쳤다가 난리. 그동안 잘봤습니다','news_title':'[단독] ‘SNL 코리아’ 공식적인 폐지 확정…아름다운 종료'}Contributing to kocohub / kocoAll Korean datasets with their publications or detailed documentations, bug reports, bug fixes, enhancements and ideas are welcome :tada:Feel free to ask questions viaissues. I recommend to use an adequatelabel!
Package: koda-ac
AboutThis is a project for the Data Compression course at Warsaw University of Technology.Installation & UsagePython >= 3.9 & pip is requiredWe recommend using pipxpipxto install the program as an executable isolated inside a dedicated Python virtual environment:> python3 -m pip install pipx
> python3 -m pipx ensurepath
> pipx install koda_ac
> koda --help
Usage: koda [OPTIONS] COMMAND [ARGS]...Alternatively, a standardpip installshould work:> python3 -m pip install koda_ac
> python3 -m koda_ac --help
Usage: python -m koda_ac [OPTIONS] COMMAND [ARGS]...Development setupPoetryis used for dependency management, seehttps://python-poetry.org/docs/master/#installationfor installation instructions.After installing Poetry, usepoetry installto install project dependencies.Makefile tasksusemake formatto format code withblackandisortusemake lintto lint code withmypyandflake8usemake testto run tests intests/withpytest
Package: kodak
kodakWeb server for auto-generating banners, previews, thumbnails, and more from any directory.
Lightweight, simple, and designed for performance.Developed withPoetry 1.0+GoalsSupport defining server-side manipulation specificationsKODAK_MANIP_FOOBAR_CROP_VERTICAL=300
KODAK_MANIP_FOOBAR_SCALE_HORIZONTAL=1200
KODAK_MANIP_FOOBAR_SCALE_STRATEGY=absolute

KODAK_MANIP_FIZZBUZZ_NAME=black+white
KODAK_MANIP_FIZZBUZZ_BLACK_AND_WHITE=true
KODAK_MANIP_FIZZBUZZ_SCALE_HORIZONTAL=50
KODAK_MANIP_FIZZBUZZ_SCALE_STRATEGY=relativeSupport retrieving manipulated images based on server side configurationGET /image/<name>/foobar

GET /image/<name>/black+whiteSupport optionally exposing full-resolution source imagesGET /image/<name>/originalSupport caching of generated image manipulations for reuseSupportHTTP 410for indicating removed images and
manipulationsSupport optional authentication with pre-generated access tokensSupport static file tree management for exposure via external web server (which is faster
than serving files with python)Support automatic indexing of newly added image filesSupport automatic indexing of removed image filesSupport arbitrary source directory structureSupport Dockerized deploymentSupport bare-metal deployment (via systemd)Non-goalsClient-defined image manipulations through publicly exposed parametersManipulating images is- in the grand scheme of things- pretty resource intensive. Exposing
dynamic parameters that can be cycled through to generate hundreds or thousands of
permutations for every known image on a server could be used to either consume the
server's entire disk or server's entire CPU.Upload functionalityThis application should be as simple as possible. Lots of people have implemented file
upload systems, synchronizers, and managers way better than I have.Robust and flexible access controlSee above. Complex authentication can be added using a reverse proxy or any one of several
dozen options for 3rd party middleware. The provided authentication is supposed to be
dead simple for people who absolutely need the server to be private but absolutely cannot
implement something more complicated.Pre-creation of image manipulationsThe goal of this program is just-in-time creation of the manipulated assets with
aggressive caching; first load is slow, subsequent loads are fast. For this use case
there's no sense creating or storing an asset until it's known to be needed.
Package: kodali
KODALI(Korean Dataset Loading Interface)1. 지원 데이터 셋개체명 인식모두의 말뭉치(Korean Corpus)KLUE-NER(KLUE)관계 추출AI Hub: 한국어 지식기반 관계 데이터KLUE-RE2. How to use개체명 인식dataset = Kodali(path={PATH}, task="ner", source={DATASET_SOURCE})

# Source List
# - 모두의 말뭉치 : "korean-corpus"
# - KLUE-NER : "klue"3. 데이터 포맷개체명 인식개체명 인식 데이터 셋은 NerOutputs, NerData, NerEntity 포맷을 지원합니다.NerEntity는 엔티티 정보를 가지고 있고, NerData는 문장과 문장 내 엔티티들을 포함합니다. NerOutputs는 NerData 목록을 가지고 있으며, 데이터를 입력할 시, 데이터의 크기를 자동으로 계산합니다.NerOutputs
    data: List[NerData]
    size: int = 0

NerData:
    sentence: str
    entities: List[NerEntity]

NerEntity:
    word: str
    label: str
    start_idx: int
    end_idx: int
Package: koda-validate
Koda ValidateBuild typesafe validators automatically or explicitly -- or write your own. Combine them to
build validators of arbitrary complexity. Koda Validate is async-friendly, pure Python, and
1.5x - 12x faster than Pydantic.Docs:https://koda-validate.readthedocs.io/en/stable/fromtypingimportTypedDictfromkoda_validateimport(StringValidator,MaxLength,MinLength,ListValidator,TypedDictValidator,Valid,Invalid)fromkoda_validate.serializationimportto_serializable_errsfromkoda_validate.signatureimportvalidate_signature# Automatic ValidatorsclassPerson(TypedDict):name:strhobbies:list[str]person_validator=TypedDictValidator(Person)# Produce readable errorsmatchperson_validator({"name":"Guido"}):caseValid(string_list):print(f"woohoo, valid!")caseInvalid()asinvalid:print(to_serializable_errs(invalid))# prints: {'hobbies': ['key missing']}# Explicit Validatorsstring_validator=StringValidator(MinLength(8),MaxLength(20))list_string_validator=ListValidator(string_validator)# Runtime type checking@validate_signaturedefadd(a:int,b:int)->int:returna+bThere's much, much more... Check out theDocs.Something's Missing Or WrongOpen anissue on GitHubplease!
Package: kodb
KODBKmaasrud's Opinionated Document BuilderInstallation-Getting startedThis is my personal and opinionated document builder script, built around my document creation workflow.Faced with the task of writing a lot of scientific documents at university, I quickly grew tired of the old-fashioned and english-centered LaTeX document system. This led me in the direction ofPandoc, and more specificallyPandoc Markdown. Pandoc Markdown is quicker to write, easily readable in it's plain text form, minimally english-centric and simply much more sensible than writing TeX. Pair that withTectonic- a self-contained, minimal and modern TeX/LaTeX engine - and I've got the same functionality as LaTeX, but in an arguably much better package. TeX now only works as a sort of assembly language, and I can write in a more sophisticated and minimal markup-language.However, creating a directory structure for you document, learning the Pandoc command line tool, compiling with Tectonic, keeping track of CSL styles, etc... This sounds like a lot of work, I hear you say. Enter KODB: One single tool that attempts to tie together these excellent typesetting tools, abstract away all the dirty work and give you the freedom to do what you really need to do: writing. Writing KODB was my natural response to discovering the workflow explained above, and I use it almost everyday.Beware that KODB was initially written for personal use and is quite opinionated, but despite this I hope you too can get as much use out of it as I have. To get started, firstinstall KODBand see theGetting started page. Bugs or feature suggestions are to be added asIssuesand if you have any questions, feel free to send me an email:km@aasrud.com.
Package: kode256
Overviewkode256 is a simple library to create Code-128 barcodes. It is a fork of the abandoned code128 package.useful links:Python Package IndexRepositorywith latest sourceLicenseCopyright (c) 2016-2020 Brendan HowellCopyright (c) 2014-2016 Felix KnopfThis library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License in the LICENSE.txt for more details.The font used for the captions is ‘Inconsolata’ by Raph Levien,
licensed under the SIL Open Font License. See OFL.txt for more details.What’s New0.4b1Viewbox for svgCaptions0.3Graphical User InterfaceFeaturesoptimal codes (use code128C to encode long sequences of digits; lazy switch between Code128A and B)full latin-1 charset is supportedno additional libraries needed for svg outputoutput as PIL Image objects (PIL requiered)optional captions under the barcode with human-readable representation of it.command line tool and guiSetupThis is a pure python package, for this the following steps are optional.
A copy of the package (folderkode256in the source archive) in your directory will also work for this specific project.
The instructions below ensure that the library is available for every python module and from the command line.Note, that some Linux Systems usepython3andpip3to distinguish from their Python2 versions.For Windwos users without a Python installation there is also a ‘stand-alone’ version available.DependenciesPython3(Tested with 3.3 and 3.4, other versions should work, too)setuptoolsto use the setup script or pip, usually preinstalledoptional:PIL, or compatible fork (Pillowis recommended) to save barcodes as raster graphicsLetpipdo the work$ pip install -i https://testpypi.python.org/pypi kode256 --preWindows UsersA convenient graphical installer is provided for the final releases.build from sourcedownload the zip archive or tarball, extract it and install with (you may need root access):$ python ./code128-[version]/setup.py installUsagewith Pythonimportkode256kode256.image("Hello World").save("Hello World.png")# with PIL presentwithopen("Hello World.svg","w")asf:f.write(kode256.svg("Hello World"))from shellCode128 provides a command line interface. If you installed the library, simply type$ code128 "Hello World" "Hello World.svg"The packet also defines a__main__.pyentry point, so$ python ~/spam/eggs/kode256 "Hello World" "Hello World.svg"will work, too.The GUI$ code128wwill start the graphical mode, where you can preview your codes.
This needs PIL and tkinter.ContributionUse theIssue Trackeron GitLab to report bugs, request a feature, etc.If you want to contribute some code, feel free to create amerge request.
Package: kodegenerering
KodegenereringCode generation (Dansk: kodegenerering) experimentsLicense: MIT|Country of origin: Switzerland|Export control classification number(ECCN): EAR99Third party dependencies are documented in the folderthird-party.DocumentationUser and developerdocumentation of kodegenerering.Bug TrackerAny feature requests or bug reports shall go to thetodos of kodegenerering.Primary Source repositoryThe main source ofkodegenereringis on a mountain in central Switzerland.
We use distributed version control (git).
There is no central hub.
Every clone can become a new source for the benefit of all.
The preferred public clones ofkodegenereringare:on codeberg- a democratic community-driven, non-profit software development platform operated by Codeberg e.V.at sourcehut- a collection of tools useful for software development.ContributionsPlease do not submit "pull requests" (I found no way to disable that "feature" on GitHub).
If you like to share small changes under the repositories license please kindly do so by sending a patchset.
You can either send such a patchset per email usinggit send-emailor
if you are a sourcehut user by selecting "Prepare a patchset" on the summary page of your fork atsourcehut.StatusExperimental.Note: The default branch isdefault.
Package: kode-logger
KODE LoggerUsage exampleimportkode_loggerlogger=kode_logger.create_json('my-context',tags=['tag1','tag2'],extra={'common_variable':'value'})logger.warning('hello',extra={'my_variable':'value'})Example of produced log message{"@timestamp":"2019-10-22T11:11:42.133Z","message":"hello","level":"WARNING","pid":40110,"context":"my-context","tags":["tag1","tag2"],"extra":{"func_name":"example","line":5,"path":"file.py","process_name":"MainProcess","thread_name":"MainThread","common_variable":"value","my_variable":"value"}}
Package: kode-rpc
kode_rpcServer UsagefromtypingimportMappingimportasyncioimportloggingfromkode_rpc.methodimportRPCMethod,methodfromkode_rpc.serverimportRPCServer,RPCRequestInfo@method(version=1)asyncdefsome_rpc_method(param:str):return{'result':True}asyncdefrpc_logger(rpc_method:RPCMethod,result:Mapping,request_info:RPCRequestInfo):logging.info('rpc_log',extra={'rpc_name':rpc_method.name,'rpc_result':result,'trace_id':request_info.trace_id,'master':request_info.master})asyncdefrpc_exception_handler(rpc_method:RPCMethod,exc:BaseException,request_info:RPCRequestInfo)->Mapping:ifisinstance(exc,RuntimeError):return{'error':{'code':'RuntimeError','trace_id':request_info.trace_id}}else:return{'error':{'code':'ServerError','trace_id':request_info.trace_id}}asyncdefmain():logging.basicConfig(level=logging.INFO)server=RPCServer('my_service',rabbitmq_host='localhost',rabbitmq_user='guest',rabbitmq_password='guest')server.method_logger(rpc_logger)server.method_exception_handler(rpc_exception_handler)awaitserver.register_methods([some_rpc_method])awaitserver.serve()if__name__=='__main__':asyncio.run(main())Client Usageimportasynciofromkode_rpc.clientimportRPCClient# To access rpc_client from anywhere it must be initialized at top level modulerpc_client=RPCClient('client_name')asyncdefmain():# Connect to rpc broker once at startupawaitrpc_client.connect(rabbitmq_host='localhost',rabbitmq_user='guest',rabbitmq_password='guest')# ...# Somewhere in logicresult=awaitrpc_client.call(service_name='my_service',method='rpc_method',payload={'param':'any'})# => {'result': True}# When application is shutting down do not forget to disconnect from rpc brokerawaitrpc_client.disconnect()if__name__=='__main__':asyncio.run(main())