Saravanan666/pypi-org huggingface dataset:
Package: zran
ZRANRandom read access for ZLIB, GZIP and DEFLATE file formatsDescriptionzranis a Python extension that wraps thezranlibrary, which was created by Mark Adler (the creator ofzlib). This utility will create an index that will allow you to begin decompressing DEFLATE-compressed data (ZLIB, GZIP, or DEFLATE format) from compression block boundaries on subsequent reads. This effectively allows you to randomly access DEFLATE-compressed data once the index is created.Installationzrancan be installed in your preferred Python environment via pip:python-mpipinstallzranCurrently, only macOS/Linux x86_64 and ARM64 architectures are supported. Please open an issue or submit a PR if you would like to see support for other platforms!UsageTo usezran, you need to:Create an index for a compressed fileSave this indexUse this index to access the data on subsequent readsTo create and save the index:importzranwithopen('compressed.gz','rb')asf:compressed_file=f.read()index=zran.Index.create_index(compressed_file)ThisIndexcan be written to a file (index.to_file('index.dflidx')), or directly passed tozran.deompress:start=1000length=2000data=zran.decompress(compressed_file,index,start,length)That's it!ContributingWe use the standard GitHub flow to manage contributions to this project. Check out thisdocumentationif you are unfamiliar with this process.You can install a development version ofzranvia pip as well:gitclonehttps://github.com/forrestfwilliams/zran.gitcdzran
python-mpipinstall.Then, runpytestto ensure that all tests are passing. We useblackwithline-length 120for formatting andrufffor linting. Please ensure that your code is correctly formatted and linted before submitting a PR. As far as I can tell, pip installing with the--editablecommand is not valid when the code needs to be compiled, so you will need to re-install the package if you make any changes.Similar ProjectsIf you prefer to work in the C programming language, you may want to work directly with thezransource C code in thezliblibrary. Paul McCarthy'sindexed_gziplibrary was a huge inspiration for this project, and in particular was a huge help while creating oursetup.pyfile. If you plan to work exclusively with gzip files, you may be better served by theindexed_gziplibrary. However, this project has some unique functionality that sets it apart:Use of the most up-to-date version of thezranC librarySupport for ZLIB, GZIP, and DEFLATE formatted dataGreater visibility into the contents of indexesCompression of the indexes when written to a file, leading to smaller index file sizesThe ability to modify the points contained within an index via theIndex.create_modified_index()method
Package: zrb-extras
Zrb extraszrb-extras is apypipackage.You can install zrb-extras by invoking:pip install zrb-extrasFor maintainersPublish to pypiTo publish zrb-extras, you need to have aPypiaccount:Log in or register tohttps://pypi.org/Create an API tokenYou can also create aTestPypiaccount:Log in or register tohttps://test.pypi.org/Create an API tokenOnce you have your API token, you need to create a~/.pypircfile:[distutils]
index-servers =
   pypi
   testpypi

[pypi]
  repository = https://upload.pypi.org/legacy/
  username = __token__
  password = pypi-xxx-xxx
[testpypi]
  repository = https://test.pypi.org/legacy/
  username = __token__
  password = pypi-xxx-xxxTo publish zrb-extras, you can do the following command:zrbprojectpublish-zrb-extrasUpdating versionYou can update zrb-extras version by modifying the following section inpyproject.toml:[project]version="0.0.2"Adding dependenciesTo add zrb-extras dependencies, you can edit the following section inpyproject.toml:[project]dependencies=["Jinja2==3.1.2","jsons==1.6.3"]Adding scriptTo make zrb-package-name executable, you can edit the following section inpyproject.toml:[project-scripts]zrb-extras="zrb-extras.__main__:hello"This will look forhellocallable inside of your__main__.pyfile
Package: zrcl3
py-zrcl3zack's common reusable libraryInstallationpipinstallzrcl3install from githubpipinstallgit+https://github.com/ZackaryW/py-zrcl3.gitWhy the nameZrCl3 is a catalyst, and unstable by itself (need other pieces for a working product)NoteGiven that this module is intended to only hold utility methods, it will not include any required dependencies
Package: zreion
zreionzreionis a way of quickly computing a "redshift of reionization" field using
a semi-numeric method developed inBattaglia et
al. (2013). The
method assumes the redshift of reionization for a particular point in a
cosmological volume is a biased tracer of the matter field, and can be written
as a parameterized bias function. For a full derivation and comparison with
simulations, see the linked paper.InstallationInstalling the package can be performed by checking the repo out, and then running:pip install .Dependencies should be handled automatically bypipif not already installed.Dependenciessetuptools >= 38.3cythonnumpypyfftwTestsThe repo includes a test suite, which can be invoked by runningpytestin the
top-level of the repo. In addition to the package dependencies, it requirespackaging,pytest-covandpytest-cases. These can be installed using:pip install .[test]
Package: zreprt
zreprtZAP and ZAP-like reporting facilityStructures here resemble OWASP® ZAP Traditional JSON Report, with or without Requests and Responses. Alerts are considered grouped by their info.Changes to the Traditional JSON Report format:some fields renamed, keeping original names as aliases;some (re)typing: timestamps are ISO-formatted,
some int and bool instead of strings;html tags are stripped from some fields containing descriptions.See also:https://www.zaproxy.org/docs/desktop/addons/report-generation/report-traditional-json/https://www.zaproxy.org/docs/constants/
Package: zretry
一个轻量的重试包实例代码fromzretryimportretry@retrydeffun():a=1/0fun()# 此时会不停的尝试调用直到成功, 每次尝试间隔一秒限制尝试次数fromzretryimportretry@retry(max_attempt_count=5)# 最多尝试调用5次, 超出5次后报错deffun():a=1/0fun()参数说明参数名数据类型默认值描述intervalfloat1每次尝试间隔时间max_attempt_countintNone最大尝试次数result_retry_flaganyNone如果调用的函数不报错, 它的返回值和result_retry_flag的id是同一个id, 则重试error_callbackfunctionNone每次尝试错误都会回调这个函数, 它接收一个参数, 该参数表示尝试的是哪个函数更新日志发布时间发布版本发布说明19-01-130.1.1修复对类函数使用装饰器会导致调用时报错的bug19-01-080.1.0发布第一版本项目仅供所有人学习交流使用, 禁止用于商业用途
Package: zrHAPPY
HAPPy (Hydride Analysis Package in Python)This is a Python package developed to aid in the charactacterisation and quantification of hydrides from micrographs. The main functions of this package are to:Determine the Radial Hydride Fraction (RHF)Characterise the extent of branchingDetermine the most probable crack path within a micrographHow to installInstal from PyPi link aboveHow to useEnterjupyter labinto the anaconda terminal and Jupyter lab will open in your browser.Open the example notebook, provided with the folder downloaded earlier.Examples of how to use the software are included, as well as an example micrograph.Documentationhappy-hydride-analysis-package-in-python.readthedocs.ioCreditsThe software uses the following open source packages:jupyter-notebooknumpymatplotlibscikit-imagescipyskannetworkxtoolzmatplotlib-scalebarContactsMiss Mia Maric (mia.maric@manchester.ac.uk)Dr Pratheek Shanthraj (pratheek.shanthraj@manchester.ac.uk)Dr Rhys Thomas (rhys.thomas@manchester.ac.uk)Dr Michael Atkinson (michael.atkinson@manchester.ac.uk)Dr Juan Nunez-Iglesias (juan.nunez-iglesias@monash.edu)
Package: zrouter
zrouter基于Flask的路由工具库，集成登录验证、权限控制、日志记录、RESTful API快速构建等功能。安装pipinstallzrouter基本使用# 定义路由器router=Router('body',__name__,url_prefix='/body')# 添加单一路由@router.add('/article',methods=['GET'])defget_article(article_id:int):returnArticleMapper.get_json(article_id)@router.add('/article',methods=['POST'])defpost_article(article_id:int,data:dict):returnArticleMapper.update(article_id,data)# 添加REST资源router.add_resource('/metric',MetricResource)# 批量添加REST资源router.add_resources({'/metric':MetricResource,'/sport':SportResource,'/entry':EntryResource,'/entry/stat':EntryStatResource,'/punch':PunchResource,'/punch/stat':PunchStatResource})自定义通过继承实现用户验证方法、错误处理方法。fromzrouterimportRouterasRouter_classRouter(Router_):defverify_user(self):# 通过继承在此添加代码，实现用户验证、日志记录defhandle_error(self,e):# 通过继承在此添加代码，实现错误处理
Package: zroya
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)[![PyPI version](https://badge.fury.io/py/zroya.svg)](https://pypi.python.org/pypi/zroya/)[![PyPI status](https://img.shields.io/pypi/status/zroya.svg)](https://pypi.python.org/pypi/zroya/)[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://gitHub.com/malja/zroya/graphs/commit-activity)# zroya2Zroya is a Python package for creating native Windows notifications.In contrast to first version of zroya, zroya2 is a Python extension built around C++[WinToast](https://github.com/mohabouje/WinToast) library.**Note**: Zroya2 is in beta testing. I would be grateful for any bug reports.## PrerequisitesThere are no requirements at the moment.## InstallationZroya2 is now available from pypi:```python -m pip install zroya```## Example```pythonimport zroya# Initialize zroya module. Make sure to call this function.# All parameters are requiredzroya.init("YourAppName", "CompanyName", "ProductName", "SubProduct", "Version")# Create notification template. TYPE_TEXT1 means one bold line withou image.template = zroya.Template( zroya.TemplateType.Text1 )# Set first linetemplate.setFirstLine("My First line")# Save notification id for later usenotificationID = zroya.show(template)# .. do something, maybe sleep?# Hide notificationzroya.hide(notificationID)```## DocumentationYou may find some limited documentation on [Zroya Page](https://malja.github.io/zroya)
Package: zrxp
ZRXP LibLibrary to read and write ZRXP Files.Written in Rust with a Python APIRunInside your Python Environment runpip install zrxpThen you can start Pythonpython>>fromzrxpimportread,write,writes>>data=zrxp.read("test.zrxp")# Pandas or Polars DataFrame>>data=pd.DataFrame(...)>>metadata={...}# writes to string>>string_zrxp=zrxp.writes(data,metadata)# writes to file>>zrxp.write("write.zrxp",data,metadata)
Package: zs
ZS is a simple, read-only, binary file format designed for
distributing, querying, and archiving arbitrarily large
record-oriented datasets (up to tens of terabytes and beyond). It
allows the data to be stored in compressed form, while still
supporting very fast queries for either specific entries, or for all
entries in a specified range of values (e.g., prefix searches), and
allows highly-CPU-parallel decompression. It also places an emphasis
on data integrity – all data is protected by 64-bit CRC checksums –
and on discoverability – every ZS file includes arbitrarily detailed
structured metadata stored directly inside it.Basically you can think of ZS as a turbo-charged replacement for
storing data in line-based text file formats. It was originally
developed to provide a better way to work with the massiveGoogle N-grams,
but is potentially useful for data sets of any size.Documentation:http://zs.readthedocs.org/Installation:You need either Python2.7, or else Python3.3 or greater.Becausezsincludes a C extension, you’ll also need a C compiler
and Python headers. On Ubuntu or Debian, for example, you get these
with:sudo apt-get install build-essential python-devOnce you have the ability to build C extensions, then on Python
3 you should be able to just run:pip install zsOn Python 2.7, things are slightly more complicated: here,zsrequires thebackports.lzmapackage, which in turn requires the
liblzma library. On Ubuntu or Debian, for example, something like
this should work:sudo apt-get install liblzma-dev
pip install backports.lzma
pip install zszsalso requires the following packages:six,docopt,requests. However, these are all pure-Python packages which pip
will install for you automatically when you runpip install zs.Downloads:http://pypi.python.org/pypi/zs/Code and bug tracker:https://github.com/njsmith/zsContact:Nathaniel J. Smith <nathaniel.smith@ed.ac.uk>Developer dependencies (only needed for hacking on source):Cython: needed to build from checkoutnose: needed to run testsnose-cov: because we use multiprocessing, we need this package to
get useful test coverage informationnginx: needed to run HTTP testsLicense:2-clause BSD, see LICENSE.txt for details.
Package: zs2decode
zs2decode is a Python (2.7, 3.3, 3.4, 3.5, 3.6) implementation of a
decoder for Zwickzs2files.zs2files contain measurements and meta data. zs2decode is able to
parse these files. It contains support functions to output the result as
text file or XML for further processing.
The following script converts azs2file into XML:import zs2decode.parser
import zs2decode.util

zs2_file_name = 'my_data_file.zs2'
xml_output_file = 'my_data_file.xml'

# load and decompress file
data_stream = zs2decode.parser.load(zs2_file_name)
# separate binary data stream into chunks
raw_chunks = zs2decode.parser.data_stream_to_chunks(data_stream)
# convert binary chunk data into lists of Python objects
chunks = zs2decode.parser.parse_chunks(raw_chunks)
# output as text file
with open(xml_dump_file, 'wb') as f:
    f.write( zs2decode.util.chunks_to_XML(chunks) )An example script to extract measurement time series from the XML is
provided in theexamplesfolder.Documentation is available athttp://zs2decode.readthedocs.org/and source code athttps://github.com/cpetrich/zs2decode.git.
Package: zs-amazon-buddy
amazon_buddyDescriptionAmazon scraper.Installpipinstallamazon_buddy# orpip3installamazon_buddyUsageimportjsonfromamazon_buddyimportAmazonBuddy,Category,SortTypeproducts=AmazonBuddy.search_products('face wash',sort_type=SortType.PRICE_HIGH_TO_LOW,min_price=0,category=Category.BEAUTY_AND_PERSONAL_CARE,max_results=1000,debug=True)print(products)reviews=AmazonBuddy.get_reviews(asin='B0758GYJK2')print(reviews)
Package: zs.bibtex
This package for now only includes a quite basic parser for BibTeX which
converts a bibliography and its entries into simple dict-like data structures
and also checks crossreferences if used.WarningThe parser does not (and probably never will) support some of the more
advanced BibTeX-features like preambles.It also doesn’t convert things like accented characters into unicode but
leaves them as they were in the original input.UsageA simple example on how to use it:from zs.bibtex.parser import parse_string

data = '''@article{mm09,
    author = {Max Mustermann},
    title = {The story of my life},
    year = {2009},
    journal = {Life Journale}
}'''

bibliography = parse_string(data)
article = bibliography['mm09']A bibliography as well as each entry in it offers avalidate()method
which checks aspects like cross-references on the bibliography and fields on
the entries. It also supports an optionalraise_unsupportedkeyword-argument which raises an exception once a possibly unsupported field
is used in an entry.The information about what fields are required and optional for what kind of
entry is based on theBibTeX articleon Wikipedia.If you’re working with a file you can also use a small helper function calledparse_file(file_or_path,encoding='utf-8',validate=False)which works on a
given filepath or file-like object and returns a bibliography object for the
content of that file.Custom entry typesOut of the box zs.bibtex supports following entry types for validation:articlebookbookletincollectioninproceedingsconferenceinbookmanualmasterthesismiscphdthesisproceedingstechreportunpublishedFor details on which of these requires what fields please take a look at thezs.bibtex.structuresmodule.But if you are in a situation where you need a different entry type, you can
also easily register your own.First you have to create a subclass of thezs.bibtex.structures.Entryclass:from zs.bibtex import structures


class MyEntryType(structures.Entry):
    required_fields = ('required_field_1', ('either_this', 'or_that', ), )
    optional_fields = ('optional_field_1', )and then simply register it:structures.TypeRegistry.register('mytype', MyEntryType')
Package: zscaler-python-sdk
Zscaler Python SDKThis is a Python SDK for Zscaler Internet Access. This client library is designed to support the Zscaler Internet Access (ZIA) API. Now This library does not support Zscaler Private Access (ZPA), but this will be implemented in the future.
This SDK has been developed mainly using Python 3.9.0 .NOTE: This repository is not official. Zscaler does not support this repository.PreparationYou need a ZIA credentials like below.ZIA Admin Username (likeadmin@example.com)ZIA Admin PasswordZIA Hostname (likezscaler.net)ZIA APIKEY (You need to request an api key to Zscaler support team.)Set profileIf you have verified your credentials, set up your credentials to use this repository. Please replace/Users/utah18to your arbitrary directory path.$ mkdir /Users/utah18/.zscaler && cat > /Users/utah18/.zscaler/config.ini <<EOF
[zia]
USERNAME=example@example.com
PASSWORD=P@ssw0rd
HOSTNAME=zscaler.net
APIKEY=xxxxxxxxxxxxxxxxxxxxxxx
EOFClone and Install RepositoryIn this case, we usepoetry. If you don't have this, please install poetry fromHERE$ poetry add zscaler-python-sdkQuick StartAfter installing, you can try below to check if you could use this library.$ python
$ from zscaler_python_sdk.zia import Zia
$ zia = Zia("/Users/utah18/.zscaler/config.ini")
$print(zia.fetch_admin_users())...
Reporting Issues
If you have bugs or other issues specifically pertaining to this library, file them here.Referenceshttps://help.zscaler.com/zia/apihttps://help.zscaler.com/zia/zscaler-api-developer-guidehttps://help.zscaler.com/zia/sd-wan-api-integration
Package: zscli
=====
zscliZeroSSL API CLI ToolFree software: MIT licenseDocumentation:https://zscli.readthedocs.io.CreditsThis package was created with Cookiecutter andrstms/cookiecutter-python-cli, a fork of theaudreyr/cookiecutter-pypackageproject template.audreyr/cookiecutteraudreyr/cookiecutter-pypackagerstms/cookiecutter-python-cli
Package: zsdk
Zscaler SDK (zsdk)The Zscaler SDK (zsdk) is a Python library designed to provide an easy and programmatic way to interact with publicly available Zscaler API endpoints. With zsdk, developers can manage and automate tasks across Zscaler's suite of security services, including Zscaler Internet Access (ZIA), Zscaler Private Access (ZPA), and Zscaler Digital Experience (ZDX).FeaturesComprehensive coverage of Zscaler's public API.Easy-to-use Pythonic interfaces.Examples and guides to get started quickly.Easy to use Docker files to build container with zsdk pre-installed.InstallationYou can install zsdk via pip:pipinstallzsdkGetting StartedHere's a quick example to get you started with ZIA:fromzsdk.ziaimportZIAzscaler=ZIA(username='YOUR_USERNAME',password='YOUR_PASSWORD',api_key='YOUR_API_KEY',cloud_name="zscaler.net")print(zscaler.locations.list())See theexamplesdirectory for more comprehensive examples and thedocumentationfor detailed API reference.Using DockerSee theDocker instruction and discussiondocumentation.  We provide instructions on how to load
zsdk into a container using either this repos' version or the PyPi hosted version of zsdk.  We also provide
instructions on how to do so usingdockerordocker-composemethods.Support and ContributionsFor questions, issues, or contributions, please see theCONTRIBUTING.mdfile.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: zserio
Zserio PyPi package contains Zserio compiler and Zserio Python runtime. Zserio is serialization framework
available atGitHub.InstallationTo install Zserio compiler together with Zserio Python runtime, just runpip install zserioUsage from command lineConsider the following zserio schema which is stored to the sourceappl.zs:package appl;

struct TestStructure
{
    int32 value;
};To compile the schema by compiler and generate Python sources to the directorygen, you can run Zserio
compiler directly from command line by the following command:zserio appl.zs -python genThen, if you run the python by the commandPYTHONPATH="gen" pythonyou will be able to use the generated Python sources by the following python commandsimportappl.apiasapitest_structure=api.TestStructure()Usage from PythonConsider the following zserio schema which is stored to the sourceappl.zs:package appl;

struct TestStructure
{
    int32 value;
};To compile the schema by compiler and generate Python sources to the directorygen, you can run the
following python commands:importzserioapi=zserio.generate("appl.zs",gen_dir="gen")test_structure=api.TestStructure()For convenience, the methodgeneratereturns imported API for generated top level package.Alternatively, you can run zserio compiler directly by the following python commands:importsysimportimportlibimportzseriocompleted_process=zserio.run_compiler(["appl.zs","-python","gen"])ifcompleted_process.returncode==0:sys.path.append("gen")api=importlib.import_module("appl.api")test_structure=api.TestStructure()
Package: zsfile
zsfilezstandard compress and decompress tool.Installpip3 install zsfileCommand Usagetest@test Downloads % zsf --help
Usage: zsf [OPTIONS] INPUT

  Zstandard compress and decompress tool.

Options:
  -d, --decompress   force decompression. default to false.
  -o, --output TEXT  Output filename.
  --help             Show this message and exit.Examplestest@test test01 % ls    
mingw-w64-x86_64-file-5.39-2-any.pkg.tar.zst
test@test test01 % zsf -d mingw-w64-x86_64-file-5.39-2-any.pkg.tar.zst
decompressing file mingw-w64-x86_64-file-5.39-2-any.pkg.tar.zst to mingw-w64-x86_64-file-5.39-2-any.pkg.tar...
test@test test01 % ls
mingw-w64-x86_64-file-5.39-2-any.pkg.tar	mingw-w64-x86_64-file-5.39-2-any.pkg.tar.zst
test@test test01 % file mingw-w64-x86_64-file-5.39-2-any.pkg.tar.zst 
mingw-w64-x86_64-file-5.39-2-any.pkg.tar.zst: Zstandard compressed data (v0.8+), Dictionary ID: None
test@test test01 % file mingw-w64-x86_64-file-5.39-2-any.pkg.tar
mingw-w64-x86_64-file-5.39-2-any.pkg.tar: POSIX tar archive
test@test test01 %Releasesv0.1.0First release.