Saravanan666/pypi-org huggingface dataset:
Package: zc.signalhandler
This package allows registration of signal handlers fromZConfigconfiguration files within the framework provided by the Zope Toolkit.Any number of handlers may be registered for any given signal.To use this from yourzope.conffile, ensure this package is
available to your application, and include a section like this:%import zc.signalhandler

<signalhandlers log-handling>
   USR1  ZConfig.components.logger.loghandler.reopenFiles
   USR1  yourapp.tasks.doSomethingUseful
</signalhandlers>See theREADME.txtinside thezc.signalhandlerpackage for
complete documentation.Release history1.2 (2010-11-12)Moved development to zope.org, licensed under the ZPL 2.1.1.1 (2007-06-21)This was a Zope Corporation internal release.Fix compatibility withzope.app.appsetup.product.1.0 (2007-06-21)Initial Zope Corporation internal release.
Package: zc.table
This is a Zope 3 extension that helps with the construction of (HTML) tables.
Features include dynamic HTML table generation, batching and sorting.CHANGES1.0 (2023-02-17)Drop support for Python 2.7, 3.5, 3.6.Add support for Python 3.5, 3.7, 3.8, 3.9, 3.10, 3.11.0.10.0 (2020-02-06)Make Python 3 compatible0.9.0 (2012-11-21)Using Python’sdoctestmodule instead of deprecatedzope.testing.doctest.Removed dependency onzope.app.testingandzope.app.form.Add test extra, movezope.testingto it.0.8.1 (2010-05-25)Replaced html entities with unicode entities since they are xthml valid.0.8.0 (2009-07-23)Updated tests to latest packages.0.7.0 (2008-05-20)Fixed HTML-encoding of cell contents forGetterColumn.Addhrefattributes (for MSIE) and fix up JavaScript on Next/Prev links
for batching.Update packaging.0.6 (2006-09-22)Initial release on Cheeseshop.
Package: zc.thread
Thread-creation helperThe thread-creation API provided by the Pythonthreadingmodule is
annoying. :)This package provides a very simple thread-creation API that:Makes threads daemonic and allows daemonicity to be passed to the
constructor.  For example:zc.thread.Thread(mythreadfunc)Starts a daemonic thread named'mythreadfunc'runningmythreadfunc.Allows threads to be defined via decorators, as in:import zc.thread

@zc.thread.Thread
def mythread():
    ...In the example above, a daemonic thread namedmythreadis
created and started.  The thread is also assigned to the variablemythread.You can control whether threads are daemonic and wether they are
started by default:import zc.thread

@zc.thread.Thread(daemon=False, start=False)
def mythread():
    ...After a thread finishes, you can get the return value of the
target function from the thread’svalueattribute, or, if the
function raises an exception, you can get the exception object from
the thread’sexceptionattribute. (This feature was inspired by
the same feature in gevent greenlets.)If a thread raises an exception (subclass of Exception), the
exception is logged and a traceback is printed to standard error.A restart argument can be used to rerun a thread target function if
there’s an uncaught exception.  Value passed to the restart argument
is passed to time.sleep before restarting the function.There’s also a Process constructor/decorator that works like Thread,
but with multi-processing processes, and without thevalueandexceptionattributes.Changes1.0.0 (2015-06-17)Python 3 supportThread names now include a function’s module name.Unhandled exceptions in thread and process targets are now logged
and printed with tracebacks.A restart argument can be used to automatically restart thread
targets after a rest.0.1.0 (2011-11-27)Initial release
Package: zc.wsgirunner
Run WSGI applications defined by paste.deploy configurationsContentsRun WSGI applications defined by paste.deploy configurationsLogging and configurationLogging sectionsConfiguration sectionsChangesA script,run-wsgiis provided that runs WSGI applications defined
inPaste Deploymentconfiguration
files.  For example, given a configuration file,paste.ini:[app:main]
use = egg:bobo
bobo_resources = myapp

[pipeline:debug]
pipeline = debug reload main

[filter:reload]
use = egg:bobo#reload
modules = zc.wsgirunner.tests

[filter:debug]
use = egg:bobo#debug

[server:main]
use = egg:waitress
host = localhost
port = 8080

[configure:main]
use = call:myapp:config
key = 42

[logging:main]
log = INFOWe can run the applicaton with[1]:run-wsgi paste.iniIf we want to run the debug pipeline:run-wsgi -a debug paste.iniLogging and configurationzc.wsgirunnerextends the Paste Deploy vocabulary of sections withloggingandconfigurationsections.As with the other sections, you can have multiple sections and select
which one you want with command-line options.Logging sectionsLogging sections come in 2 flavors, ZConfig, and basic.  If a logging
section has aconfigoption, its value is passedZConfig’s[2]configureLoggersmethod. Otherwise, the options in the logging section are passed tologging.basicConfig.Configuration sectionsConfiguration sections identify a configuration function with auseoption, as with other Paste Deploy sections.  The
configuration object is called with global defaults and with options
from the configuration section.Changes0.1.0 (2014-04-12)Initial release[1]You should use a tool likeZDaemonorsupervisordwithrun-wsgiin production.run-wsgidoesn’t daemonize itself.[2]ZConfig provides the easiest way to create non-trivial logger
configurations.Note, however, that ZConfig isn’t a dependency ofzc.wsgirunner, so if you want to use ZConfig to configure
logging, you need to install it separately.
Package: zc.zookeeper_deploy_buildout
Usage:Create a part in your rpm buildout:[zookeeper-deploy]
recipe = zc.recipe.egg
eggs = zc.zookeeper_deploy_buildout
arguments = 'APP', 'RECIPE'whereAPPthe name of your application and the name of the directory in/etcwhere deployments will be recordedRECIPEthe name of the meta-recipe to useIn development mode, you can include initlization logic to run the
recipe in development mode:[zookeeper-deploy]
recipe = zc.recipe.egg
eggs = zc.zookeeper_deploy_buildout
arguments = ‘APP’, ‘RECIPE’
initialization = zc.zookeeper_deploy_buildout.development_mode = TrueChanges0.2.0 (2012-09-25)Allow the application name (APP) to be blank or None, in which case
it’s determined from the script name.Added a -r option to specify a recipe entry point to the recipe
supplied to main.0.1.0 (2012-05-31)Initial release
Package: zc.zookeeperrecipes
devtreeThe devtree recipe sets up temporary ZooKeeper tree for a buildout:[myproject]
recipe = zc.zookeeperrecipes:devtree
import-file = tree.txtIn this example, we’re creating a ZooKeeper tree at the path/myprojectYYYY-MM-DDTHH:MM:SS.SSSSSSwith data imported from the
buildout-local filetree.txt, where YYYY-MM-DDTHH:MM:SS.SSSSSS is
the ISO date-time when the node was created.Thedevtreerecipe options are:zookeeperOptional ZooKeeper connection string.It defaults to ‘127.0.0.1:2181’.pathOptional path at which to create the tree.If not provided, the part name is used, with a leading/added.When adevtreepart is installed, a path is created at a path
derived from the given (or implied) path by adding the current date
and time to the path in ISO date-time format
(YYYY-MM-DDTHH:MM:SS.SSSSSS).  The derived path is stored a file in
the buildout parts directory with a name equal to the section name.effective-pathOptional path to be used as is.This option is normally computed by the recipe and is queryable
from other recipes, but it may also be set explicitly.import-fileOptional import file.This is the name of a file containing tree-definition text. See thezc.zkdocumentation for information on the format of this file.import-textOptional import text.Unfortunately, because of the way buildout parses configuration
files, leading whitespace is stripped, making this option hard to
specify.helper-scriptsHelper-script prefixIf provided, 4 helper scripts will be generated with the given
prefix:PREFIXexportExport a zookeepeer tree.PREFIXimportImport a zookeepeer tree.PREFIXprintPrint a zookeepeer tree.PREFIXportPrint the port of the first child of a given path.Where PREFIX is the profix given to the helper-scripts option.CleanupWe don’t want trees to accumulate indefinately.  When using a local
zookeeper (default), when the recipe is run, the entire tree is
scanned looking for nodes that havebuildout:locationproperties
with paths that no-longer exist in the local file system paths that
contain different ZooKeeper paths.If such nodes are found, then the nodes are removed and, if the nodes
had any ephemeral subnodes with pids, those pids are sent a SIGTERM
signal.Change History0.2.0 (2011-02-22)Add an option to define buildout-specific helper scripts for working
with the buildout’s ZooKeeper tree.0.1.2 (2011-02-13)Fixed: default ZooKeeper connection string wasn’t set as option andwas thus not usable from other parts.0.1.1 (2011-02-09)Fixed a packaging bug.0.1.0 (2011-02-02)Initial release
Package: zc-zookeeper-static
ZooKeeper Python bindingsThis is a self-contained distribution of the ZooKeeper Python
bindings. It should build on any unix-like system by just running thesetup.pyscript or using an install tool like pip, easy_install or
buildout. (Windows patches to the setup script are welcome. :)For more informationexceptbuilding instructions, see the file
ORIGINAL-README included in the source distribution.If you have setuptools or distribute in your python path, then you can
use thesetup.py testcommand to run the tests.  Note, however,
that the tests require that a testing ZooKeeper server be running on
port 22182 of the local machine.You can find the source code of this distribution athttps://github.com/python-zk/zc-zookeeper-staticChangelog3.4.4 (2012-09-25)Based on Zookeeper 3.4.4.Include patchhttps://issues.apache.org/jira/browse/ZOOKEEPER-1398:
zkpython corrupts session passwords that contain nulls.3.4.3-5 (2012-08-23)Based on Zookeeper 3.4.3.Include patchhttps://issues.apache.org/jira/browse/ZOOKEEPER-1398:
zkpython corrupts session passwords that contain nulls.3.4.3-4 (2012-08-16)Based on Zookeeper 3.4.3.Include patchhttps://issues.apache.org/jira/browse/ZOOKEEPER-1339:
C client didn’t build with–enable-debug.3.4.3-3 (2012-06-06)Based on Zookeeper 3.4.3.Include patchhttps://issues.apache.org/jira/browse/ZOOKEEPER-1318:
In Python binding, get_children (and get and exists, and probably others)
with expired session doesn’t raise exception properly.Include patchhttps://issues.apache.org/jira/browse/ZOOKEEPER-1431:
zkpython: async calls leak memory3.4.3 (2012-04-20)Based on Zookeeper 3.4.3.3.3.5 (2012-03-24)Based on Zookeeper 3.3.5.
Package: zd
readimport zd

with zd.open(
  "./test.zd"
) as f:
  for i in f:
    print(i)writeimport zd


# argsument level is optional, default is 10
with zd.open( "./test.zd", "w", level=10) as f:
  for i in range(10):
    f.write(i)
Package: zdas
Zencore daemon application start.Installpip install zdasUsageimport time
import threading
import signal
import zdas

stopflag = False

def main():
    def on_exit(*args, **kwargs):
        with open("backgroud.log", "a", encoding="utf-8") as fobj:
            print("process got exit signal...", file=fobj)
            print(args, file=fobj)
            print(kwargs, file=fobj)
        global stopflag
        stopflag = True
    signal.signal(signal.SIGTERM, on_exit)
    signal.signal(signal.SIGINT, on_exit)
    while not stopflag:
        time.sleep(1)
        print(time.time())

if __name__ == "__main__":
    print("start background application...")
    zdas.daemon_start(main, "background.pid", True)
Package: zdatalake
Zalando Data Lake client libraryZalando Data Lake client library helpers and CLIFree software: MIT licenseDocumentation:https://zdatalake.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-07-02)First release on PyPI.
Package: zdatasets
Welcome to zdatasets==================================================TODOimportpandasaspdfrommetaflowimportFlowSpec,stepfromzdatasetsimportDataset,Modefromzdatasets.metaflowimportDatasetParameterfromzdatasets.pluginsimportBatchOptions# Can also invoke from CLI:#  > python zdatasets/tutorials/0_hello_dataset_flow.py run \#    --hello_dataset '{"name": "HelloDataset", "mode": "READ_WRITE", \#    "options": {"type": "BatchOptions", "partition_by": "region"}}'classHelloDatasetFlow(FlowSpec):hello_dataset=DatasetParameter("hello_dataset",default=Dataset("HelloDataset",mode=Mode.READ_WRITE,options=BatchOptions(partition_by="region")),)@stepdefstart(self):df=pd.DataFrame({"region":["A","A","A","B","B","B"],"zpid":[1,2,3,4,5,6]})print("saving data_frame:\n",df.to_string(index=False))# Example of writing to a datasetself.hello_dataset.write(df)# save this as an output datasetself.output_dataset=self.hello_datasetself.next(self.end)@stepdefend(self):print(f"I have dataset\n{self.output_dataset=}")# output_dataset to_pandas(partitions=dict(region="A")) onlydf:pd.DataFrame=self.output_dataset.to_pandas(partitions=dict(region="A"))print('self.output_dataset.to_pandas(partitions=dict(region="A")):')print(df.to_string(index=False))if__name__=="__main__":HelloDatasetFlow()
Package: zdb-analysis
Z invisible DB analysisSetup withsource setup.shTo run the analysis usezdb_analyse.py:usage: zdb_analyse.py [-h] [-m MODE] [-j NCORES] [--sge-opts SGE_OPTS]
                      [-n NFILES] [-o OUTPUT]
                      config

positional arguments:
  config                Path to yaml file

optional arguments:
  -h, --help            show this help message and exit
  -m MODE, --mode MODE  Parallelisation: 'multiprocessing', 'sge', 'htcondor'
  -j NCORES, --ncores NCORES
                        Number of cores for 'multiprocessing' jobs
  --sge-opts SGE_OPTS   Options to pass onto qsub
  -n NFILES, --nfiles NFILES
                        Number of files to process. -1 = all
  -o OUTPUT, --output OUTPUT
                        Output file
Package: zdbpydra
zdbpydrais a Python package and command line utility that allows to access
JSON-LD data (with PICA+ data embedded) from the German Union Catalogue of
Serials (ZDB) via its Hydra-based API (beta).Installation… via PyPIpipinstallzdbpydraUsage ExamplesCommand Line# fetch metadata of serial titlezdbpydra--id"2736054-4"# fetch metadata of serial title (pica only)zdbpydra--id"2736054-4"--pica# query metadata of serial titles (cql-based)zdbpydra--query"psg=ZDB-1-CPO"# print help messagezdbpydra--helpHelp Messageusage: zdbpydra [-h] [--id ID] [--query QUERY] [--scroll [SCROLL]]
                [--stream [STREAM]] [--pica [PICA]] [--pretty [PRETTY]]

Fetch JSON-LD data (with PICA+ data embedded) from the German Union Catalogue
of Serials (ZDB)

optional arguments:
  -h, --help         show this help message and exit
  --id ID            id of serial title (default: None)
  --query QUERY      cql-based search query (default: None)
  --scroll [SCROLL]  scroll result set (default: False)
  --stream [STREAM]  stream result set (default: False)
  --pica [PICA]      fetch pica data only (default: False)
  --pretty [PRETTY]  pretty print output (default: False)Interpreterimportzdbpydra# fetch metadata of serial titleserial=zdbpydra.title("2736054-4")# fetch metadata of serial title (pica only)serial_pica=zdbpydra.title("2736054-4",pica=True)# fetch result page for given queryresult_page=zdbpydra.search("psg=ZDB-1-CPO")# fetch all result pages for given queryresult_page_set=zdbpydra.scroll("psg=ZDB-1-CPO")# iterate serial titles found for given queryforserialinzdbpydra.stream("psg=ZDB-1-CPO"):print(serial.title)BackgroundSeeHydra: Hypermedia-Driven Web APIsbyMarkus Lanthalerfor more information
on Hydra APIs in general.Have a look at theAPI documentationandCQL documentation(both in german)
for more information on using the ZDB JSON interface. For details regarding
the LD schema, see thelocal contextfile.Information on the PICA-based ZDB-Format can be found in the correspondingcataloguing documentationor in thePICA+/PICA3 concordance(both in german).Usage TermsZDB metadataAll metadata in the German Union Catalogue of Serials is available free of
charge for general use under the Creative Commons Zero 1.0 (CC0 1.0) license.
Most of the holding data in the ZDB is also freely available. A corresponding
tag is incorporated into the data record itself. (Source)
Package: zdd-algorithms
Zdd AlgorithmsZdd algorithms is a Python library that implements the zdd algorithms that are described on thewikipedia page. With some additional functions for creating a zdd from a set, a set from a zdd and a function to create an image of the zdd.InstallationUse the package managerpipto install zdd_algorithms.pipinstallzdd-algorithmsZero-suppressed decision diagramZdd are a special kind of binary decision diagram that represents a set of sets.This Zdd represents the set {{1,3},{2,3},{1,2}}Every node has a exactly 2 outgoing edges LO and HI. The LO edge is usally represented by a dotted line and the HI edge with a solid line.
The easiest way to get the set from a visual zdd by hand is to take every path from the root node to the {ø} node(⊤ is also often used as a label for this node).Every path represents a set and all paths combined is the set of sets that the Zdd represents.
In this example there are 3 paths from the root node to {ø}.If a node has a LO edge in the path that nodes value is ignored. All the other values together represents a set3 → 2 → {ø} This path represents the set {3,2}3 ⇢ 2 → 1 → {ø} This path represents the set {1,2}3 → 2 ⇢ 1 → {ø} This path represents the set {1,3}Therefor this zdd represents the set {{1,3},{2,3},{1,2}}UsageSince we cannot have a set of sets in python we use set of frozensets when converting a zdd to the set representation and vice versaimportzdd_algorithmsaszdd# Creates a set of frozensetsset1={frozenset({1,3}),frozenset({2,3})}# Create zdd from the set. This zdd represent now the set {{1,3},{2,3}}zdd1=zdd.to_zdd(set1)set2={frozenset({1,2})}zdd2=zdd.to_zdd(set2)# Create an union of two zddsunion=zdd.union(zdd1,zdd2)# Create .PNG image of the zdd. This needs graphviz to be installed!zdd.create_image(union)ContributingPull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.LicenseMIT
Package: zd-feishu-excel
使用前需要先在飞书上创建一个应用，申请好权限，获得 appid， secret拉一个只有自己的群，把应用机器人添加进去把要编辑的飞书excel表发到群里把 excel 的权限设置为对群成员可编辑从 excel 表的链接中获得 ss_token
如：https://aozalj10qx.feishu.cn/sheets/xxxxxxxx# 源码安装rm-rf./build# 删除原来的python3setup.pyinstall# pip 安装pipinstallzd-feishu-excel-ihttps://pypi.org/simple# 发布包python3setup.pyupload
Package: zdgram
Install :pip install -U zdgramHow to use?Config your bot :fromzdgramimportBot,typesAPI_TOKEN="API_TOKEN_HERE"bot=Bot(API_TOKEN,allowed_updates=["message"])Add handlers to recive updates from telegram:Any update from telegram:@bot.onUpdateasyncdefon_updates(bot:Bot,update:types.Update):print(update)message and edited_message:@bot.onMessage()asyncdefon_message(bot:Bot,message:types.Message):print(message)@bot.onEditedMessage()asyncdefon_edited_message(bot:Bot,message:types.Message):print(message)# Custom filterdeffilter_admin(message:types.Message):admins=[123456789,987654321]returnbool(message.from_user.idinadmins)@bot.onMessage(func=filter_admin)@bot.onEditedMessage(func=filter_admin)asyncdefon_custom_filter(bot:Bot,message:types.Message):print(message)# Echo Bot@bot.onMessage(func=lambdam:m.text)asyncdefecho(bot:Bot,message:types.Message):returnawaitbot.sendMessage(message.chat.id,message.text,entities=message.entities)Callback Queries .@bot.onCallbackQuery()asyncdefon_callback_query(bot:Bot,callback_query:types.CallbackQuery):returnawaitbot.sendMessage(callback_query.message.chat.id,callback_query.data)Inline Queries .@bot.onInlineQuery()asyncdefon_inline_query(bot:Bot,inline_query:types.InlineQuery):print(inline_query)Start the bot:importlogginglogging.basicConfig(level=logging.INFO)bot.run()Start multiple bots:importloggingfromzdgramimportrun_multiple_bots,Bot,types,enumslogging.basicConfig(level=logging.INFO)bot_1=Bot("API_TOKEN_1")bot_2=Bot("API_TOKEN_2")@bot_1.onMessage()@bot_2.onMessage()asyncdefon_message(bot:Bot,message:types.Message):returnawaitbot.sendMessage(message.chat.id,(awaitbot.getMe()).mention.markdown,parse_mode=enums.ParseMode.MARKDOWN)bot_1.run(run_multiple_bots([bot_1,bot_2]))Create Listener ( Conversation ):fromzdgramimporttypes,enums,Botbot=Bot(bot_token="")deffilter_text_and_private(m:types.Message):returnbool(m.textandm.chat.type==enums.ChatType.PRIVATE)@bot.onMessage(func=filter_text_and_private)asyncdefon_message(bot:Bot,message:types.Message):awaitbot.sendMessage(message.chat.id,"Send your name",reply_to_message_id=message.id)msg=awaitbot.listen(filter_text_and_private)returnawaitbot.sendMessage(message.chat.id,"Your name is : "+msg.text)LICENSE :MIT
Package: zdhtmlxscheduler
This package includes version 3.6 of dhtmlxscheduler.This software is allowed to be use under GPL. You need to obtain Commercial or Enterise Licenseto use it in non-GPL projects. Please contact sales@dhtmlx.com for detailsCHANGES-------*1.0.3*- Updating to dhtmlxscheduler 3.6*1.0.2*- Updating to dhtmlxscheduler 3.5- Factoring out themes into includable resources*1.0.1*- Adding missing dhtmlxscheduler resource bundles - PDF, Weeek Agenda, Offline and Mobile CSS.- Corrrecting various resource conditions not debug/no-debug modes- Fixes issue where source (uncompressed) resources would be loaded in debug mode(and vice versa)- Adding symbolic link in sources folder to point to images directory in codebase.- Fixes issue with inaccessible image resources in debug modePATCHES-------Applied patch described here http://forum.dhtmlx.com/viewtopic.php?f=6&t=13809&start=50so that dataprocessor works properly in debug mode.Added locale_recurring.jsAdded Kiswahili translations3.6Extended date format configuration for lightbox formSub-day navigation in timeline viewAbility to define custom sorting in timeline viewMulti-page export to PDF3.5Supports loading JSON directly from ConnectorsCustom events renderingTimeline view improved (support for drag, resize, event height control)New 'dhx_terrace' skinNew options for blocking datesMarking time intervalsHighlighting time intervalsNew API methods: updateView, showEvent, getRenderedEvent, getActionDataJSMessage includedGrid viewNew configuration optionsSimplified access to lightbox section objectsSupport for 'CTRL+C', 'CTRL+X', 'CTRL+V' keyboard commands3.0Version of scheduler for touch phonesWeekAgenda viewNetbook friendly lightbox formCascade event displaySimple way to define a color for eventDrag and drop of the details formCustom buttons for the details formCurrent time marker in day and week viewMultiline header for timeline viewConfigurable work-time boundsAPI to access lightbox values2.3Map view was addedCell mode for Timeline view was addedTree mode for Timeline view was addedTooltips for all views were addedAbbility to create new events by double click or by drag-and-drop in Timeline modeAbbility to move events by drop-and-drag in Timeline modeAbbility to create new events by external drag and dropMultiselect section for details formCheckbox, combo, radio - sections for details formApi of mini-calendar extension extendedCustom form implementation simplifiedSee http://dhtmlx.com/docs/products/dhtmlxScheduler/index.shtml for details.