Saravanan666/pypi-org huggingface dataset:
Package: zipreport
zipreportVery lightweight module for creating PDF reports with PythonMotivationThis library is meant to be a drop-in replacement for report generation I was doing with Filemaker Pro and
operates under about the same principles as print layout on Filemaker Pro. You, the client, have a list of
ordered records, which can be any subscriptable thing but in my example aredicts, and these are fed into
aDocumentobject you create and customize which establishes how fields in each record are formatted and
laid out on the page, the formatting of page headers and footers, and summary headers and footers.ExampleIn theexampleyou can see how a basic report is customized. All formatting is
contained in aDocumentobject, drawsPartobjects in various parts of the document based on certain
conditions. Thepage_headerandpage_footerparts are drawn at the top and bottom of each page.Each record to be printed is displayed in acontent_part:content_part=Part(elements=[Element(x=0.,y=0.,width=72.,height=18.,content=FormattedText("N:$name",font_family='Futura',font_size=9.)),Element(x=96.,y=0,width=72.*4.,height=4.*72.,can_shrink=True,content=FormattedText("$comment",font_family='Futura',font_size=9.)),Element(x=72.*6,y=0.,width=36,height=18,content=FormattedText("$rn",font_family='Futura',font_size=9.,alignment='r'))],minimum_height=72.)APartcontains a list ofElementobjects which define a rectangle (positioned relative to the origin,
the upper-left corner of the parentPart), and each element has a correspondingContent.Contentobjects contain specific style and content. TheFormattedTextcontent has a format string which can
substitute values from a content object. For example above, the first element reades the 'name' key from
the content object and substitutes it into the format string.Under ContructionThis project is still under contruction but functions on a basic level.
Package: ziproto
ZiProtoZiProto is used to serialize data, ZiProto is designed with the intention to be
used for transferring data instead of using something like JSON which can use
up more bandwidth when you don't intend to have the data shown to the public
or end-userSetuppythonsetup.pyinstallUsageTo encode data, this can be done simply>>importziproto>>ziproto.encode({"foo":"bar","fruits":['apple','banana']})bytearray(b'\x82\xa6fruits\x92\xa5apple\xa6banana\xa3foo\xa3bar')The same can be said when it comes to decoding>>importziproto>>Data=ziproto.encode({"foo":"bar","fruits":['apple','banana']})>>ziproto.decode(Data){'foo':'bar','fruits':['apple','banana']}To determine what type of variable you are dealing with, you could use the decoder>>importziproto>>fromziproto.ZiProtoDecoderimportDecoder>>Data=ziproto.encode({"foo":"bar","fruits":['apple','banana']})>>SuperDecoder=Decoder(Data)>>print(SuperDecoder.get_type())ValueType.MAPLicenseCopyright2018 Zi Xing NarrakasLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS"BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: zipseeker
Similar systems/projects:TheNginx zip module. Only for Nginx, so
can’t be used with other webservers.python-zipstream. Does not
support calculating the file size beforehand or seeing through the file.Usage:importzipseeker# Create an indexfp=zipseeker.ZipSeeker()fp.add('some/file.txt')fp.add('another/file.txt','file2.txt')# Calculate the total file size, e.g. for the Content-Length HTTP header.contentLength=fp.size()# Calculate the last-modified date, e.g. for the Last-Modified HTTP header.lastModified=fp.lastModified()# Send the ZIP file to the client# Optionally add the start and end parameters for range requests.# Note that the ZIP format doesn't support actually skipping parts of the file,# as it needs to calculate the CRC-32 of every file at the end of the file.fp.writeStream(outputFile)Why?While the file size of a ZIP file usually can’t be calculated beforehand due to
compression, this is actually optional. The headers itself also have a pretty
constant size. That means that the whole file can have a predetermined file size
(and modtime).This is useful when you want to provide ZIP downloads of large directories with
uncompressable files (e.g. images). The specific use case I created this media
file for was to provide downloads of whole photo albums without such
inconveniences as requesting a downloading link in an e-mail, using a lot system
resources for the creation of temporary files, and having to delete these files
afterwards.Of course, it’s possible to just stream a ZIP file, but that won’t provide any
progress indication for file downloads and certainly doesn’t supportRange
requests.For more information, see theNginx zip module.TODOImplement actual seeking in the file - this should be doable.Use a CRC-32 cache that can be shared by the calling module.
Package: zipstreamer
# ZipStreamerZipStreamer is a Python library for generating ZIP files on-the-fly with ZIPfile size information.This library was implemented using logic from Python's `zipfile` library andGolang's `archive/zip` library.```pythonz = ZipStream(files=[ZipFile('file.txt', 4, lambda: StringIO('test'), None, None),ZipFile('emptydir/', None, None, None, None),ZipFile('dir/remote.txt', remote_file_size, get_remote_file, None, None),])size = z.size()res = Response(z.generate(), mimetype='application/zip')res.headers['Content-Length'] = str(size)```## Installation```pip install zipstreamer```## Examples```pip install flask requestsPYTHONPATH=. FLASK_APP=examples/flask_example.py flask run```## Testing```pipenv install --dev --skip-lockpipenv run nosetests```Testing multiple versions:```pip install pyenv tox tox-pyenvpyenv install 2.7.14pyenv install 3.4.8pyenv install 3.5.5pyenv install 3.6.4pyenv install 3.7-devpyenv local 2.7.14 3.4.8 3.5.5 3.6.4 3.7-devtox```
Package: ziptastic-python
Official Ziptastic Python LibraryPython library forGetZiptastic.comInstallation>>> pip install ziptastic-pythonRunning tests$ nosetestsRunning tests with coverage$ nosetests –with-coverage –cover-package=ziptasticUsageForward geocoding>>> from ziptastic import Ziptastic
>>> api = Ziptastic('<your api key>')
>>> result = api.get_from_postal_code('48867')Reverse geocoding>>> from ziptastic import Ziptastic
>>> api = Ziptastic('<your api key>')
>>> result = api.get_from_coordinates('42.9934', '-84.1595')
Package: zip-tax
===========Zip-tax===========A client library for `Zip-Tax.com <http://www.zip-tax.com>`_. sales tax `API <http://docs.zip-tax.com/en/latest>`_.Typical usage::#!/usr/bin/env pythonimport ziptaxZIPTAX_API_KEY = 'XXXXXXXX'ztax = ziptax.ZipTax(ZIPTAX_API_KEY)# Returns data for postalcode: 12345data = ztax.get(12345)# Printing the the various fieldsprint 'Version:', data.versionprint 'rCode', data.rCodefor i in data.results:print i.geoPostalCodeprint i.geoCityprint i.geoCountyprint i.geoStateprint i.taxSalesprint i.taxUseprint i.txbServiceprint i.txbFreightprint i.stateSalesTaxprint i.stateUseTaxprint i.citySalesTaxprint i.cityUseTaxprint i.cityTaxCodeprint i.countySalesTaxprint i.countyUseTaxprint i.countyTaxCodeprint i.districtSalesTaxprint i.districtUseTaxInstallation============**Automatic installation**::pip install ziptaxZip-tax is listed in PyPI and can be installed with pip or easy_install.**Manual installation**: Download the latest source from `PyPI<http://pypi.python.org/pypi/ziptax>`_... parsed-literal::tar xvzf ziptax-$VERSION.tar.gzcd ziptax-$VERSIONpython setup.py buildsudo python setup.py installThe Zip-tax source code is `hosted on GitHub <>`_.TODO====* Write tests* Validate input parameters* Handle empty results.
Package: ziptool
ZIPtoolThis tool is designed to analyze microdata from the American Community Survey (ACS) on a ZIP-code level. The Census Bureau publishes microdata only on a Public Use Microdata Area (PUMA) basis, so this package converts ZIP to PUMA and returns the relevant data as either summary statistics or the raw data.RequirementsThis project requires Python 3.8.0 or higher. Install using:Getting StartedYou can find the project's documentationhere.DevelopmentThis project is in the early stages of development, so please emailjoshua_neronha@brown.eduwith any problems you encounter.
Package: zipwalk
zipwalkA very simple walker that recursively walks through nested zipfilesAboutThis project was created because I needed a way to iterate over nested zipfiles
without unzipping them.InstallpipinstallzipwalkUsageIt has a similar interface toos.walk:fromzipwalkimportzipwalkforroot,zips,filesinzipwalk('tests/1.zip'):print('root:',root.filename)print('zips:',zips)print('files:',files)# output:# root: tests/1.zip# zips: {'2.zip'}# files: {'1c.txt', 'dir/d1.txt', '1b.txt', '1a.txt'}# root: 2.zip# zips: set()# files: {'2c.txt', '2b.txt', '2a.txt'}rootis anZipFileinstance opened on read mode,r. All zip files are
opened usingwithcontext manager and will be closed once the generator is
exhausted.You can use the zip walker like the following:frompathlibimportPathfromzipfileimportZipFilefromzipwalkimportzipwalkzipwalk(ZipFile('tests/1.zip'))zipwalk(Path('tests/1.zip'))zipwalk('tests/1.zip')
Package: zirc
Quick Startimportzirc,sslclassBot(zirc.Client):def__init__(self):self.connection=zirc.Socket(wrapper=ssl.wrap_socket)self.config=zirc.IRCConfig(host="irc.freenode.net",port=6697,nickname="zirctest",ident="bot",realname="test bot",channels=["##chat"],caps=zirc.Caps(zirc.Sasl(username="username",password="password")))self.connect(self.config)self.start()defon_privmsg(self,event,irc):irc.reply(event,"It works!")#Or alternatively:#irc.privmsg(event.target, "It works!")Bot()This library implements the IRC protocol, it’s an event-driven IRC
Protocol framework.InstallationPyPisudo pip install zirc
sudo pip3 install zircGithubsudo pip install git+https://github.com/itslukej/zirc.git
sudo pip3 install git+https://github.com/itslukej/zirc.gitGithub will contain the latest bug fixes and improvements but sometimes also “bad quality” code.FeaturesAutomatic PING/PONG between the serverIRC Message parsingA simple set up and connection methodEasy installationEasy CTCP Set-upIPv6To use IPv6 withzirc.Socket, you can use the familysocket.AF_INET6:importsocketself.connection=zirc.Socket(family=socket.AF_INET6)ProxyInitializezirc.Socketwith argumentsocket_class:self.connection=zirc.Socket(socket_class=zirc.Proxy(host="localhost",port=1080,protocol=zirc.SOCKS5))ExamplesYou canfind examples for zIRC by me and other users on
CodeBottleIdeasMultiple connection supportTODOMore documentationContributingTalk to us on #zirc at FreenodePlease discuss code changes that significantly affect client use of the
library before merging to the master branch. Change the version insetup.pyahead if the change should be uploaded to PyPi.
Package: ziroom-watcher
# ziroom_watcher监视自如房源，当状态更新时获得邮件更新## 安装`pip install ziroom_watcher`## 用法```pyfrom ziroom_watcher import Watcherwatcher = Watcher('http://www.ziroom.com/z/vr/1234567.html')watcher.config({'username': '*****@qq.com','password': '********',})watcher.watch()```
Package: zither
Command-line tool to pull raw depths and alt freqs from BAM file(s) based on an existing VCF, writing output as new VCF to stdout.The official repository is at:https://github.com/umich-brcf-bioinf/ZitherQuickstartRead a single BAM file$ zither –bam examples/explicit_bam/Sample_X.bam examples/explicit_bam/input.vcf > output.vcfGiven a VCF and a BAM file, read positions in the input VCF and corresponding pileups
from Sample_X.bam.Read a set of matched VCF sample names and BAM files$ zither examples/matching_names/input.vcf > output.vcfGiven a VCF and a collection of BAM files whose file names
match the VCF sample names, reads positions from the
input VCF and corresponding BAM pileups.Explicitly map VCF sample names to BAM files$ zither –mapping_file=examples/mapping_files/mapping_file.txt examples/mapping_files/input.vcf > output.vcfGiven a VCF, a collection of BAMs, and a file that maps sample names to BAM paths,
reads positions from the input VCF and corresponding pileups
from BAM files names.The mapping file is a tab-separated text file where each line has a sample
name and the path to the corresponding BAM file. Paths to BAM files can be
absolute or relative; relative paths are resolved relative to the directory
that contains the mapping file.Emailbfx-zither@umich.edufor support and questions.UM BRCF Bioinformatics CoreChangelog0.2 (9/3/2015)Adjusted tags to include total and unfiltered depth and alt freq.Added basecall quality filteringAdded depth cutoffAdded support for Python30.1 (8/6/2015)Initial ReleaseZither is written and maintained by the University of Michigan
BRCF Bioinformatic Core; individual contributors include:Chris GatesDivya Kriti
Package: zjecfsdagl
Zjecfsdagl=================This API SDK was automatically generated by [APIMATIC Code Generator](https://apimatic.io/).This SDK uses the Requests library and will work for Python ```2 >=2.7.9``` and Python ```3 >=3.4```.How to configure:=================The generated code might need to be configured with your API credentials.To do that, open the file "Configuration.py" and edit its contents.How to resolve dependencies:===========================The generated code uses Python packages named requests, jsonpickle and dateutil.You can resolve these dependencies using pip ( https://pip.pypa.io/en/stable/ ).1. From terminal/cmd navigate to the root directory of the SDK.2. Invoke ```pip install -r requirements.txt```Note: You will need internet access for this step.How  to test:=============You can test the generated SDK and the server with automatically generated testcases. unittest is used as the testing framework and nose is used as the testrunner. You can run the tests as follows:1. From terminal/cmd navigate to the root directory of the SDK.2. Invoke ```pip install -r test-requirements.txt```3. Invoke ```nosetests```How to use:===========After having resolved the dependencies, you can easily use the SDK following these steps.1. Create a "zjecfsdagl_test.py" file in the root directory.2. Use any controller as follows:```pythonfrom __future__ import print_functionfrom zjecfsdagl.zjecfsdagl_client import ZjecfsdaglClientapi_client = ZjecfsdaglClient()controller = api_client.clientresponse = controller.get_basic_auth_test(<required parameters if any>)print(response)```
Package: zjpf
PyFunctionUseful Python functions.PyPiZHANGJunPythonfunctions (zjpf).Installpip install zjpfUse this repoimportzjpfaspfprint(dir(pf))This is not a user-oriented software package (personal use only), contact ZHANG Jun if you want to know how to use this repo该项目不面向用户，仅供开发者个人使用。若您想了解本项目功能和用法，可联系张俊。
Package: zjson
Json Database full asyncExamples•NewsAio-JsonExamplefromzjsonimportAsyncClientdb=AsyncClient(name="db.json",directory="cache")asyncdefmain():awaitdb.set(key="key",value="value")print(awaitdb.get("key"))# valueawaitdb.set(key="key2",value=[1,2,3],expire=10# expire after 10 seconds)awaitdb.sleep(10)print(awaitdb.get("key2"))# Nonedb.run(main())Installingpip3install-UzjsonCommunityJoin the telegram channel:https://t.me/Y88F8
Package: zjucrawler
ZJU Crawler介绍浙江大学学生教师信息爬虫，从教务网、查老师获取对应信息。可以结合QQ机器人等食用。该包目前集成了两个爬虫：学生个人信息爬虫加权均绩加权四分制均绩（出国，旧）加权4.3分制均绩（出国，新）加权百分制成绩考试信息（时间、考场、……）查老师网站老师信息爬虫（评分，对应课程等）未来将会添加学在浙大的爬虫（如果修好了）。安装PyPipip install zjucrawler手动安装下载后进入setup.py所在文件夹执行pip install .即可。也可以下载.whl文件安装。使用示例导入importzjucrawler# or:fromzjucrawlerimportchalaoshi# Chalaoshi website(unofficial)fromzjucrawlerimportzju# Fetch from official websites教师importasynciofromzjucrawlerimportchalaoshi# Chalaoshi website(unofficial)asyncdefmain():teacher=input("teacher ID >>>")print(awaitchalaoshi.get_teacher_info(int(teacher)))# 获取教师信息# search_teachers 通过教师姓名/缩写获取教师列表# get_course_info 获取课程平均绩点、标准差loop=asyncio.get_event_loop()loop.run_until_complete(main())学生importasynciofromzjucrawlerimportzju# Fetch from official websitesasyncdefmain():username=input("username>>>")pwd=input("pwd>>>")test=zju.Fetcher(username,pwd,simulated=False)# simulated指定是否模拟浏览器进行登录print(awaittest.get_GPA())# 获取全科均绩，不含弃修# get_avg_score 获取加权平均百分制成绩# get_abroad_GPA_old 出国均绩旧（4分制） -2021级# get_abroad_GPA_new 出国均绩新（4.3分制）2022级-exams=list(awaittest.get_all_exams())# 获取所有考试信息print(exams)print(test.__dict__)loop=asyncio.get_event_loop()loop.run_until_complete(main())注意事项确保包中含有security.js.由于一些众所周知的神秘因素可能无法使用查老师（需要内网），请自行解决:)
Package: zk
A python binding tozipkin.Changelog0.8.5  (2021-09-20)Always Send a Trace-Id event if the trace has not be sent to zipkin (slow query logs)0.8.4  (2021-07-21)Fix django issue on missing trace.0.8.3  (2021-06-28)Fix issue for django on slow request logs. The reset of the stack must
be done on every requests.0.8.2  (2021-06-28)Ensure we never raise an exception if we cannot collect a trace,
avoid side effect to clients.0.8.1  (2021-06-25)Hotfix Pyramid slow query logger that does not cleanup the trace stack.0.8.0  (2021-06-25)Rewrite Pyramid binding.Add settings for pyramid to log slow queries only with a configurable time.Add a setting to list what library should be traced.Make socket timout configurable and change default timeout to 1 second.0.7.2  (2021-06-22)Make the scribe async/sync socket configurableAdd a middleware/setting for Django to track only slow query0.7.1  (2021-06-22)Add a Trace context manager for more flexibilityAdd django support using a django middleware and app.Add psycopg2 cursor support to trace sql queryAdd an http client (synchronous) to push trace, client transport is
configurable.0.6.10 (2020-01-28)update logging level to avoid errors logs for SQL query outside http contextremove deprecated log.warn0.6.9 (2019-09-26)requests: fixup infinite recursion0.6.8 (2019-09-23)pyramid: fixup tests if zipkin not configured0.6.7 (2019-09-23)pyramid: fixup tweenview init0.6.6 (2019-09-23)pyramid: register trace in a tweenview0.6.5 (2019-09-17)advertise version in pyramid module0.6.4 (2019-09-18)do not throw exception when trying to format to thrift0.6.3 (2019-09-18)ensure zipkin does not raise when trace id is larger than expected0.6.2 (2019-09-17)do not throw warning on configuration mistakes0.6.1 (2019-09-17)fixup python2 support0.6.0 (2019-09-17)refactor pyramid pluginfix reporter0.5 (2019-09-10)Use thriftpy20.4 (2015-08-21)Flask bindingsxmlrpclib client bindingsFiltered parameters in sqlalchemy bindingImplement exponential backoff on connection0.3 (2015-02-16)Make the service name configurable for pyramid application0.2 (2015-02-16)Keep @trace usable when zipkin is not configured0.1 (2015-02-16)Initial version
Package: zkappumstad
zkApp Umstad CLI AgentIntroductionIntroducing the zkApps Umstad AI Agent, your specialized assistant in the realm of the MINA Protocol and o1js. This agent, powered by the advanced GPT language model, is tailored to support developers in creating, debugging and testing zkApps smart contracts. It offers comprehensive guidance and expertise specifically for those working on zkApps development within the MINA ecosystem.InstallationpipinstallzkappumstadIt is suggested that before using the tool create a folder and use it inside the folder.mkdirnew_foldercdnew_folderCreate zk project and wait 10-15 seconds:zkumstad-createGo into the zkapps project folder and you can optionally open the project in editor:cdinitial_project
code.Then, you can run and use the tool:zkumstad-startFeatures & ArchitectureCurrently uses our own API to send queries. No need to post your OPENAI API KEY. However, it will be needed to POST the query with OPENAI API KEY later on.Retrieval ToolsDocumentationsCode SnippetsProjectsIssuesCoder AgentGets related context and writes codeBuilds and gets errorsDebugs errorsFix and retry codeUsageCommandszkumstad-start: Runs the tool.zkumstad-create: Initialize zkapps project named initial_project.zkumstad-help: Displays commandsYou can save your conversations by writing 'save' to console as a Markdown file.You can reset the conversation by writing 'reset'.Write 'quit' to terminate the agent.SpecificationsYou Must Delete smart contract and test files from src folder before creating new contract in order to build.Best Practices for AgentSpecify your project requirements in detail and collaborate with the AI Agent.In order to query about issues, errors etc. start with "I have an issue...".SupportFor any technical issues or further inquiries, please contact our support team atberkingurcan@gmail.com.AcknowledgementsSpecial thanks to the Mina Protocol zkIgnite program for funding the project and all contributors to this project.
Package: zkcelery
# zkceleryZKCelery is a collection of helpers for easily using ZooKeeper within Celery.# InstallationSimply runpip install zkcelery# RequirementsZKCelery relies on [ZooKeeper](http://zookeeper.apache.org/).# UsageA new configuration variable is required in order to let ZKCelery know about your ZooKeeper servers:ZOOKEEPER_HOSTS = ‘localhost:2181’This is a comma-separated list of hosts to connect to.
Package: zkcluster
This library provides a framework for writing clustered services.Currently, it is derived from the basis used in HAAlchemy, and is
intended to be used withHAAlchemyandConnmon.The core of the framework is a clusterable service which can connect
with other clusterable services using a p2p system, and within the p2p
system a partial implementation of the RAFT consensus algorithm may
also be used for “leader” selection.Messaging is performed using a simple RPC scheme.
Applications which use the system only work with RPC message objects.The filedemo.pyillustrates some use of the API.The ZKCluster API is very specific to its current use cases, and is likely
not useful as a general use RPC / clustering library.
Package: zkcurvefit
zkcurvefit module has curvefit method which takes 3 arguments file-to-read, file-to-write, timestep-max , density_coeff (dilution factor), plot = “on” or “off” reads the file and curvefits every column with the initial column which should be timestep column [1:tmax].“It’s written for decaying datasets.”It write 3 files1 = all curvefit data points
2 = once in 50 curvefit data points
3 = koff values where koff = 1/tauOffFor curvefit to work best you need to have big datasets with first column is timestep with 1 increments starting with 1 since timestep 0 disrupts the curveffitting algorithm used here.