Saravanan666/pypi-org huggingface dataset:
Package: okftools
项目名称：基于系统调用重载的系统级资源访问审计项目团队麻家乐 王梓睿 孙靖轩 张天铄 汪何希主要工作1. 获取系统调用表 sys_call_table。
    2. 实现系统函数重载和地址写入。
    3. 实现内核和用户层间的信息交互。
    4. 将信息保存为日志及尝试相关扩展处理。
    5. 实现了图形化界面，提供可视化操作方便用户使用。开发环境Ubuntu 22.04  linux-5.19使用方法1.pip install okftools图1 pip install okftools2.pip show okftools图2 pip show okftools3.cd the okftools path

    4.python okftools_setup.py or python3 okftools_setup.py图3 python okftools_setup.py5. input the following command to use okftools
            ./oktfools图4 oktfools注意事项* If the following error occurs:
            libGL error: failed to load driver: swrast.
            libGL error: failed to load driver: vmwgfx
    * please try:
            conda install -c conda-forge gcc=12.1.0
Package: okhash
O(K)hashIntroductionO(K)hash(pronounced OK hash or oꭓash) is a hash function with $O(1)$ complexity based on SHA-256. It is designed to efficiently calculate hashes for large files by reading only a fixed subset of data from random positions within the file. The 'K' parameter denotes the strength of the hashing, with lower values reading less data. For example, a hash with K=1 reads only 1KiB of data, while a hash with K=2 reads 1MiB of data. The hash results are downgradable, meaning a hash of strength K=3 can validate a file hash calculated with K=1.RationalCalculating the hash of a large file normally involves reading the entire file, which can be time-consuming, especially with slow I/O operations. O(K)hash addresses this issue by reading a fixed number of bytes from random positions inside the file, providing a constant time complexity of $O(1)$. This approach generates a reliable fingerprint for identifying duplicate files and validating files efficiently.LimitationsAfter all, it's just an OK hash:Not Suitable for Detecting Corruptions:O(K)hash is not suitable for detecting file corruptions that do not change the size of the file. In the case of a bit flip or small corruptions, the probability of detecting corruption is lower than: $\frac{base size}{file size}$.Consider File Size Checking:Depending on the nature and number of large files you are working with, it may be more effective to check the file size before calculating a conventional hash to ensure data integrity.QuickstartInstallationYou can install O(K)hash using pip:pipinstallokhashUsageCalculate O(K)Hash of a String:importokhashdata="Hello, world!"checksum=okhash.okhash(data.encode('utf-8'),K=3)print(checksum.hex())Calculate & compare O(K)Hash of Files:importokhashfile1_checksum=okhash.okhash_filepath("file1.bin")file2_checksum=okhash.okhash_filepath("file2.bin")ifokhash.compare_okhashes(file1_checksum,file2_checksum):print("Checksums match.")else:print("Checksums do not match.")Command Line UsageCalculate Checksums:To calculate checksums for a file with a specified K value (default is K=2), use the following command:python3-mokhash-K3file.binCheck Checksums:The result of the previous command can be used to check checksums for multiple files:python3-mokhash*.bin>okhashes.txt
python3-mokhash--checkokhashes.txtAdditional Options:python3-mokhash--helpThe Strengths (K)Here's a table describing the strengths (K) and their corresponding parameters:KBase Size (Subset Data Size for Hash Calculation)Block Size11024 B = 1 KiB1024 B21048576 B = 1 MiB4096 B31073741824 B = 1 GiB262144 B41099511627776 B = 1 TiB16777216 BK$2^{10K}$$1024 \times \lceil \frac{2^{6K}}{1024} \rceil$The minimum file size for a given K is equal to twice the base size; otherwise, the hash calculation will resort to SHA-256 for the entire file.LicenseO(K)hash is released under theMIT License.
Package: oki
# oki-py[![Travis](https://img.shields.io/travis/okfn/oki-py.svg)](https://travis-ci.org/okfn/oki-py)[![Coveralls](http://img.shields.io/coveralls/okfn/oki-py.svg?branch=master)](https://coveralls.io/r/okfn/oki-py?branch=master){{ DESCRIPTION }}## Getting StartedFrom pypi:```pip install oki```To hack on the code, setup a virtual environment, grab the code, and then:```# install dependenciesmake install# run the testsmake test# review the code for style, etc.make review# run a test coverage reportmake coverage# check for other commands availablemake list```## Using oki{{ NOTES_FOR_USING_THE_LIBRARY }}## ContributingPlease read the contribution guideline:[How to Contribute](CONTRIBUTING.md)Thanks!
Package: oking
OKING - Conector de Integração GenéricoSistema python para realizar a integração com ERP's ou outras soluções via conexão direta com banco de dados, via arquivos e/ou APIs.Dentre os módulos de integração estão:Catálogo de ProdutosPreçoEstoquePedidoClientesManualhttps://doc.clickup.com/d/h/2zgwt-5063/8b4903a4de0ccbd
Package: oking-oz
OKING - OkVendasSistema python para realizar a integração entre ERP's e a solução OkVendas da Openk.Dentre os módulos de integração estão:PreçoEstoquePedidoProdutosClientesManualhttps://doc.clickup.com/d/h/2zgwt-5063/8b4903a4de0ccbd
Package: okiti-cnt-to-cnt
# okiti_cnt_to_cntModify OKITI created cnt files to be readable by mne-python package.OKITI - Országos Klinikai Idegtudományi IntézetOrszágos Klinikai Idegtudományi Intézetmne-python -https://github.com/mne-tools/mne-python## How to use
The function modify or create a new cnt file.It returns only a flag which shows it did anything or not.If you don’t need the original cnt file just give your cnt file name to the function.If you want to preserve the original file specify the _new_file_name_ argument as well.If the input is a valid cnt file the function will return false value.## Description
In OKITI the creation of cnt files done by a self-made Matlab script from trc files. This script is good enough to create cnt files which can be read by Matlab but they are not readable by mne-python package. We have to modify the cnt file to read by mna-python package.Modifications:1. Modify the event offset value. In OKITI cnt the event offset length is wrongly defined in the cnt file setup.
2. Add event type and event number to the end of the file. These are expected by mne-python but there are not in the OKITI cnt file.
Package: oklchcsspalette
OKLCH_CSS_Palette_BuilderYou can make OKLCH CSS palettes by using this!What is this?This is a Python library which makes OKLCH CSS palettes.
OKLCH is a perceptually uniform color space designed by Björn Ottosson in 2020 (you can readhis blog).
You can use it as CSS Color Module Level 4 with the most of modern browsers (checkCan I Use...).Although we can useOKLCH Color Picker & Converter, I think it is not easy to use because the surface of OKLCH is not flat.
So I wrote this library for CSS developers.InstallationFor Pip:pipinstalloklchcsspaletteFor Poetry:poetryaddoklchcsspaletteHow to use?With Python >= 3.9, you can use this library as below.fromsysimportargvfromoklchcsspaletteimportOklchCssPaletteBuilderdefmain():attributes=tuple(map(int,argv[1:7]))ocpb=OklchCssPaletteBuilder(*attributes)ocpb.make_css(argv[7])if__name__=="__main__":main()Theattributesare int values needed to calcurate chromas on OKLCH space.Theargv[7]is a CSS file path. It must ends with ".css" (upper cases are ok).Contrast ratio with srgbFor the web accessibility, the necessary minimum of the diffs of lightnesses are below.At least 3:1 (Level AA of large scale of text) -> 35At least 4.5:1 (Level AA of text or Level AAA of large scale of text) -> 45At least 7:1 (Level AAA of text) -> 55I calculated these values on a gray scale (chroma = 0). I have not checked on other colors (chroma > 0), but I think I will get similar results.With p3 and rec2020, a contrast ratio is not defined, but I think we can use these values.LicenseMIT LicenseAttentionThis library does not yield Tailwind CSS color names.This library outputs duplicated colors; black and white.Linkshttps://github.com/CHRIBUR0309/OKLCH_CSS_Palette_Builderhttps://pypi.org/project/oklchcsspalette/
Package: okltd
Real Python Feed ReaderThe Real Python Feed Reader is a basicweb feedreader that can download the latest Real Python tutorials from theReal Python feed.For more information see the tutorialHow to Publish an Open-Source Python Package to PyPIon Real Python.InstallationYou can install the Real Python Feed Reader fromPyPI:pip install realpython-readerThe reader is supported on Python 2.7, as well as Python 3.4 and above.How to useThe Real Python Feed Reader is a command line application, namedrealpython. To see a list of thelatest Real Python tutorialssimply call the program:$ realpython
The latest tutorials from Real Python (https://realpython.com/)
 0 How to Publish an Open-Source Python Package to PyPI
 1 Python "while" Loops (Indefinite Iteration)
 2 Writing Comments in Python (Guide)
 3 Setting Up Python for Machine Learning on Windows
 4 Python Community Interview With Michael Kennedy
 5 Practical Text Classification With Python and Keras
 6 Getting Started With Testing in Python
 7 Python, Boto3, and AWS S3: Demystified
 8 Python's range() Function (Guide)
 9 Python Community Interview With Mike Grouchy
10 How to Round Numbers in Python
11 Building and Documenting Python REST APIs With Flask and Connexion – Part 2
12 Splitting, Concatenating, and Joining Strings in Python
13 Image Segmentation Using Color Spaces in OpenCV + Python
14 Python Community Interview With Mahdi Yusuf
15 Absolute vs Relative Imports in Python
16 Top 10 Must-Watch PyCon Talks
17 Logging in Python
18 The Best Python Books
19 Conditional Statements in PythonTo read one particular tutorial, call the program with the numerical ID of the tutorial as a parameter:$ realpython 0
# How to Publish an Open-Source Python Package to PyPI

Python is famous for coming with batteries included. Sophisticated
capabilities are available in the standard library. You can find modules for
working with sockets, parsing CSV, JSON, and XML files, and working with
files and file paths.

However great the packages included with Python are, there are many
fantastic projects available outside the standard library. These are most
often hosted at the Python Packaging Index (PyPI), historically known as the
Cheese Shop. At PyPI, you can find everything from Hello World to advanced
deep learning libraries.

[... The full text of the article ...]You can also call the Real Python Feed Reader in your own Python code, by importing from thereaderpackage:>>> from reader import feed
>>> feed.get_titles()
['How to Publish an Open-Source Python Package to PyPI', ...]
Package: oknlp
OKNLP安装方法CPU only$pipinstall"oknlp[cpu]"GPU请参考安装 - OKNLP文档系统支持WindowsLinuxMac OSPython3.6√√Python3.7√√√Python3.8√√√Python3.9√√√快速入门中文分词importoknlpif__name__=="__main__":model=oknlp.cws.get_by_name("thulac")model(["我爱北京天安门"])# [['我', '爱', '北京', '天安门']]完整文档请参考中文分词 - OKNLP文档命名实体识别importoknlpif__name__=="__main__":model=oknlp.ner.get_by_name("bert")model(["我爱北京天安门"])# [[{'type': 'LOC', 'begin': 2, 'end': 4}, {'type': 'LOC', 'begin': 4, 'end': 7}]]完整文档请参考命名实体识别 - OKNLP文档词性标注importoknlpif__name__=="__main__":model=oknlp.postagging.get_by_name("bert")model(["我爱北京天安门"])# [[('我', 'PN'), ('爱', 'VV'), ('北京', 'NR'), ('天安门', 'NR')]]完整文档请参考词性标注 - OKNLP文档细粒度实体分类importoknlpif__name__=="__main__":model=oknlp.typing.get_by_name("bert")model([("我爱北京天安门",(2,4))])# [[('location', 0.7169095873832703), ('place', 0.8128180503845215), ('city', 0.6188656687736511), ('country', 0.12475886940956116)]]完整文档请参考细粒度实体分类 - OKNLP文档贡献者@a710128@Yumiko-188@HuShaoRu
Package: okn-py-updater
OKN_PY_UPDATERA python library to be used for live updating the okn data before sending into new version of okn detector.Installation requirements and guideAnacondaTo install this program,Anaconda python distributing programandAnaconda Powershell Promptare needed.If you do not haveAnaconda, please use the following links to download and install:Download link:https://www.anaconda.com/products/distributionInstallation guide link:https://docs.anaconda.com/anaconda/install/PIP installThe library name is calledokn_py_updater.To installokn_py_updater, you have to useAnaconda Powershell Prompt.InAnaconda Powershell Prompt:pip install okn_py_updaterUsageexample_updater = Updater(`config to be used`, `length of circular buffer`, `header array`, `drop rate`)config to be used: must be dictionary type ofgazefilters.jsonwhich contains information such asMappers,filtersandGraph.length of circular buffer: must be integer type to define the length of buffer to be used.header array: must be array which contains strings which will specify the individual data name of the data array to be updated. Examples: header_array = ['x_value', 'y_value', 'x_nom', 'y_nom', 'record_timestamp', 'sensor_timestamp', 'frame_rate',
'is_event', 'event_id', 'direction']drop rate: must be integer type. If it is zero, all data will be used. If it is more than 1, every 1 data will be collected then it will drop the amount of drop rate. For example: If the drop rate is 2, every 1 data will be collected then 2 data will be dropped.Example Usageconfig_to_be_used = load_commented_json("gazefilters.json")
header_array = ['x_value', 'y_value', 'x_nom', 'y_nom', 'record_timestamp', 'sensor_timestamp', 'frame_rate',
                'is_event', 'event_id', 'direction']

example_updater = Updater(config_to_be_used, 100, header_array, 3)

out_put = example_updater.update(data)Updater Class SpecificationsAttributesconfig: The dictionary version ofgazefilters.jsonwhich contains information such asMappers,filtersandGraph.filter_config: The filter information of the config.circular_buffer: The circular buffer with max length which will be defined by user.self.buffer_max_length: The max length of buffer.self.header_array: The header array which will be defined by user.self.data_drop_rate: The drop rate which will be defined by user.count: The count to be used as a counter if data drop rate is greater than zero.Methodsupdate(self, data_input): To store incoming data into circular buffer, update the buffer and return the last element of buffer.set_buffer(self, new_buffer_length): To update buffer.set_header_array(self, new_header_array): To update header array.set_drop_rate(self, new_drop_rate): To update drop rate.get_output_header_array(self): To get output header array.
Package: oknrerun
OKNRERUNPython program to rerun eye health diagnostic group's recording data.In the rerunning process, it will copy all data into a new folder(which will never overwrite the original folder) except config and trials data.Then, it will rerun trial data which includes the pupil detection(optional), updating trial csv, okn detection, applying okn rules and drawing the trial plot.At the end of trial rerunning, it will also produce summary csv and summary plot for all trials.External Program RequirementffmpegWe need ffmpeg when we are rerunning the recording with pupil detection in order to split the video.We do not need ffmpeg if we are rerunning without using pupil detector.Installation requirements and guideAnacondaTo install this program,Anaconda python distributing programandAnaconda Powershell Promptare needed.If you do not haveAnaconda, please use the following links to download and install:Download link:https://www.anaconda.com/products/distributionInstallation guide link:https://docs.anaconda.com/anaconda/install/PIP installTo installoknrerun, you have to useAnaconda Powershell Prompt.After that, you can use theoknrerunfrom any command prompt.InAnaconda Powershell Prompt:pip install oknrerunTo check and upgrade versionInAnaconda Powershell Prompt,
To check current versionoknrerun --versionTo upgradepip install -U oknrerunUsageWe can rerun a recording folder with or without pupil detector.Without pupil detectoroknrerun -d (directory to recording folder to be rerun) -okndl (directory to okndetector)With pupil detectoroknrerun -d (directory to recording folder to be rerun) -okndl (directory to okndetector) -pd (type or indicator)type or indicatorType = type of pupil detector such asopmandplm.Note: Currently there is onlyopmtype.Indicator =on,y,1ortrue.Optional flags/arguments-uc(directory to updater config(gazefilters.json))-okndc(directory to okn detector config(okndetector.gaze.config))-pi(directory to plot info(oknserver_graph_plot_config.json))-ri(directory to rule info(the config file which include rules))-bl(buffer length of tiny fill buffer to be used with pupil detector). Default is 7.-opmdc(directory to opm detector config(opm_detector_config.json))-es(extra string to give the name of updated trial csv). Default isupdated_.-di(direction input to overwrite the direction of existing recording direction ofall trials)To check built-in config information and defaultsoknrerun --display (config name or defaults)Available namesuc (updater config)okndc (okn detector config)opmdc (opm detector config)pi (plot info)ri (rule info)defaultsExample usageoknrerun --display ucThis will display the built-in information of updater config (gazefilters.json).
Package: oko
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: okolab
OkolabThis Python package provides control of theH401-T-CONTROLLERtemperature controller from Okolab.Installation$pipinstallokolab# List available devices$python-mokolabUsagefromokolabimportOkolabDevicedevice=OkolabDevice(address="COM3")device=OkolabDevice(address="/dev/tty.usbmodem1101")asyncwithdevice:# Read temperaturetemp=awaitdevice.get_temperature1()temp=awaitdevice.get_temperature2()# Write temperatureawaitdevice.set_temperature_setpoint1(37.0)awaitdevice.set_temperature_setpoint2(37.0)# Read in parallelawaitasyncio.gather(device.get_temperature1(),device.get_temperature2())fromokolabimportOkolabDeviceConnectionError,OkolabDeviceSystemError# Catching errorstry:temp=awaitdevice.get_temperature1()exceptOkolabDeviceConnectionError:# The device has been disconnectedexceptOkolabDeviceSystemError:# The device has reported an errorforinfoinOkolabDevice.list():withinfo.create()asdevice:print(awaitdevice.get_serial_number())
Package: okome-lib
m.kuku.lu ラッパー無料完全スペシャルサンクス: Natsuneko————-Usage————-方法 1from okome import auth, Clientaccount = auth.create_account()
client = Client(account)success, mail = client.create_mail()
print(“Mail: “ + mail)方法 2from okome import Account, Clientaccount = Account(“cookie_csrf_token”, “cookie_session_hash”)
client = Client(account)success, mail = client.create_onetime_mail()
print(“Mail: “ + mail)————-便利メソッド————-create_mail: アドレスを自動作成して作成create_mail_manually: アドレスを指定して作成create_onetime_mail: 期限付きのアドレスを作成get_address_list: アドレスリストを取得get_address_id: アドレスのIDを取得delete_address: アドレスを消去get_credentials: ログイン情報を取得get_inbox: インボックを取得get_mail_data: メールのコンテントを取得send_mail: 空メールを送信————- ライセンス ————-MIT
Package: okonomi
okonomiIncredibly simple static javascript file handling.from any template, as many times as you want:{% jsrequire /path/to/my/js.js %}or:{% jsrequire http://google.com/some/api %}okonomiwill take care of getting just the right<script>includes into the
HEAD of your template using the hideous${JS}sigil that you must include in
a base template somewhere.django settingsOKONOMI_STATIC_URLset this to whatever makes sense for your django project.OKONOMI_STATIC_PATHset this to whatever makes sense for your django project.OKONOMI_HTML_PATH_TEMPLATEdefaults to<scripttype="text/javascript"src="%s"></script>\nOKONOMI_HTML_URL_TEMPLATEdefaults to<scripttype="text/javascript"src="%s"></script>\nRequirementsLocally hosted media${JS} sigil in HEAD or somewhere:{% jsrequire /formchecking.js %}add/formchecking.jstoset()in context… (repeat in various templates) …middleware:generate key from what is in the set()not cached?read all the js files, concat, cacheinsert<scriptsrc="/js/cache_key"></script>for${JS}Remote hosted media${JS}sigil in HEAD or somewhere:{% jsrequire https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.js %}add url to set() in context… (repeat in various templates) …middleware:insert<scriptsrc="url"></script>for each remote includeauthorNathaniel Smith <nate.smith@coxinc.com>
for Cox Media Group Digital & Strategylicenseokonomi is licensed under the MIT license.
Package: okp
okpokp (pronounced like okapi) is a python script that processes .cpy files and
generates C++ code.if the following code makes you happy, okp might be for you:def weird_multiply(int a, b):
    for i = 0; i < b; i++:
        a *= b
    return a


def main():
    int a, b
    read a, b

    print "WEIRD MULTIPLIED:", weird_multiply(a, b)statusokp is not a good idea for anyone to use, but try it anyways and let me
know what you've builtinstallationpip install okpmotivationi saw vrsperanza's CPY and the light hit me: a language that looks like python
but compiles like C. i decided i want to write programs in it. okp is my
attempt to write a pre-processor like CPY but in python.usage# print c++ source
okp -p file.cpy

# compile code
okp file.cpy

# compile multiple cpy files together
okp file1.cpy file2.cpy

# specify the executable file
okp file1.cpy -o ./a.out

# compile and run 
okp file.cpy -r

# compil and run (stdin is passed to the binary) 
okp file.cpy -ri < input.txt

# compile a hybrid project
okp file1.h file2.cpp file3.cpy -o ./a.outfeaturesfrom CPYFeatures that okp implements from CPY are:indentation based bracketingautomatic parenthesization of conditionalsauto variable declarationsreturn multiple values from functionsautomatic variable destructuringforandrofloop shorthand (to enable, use-forand-rofflags)knownkeyword#rawinclude directivedisabling auto variable declarations (-ni flag)compilation of hybrid projectsFeatures that arenotimplemented yet:export project + MakefileoriginalSome original features of okp to make it look more pythonic are:defkeyword before function namesblockkeyword for creating blockspasskeyword for no-opsprintandraw_inputkeywordsselfkeywordlines that start with IGNORE_CHAR are not pre-processedtriple backticks for multi-line escapesfurther resources and similar projectsCPY githubwhat if c looked more like pythoncoffee++MyDef
Package: okp4-grpc-client
ØKP4 CØSMOS protoPython gRPC client for ØKP4 and by extension, CØSMOS based blockchains.PurposeProvides PythongRPC clientsfor ØKP4 and by extension, CØSMOS based blockchains generated from their Protobuf definitions.Quick Startpipinstallokp4_grpc_client