Saravanan666/pypi-org huggingface dataset:
Package: zibal
Zibal Payment GatewayInstallationZibal Payment pacakge requiresRequeststo run.Install the package using pip$pipinstallzibalFor upgrading to newer versions$pipinstallzibal--upgradeUsageYou can send a request and verify your payment using this package. Also you can use this package to translate the result codes to printable messages
Pass your merchant_id and callback url while creating a zibal instanceimportzibal.zibalaszibalmerchant_id='Your merchant id, use zibal for testing'callback_url='https://yourdomain.com/callbackUrl'zb=zibal.zibal(merchant_id,callback_url)amount=30000# IRRrequest_to_zibal=zb.request(amount)Now you can access the parameters usingtrack_id=request_to_zibal['trackId']request_result_code=request_to_zibal['result']Pass the result code to the translator function "requeset_result(result_code)" to create printable output
Python3 example:print(zb.request_result(request_result_code))Verify the payment using the verify functionverify_zibal=zb.verify(track_id)verify_result=verify_zibal['result']Now you can access the parameters usingref_number=verify_zibal['refNumber']verify_result_code=verify_zibal['result']Pass the result code to the translator function "verify_result(result_code)" to create printable output
Python3 example:print(zb.verify_result(verify_result_code))
Package: zibal-django
A Django app for bank payments by Zibal (https://zibal.ir/)Detailed documentation is in the “docs” directory.Quick start### 0. install`sh pip install requests pip installzibal-django`### 1. start
Add “zibal” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'zibal',
]### 2. migrate
Runpython manage.py migrateto create the zibal models.### 3. admin
Start the development server and visithttp://127.0.0.1:8000/admin/for Purchase historys Model in admin.### 4.Instructions
For each transaction you first need to request and then confirm it.
For this operation, you can use 2 methods : request and callback.
You can use the Request method anywhere in the project. For the callback method, it is recommended to write once in a view with a fixed address and always use it.See the GitHub page of the project for more informationhttps://github.com/mohammad3020/django-zibal
Package: zibalPlatform
Zibal Payment GatewayInstallationZibal Platform pacakge requiresRequeststo run.Install the package using pip$pipinstallzibalPlatformFor upgrading to newer versions$pipinstallzibalPlatform--upgradeUsageYou can access Zibal.ir platform API using this package. Also you can use this package to translate the result codes to printable messages.
Pass your "access-token" while creating a zibalPlatform instance.Below is an example of how you can use this package to access 'wallet/list' endpointimportzibalPlatform.zibalPlatformaszibalPlatformaccess_token='Your access-token'platform_endpoint='v1/wallet/balance'zb=zibalPlatform.zibalPlatform(access_token)data={"id":"1010101",}request_to_zibal=zb.sendRequestToZibal(path=platform_endpoint,parameters=data)Now you can access the parameters like this exampleresult_code=request_to_zibal['result']Pass the result code to the translator function "platform_result(result_code)" to receive printable output
Python3 example:print(zb.platform_result(result_code))
Package: zicbee
ZicBee is a project grouping multiple applications to manage play and handle music databases.
It takes ideas from Quodlibet and Mpd, both very good music mplayers with their own strengths.For now there is a Swiss-army knife tool: zicdbSome plugins for quodlibet has also be developed. ZicBee is fast,
portable (but not very ported…) and flexible.While the project is stable and usable (there are online docs and a nice www gui),
it’s mostly interesting for hackers and developers from now, I didn’t confront to real users yet :PSee features list, it’s mostly handy for people with large databases,
with optionally multiple computers.
It can be adapted to handle video too, hacking some bit of code.
Package: zicheng
zichengzichengInstallation$pipinstallzichengUsageTODOContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensezichengwas created by zicheng. It is licensed under the terms of the MIT license.Creditszichengwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: zi_dct0
# ZI DCT0This is a Python implementation for the ZI DCT0 trading algorithm. The explanation of the algorithm is beyond the scope of this documentation.
Use at your own risk.Source code[https://github.com/kiennt23/zi_dct0](url)## Install
Use pip to install the library`commandline pip install zi_dct0 `## Usage
Usage can be find intestpage
Package: zidiscord.py
A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python.original lib by RapptzWARNING: This is not the official discord.py library! This is modified version for my personal purposes, this version is based on experimental version of the original lib! so it may be unstable.Key FeaturesModern Pythonic API usingasyncandawait.Proper rate limit handling.100% coverage of the supported Discord API.Optimised in both speed and memory.InstallingPython 3.5.3 or higher is requiredTo install the library without full voice support, you can just run the following command:# Linux/macOSpython3-mpipinstall-Udiscord.py# Windowspy-3-mpipinstall-Udiscord.pyOtherwise to get voice support you should run the following command:# Linux/macOSpython3-mpipinstall-U"discord.py[voice]"# Windowspy-3-mpipinstall-Udiscord.py[voice]To install the development version, do the following:$gitclonehttps://github.com/Rapptz/discord.py$cddiscord.py$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 on 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')You can find more examples in the examples directory.LinksDocumentationOfficial Discord ServerDiscord API
Package: ziffers
Ziffers for Python 3.10+This repo is hosting experimental parser for theZiffersnumbered musical notation to Python 3.10+. This library is using lark lalr-1 parser and ebnf PEG for parsing the notation.Supported environmentsZiffers python supports following live coding and computer-aided composition environments:SardineMusic21Status:Supported:Pitches: -2 -1 0 1 2
Chords: 0 024 2 246
Note lengths: w 0 h 1 q 2 e 3 s 4
Subdivision: [1 2 [3 4]]
Decimal durations: 0.25 0 1 <0.333>2 3
Octaves: ^ 0 ^ 1 _ 2 _ 3
Escaped octave: <2> 1 <1>1<-2>3
Named chords: i i i i
Randoms: % ? % ? % ?
Random between: (-3,6)
Repeat: [: 1 (2,6) 3 :4]
Repeat cycles: [: <q e> (1,4) <(2 3) (3 (1,7))> :]
Lists: h 1 q(0 1 2 3) 2
List cycles: (: <q e> (1,4) <(2 3) (3 (1,7))> :)
Loop cycles: <0 <1 <2 <3 <4 5>>>>>
Basic operations: (1 2 (3 4)+2)*2 ((1 2 3)+(0 9 13))-2 ((3 4 10)*(2 9 3))%7
Product operations: (0 1 2 3)+(1 4 2 3) (0 1 2)-(0 2 1)+2
Euclid cycles: (q1)<6,7>(q4 (e3 e4) q2) (q1)<6,7>(q4 q3 q2)
Transformations: (0 1 2)<r> (0 1 2)<i>(-2 1)
List assignation: A=(0 (1,6) 3) B=(3 ? 2) B A B B A
Random repeat: (: 1 (2,6) 3 :4)New features:Shorthand for random repeat: (2 5):3 [2 5 1]:4 (1,6):6Partial support:Escape/eval: {10 11} {3+1*2} // {1.2 2.43} NOT SUPPORTED YET.
Roman chords: i ii iii i^maj i^7TBD:Random selections: [q 1 2, q 3 e 4 6]
Conditionals: 1 {%<0.5?3} 3 4 (: 1 2 {%<0.2?3:2} :3)
Functions: (0 1 2 3){x%3==0?x-2:x+2}
Polynomials: (-10..10){(x**3)*(x+1)%12}
Modal interchange (a-g): iiia ig ivf^7
Package: zif.gzipper
Don’t use this.  It does not really play nice in a WSGI stack.  To gzip output, put your WSGI stack behind
a proxy that gzips, e.g., nginx or apache.If you just want to amuse yourself, feel free to play with this.  I could remove the package completely,
but what the heck…See ‘src/zif/gzipper/README.txt’ for more information.Releases0.2 (2007/04/13)Small improvements to documentation files.0.1 (2007/04/12)Initial release.Detailed Documentationzif.gzipperThis is a wsgi middleware application intended for use with paste.deploy,
zope.paste, and zope3.It serves as a wsgi filter to gzip output from a zope3 application.Dependenciesfor zope3, zif.gzipper requires Sidnei da Silva’s zope.pastezope.paste is available athttp://svn.zope.org/zope.paste/trunk/cd [path.to.zope3.src.directory]/zope
svn co http://svn.zope.org/zope.paste/trunk/ pastezope.paste is also available atthe python cheese shop.Instructions for zope.paste are athttp://awkly.org/2006/01/25/zopepaste-wsgi-applications-in-zope-3-using-pastedeploy/zope.paste requires paste.deploy.  paste.deploy may be obtained fromthe cheese
shop.  Presuming you have
setuptools installed,sudo easy_install.py PasteDeployThis (zif.gzipper) package can be unzipped and installed anywhere on the Python
path.SetupFollow Sidnei’s instructions for setting up zope.paste.  It involves putting the
usual zope.paste-configure.zcml file in [zope3 instance]/etc/site-packages.
There is also a parameter to change in [zope3 instance]/etc/zope.conf.
The new twist is a paste.ini file in [zope3 instance]/etcMy paste.ini file looks like:pipeline = gzipper jsmin main

[app:main]
paste.app_factory = zope.paste.application:zope_publisher_app_factory

[filter:gzipper]
paste.filter_factory=zif.gzipper.gzipper:filter_factory
compress_level=6
exclude=localimages
nocompress=jp gz zip png
tempfile=1048576

[filter:jsmin]
paste.filter_factory=zif.jsmin.jsmin:filter_factory
compress_level=safeConfigurationgzipper should be the first filter in the pipeline.  Other filters will
have a hard time reading compressed data output from this filter.The paste.ini file above shows examples of the configuration options for gzipper.compress_levelis the level of compression for the gzip function. 6 is the
default.  9 is max.  3 is often good enough.  Higher numbers use more
processor, but compress smaller.excludeis a sequence of strings that appear in the afilename or pathyou wish to exclude from gzipping.  If any of these strings appears in the
path or filename, gzipper will not gzip the file.nocompressis a sequence of strings that appear incontent-typesyou wish to
exclude from gzipping.  If the string appears
anywhere in the content-type, items with that content-type will
not be gzipped.  “jp” will exclude “image/jpg” and “image/jpeg”.
“application” will exclude any content-type with the word “application” in
it.tempfileis the file size above which gzipper will send the gzipped data to
a tempfile on disk. This may help memory usage. It may not.tempfile=0means do not use temporary file.  Default is 1 megabyte (1048576).Download
Package: zif.jsmin
See ‘src/zif/jsmin/README.txt’ for more information.Releases0.1 (2007/04/13)Initial release.Detailed Documentationzif.jsminThis is a wsgi middleware application intended for use with paste.deploy,
zope.paste, and zope3.It serves as a wsgi filter to “minimize” javascript for a zope3 application.This can be slow.You probably do not want to run this in production unless
you have (small) dynamically-generated scripts and css.  But it can be useful
for generating minimized javascript or css for resources.  Those larger files
can then be excluded from on-the-fly minimization.DependenciesFor zope3, jsmin requires Sidnei da Silva’s zope.paste.zope.paste is available athttp://svn.zope.org/zope.paste/trunk/cd [path.to.zope3.src.directory]/zope
svn co http://svn.zope.org/zope.paste/trunk/ pasteInstructions for zope.paste are athttp://awkly.org/zope.paste requires paste.deploy.  paste.deploy can be obtained from the cheese
shop.  Presuming you have setuptools installed,sudo easy_install.py PasteDeployThis (zif.jsmin) package can be unzipped and installed anywhere on the Python path.SetupFollow Sidnei’s instructions for setting up zope.paste.  It involves putting the
usual zope.paste-configure.zcml file in [zope3 instance]/etc/site-packages.
There is also a parameter to change in [zope3 instance]/etc/zope.conf.
The new twist is a paste.ini file in [zope3 instance]/etcAn example paste.ini file looks like:[pipeline:Paste.Main]
pipeline = gzipper jsmin main

[app:main]
paste.app_factory = zope.paste.application:zope_publisher_app_factory

[filter:gzipper]
paste.filter_factory=gzipper.gzipper:filter_factory
compress_level=6
nocompress=jp gz zip
tempfile=0

[filter:jsmin]
paste.filter_factory=jsmin.jsmin:filter_factory
compress_level=safe
compress_types=js css
exclude=MochiKitConfigurationThe paste.ini file above shows examples of the configuration options for jsmin.compress_levelis the degree of minimization desired.  “safe” is often good
enough; it mainly removes spaces.  “full” will additionally munge variable
names in javascript to make a more compact (and even less readable) module.
Default is “safe”compress_typesdetermines whether to compress javascript or css or both.
For both, use “css js”, which is the default.  For just one, specify “css” or
“js”excludeis for excluding large files that presumably are already compressed.
You may exclude on several matches; just put a space between them.  The module
looks for consecutive characters in the url, and is case-sensitive.  “K” would
exclude MochiKit.js or any file with “K” in its name.  “big_scripts” would
exclude any file in the big_scripts url/folder.Download
Package: zig
ZigZig is an open-source Python Webapp Framework for ML, Data Science and analytics applications.
Creates webapp easily using other Python ML-related libraries (Pandas) and Plotly without any frontend knowlegde.Zig can be configured to use Flask(default), Django or other Python web frameworks, while the frontend is rendered by our Angular Library.InstallationUse the package managerpip, or pipenv(virtual env) to install Zig.pipinstallzigOrwithvirtualenvironment,
pipenvinstallzigUsagefromzigimportZigfromzig.main_componentsimportGraphfromzig.html_componentsimport*importpandasaspdfromploty.expressimportbarapp=Zig("app_name")df=pd.DataFrame({"Phone OS":["IOS","Android","IOS","Android","IOS","Android"],"Amount":[400,500,300,700,200,900],"City":["SF","NY","SF","NY","SF","NY"]})fig=bar(df,x="Phone OS",y="Amount",color="City",barmode="group")# Zig provides nested sections and introspection of sections# with reusable components that can be passed arounddiv=Div().add(P("This is your first graph!"))div.add(Graph(fig))# Makes coding webapp clean and simpleapp.add(div)# Starts a local dev server on localhost. Uses Flask as defaultapp.run()ContributingAngular library is onhttps://github.com/EdenInTheEast/zig-angularPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT LicenseCopyright (c) [2021] [kib]Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: zigbee2mqtt
Python: Client for Zigbee2MQTTPython client for Zigbee2MQTT.AboutIn progress Python client library for Zigbee2MQTT.Installationpipinstallzigbee2mqttUsage# TODO: Need exampleChangelog & ReleasesThis repository keeps a change log usingGitHub's releasesfunctionality. The format of the log is based onKeep a Changelog.Releases are based onSemantic Versioning, and use the format
ofMAJOR.MINOR.PATCH. In a nutshell, the version will be incremented
based on the following:MAJOR: Incompatible or major changes.MINOR: Backwards-compatible new features and enhancements.PATCH: Backwards-compatible bugfixes and package updates.ContributingThis is an active open-source project. We are always open to people who want to
use the code or contribute to it.We've set up a separate document for ourcontribution guidelines.Thank you for being involved! :heart_eyes:Setting up development environmentThis Python project is fully managed using thePoetrydependency
manager. But also relies on the use of NodeJS for certain checks during
development.You need at least:Python 3.8+PoetryNodeJS 14+ (including NPM)To install all packages, including all development requirements:npminstall
poetryinstallAs this repository uses thepre-commitframework, all changes
are linted and tested with each commit. You can run all checks and tests
manually, using the following command:poetryrunpre-commitrun--all-filesTo run just the Python tests:poetryrunpytestAuthors & contributorsThe original setup of this repository is byFranck Nijhof.For a full list of all authors and contributors,
checkthe contributor's page.LicenseMIT LicenseCopyright (c) 2021 Franck NijhofPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: zig-bloom
bloom-zigBloom filterswritten inZigwith Python bindings.NOTE that this software is under development and it's not completely functional!How to installRight now, there's only a wheel for Macos. To install it, you can run the usualpipinstallbloom-zigIf you need to install this package for another architecture, refer to the
section about building from source.Building from sourceTo build this package from source, you'll need:Zig (version 0.11.0)Python (version used is 3.9, but it should work with lower versions)Python development headermake (not mandatory, but handy)If everything correctly installed, you can runzig build testto double check
that everything works.Then, go insidecode_bindingdirectory. You can create a Python env with therequirements.txtinstalled or install the requirements in your current env.
With everything in place, runmakeinstallThis should install thebloompackage in your environment. To test that the
package has been correctly installed, runmake test.How it worksThesrcfolder contains the Zig code for the Bloom filter. It internally uses
an ArrayList of u32, where each bit in a u32 element represents an element in
the set. I'd preferred to use a more efficient structure or directly an array
of u64, but I'm not aware of the compile-time functionality of Zig and if they
integrate well with Python code. So I decided to stick with the basics.Thecode_bindingfolder contains the code used to generate the Python wheel
package and the Python bindings directly written in Zig. There's aMakefileto reproduce the building steps. The Zig code is a blind translation of the C
code for writing Python bindings.The exposed functionalities inside Python are a class calledBloomFilterwith
3 methods:add,presentandcount. There's also a function calledfnvto compute a 64 bit non-cryptographic hash.Why?Never written an extension for Python so far. Just a beginner with Zig. How to
conciliate these two aspects? A Python extension in Zig! The great interop that
Zig has with C libraries made the process (not-so-much) simple.TODOsmake wheels for manylinuxPypi package(s)examples and benchmarkResourcesPython official guide to write extensions:https://docs.python.org/3/extending/index.htmlExample package of Python building with Zig:https://github.com/Lucifer-02/python_zigZig documentation:https://ziglang.org/documentation/0.11.0/
Package: ziggof1broadcasts
Python API fetching Ziggo F1 broadcastsUse this package to get Formula 1 broadcasts from Ziggo.Usageimportaiohttpimportasynciofromdatetimeimportdatefromziggof1broadcastsimportget_ziggo_f1_broadcastsasyncdefmain():session=aiohttp.ClientSession()# By default, it will return the broadcasts of today, but you can provide a datestartTime=date.fromisoformat('2020-08-16')broadcasts=awaitget_ziggo_f1_broadcasts(session,startTime=startTime)print(f"{broadcasts}")awaitsession.close()if__name__=="__main__":loop=asyncio.get_event_loop()loop.run_until_complete(main())
Package: ziggo-mediabox-xl
Ziggo Mediabox XLInstallationFrom PyPIAssuming you already are inside a virtualenv:pipinstallziggo_mediabox_xlFrom GitCreate a new virtualenv (if you are not already in one) and install the
necessary packages:gitclonehttps://github.com/b10m/ziggo_mediabox_xl.gitcdziggo_mediabox_xlmkvirtualenvziggo_mediabox_xlpipinstall-rrequirements.txtUsageThis quick example will connect to the IP address listed, verify the box
is turned on and sends NUM_3, NUM_0, and NUM_2 to the device. This will
result in the same action as pressing 302 on your remote control (the
Disney Jr. channel will be selected).fromziggo_mediabox_xlimportZiggoMediaboxXLbox=ZiggoMediaboxXL('aaa.bbb.ccc.ddd')ifbox.turned_on():box.send_keys(['NUM_3','NUM_0','NUM_2'])History1.1.0 (2018-11-03)Added timeout option.Upgraded to1.0.0 (2017-11-23)First release on PyPI.
Package: ziggostatus
Python API fetching Ziggo outages & announcementsUse this package to check with the VodafoneZiggo API for outages & announcements on a VodafoneZiggo address.Usageimportasyncioimportaiohttpfromziggostatusimportget_ziggo_statuspostalcode="1012JS"# Amsterdam - Dam Squarehousenumber="1"asyncdefmain():session=aiohttp.ClientSession()status=awaitget_ziggo_status(postalcode,housenumber,session)print(f"{status}")awaitsession.close()if__name__=="__main__":loop=asyncio.get_event_loop()loop.run_until_complete(main())