Saravanan666/pypi-org huggingface dataset:
Package: zamboni
Zamboni: NHL play-by-play scraping==================================Overview--------Zamboni makes it easy to scrape play-by-play data from National Hockey League(NHL) games.Want to scrape all of the plays from a game that's already been played? Noproblem.What about a game that's currently being played? Yeah, it can do that to - itwill 'stream' them for you.What if you only want to grab plays from games that happened on a specificdate? Or involved a specific team? Sure thing. It's simple to filter gamesbased on attributes.Usage-----import zamboni# Grab all of the games in a seasonseason = zamboni.get_season('20152016')# Filter the games that have been playedplayed_games = season.played_games()# Get the play-by-play data for all of the played gamesfor game in played_games:game.get_plays()# Do something with the play-by-play data...print(played_games[0].plays)You can also grab a single game directly if you know the game id.game = zamboni.get_game('2015020578')If the game has been played it will grab all of the play-by-play data for the game. If it hasn't been played...Installation------------pip install zamboniContribute----------Please do!
Package: zamg
python-zamgPython library to read 10 min weather data from GeoSphere Austria former ZAMGAboutThis package allows you to read the weather data from weather stations of GeoSphere Austria weather service.
GeoSphere Austria joins Zentralanstalt für Meteorologie und Geodynamik (ZAMG) and the Geologische Bundesanstalt (GBA)
since 1st January 2023.InstallationpipinstallzamgUsageSimple usage example to fetch specific data from the closest station."""Asynchronous Python client for GeoSphere Austria weather data."""importasyncioimportsrc.zamg.zamgfromsrc.zamg.exceptionsimportZamgErrorasyncdefmain():"""Sample of getting data"""try:asyncwithsrc.zamg.zamg.ZamgData()aszamg:# option to disable verify of ssl checkzamg.verify_ssl=False# trying to read zamg station id of the closest stationdata=awaitzamg.closest_station(46.99,15.499)# set closest station as default one to readzamg.set_default_station(data)print("closest_station = "+str(zamg.get_station_name)+" / "+str(data))# print list with all possible parametersprint(f"Possible station parameters:{zamg.get_all_parameters()}")# set parameters directlyzamg.station_parameters="TL,SO"# or set parameters as listzamg.set_parameters(("TL","SO"))# if none of the above parameters are set, all possible parameters are read# do an updateawaitzamg.update()print(f"---------- Weather for station{zamg.get_station_name}({data})")forparaminzamg.get_parameters():print(str(param)+" -> "+str(zamg.get_data(parameter=param,data_type="name"))+" -> "+str(zamg.get_data(parameter=param))+" "+str(zamg.get_data(parameter=param,data_type="unit")))print("last update:%s",zamg.last_update)except(ZamgError)asexc:print(exc)if__name__=="__main__":asyncio.run(main())Contributions are welcome!If you want to contribute to this please read theContribution guidelinesCreditsCode template to read dataset API was mainly taken from@LuisTheOne'szamg-api-cli-clientDataset API Dokumentation
Package: zaml
🚀 zamlFast YAML 1.2 parsing library for Python 3.6+ 🐍What's This?Proof-of-concept for my PyCon DE 2022talk,video,Speeding Up Python with Zig, not yet recommended for production use!Library with the following objectives:Written in pure Zig, importingPython.hheaders directly, no FFI,ctypesorcffi.Compiled using the Zig toolchain / CLI, no other tool (eg.clang) required.Tested to be compatible with mac OSX, Linux and Windows.Installable via PyPIShould not require Zig toolchain locally in order to install and use.Fastest available YAML 1.2 parser for Python.Help wanted to achieve the full objectives, PRs welcome.Installationpip install zamlNote: currently source distribution only, ie.sdist- no binarywheels(yet), therefore requires Zig 0.10.0
installed locally. Any other Zig version is untested.Installing LocallySome pre-requisites (linting etc.),pyenvalso recommended:pre-commitinstall
pre-commitrun--all-filesThe simplest possible extension module is a module with one function, that takes no arguments and returns an integer.
This repo demonstrates a pure Zig module that does exactly that:python-mvenv.venvsource.venv/bin/activate
pipinstall-e.TestsTests that the most basic possible Zig extension can in-fact be installed and returns the expected result:pythontest.pyBenchmarkTo run a benchmark of the currentzamlprototype (also runs in CI and asserts that the YAML structure is correctly
parsed):cdbenchmark
pythonbenchmark.pyResults on my 2,3 GHz Quad-Core Intel Core i7 Mac:Runningbenchmarks...

Benchmarkresults:
zamltook0.89seconds
PyYAMLCSafeLoadertook13.36seconds
ruameltook38.86seconds
PyYAMLSafeLoadertook81.78secondsCreditsWould not exist withoutkubkon's,zig-yaml:https://github.com/kubkon/zig-yamlCross-platform Local TestingLinuxTo test in Linux, the easiest way is probably to use Docker:dockerrun--namezaml-v$PWD:/root/zaml-itfedoraThis kicks you into a shell in a running a container with this library mounted in
the/root/zamldirectory. Changes you make on your host machine will be immediately
reflected in the container.Install Python 3 headers, zig and test the library:dnfinstallzigpython3-develcd/root/zaml
python3-mvenv.venvlinuxsource.venvlinux/bin/activate
pipinstall-e.To re-attach to the container after exiting:dockerstart-iazamlWindowsTo test in Windows from a Mac, the easiest way I have found is to useParallels.MacOSXI am writing thisREADMEon a Mac. Consequently, I have not attempted testing this library in MacOSX from another
operating system host. If you manage this, please do add documentation about it here.Publishing to PyPINote: Temporary instructions (until full CI setup).You may need to upgradebuildandtwine(with yourvirtualenvactivated):python -m pip install --upgrade build
python -m pip install --upgrade twineThen:rm -rf dist
python3 -m build --sdist
python3 -m twine upload --repository pypi dist/*
Package: zamm
ZAMMThis is an informal automation tool where you show GPT how to do something, and have it do it for you afterwards. This is good for boring but straightforward tasks that you haven't gotten around to writing a proper script to automate.We are entering a time when our target audiences may include machines as well as humans. As such, this tool will generate tutorials that you can edit to make pleasant for both humans and LLMs alike to read.This is an experimental tool, and has only been run on WSL Ubuntu so far.It seems to work ok on the specific examples below. YMMV. Please feel free to add issues or PRs.Quickstartpipxrecommended overpipfor install because it should allow you to run this with a different version oflangchainthan the one you might have installed:pipxinstallzammTeach GPT to do something:zammteachYou will be roleplaying the LLM. The results of your interaction will be output as a Markdown tutorial file, which you can then edit to be more human-readable. Seethis exampleof teaching the LLM how to create a "Hello world" script.Afterwards, you can tell the LLM to do a slightly different task using that same tutorial:zammexecute--task'Write a script goodbye.sh that prints out "Goodbye world". Execute it.'--documentationzamm/resources/tutorials/hello.mdThis results inthis example transcriptof LLM interactions.Note that GPT successfully generalizes from the tutorial to code in a completely different language based just on the difference in filenames.Imagine having to manually add that feature to a script!Using internal tutorialsSelect any of theprepackaged tutorialsas documentation by prefacing their filename with@internal. The.mdextension is optional.For example:zammexecute--task'Protect the `main` branch'--documentation@internal/branch-protectionto protect themainbranch of the project in the current directory on Github. (Note that this tutorial was written in mind for ZAMM-built projects, so YMMV for using this on custom projects.)SessionsSessions are recorded in case a crash happens, or if you want to change something up. On Linux, sessions are saved to~/.local/share/zamm/sessions/. To continue from the most recent session, runzammteach--last-sessionFree-stylingYou can also simply tell the LLM to do something without teaching it to do so beforehand. However, this is a lot more brittle. An example of a free-style command that works:zammexecute--task'Write a script hello.py that prints out "Hello world". Execute it.'The resulting transcript can be foundhere.PromptingWhen a step is failing and you need faster iteration by repeatedly testing a single prompt, you can do so with thepromptcommand. First, write your prompt out to a file on disk. Then run this command:zammprompt--stop'\n'--raw<path-to-prompt>
Package: zammadoo
an object-oriented REST API client for ZammadReal life examplesfromzammadooimportClientclient=Client("https://myhost.com/api/v1/",username="<username>",password="<mysecret>")# I have a new ticket with id 17967 and I need to download the attachment filepath=client.tickets(17967).articles[0].attachments[0].download()print(f"The downloaded file is{path}")# I need to close all tickets with the tag "deprecated" and remove the tagforticketinclient.tickets.search("tags:deprecated"):ticket.update(state="closed")ticket.remove_tags("deprecated")design principlesZammadoo provides a fluent workflow. Since the provided resources are wrapped in its own type
your IDE can show you many of the available properties and methods.
Package: zammad-py
Python API client for zammadFree software: MIT licenseDocumentation:https://zammad-py.readthedocs.io.Quickstartfromzammad_pyimportZammadAPI# Initialize the client with the URL, username, and password# Note the Host URL should be in this format: 'https://zammad.example.org/api/v1/'client=ZammadAPI(url='<HOST>',username='<USERNAME>',password='<PASSWORD>')# Example: Access all usersthis_page=client.user.all()foruserinthis_page:print(user)# Example: Get information about the current userprint(client.user.me())# Example: Create a ticketparams={"title":"Help me!","group":"2nd Level","customer":"david@example.com","article":{"subject":"My subject","body":"I am a message!","type":"note","internal":false}}new_ticket=client.ticket.create(params=params)General MethodsMost resources support these methods:.all(): Returns a paginated response with the current page number and a list of elements..next_page(): Returns the next page of the current pagination object..prev_page(): Returns the previous page of the current pagination object..search(params): Returns a paginated response based on the search parameters..find(id): Returns a single object with the specified ID..create(params): Creates a new object with the specified parameters..update(params): Updates an existing object with the specified parameters..destroy(id): Deletes an object with the specified ID.Additional Resource MethodsUser resource also has the .me() method to get information about the current user.Ticket resource also has the .articles() method to get the articles associated with a ticket.Link resource has methods to list, add, and delete links between objects.TicketArticleAttachment resource has the .download() method to download a ticket attachment.Object resource has the .execute_migrations() method to run migrations on an object.You can set theon_behalf_ofattribute of the ZammadAPI instance to do actions on behalf of another user.ContributingThe Zammad API Client (zammad_py) welcomes contributions.You can contribute by reporting bugs, fixing bugs, implementing new features, writing documentation, and submitting feedback.To get started, see the contributing section in the docs!Please ensure that your changes include tests and updated documentation if necessary.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: zamplugin.authenticator
This package provides a z3c.authenticator management for ZAM
(Zope 3 Application Management).CHANGES0.6.0 (2011-01-24)Requiringzam.api0.7 or newer for ZTK 1.0 compatibility.Updated tests to run withz3c.form2.1 or newer thus requiring at
least this version.Updated author email and home page address in package meta data.0.5.0 (2008-04-16)Initial Release
Package: zamplugin.contents
This package provides a modular container management plugin for ZAM (Zope 3
Application Management).CHANGES0.6.0 (2011-01-24)Requiringzam.api0.7 or newer for ZTK 1.0 compatibility.Updated tests to run with ZTK 1.0.Removed duplicated z3c.table and z3c.contents configuration in ftesting.zcml.0.5.0 (2008-04-13)Initial Release
Package: zamplugin.error
This package provides an error utiltiy for ZAM (Zope 3 Application Management).CHANGES0.6.0 (2011-01-27)Updated test and demo app to run with ZTK 1.0, thus requiring zam.api >=
0.7.Fixed ErrorReportingUtility edit form. The form was ignoring theignored_exceptionsattribute because of ignoreContext=True and could not
store thekeep_entriesvalue because of broken implementation.Added tests for edit.html page.Updated package metadata.0.5.0 (2008-04-14)Initial release.
Package: zamplugin.navigation
This package provides an navigation plugin for ZAM (Zope 3 Application Management).CHANGES0.6.0 (2011-01-27)Removedzc.configurationpackage from dependency list since this is a part
ofzope.configuration.Updated tozam.apiversion 0.7 to run with ZTK 1.0.0.5.0 (2008-04-16)Initial release.
Package: zamplugin.sitemanager
This package provides a site management for ZAM (Zope 3 Application Management).CHANGES0.6.0 (2011-01-28)Removed zc.configuration package from dependency list since this is a part
of zope.configuration.Updated tests to run withz3c.form>= 2.1, thus requiring at least this
version.Updated tests and demo application to run with ZTK 1.0, requiring at leastzam.api0.7.0.5.0 (2008-04-16)Initial release.
Package: zampy
zampyTool for downloading Land Surface Model input dataTool outline:Goal is to retrieve data for LSM model input.Firstdownloadthe data for the specified location(s) / geographical area.Be able toloadthe variables in a standardized way (standardized names & standardized units).Outputthe data to standard formats:ALMA / PLUMBER2's ALMA formatted netCDF.CMOR formatted netCDF.User-interaction should go through recipes. For example, seespringtime.Recipes define:data folder (where data should be downloaded to)time extent.spatial location / bounding box.datasets to be usedvariables within datasetsLoad recipes using Pydantic (for example).Support both a CLI & Python API.Note: items initalicwill not be worked on for now/low priority, but we want to allow space for these in the future.Instructions for CDS datasets (e.g. ERA5)To download the following datasets, users need access to CDS via cdsapi:ERA5ERA5 landLAIFirst, you need to be a registered user on CDS via theregistration page.Before submitting any request withzampy, please configure your.cdsapircfile following the instructions onhttps://cds.climate.copernicus.eu/api-how-to.When downloading a dataset for the first time, it isnecessary to agree to the Terms of Use of every datasets that you intend to download. This can only be done via the CDS website. When you try to download these datasets, you will be prompted to go to the terms of use and accept them.
Package: zamqp
Overviewzamqpis aimed to broadcast messages and trigger events between python
instances via AMQP.It is based on amqplib and provides consumer and producer implementations as
well as a mechanism to trigger zope events remotely.Helper ClassesCreate properties for AMQP connection.>>> from zamqp import AMQPProps
>>> props = AMQPProps(host='localhost',
...                   user='guest',
...                   password='guest',
...                   ssl=False,
...                   exchange='zamqp.broadcast.fanout',
...                   type='fanout',
...                   realm='/data')Create AMQP connection manually.>>> from zamqp import AMQPConnection
>>> connection = AMQPConnection('zamqp_queue', props)Access connection channel.>>> connection.channelConsumer and producerCreate consumer callback.>>> def callback(message):
...     pass # do anything with received message hereCreate and start consumer thread.>>> from zamqp import AMQPConsumer
>>> from zamqp import AMQPThread
>>> consumer = AMQPConsumer('zamqp_queue', props, callback)
>>> thread = AMQPThread(consumer)
>>> thread.start()Create producer and send a messages. Every python object which is serializable
can be used as a message.>>> from zamqp import AMQPProducer
>>> producer = AMQPProducer('zamqp_queue', props)
>>> message = 'foo'
>>> producer(message)Trigger eventsCreate an event which should be triggered in the remote instance.>>> class MyEvent(object):
...     def __init__(self, name):
...         self.name = nameCreate a listener forMyEvent. This gets called when AMQP events are
received.>>> def my_listener(event):
...     if not isinstance(event, MyEvent):
...         return
...     # do something

>>> import zope.event
>>> zope.event.subscribers.append(my_listener)The defaultAMQPEventCallbackjust callszope.event.notifywith the
received payload, which is the serialized event, in this case an instance ofMyEvent.Start our AMQP consumer for events.>>> exchange = 'zamqp.events.fanout'
>>> queue = 'zamqp_events'
>>> from zamqp import AMQPEventCallback
>>> props = AMQPProps(exchange=exchange)
>>> callback = AMQPEventCallback()
>>> consumer = AMQPConsumer(queue, props, callback)
>>> thread = AMQPThread(consumer)
>>> thread.start()TriggerMyEventto AMQP channel. The previously started event consumer now
receives this event and triggers it locally in it’s own interpreter.>>> from zamqp import AMQPEvent
>>> event = AMQPEvent(queue, props, MyEvent('myevent'))
>>> zope.event.notify(event)Credits-Robert Niederreiter <rnix@squarewave.at>Changes1.0b1make it work [rnix]
Package: zam.skin
This package provides an new Application Management skin for Zope3CHANGES0.8.0 (2011-01-27)Moved ZCML installation ofzope.app.serverfromsite.zcmltoapp.zcmlas it is required by thezamplugin.*packages, too.0.7.0 (2011-01-19)Depends onzam.api>= 0.7 to run with ZTK 1.0.Version 0.6.0 (2009-07-06)Removed duplicated zam.api configure.zcml file includeImport IDefaultViewName from the new location at zope.publisher.interfacesRemoved zc.configuration package from dependency list since this is a part
of zope.configurationVersion 0.5.2 (2008-04-16)bugfix: Move the existing index.html and contents.html page to index.zcml
This allows us to exclude them with the zc.configuration <exclude> directive
Restrict the default index.html and contents.html to the IContainmentRoot
this will avoid to adding such views on object which do not have such views.Version 0.5.1 (2008-04-13)Cleanup ftesting configuration, make it possbile to load ftesting.zcml
additional to the app.zcml configuration.Version 0.5.0 (2008-04-13)Moved contens.html page to zamplugin.contentsUpdate CSS, use overflow: auto; for ISideBar boxesInitial Release
Package: zamtelsms
Zamtel bulk SMS api example in PythonInstallationpip install zamtelsmsSetupCreate a .env file in the root of your project and add the followingAPI_KEY=YOUR_API_KEY_FROM_ZAMTEL
SENDER_ID=YOUR_SENDER_ID_FROM_ZAMTEL
BASE_URL=https://bulksms.zamtel.co.zm/api/v2.1/action/send/API_KEY is the API_KEY you were given by ZamtelSENDER_ID is the SENDER_ID you were given by ZamtelUsageYou can use the function to send a single here is an examplefrom sms import send_sms

response = send_sms('0975442232', 'Hello there, I am testing the Zamtel Bulk SMS API')

print(response)You can also pass an array of phone numbers to send a sms SMS to multiple clients.from zamtelsms.sms import send_sms

phone_numbers = ['0976xxxxxx','0976xxxxxx','0976xxxxxx','0976xxxxxx','0976xxxxxx',]

message = 'Hello there, I am testing the Zamtel Bulk SMS API'

response =  send_sms(phone_numbers, message)

print(response)

# output

{'success': True, 'responseText': 'SMS(es) have been queued for delivery'}It is as simple as that 😃Happy coding!!
Package: zanata2fedmsg
Run the server:$ ZANATA2FEDMSG_CONFIG=./dev.ini python zanata2fedmsg.pyGenerate example urls for zanata:$ ZANATA2FEDMSG_CONFIG=$(pwd)/dev.ini python utility/zanata2fedmsg-webhook-generator.py asknot-ng
URL for asknot-ng is
https://apps.fedoraproject.org/zanata2fedmsg/webhook/5c605f0f4dd27a5cd81b053bedd06ec153f2272f82c8a49b0842eab7f3c73141
Package: zandbak
# zandbak[![Documentation Status](https://readthedocs.org/projects/zandbak/badge/?version=latest)](https://zandbak.readthedocs.io/en/latest/?badge=latest)
[![Continuous integration](https://github.com/rozsasarpi/zandbak/actions/workflows/push.yaml/badge.svg)](https://github.com/rozsasarpi/zandbak/actions)
[![PyPI version](https://img.shields.io/pypi/v/zandbak)](https://pypi.org/project/zandbak/)
[![coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/rozsasarpi/da9e3419b54a0daf6fe07b934f37f837/raw/zandbak_main_coverage.json)](https://en.wikipedia.org/wiki/Code_coverage)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/rozsasarpi/zandbak.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/rozsasarpi/zandbak/context:python)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)A sandbox python repository for testing GitHub features, CI pipelines, and python
packaging.Some structural mechanics examples are used as dummy code:computing the responses of linear elastic beams.### Documentation[Documentation](https://zandbak.readthedocs.io/en/latest/?badge=latest) based on
the latestmain.### Code coverageSolely based on using GitHub Actions, based on [this guide](https://dev.to/thejaredwilcurt/coverage-badge-with-github-actions-finally-59fa).Upon each push to any of the branches a json file with coverage information is
added to [a dedicated gist](https://gist.github.com/rozsasarpi/da9e3419b54a0daf6fe07b934f37f837).The content of the json file is used to generate a badge usinghttps://shields.io/.This badge is offered as part of the pull request template.If you use the same branch name multiple times then the old coverage badges will be
overwritten, and in turn the old pull request badges will be incorrect (it is deemed
to be still acceptable since the coverage of closed pull requests are not expected to be
checked, but if that is needed then the correct coverage information can be obtained
from the pipeline prints).