Saravanan666/pypi-org huggingface dataset:
Package: zksk-fork
Zero-Knowledge Swiss Knife: Python library for prototyping composable zero-knowledge proofs in the
discrete-log setting.Let’s say Peggy commits to a secret bit and wants to prove to Victor in zero knowledge that she
knows this bit—that is, without revealing it. In Camenisch-Stadler notation, we can write:To implement this zero-knowledge proof, Peggy will run:fromzkskimportSecret,DLRepfromzkskimportutils# Setup: Peggy and Victor agree on two group generators.G,H=utils.make_generators(num=2,seed=42)# Setup: generate a secret randomizer.r=Secret(utils.get_random_num(bits=128))# This is Peggy's secret bit.top_secret_bit=1# A Pedersen commitment to the secret bit.C=top_secret_bit*G+r.value*H# Peggy's definition of the proof statement, and proof generation.# (The first or-clause corresponds to the secret value 0, and the second to the value 1. Because# the real value of the bit is 1, the clause that corresponds to zero is marked as simulated.)stmt=DLRep(C,r*H,simulated=True)|DLRep(C-G,r*H)zk_proof=stmt.prove()Victor will receive the commitmentCandzk_prooffrom Peggy, and run this to verify the
proof:fromzkskimportSecret,DLRep# Setup: get the agreed group generators.G,H=utils.make_generators(num=2,seed=42)# Setup: define a randomizer with an unknown value.r=Secret()stmt=DLRep(C,r*H)|DLRep(C-G,r*H)assertstmt.verify(zk_proof)Victor is now convinced that Peggy knows the committed bit.Documentation and materialsDocshttps://zksk.readthedocs.ioAcademic paperhttps://arxiv.org/abs/1911.02459—
theoretical details>Warning.Please don’t use this software for anything mission-critical. It is designed for
quick protyping of privacy-enhancing technologies, not production use.Getting startedYou need to have Python 3.6 or higher to use zksk. The library is tested and supported on
Debian-based systems. Mac support is not guaranteed.You can install zksk using pip:pipinstallgit+https://github.com/spring-epfl/zkskTo make sure everything is in order, you can run unit tests. For that, install the dev version of
the package:pipinstall"git+https://github.com/spring-epfl/zksk#egg=zksk[dev]"Then, run the tests with pytest:pytestContributingSee thecontributing document.CitingIf you use zksk in your research, please cite like this:@inproceedings{LueksKFBT19,author={Wouter Lueks and
               Bogdan Kulynych and
               Jules Fasquelle and
               Simon Le Bail{-}Collet and
               Carmela Troncoso},title={zksk: {A} Library for Composable Zero-Knowledge Proofs},booktitle={Proceedings of the 18th {ACM} Workshop on Privacy in the Electronic
               Society ({WPES@CCS})},pages={50--54},year={2019},}
Package: zksoap
ZK Soap Python LibraryA Python Library For Manage Data From Fingerprint Machine with SOAP ProtocolFeaturesGet Attendance Log with DateRangeGet User InformationRequirementsPython version 3.6 or higherFingerprint Machine Support ZK Web ServiceEasy InstallationInstall with pipTo install withpip, simply require the
latest version of this package.python-mpipinstallzksoapQuick StartJust pass your IP, Port and Comkey :Get Attendance# reference the ZK Soap PHP namespacefromzksoapimportFingerprint# initialmachine=Fingerprint('192.168.1.175','80','123456')# get machine statusprint("Machine Status : "+machine.getStatus())# connected | disconnected# get all log dataprint(machine.getAttendance())# return List of Attendance Log# get all log data with dateprint(machine.getAttendance('all','2022-05-01'))# return List of Attendance Log# get all log data with date rangeprint(machine.getAttendance('all','2022-05-01','2022-05-10'))# return List of Attendance Log# get specific pin log dataprint(machine.getAttendance('1'))# return List of Attendance Log# OR Listprint(machine.getAttendance(['1','2']))# return List of Attendance Log# get exported json formatuser_attendance_data=machine.getAttendance()json_data=json.dumps(user_attendance_data,cls=UserAttendanceEncoder,indent=4)file_path='user_attendance2.json'withopen(file_path,'w')asfile:file.write(json_data)print(f"JSON data for user attendance saved to{file_path}")Get User Information# reference the ZK Soap PHP namespacefromzksoapimportFingerprint# initialmachine=Fingerprint('192.168.1.175','80','123456')# get machine statusprint("Machine Status : "+machine.getStatus())# connected | disconnected# get all user dataprint(machine.getUserInfo())# return List of User Info Data# get specific pin user dataprint(machine.getUserInfo('1'))# return List of User Info Data# OR Listprint(machine.getUserInfo(['1','2']))# return List of User Info Data# get exported json formatdecoded_data=machine.getUserInfo()data_dict={"data":decoded_data}json_data=json.dumps(data_dict,indent=4,cls=UserInfoEncoder)file_path='user_info2.json'withopen(file_path,'w')asfile:file.write(json_data)print(f"JSON data saved to{file_path}")ChangelogUploading to pypi
Package: zkt
Zkt for API Test AutomationZktZurck'z Testing ToolThis package contains some helpers features for api test automationZPy use the following packages:zpy-api-coreRequirementsPython 3.10+InstallationUse the package managerpipto install py flask micro service core .pipinstallzktFeaturesContains some helper features.StageStepBasic Usagetest_scenario=Stepexecutor(scenario="Create a Generic Order PROD",steps=[FullRequestTest("Prepare token request",data_request),PostHttpRequest("Get Token"),HttpResponseVerifier("Tooken Response Verifier"),DictValueExtract("Extract Data Tokens",key="result"),StoreTransactData("Store Auth Data",key="auth")],)result=test_scenario.execute()print(result)ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMITAuthorsNoé Cruz
Package: zktool
A sample Python projectA sample project that exists as an aid to thePython Packaging User
Guide'sTutorial on Packaging and Distributing
Projects.This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written usingreStructuredTextormarkdownwith the appropriatekey set. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.
Package: zktools
zktoolsis a package of tools implementing higher level constructs usingApache Zookeeper.It currently provides:Configuration- Zookeeper Configuration Helpers
to store and load configuration information stored
in Zookeeper nodes.Locks- A Zookeeper lock with support for
non-blocking acquire, modeled on Python’s Lock objects that also includes aRevocable Shared Locks with Freaking Laser Beamsdescribed in theZookeeper Recipe’s.Seethe full docsfor more  information.Licensezktoolsis offered under the MPL license.Authorszktoolsis made available by theMozilla Foundation.Changelog0.2.1 (02/16/2012)Fixed packaging bug.0.2 (02/03/2012)ChangesAdded context manager return to lock to allow use of the ‘with’
statement.Refactored to use zc.zk ZooKeeper library for higher level Zookeeper
abstraction with automatic watch re-establishment.FeaturesNode object to retrieve ZNode data from Zookeeper and keep it up
to date.Node objects can have data and children subscribers.NodeDict object that maps a shallow tree (one level of children)
into a dict-like object.Backward IncompatibilitiesSharedZkLock has been refactored into ZkWriteLock and ZkReadLock.revokedis a property of Locks, not a method.ZkConnection is gone, lock objects, ZkNode, and ZkNodeDict all expect
zc.zk ZooKeeper instances.0.1 (11/22/2011)FeaturesLock implementation, with revokable shared locks.Zookeeper connection object with automatic reconnect.
Package: zktop
h1. ZooKeeper top*Author: "Patrick Hunt":http://people.apache.org/~phunt/* (follow me on "twitter":http://twitter.com/phunt)h2. Summary"This project":http://github.com/phunt/zktop provides a unix "top" like utility for ZooKeeper. It is compatible with Python2.6, Python2.7 and Python3.h3. ExampleRunning:<pre>./zktop.py --servers "localhost:2181,localhost:2182,localhost:2183"</pre>or - omitting the port numbers, defaulting to 2181 -<pre>./zktop.py --servers "server1,server2,server3"</pre>or, for a ZK-style configuration file:<pre>./zktop.py --config zk.conf</pre>shows a screen like:<pre>Ensemble -- nodecount:10 zxid:0x1300000001 sessions:4SERVER           PORT M      OUTST    RECVD     SENT CONNS MINLAT AVGLAT MAXLATlocalhost        2181 F          0       93       92     2      2      7     13localhost        2182 F          0       37       36     1      0      0      0localhost        2183 L          0       36       35     1      0      0      0CLIENT           PORT I   QUEUE RECVD  SENT127.0.0.1       34705 1       0    56    56127.0.0.1       35943 1       0     1     0127.0.0.1       33999 1       0     1     0127.0.0.1       37988 1       0     1     0</pre>h3. What's Apache ZooKeeper?>From the "official site":http://hadoop.apache.org/zookeeper/: "ZooKeeper is a high-performance coordination service for distributed applications."It exposes common services - such as naming, configuration management, synchronization, and group services - in a simple interface so you don't have to write them from scratch. You can use it off-the-shelf to implement consensus, group management, leader election, and presence protocols.h2. zktop.py0) Top line is overall cluster status1-n) Lines 1-n are for the n serversn+1 and below are for client connectionsh3. Usage<pre>Usage: zktop.py [options]Options:-h, --help            show this help message and exit--servers=SERVERS     comma separated list of host:port (defaultlocalhost:2181)-n, --names           resolve session name from ip (default False)--fix_330             workaround for a bug in ZK 3.3.0-v VERBOSITY, --verbosity=VERBOSITYlog level verbosity (DEBUG, INFO, WARN(ING), ERROR, CRITICAL/FATAL))-l LOGFILE, --logfile=LOGFILEdirectory in which to place log file, or empty fornone-c CONFIGFILE, --config=CONFIGFILEzookeeper configuration file to lookup servers from</pre>--fix_330 works around a bug in ZooKeeper 3.3.0, it is only necessary if running the server against that version of ZooKeeper.The screen refreshes every 3 seconds.* 'h' help* 'q' quits* 'r' resets the server stats* spacebar updates immediatelyh2. PyPizktop is now installable from PyPi<pre>pip install zktop</pre>h2. LicenseThis project is licensed under the Apache License Version 2.0
Package: zkvvm
A completely experimental and untested zkVyper version manager.UsageInstall with pip.$pipinstallgit+https://github.com/skellet0r/zkvvm@master#egg=zkvvmUse the built-in CLI$zkvvm--helpusage:zkvvm[-h][--cache-dirCACHE_DIR][--log-fileLOG_FILE][-v]{ls,ls-remote,install,uninstall}...zkVyperVersionManageroptionalarguments:-h,--helpshowthishelpmessageandexit--cache-dirCACHE_DIRDefault:/home/user/.cache/zkvvm--log-fileLOG_FILEDefault:/home/user/.cache/zkvvm/log/zkvvm.log-vcommands:{ls,ls-remote,install,uninstall}lsListavailablelocalversionsls-remoteListavailableremoteversionsinstallInstallaremoteversionuninstallUninstallalocalversionUse in a scriptimportzkvvmoutput=zkvvm.compile(["tmp/Foo.vy"])src="""# @version 0.3.3

@view
@external
def foo(_a: uint256) -> uint256:
    return _a
"""output=zkvvm.compile_source(src,zk_version="1.1.1",vyper_version="0.3.3")
Package: zlc
lib-namestep to commit:
    step rename:
        rename:
        ./
        |__src/
            |__packge_name/
        to your package name
    step edit:
        edit:
            ./
            |__setup.cfg
        name, version, author, author_email
    step build:
        step-1:
            make a pypi account
        step-2:
            run code on command line:
                Unix/macOS:
                    python3 -m pip install --upgrade build
                    python3 -m pip install --upgrade twine
                    python3 -m build
                    twine upload dist/*
                Windows:
                    py -m pip install --upgrade build
                    py -m pip install --upgrade twine
                    py -m build
                    twine upload dist/*Uploading distributions tohttps://test.pypi.org/legacy/Enter your username:[your username]Enter your password:[your password, this is hidden]Uploadingpackage-name-version-py3-none-any.whl100%|█████████████████████| 4.65k/4.65k [00:01<00:00, 2.88kB/s]Uploadingpackage-name-version.tar.gz100%|█████████████████████| 4.25k/4.25k [00:01<00:00, 3.05kB/s]
Package: zlcy
lib-namestep to commit:
    step rename:
        rename:
        ./
        |__src/
            |__packge_name/
        to your package name
    step edit:
        edit:
            ./
            |__setup.cfg
        name, version, author, author_email
    step build:
        step-1:
            make a pypi account
        step-2:
            run code on command line:
                Unix/macOS:
                    python3 -m pip install --upgrade build
                    python3 -m pip install --upgrade twine
                    python3 -m build
                    twine upload dist/*
                Windows:
                    py -m pip install --upgrade build
                    py -m pip install --upgrade twine
                    py -m build
                    twine upload dist/*Uploading distributions tohttps://test.pypi.org/legacy/Enter your username:[your username]Enter your password:[your password, this is hidden]Uploadingpackage-name-version-py3-none-any.whl100%|█████████████████████| 4.65k/4.65k [00:01<00:00, 2.88kB/s]Uploadingpackage-name-version.tar.gz100%|█████████████████████| 4.25k/4.25k [00:01<00:00, 3.05kB/s]
Package: zlib-fast
zlib-fastDocumentation:https://zlib-fast.readthedocs.ioSource Code:https://github.com/bdraco/zlib-fastA wrapper to use the fastest available zlibzlib is be a bottleneck for creating backups withtarfile.zlib-fastreplaces usage ofzlibwithisalwhich is a drop-in faster replacement.Unlike the base isal implementation, this module maps zlib compression
levels forcompressobjto their nearestisalequivalent which allows
it to be used as a drop in replacement withtarfile.InstallationInstall this via pip (or your favourite package manager):pip install zlib-fastUsageEnable zlib-fast support by callingzlib_fast.enable().importzlib_fastzlib_fast.enable()zlib_fast.disable()The most common use case is for use withtarfilewhich does a late import.enablewill only be effective for future imports ofzlib, and will not redirect existing imports. If you need to use this module for other use cases, be sure to callzlib_fast.enable()before any code that loadszlib.Contributors ✨Thanks goes to these wonderful people (emoji key):This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCopierand thebrowniebroke/pypackage-templateproject template.
Package: zlib-ng
python-zlib-ngFaster zlib and gzip compatible compression and decompression
by providing Python bindings for the zlib-ng library.This package provides Python bindings for thezlib-nglibrary.python-zlib-ngprovides the bindings by offering three modules:zlib_ng: A drop-in replacement for the zlib module that uses zlib-ng to
accelerate its performance.gzip_ng: A drop-in replacement for the gzip module that useszlib_nginstead ofzlibto perform its compression and checksum tasks, which
improves performance.gzip_ng_threadedoffers anopenfunction which returns buffered read
or write streams that can be used to read and write large files while
escaping the GIL using one or multiple threads. This functionality only
works for streaming, seeking is not supported.zlib_ngandgzip_ngare almost fully compatible withzlibandgzipfrom the Python standard library. There are some minor differences
see:differences-with-zlib-and-gzip-modules.QuickstartThe python-zlib-ng modules can be imported as followsfromzlib_ngimportzlib_ngfromzlib_ngimportgzip_ngfromzlib_ngimportgzip_ng_threadedzlib_ngandgzip_ngare meant to be used as drop in replacements so
their api and functions are the same as the stdlib’s modules.A full API documentation can be found onour readthedocs page.python-mzlib_ng.gzip_ngimplements a fully featured gzip-like command line
application (just likepython-mgzip, but better). Full usage documentation can be
found onour readthedocs page.Installationwith pip:pip installzlib-ngwith conda:conda installpython-zlib-ngInstallation is supported on Linux, Windows and MacOS. For more advanced
installation options check thedocumentation.python-zlib-ng as a dependency in your projectzlib-ng supports numerous platforms but not all of these have pre-built wheels
available. To prevent your users from running into issues when installing
your project please list a python-zlib-ng dependency as follows.setup.cfg:install_requires =
    zlib-ng; platform.machine == "x86_64" or platform.machine == "AMD64"setup.py:extras_require={
    ":platform.machine == 'x86_64' or platform.machine == 'AMD64'": ['zlib-ng']
},Differences with zlib and gzip modulesCompression level 1 zlib_ng has a worse compression rate than that in
zlib. For other compression levels zlib_ng compresses better.gzip_ng.openreturns a classGzipNGFileinstead ofGzipFile. Since
there are differences between the compressed ratios between levels, a
difference in naming was chosen to reflect this.gzip_ng.GzipFiledoes exist as an alias ofgzip_ng.GzipNGFilefor compatibility reasons.ContributingPlease make a PR or issue if you feel anything can be improved. Bug reports
are also very welcome. Please report them on thegithub issue tracker.AcknowledgementsThis project builds upon the software and experience of many.  Many thanks to:Thezlib-ng contributorsfor making the
zlib-ng library.TheCPython contributors.
Python-zlib-ng mimickszlibmodule.candgzip.pyfrom the standard
library to make it easier for python users to adopt it.Thegithub actions teamfor
creating the actions CI service that enables building and testing on all
three major operating systems.
Package: zlibrary-module
CryptoPriceBINPython module for searching books and fetching book links from ZlibHow this worksScraps the information from the HTML of the page usingbeautifulsoup4.RequirementsBeautifulSoup4pip install bs4Requestspip install requestsInstallationpip install zlibrary_moduleUsagefromzlibrary_moduleimportzlibzlib.search("The Alchemist")zlib.select("The Alchemist",1)Output"""1.The Alchemist 1 The Alchemist (PDF)2.Saint Germain: Master Alchemist3.The Red Lion- The Elixir of Eternal Life (An Alchemist Novel) (PDF)4.The Alchemist5.Parusavedi, Alchemist in Telugu, పరుసవేది. (PDF)6.Rappers best friend : an instrumental series7.Herbal Alchemists Handbook, The: A Grimoire of Philtres. Elixirs, Oils, Incense, and Formulas for Ritual Use (PDF)8.Alchemist Ph.C-HD LIVE Operators Manual Manual (PDF)9.The Alchemist by Ben Jonson (PDF)10.The Neutronium Alchemist"""https://zlibrary.to/pdfs/the-alchemist-1-the-alchemist-pdfDisclaimerI'm in no way related to that website / person behind it / the kind of information hosted on it. The author of this library isn't responsible for what you do with this library.
Package: zlib-state
zlib-stateLow-level interface to the zlib library that enables capturing the decoding state.InstallFrom PyPi:pip install zlib-stateFrom source:pip install .Tested on Ubuntu/macOs/Windows with Python 3.7-3.12.GzipStateFileWraps Decompressor as a buffered reader.Based on my benchmarking, this is somewhat slower than python's gzip.A typical usage pattern looks like:importzlib_stateTARGET_LINE=5000# pick back up after around the 5,000th line# Specify keep_last_state=True to tell object to grab and keep the state and pos after each blockwithzlib_state.GzipStateFile('testdata/frankenstein.txt.gz',keep_last_state=True)asf:fori,lineinenumerate(f):ifi==TARGET_LINE:state,pos=f.last_state,f.last_state_poswithzlib_state.GzipStateFile('testdata/frankenstein.txt.gz')asf:f.zseek(pos,state)remainder=f.read()DecompressorVery basic decompression object that's picky and unforgiving.Based on my benchmarking, this can iterate over gzip files faster than python's gzip.A typical usage pattern looks like:importzlib_statedecomp=zlib_state.Decompressor(32+15)# from zlib; 32 indicates gzip header, 15 window sizeblock_count=0withopen('testdata/frankenstein.txt.gz','rb')asf:whilenotdecomp.eof():needed_input=decomp.needs_input()ifneeded_input>0:# decomp needs more input, and it tells you how much.decomp.feed_input(f.read(needed_input))# next_chunk may be empty (e.g., if finished with gzip headers) or may contain data.# It sends as much as it has left in its output buffer, or asks zlib to continue.next_chunk=decomp.read()# you can also pass a maximum size to take and/or a buffer to write toifdecomp.block_boundary():block_count+=1# When it reaches the end of a deflate block, it always stops. At these times, you can grab the state# if you wish.ifblock_count==4:# resume after the 4th blockstate=decomp.get_state()# includes zdict, bits, byte -- everything it needs to resume from pospos=decomp.total_in()# the current position in the binary file to resume fromprint(f'{block_count}blocks processed')# resume from somewhere in the file. Only possible spots are the block boundaries, given the statef.seek(pos)decomp=zlib_state.Decompressor(-15)# from zlib; 15 window size, negative means no headersdecomp.set_state(*state)whilenotdecomp.eof():needed_input=decomp.needs_input()ifneeded_input>0:# decomp needs more input, and it tells you how much.decomp.feed_input(f.read(needed_input))next_chunk=decomp.read()
Package: zlibtui
Z-Library Terminal User Interface (zlibtui)zlibtuiis a terminal UI forZ-LibraryDemoInstallationzlibtuiis available onPyPIpip install zlibtuiControlsGlobalesc: Quittab: Switch focusSearchenter: SearchBrowsingenter: More infoj: Scroll downk: Scroll upp: Next pageP: Previous pagel: Open linkm: Open menuMenum: Close menuj: Scroll downk: Scroll uph: Change option (left)l: Change option (right)SettingsThe preferred browser to be used when opening links can be specified by the environment variableZLIBTUI_BROWSER. The default browser is Firefox.
Package: zlib_wrapper
.. image:: https://travis-ci.org/killswitch-GUI/zlib_wrapper.svg?branch=master:target: https://travis-ci.org/killswitch-GUI/zlib_wrapper.. image:: https://coveralls.io/repos/github/killswitch-GUI/zlib_wrapper/badge.svg?branch=master :target: https://coveralls.io/github/killswitch-GUI/zlib_wrapper?branch=masterzlib_wrapper--------A very small library for building crc32 header on top of zlib (in 2.7 standard library). Was built to learn pip packaging, and implement compression before encryption for EmPyre https://github.com/adaptivethreat/EmPyre.To get up and running:>>> from zlib_wrapper import compress>>> from zlib_wrapper import decompresszlib_wrapper compression step-by-step--------To get you crc32 for supplied data or string:>>> data = "Killswitc-gui is a sick handle">>> c = compress.compress()>>> start_crc32 = ac.crc32_data(data)To get your compressed for suplied data or string:>>> comp_data = a.comp_data(data)To build your custom zlib header with crc32:>>> final_comp_data = a.build_header(comp_data, start_crc32)zlib_wrapper decompression step-by-step--------Decompression goes through crc32 checks and returns a custom dictonary object.To decompress your compressed data:>>> dec_data = b.dec_data(final_comp_data){'data': 'Killswitc-gui is a sick handle', 'header_crc32': 2727504892, 'crc32_check': True, 'dec_crc32': 2727504892}