Saravanan666/pypi-org huggingface dataset:
Package: zappa-sentry
zappa-sentrySentry handler configuration with defaults for zappa lambdas.Installationpip install zappa_sentryZappa configurationSetup your sentry DSN as the value of environment variableSENTRY_DSN, either on thezappa_setting.jsonfile or in any of the other methods onhttps://github.com/miserlou/zappa/#setting-environment-variablesThen you can setup thezappa_sentry.unhandled_exceptionshandler.Example:{
    "dev": {
        ...
        "environment_variables": {
            "SENTRY_DSN": "https://*key*:*pass*@sentry.io/*project*",
            ...
        },
        "exception_handler": "zappa_sentry.unhandled_exceptions",
        ...
    },
    ...
}And that's all. Deploy your zappa function and you should see any errors appearing on sentry.If you want the exception handler to capture the exception and capture it, just replacezappa_sentry.unhandled_exceptionsbyzappa_sentry.capture_exceptions. This version won't let the exceptions propagate.Adding extra informationJust add it to the scope as normal for the new sentry-sdk:https://docs.sentry.io/enriching-error-data/context/?platform=python
Package: zappend
zappendzappendis a tool written in Python that is used for robustly creating and
updating Zarr datacubes from smaller dataset slices. It is built on top of the
awesome Python packagesxarrayandzarr.MotivationThe objective ofzappendis enabling geodata scientists and developers to
robustly create large data cubes. The tool performs transaction-based dataset
appends to existing data cubes in theZarr format. If an error
occurs during an append step — typically due to I/O problems or out-of-memory
conditions —zappendwill automatically roll back the operation, ensuring that
the existing data cube maintains its structural integrity. The design drivers
behind zappend are first ease of use and secondly, high configurability
regarding filesystems, data source types, data cube outline and encoding.The tool comprises a command-line interface, a Python API for programmatic
control, and a comprehensible documentation to guide users effectively.
You can easily installzappendas a plain Python package using eitherpip install zappendorconda install -conda-forge zappend.FeaturesThezappendtool provides the following features:Locking: While the target dataset is being modified, a file lock is
created, effectively preventing concurrent dataset modifications.Transaction-based dataset appends: On failure during an append step,
the transaction is rolled back, so that the target dataset remains valid and
preserves its integrity.Filesystem transparency: The target dataset may be generated and updated
in any writable filesystems supported by thefsspecpackage.
The same holds for the slice datasets to be appended.Dataset polling: The tool can be configured to wait for slice datasets to
become available.Dynamic attributes: Use syntax{{ expression }}to update the target
dataset with dynamically computed attribute values.CLI and Python API: The tool can be used in a shell using thezappendcommand or from Python. When used from Python using thezappend()function, slice datasets can be passed as local file
paths, URIs, as datasets of typexarray.Dataset, or as customzappend.api.SliceSourceobjects.More about zappend can be found in itsdocumentation.
Package: zappix
zappix - a package for Zabbix sender and get.zappix aims to be a drop-in replacement for zabbix_get as well as zabbix_sender.
Its components are available not only as a module but from the command line as well.zappix requires Python3 and is guaranteed to work with 3.6.Instalationzappix is not dependant on any third party modules.
The easiest way to install it with pip:pipinstallzappixUsageAs mentioned earlier - zappix can be used both as a module inside of an application, as well as from the Command Line Interface.As a moduleAt the moment zappix has two classes: Sender and Get. Both of which can be imported in the following manner:>>>fromzappix.senderimportSender>>>fromzappix.getimportGetThen you can send or get some data. Asuming both Zabbix Agent and Server run on localhost and default ports:>>>getter=Get("127.0.0.1")>>>getter.get_value("agent.ping")1>>>sender=Sender("127.0.0.1")>>>sender.send_value('testhost','test',1){"processed":1,"failed":0,"total":1,"seconds spent":0.005}CLITo use this utility from the command line, you need to invoke python with the -m flag, followed by the module name and required parameters:python-mzappix.sender-z127.0.0.1-stesthost-ktestkey-o1TestingIf you wish to contribute it's good to know how to conduct tests.
You can go with mocked tests only or add integration tests as well.To enable integration tests, set the envvarZAPPIX_TEST_INTEGRATION=yesAfter if you wish to proceed with services in docker containers run the following:dockerrun-d-e"ZBX_CACHEUPDATEFREQUENCY=1"-p10051:10051-p80:80zabbix/zabbix-appliance
dockerrun-d-e"ZBX_SERVER_HOST=0.0.0.0/0"-p10050:10050zabbix/zabbox-agentNote that the zabbix-appliance might take a while to start. Once both containers are up and running, just runtox.If you have your custom Zabbix services, it is possible to configure tests via envvars to connect to those:envvarusageZAPPIX_AGENTIP address or DNS name of running Zabbix agentZAPPIX_SERVERIP address or DNS name of running Zabbix ServerZAPPIX_APIURL of Zabbix fronted. Schema is requiredZAPPIX_API_USERUser for creating entities via API. Should have RW permissions to a Host group with ID=2 - Usually 'Linux Servers'ZAPPIX_API_PASSPassword for that user
Package: zappy
Zappy - distributed processing with NumPy and ZarrZappy is for distributed processing of chunked NumPy arrays on engines likePywren, Apache Spark, and Apache Beam.Thezappy.basemodule defines aZappyArrayclass that exposes the same interface asnumpy.ndarray, and which
is backed by distributed storage and processing. The array is broken into chunks, and is typically loaded fromZarr,
and each chunk is processed independently.There are a few engines provided:direct- for eager in-memory processingspark- for processing using Sparkbeam- for processing using Beam or Google Dataflowexecutor- for processing using Python'sconcurrent.futures.Executor, of whichPywrenis a notable implementationBeam currently only runs on Python 2.Full coverage of thenumpy.ndarrayinterface isnotprovided. Only enough has been implemented to support running
parts ofScanpy, as demonstrated in theSingle Cell Experimentsrepo.Installationpip install zappyAlternatively, zappy can be installed usingConda(most easily obtained via theMiniconda Python distribution):conda install -c conda-forge zappyDemoTake a look at the rendereddemo Jupyter notebook, or try it out yourself as follows.Create and activate a Python 3 virtualenv, and install the requirements:python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
pip install -e .
pip install s3fs jupyterThen run the notebook with:jupyter notebook demo.ipynbTestingThere is a test suite for all the engines, covering both Python 2 and 3.Run everything in one go with tox:pip install tox
toxFormatting:pip install black
black zappy tests/* *.pyCoverage:pip install pytest-cov
pytest --cov-report html --cov=zappy
open htmlcov/index.htmlPublishingpip install twine
python setup.py sdist
twine upload -r pypi dist/zappy-0.1.0.tar.gzIf successful, the package will be available onPyPI.
Package: zappy-sync
zappy-syncZappyis a neat little utility for quick capturing screenshots, GIFs,
and videos.Files are stored locally. If you have a Zapier Premium account, they are also hosted in Zapier.zappy-syncis a little utility to sync your local files to your own cloud storage. This currently
only supports Google Cloud Storage, but can be extended.Installationpipx install zappy-syncConfigurationGCPGCP configuration is quite intense and not for the faint hearted. You need to do the following:Setup a service account. Go to IAM -> Service Accounts, set it up.Setup a bucket where you want your files shared. Go to Storage -> Browser, create a bucket.Change thedefaclon this bucket to be public by default. You can do this via thegsutilCLI.gsutil defacl set public-read gs://your-bucket-nameCreate a JSON key for your service account. Go to IAM -> Service Accounts, click on your service
account, click on "Add Key", select JSON. Download this key and save it somewhere safe. Recommend~/.zappy/gcp.json.SettingsYou can run the whole thing with command line options but having a settings file will make things
easier. Store the settings file in~/.zappy/settings.toml. Here's my settings file:directory="~/Pictures/Zappy/"[storage]provider="gcp"# for now, only gcp is supported[gcp]project="my-project-name"bucket="zappy"credentials="~/.zappy/gcpkey.json"UsagePretty straight forward. Runzappy-syncand it will watch the directory you specified in the
settings file. Any new files will be uploaded to your cloud storage. Deletions are not synced.Usage: zappy-sync [OPTIONS]

Options:
  --directory TEXT    Directory to watch.
  --bucket TEXT       GCP Storage Bucket.
  --project TEXT      GCP Project ID.
  --upload-missing    Upload missing files.
  --credentials TEXT  GCP Service account credentials.
  --provider TEXT     Storage provider. Only gcp for now.
  -n, --dry-run       Dry run.
  --help              Show this message and exit.
Package: zapr-athena-client
ZAPR AWS Athena ClientZAPR AWS athena client is a python library to run the presto query on the AWS Athena.At Zapr we have the largest repository of offline media consumption and we try to answer some of the hardest questions of brands, broadcasters and marketers, on top of this data. To make all this happen we have churn TBs of data in a somewhat interactive manner. AWS Athena comes to rescue to help the team achieve this. We are using this client as a middleware to submit the queries to Athena, as Athena has few shortcomings that we have tried to solve through this client.
Athena lacks in :1. Submitting multiple queries at a time.
2. Insert overwrite is not supported in Athena.
3. Dropping of table doesn't delete the data, only schema is dropped.Another benefit that we achieve using this client is that we can integrate Athena easily to all our existing data pipelines built on oozie, airflow.Supported Featuressubmit the multiple queries from single file.insert overwrite.drop table (drop the table and delete the data as well).submitting the query by using aws athena workgroup. so we can track the cost of the query.Quick StartPrerequisiteboto3configparserUsageSyntaxpython athena_client.py config_file_location workgroup_name query_file_location  input_macro1 input_macro2 ...Install dependenciespip install -r requirements.txtExample - 1python athena_client.py config.ini workgroup_testing_team sample-query-file.sql start_date=2020-09-25 end_date=2020-09-25Example - 2python athena_client.py s3://sampe-bucket/sample-prefix/project-1/config.ini workgroup_testing_team s3://sampe-bucket/sample-prefix/project-1/sample-query-file.sql start_date=2020-09-25 end_date=2020-09-25Via PIPpip install zapr-athena-client
zapr-athena-client config.ini workgroup_testing_team sample-query-file.sql start_date=2020-09-25 end_date=2020-09-25Sample Querycreate table sample_db.${table_prefix}_username
WITH (external_location = 's3://sample_db/${table_prefix}_username/',format = 'ORC') as
    select username
    from raw_db.users
    where date between '${start_date}' and '${end_date}';Disable Insert Overwrite and drop dataThis athena client supports insert overwrite table and delete data if you are executing drop table query by default. We can add the following configurations to disable these features.ENABLE_INSERT_OVERWRITE = False
ENABLE_EXTERNAL_TABLE_DROP = FalseContactFor any features or bugs, please raise it in issues sectionIf anything else, get in touch with us atopensource@zapr.in
Package: zap_report_formatter
# zap_report_formatterOWASP Zed Attack Proxy (ZAP) produces reports that are formatted in either `json` or `xml`. However, the format of the `xml` reports generated are not friendly to integrate with Jenkin's Junit plugin. This is normally what we would want to do if we want to perform ZAP scans as part of our CI/CD workflow.## Usage```pythonimport zap_report_formatter from zap_report_formatterzap_report_formatter.format('path to ZAP json report', 'path to json whitelist file', 'output path of xml file')```Here is what the `json` whitelist file should be like:```json{"42": {"name": "Source Code Disclosure - SVN","regex_uris": ["http://example.localhost"],"reason": "Reason."}}```
Package: zaqar
Team and repository tagsZaqarZaqar is a multi-tenant cloud messaging and notification service for web
and mobile developers.
It combines the ideas pioneered by Amazon’s SQS product with additional
semantics to support event broadcasting.The service features a fully RESTful API, which developers can use to send
messages between various components of their SaaS and mobile applications, by
using a variety of communication patterns. Underlying this API is an efficient
messaging engine designed with scalability and security in mind.Other OpenStack components can integrate with Zaqar to surface events to end
users and to communicate with guest agents that run in the “over-cloud” layer.
Cloud operators can leverage Zaqar to provide equivalents of SQS and SNS to
their customers.General information is available in wiki:https://wiki.openstack.org/wiki/ZaqarThe API v2.0 (stable) specification and documentation are available at:https://wiki.openstack.org/wiki/Zaqar/specs/api/v2.0Zaqar’s Documentation, the source of which is indoc/source/, is
available at:https://docs.openstack.org/zaqar/latestZaqar’s Release notes are available at:https://docs.openstack.org/releasenotes/zaqar/Contributors are encouraged to join IRC (#openstack-zaqarchannel onOFTC):https://wiki.openstack.org/wiki/IRCInformation on how to run unit and functional tests is available at:https://docs.openstack.org/zaqar/latest/contributor/running_tests.htmlInformation on how to run benchmarking tool is available at:https://docs.openstack.org/zaqar/latest/admin/running_benchmark.htmlZaqar’s design specifications is tracked at:https://specs.openstack.org/openstack/zaqar-specs/Using ZaqarIf you are new to Zaqar and just want to try it, you can set up Zaqar in
the development environment.Using Zaqar in production environment:Coming soon!Using Zaqar in development environment:The instruction is available at:https://docs.openstack.org/zaqar/latest/contributor/development.environment.htmlThis will allow you to run local Zaqar server with MongoDB as database.This way is the easiest, quickest and most suitable for beginners.
Package: zaqar-tempest-plugin
Tempest plugin for Zaqar project.It contains the tempest plugin for the functional testing of Zaqar Project.Free software: Apache licenseDocumentation:http://docs.openstack.org/developer/zaqarSource:http://git.openstack.org/cgit/openstack/zaqar-tempest-pluginBugs:http://bugs.launchpad.net/zaqarRunning the testsTo run all tests from this plugin, install zaqar, zaqar-tempest-plugin and
tempest into your environment, make sure to configure the tempest correctly,
and then from the tempest repo, run:$ tempest run --regex zaqar_tempest_plugin --config-file /etc/tempest/tempest.conf
Package: zaqar-ui
Team and repository tagsZaqar UIHorizon plugin for ZaqarFree software: Apache licenseDocumentation:https://docs.openstack.org/zaqar-ui/latest/Release notes:https://docs.openstack.org/releasenotes/zaqar-ui/Source:https://opendev.org/openstack/zaqar-uiBugs:https://bugs.launchpad.net/zaqar-uiEnabling in DevStackAdd this repo as an external repository into yourlocal.conffile:[[local|localrc]]
enable_plugin zaqar-ui https://github.com/openstack/zaqar-uiManual InstallationBegin by cloning the Horizon and Zaqar UI repositories:git clone https://github.com/openstack/horizon
git clone https://github.com/openstack/zaqar-uiCreate a virtual environment and install Horizon dependencies:cd horizon
python tools/install_venv.pySet up yourlocal_settings.pyfile:cp openstack_dashboard/local/local_settings.py.example openstack_dashboard/local/local_settings.pyOpen up the copiedlocal_settings.pyfile in your preferred text
editor. You will want to customize several settings:OPENSTACK_HOSTshould be configured with the hostname of your
OpenStack server. Verify that theOPENSTACK_KEYSTONE_URLandOPENSTACK_KEYSTONE_DEFAULT_ROLEsettings are correct for your
environment. (They should be correct unless you modified your
OpenStack server to change them.)Install Zaqar UI with all dependencies in your virtual environment:tools/with_venv.sh pip install -e ../zaqar-ui/And enable it in Horizon:cp ../zaqar-ui/zaqar_ui/enabled/_1510_project_messaging_group.py openstack_dashboard/local/enabled
cp ../zaqar-ui/zaqar_ui/enabled/_1520_project_queues.py openstack_dashboard/local/enabledTo run horizon with the newly enabled Zaqar UI plugin run:python manage.py runserver 0.0.0.0:8080to have the application start on port 8080 and the horizon dashboard will be
available in your browser athttp://localhost:8080/
Package: zar
OverviewZeroincombenze® Archive ReplicaZAR stand for Zeroincombenze® Archive Replica.
It is a tool kit to backup, restore, replicate files and/or database.ZAR manages easily backup for Odoo database, keeps last nth copies and purges oldest copies.Featuresbackup and restore odoo databasebackup and restore based on rules by configuration filerestore database with automatic actions disabledmultiple copies of database by configuration fileautomatic purging of oldest copiesconfiguration based on host name: it works on duplicate host image toobackup on same host or on remote hostUsagezar should be execute by postgres userExecute zar_upd to install and configure.
Configuration file is zar.conf
Execute zar_bck to do backup or restore, based on host role
Execute zar_rest to do restoreTo execute in cron, use zar_bck -kThere are avaiable two postgresql facilities:pg_db_activepg_db_reassign ownerpg_db_activeshow and kill postgres session. It can kill oldest session out of pool.pg_db_reassign_ownercan reassign owner to database. It reassign the ownership of all objects.Getting startedPrerequisitesZeroincombenze tools requires:Linux Centos 7/8 or Debian 9/10 or Ubuntu 18/20/22python 2.7+, some tools require python 3.6+, best python 3.8+bash 5.0+InstallationFor stable version:pip install zarFor current version:cd $HOMEgit@github.com:zeroincombenze/tools.gitcd $HOME/tools./install_tools.shUpgradeStable version via Python Packagepip install --upgrade zarCurrent version via Gitcd ./tools
./install_tools.sh -pUT
source $HOME/devel/activate_toolsChangeLog History2.0.4 (2023-09-08)[IMP] Backup filestore[FIX] Remote copy to /dev/null2.0.3 (2023-09-06)[FIX] DB name with hyphen (-)2.0.2 (2023-05-14)[IMP] reassing_owner accept db_port2.0.1 (2023-02-25)[IMP] Remote bckdir different from local2.0.0 (2022-10-20)[IMP] Stable version1.3.35.3 (2021-08-13)[FIX] pg_db_active: kill processCreditsCopyrightSHS-AV s.r.l. <https://www.shs-av.com/>AuthorsSHS-AV s.r.l.ContributorsAntonio M.VigliottiAntonio Maria Vigliotti
Package: zardoz
zardozAnother dice bot for discord.Free software: MIT licenseDocumentation:https://zardoz.readthedocs.io.FeaturesComplex roll options provided viapython-diceMultiple game types to provide fast default dice rolls (ie,1d100represented byrin Rogue
Trader mode)Reports degrees of success or failure when in RT mode, or success or failure otherwise, when using
comparison operatorsStores roll history for serverExamplesFor a basic roll,/z 1d100:Request:
1d100
Rolled out:
{1d100 ⤳ 53}
Result:
[53]Multiple dice,/z 3d100:Request:
3d100
Rolled out:
{3d100 ⤳ [27, 83, 73]}
Result:
[27, 83, 73]Distributed addition and subtraction,/z 3d100 + 10:Request:
3d100 + 10
Rolled out:
{3d100 ⤳ [47, 30, 19]} + 10
Result:
[57, 40, 29]Comparisons:Request:
4d6 <= 4
Rolled out:
{4d6 ⤳ [6, 2, 4, 2]} <= 4
Result:
6 ⤳ failed by 2
2 ⤳ succeeded by 2
4 ⤳ succeeded by 0
2 ⤳ succeeded by 2DoF/Dos,/z 3d100 <= 50:Request:
3d100 <= 50
Rolled out:
{3d100 ⤳ [57, 11, 88]} <= 50
Result:
57 ⤳ failure
11 ⤳ 3 DoS
88 ⤳ 3 DoFOrder of operations,/z 3d100 <= 50 + 5:Request:
3d100 <= 50 + 5
Rolled out:
{3d100 ⤳ [75, 87, 55]} <= 50 + 5
Result:
75 ⤳ 2 DoF
87 ⤳ 3 DoF
55 ⤳ successCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-02-13)First release on PyPI.
Package: zarenacord
A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python.PLEASE NOTE: This is a fork of OGdiscord.pybyRapptz!Since Danny no longer maintains dpy so I created this lib in order to add any upcoming feature from Discordand I’m usingMaya’sslash command wrapper for application commands.Key FeaturesModern Pythonic API usingasyncandawait.Proper rate limit handling.Command extension to aid with bot creationEasy to use with an object oriented design100% coverage of the supported Discord API.Optimised in both speed and memory.InstallingPython 3.8 or higher is requiredTo install the library without full voice support, you can just run the following command:# Linux/macOSpython3-mpipinstall-Uzarenacord# Windowspy-3-mpipinstall-UzarenacordOtherwise to get voice support you should run the following command:# Linux/macOSpython3-mpipinstall-U"zarenacord[voice]"# Windowspy-3-mpipinstall-Uzarenacord[voice]To install the development version, do the following:$gitclonehttps://github.com/Zarenalabs/zarenacord.git$cdzarenacord$python3-mpipinstall-U.[voice]Optional PackagesPyNaCl(for voice support)Please note that on Linux installing voice you must install the following packages via your favourite package manager (e.g.apt,dnf, etc) before running the above commands:libffi-dev (orlibffi-develon some systems)python-dev (e.g.python3.6-devfor Python 3.6)Quick ExampleimportdiscordclassMyClient(discord.Client):asyncdefon_ready(self):print('Logged in as',self.user)asyncdefon_message(self,message):# don't respond to ourselvesifmessage.author==self.user:returnifmessage.content=='ping':awaitmessage.channel.send('pong')client=MyClient()client.run('token')Bot Exampleimportdiscordfromdiscord.extimportcommandsbot=commands.Bot(command_prefix='!')@bot.command()asyncdefping(ctx):awaitctx.send('pong')bot.run('token')Application Commands Examplezarenadefines a bot subclass to automatically handle posting updated commands to discords api. This isn’t required but highly recommended to use.classMyBot(zarena.Bot):def__init__(self):super().__init__(command_prefix="!")# command prefix only applies to message based commandsself.load_extension("cogs.my_cog")# important!if__name__=='__main__':MyBot().run("token")Sample cog:classMyCog(zarena.ApplicationCog):# slash command@zarena.slash_command()asyncdefslash(self,ctx:zarena.Context,number:int):awaitctx.send(f"You selected #{number}!",ephemeral=True)#  message context menus@zarena.message_command(name="Quote")asyncdefquote(self,ctx:zarena.Context,message:discord.Message):awaitctx.send(f'>{message.clean_content}\n-{message.author}')# user context menus@zarena.user_command(name='Cookie')asyncdefcookie(self,ctx:zarena.Context,user:discord.Member):awaitctx.send(f'{ctx.author}gave cookie to{user}🍪')LinksDocumentation|Support Server|Discord API