Saravanan666/pypi-org huggingface dataset:
Package: zvolv-sdk
📚Documentation- 🚀Getting started- 💻API reference- 💬FeedbackLearn how to automate with Zvolv using Python.DocumentationDocs site- explore our docs site and learn more about Zvolv.Getting startedInstallationYou can install the auth0 Python SDK using the following command.pip install zvolv_sdkRequires Python 3.7 or higher.UsageThe Zvolv Hyper automation platform offers several APIs to build apps. Each Zvolv API delivers part of the capabilities from the platform, so that you can pick just those that fit for your needs. This SDK offers a corresponding package for each of Zvolv’s APIs.Sending an email from ZvolvOne of the most simple use-cases is sending an email from Zvolv. In our examples, we specify the channel name, however it is recommended to use thechannel_idwhere possible. Also, if your app's bot user is not in a channel yet, invite the bot user before running the code snippet (or addchat:write.publicto Bot Token Scopes for posting in any public channels).importosfromzvolv_sdkimportWebClientfromzvolv_sdk.errorsimportZvolvApiErrorclient=WebClient(token=os.environ['ZVOLV_BOT_TOKEN'])try:response=client.chat_postMessage(channel='#random',text="Hello world!")assertresponse["message"]["text"]=="Hello world!"exceptSlackApiErrorase:# You will get a ZvolvApiError if "ok" is Falseasserte.response["ok"]isFalseasserte.response["error"]# str like 'invalid_auth', 'channel_not_found'print(f"Got an error:{e.response['error']}")Here we also ensure that the response back from Zvolv is a successful one and that the message is the one we sent by using theassertstatement.Authentication EndpointsDatabase (authentication.Database)Delegated (authentication.Delegated)Enterprise (authentication.Enterprise)API Authorization - Get Token (authentication.GetToken)Passwordless (authentication.Passwordless)RevokeToken (authentication.RevokeToken)Social (authentication.Social)Users (authentication.Users)Management EndpointsActions() (Zvolv().action)AttackProtection() (Zvolv().attack_protection)Blacklists() (Zvolv().blacklists)Branding() (Zvolv().branding)FeedbackIf you get stuck, we’re here to help. The following are the best ways to get assistance working through your issue:Use ourGithub Issue Trackerfor reporting bugs or requesting features.
Visit theZvolv Communityfor getting help using Slack Developer Kit for Python or just generally bond with your fellow Zvolv developers.
Package: zvtm
zvtm简单说明1、zvt是一个很好的量化框架，不过文档还不够详细。https://zvtvz.github.io/zvt/#/README是它的介绍。2、为了解决zvt数据保存在sqlite3不方便使用的问题，对其进行了修改，可以保存到mysql数据库。3、使用方法，直接修改config.json 放到本地用户zvtm_home目录，就可以使用了。4、test 目录的record.py做了几个简单的demo。具体详见上面zvt的说明。5、原有数据可以通过sql3mysql进行转化。
Package: zvukogram
ZvukoGram APIA simple, yet powerful library forZvukoGram APIUsageWithZvukoGram APIyou can fully access the ZvukoGram API.DocumentationOfficial docs can be found on theAPI's webpageInstallationpipinstallzvukogramRequirementsPython 3.7+aiohttppydanticFeaturesAsynchronousException handlingPydantic return modelLightWeightBasic exampleimportasynciofromzvukogramimportZvukoGram,ZvukoGramErrorapi=ZvukoGram('token','email')asyncdefmain():try:voices=awaitapi.get_voices()print(voices['Русский'].pop().voice)exceptZvukoGramErrorasexc:print(exc)generation=awaitapi.tts(voice='Бот Максим',text='Привет!',)print(generation.file)audio=awaitgeneration.download()generation=awaitapi.tts_long(voice='Бот Максим',text='Более длинный текст!',)whilenotgeneration.file:awaitasyncio.sleep(1)generation=awaitapi.check_progress(generation.id)print(generation.file)asyncio.run(main())Developed by Nikita Minaev (c) 2023
Package: zwack
docsstartinstallimport zwackinit zwackzwack = zwack.Zwack()commandsasciiascii = zwack.ascii()(sets ascii to the ascii class)zwackascii.zwack(returns ascii art of zwack)zwack overflowfull iconascii.overflow(returns full zwack overflow icon ascii art)icon onlyascii.overflow_small(returns ascii art of the overflow part of the logo)
Package: zwave-js-server-python
zwave-js-server-pythonPython library for communicating withzwave-js-server. Goal for this library is to replicate the structure and the events of Z-Wave JS 1:1. So it has aDriver,ControllerandNodeclasses.Setup development environmentTo setup your development environment, runscripts/setup, which will install all requirements and set up pre-commit checks.Trying it outpython3-mzwave_js_serverws://localhost:3000Or get the version of the serverpython3-mzwave_js_serverws://localhost:3000--server-versionOr dump the state. Optionally add--event-timeout 5if you want to listen 5 seconds extra for events.python3-mzwave_js_serverws://localhost:3000--dump-stateSending commandstry:result=awaitclient.async_send_command({"command":"start_listening"})exceptzwave_js_server.client.FailedCommandaserr:print("Command failed with",err.error_code)
Package: zwave-me-ws
ZWave-Me-WS is a websocket connection library forZ-Wave.Me Z-WaycontrollersInstallingTo install this package use:pip install zwave-me-wsUsageTo use the connector initialize the API using:from zwave_me_ws import ZWaveMe, ZWaveMeData

zwave_api = ZWaveMe(
  on_device_create=on_device_func
  on_device_update=on_device_update_func,
  on_new_device=on_device_add_func,
  token="....", # Z-Way access token in the form .../... (remote) of /... (local)
  url="...", # wss://find.z-wave.me or ws://IP:8083
  platforms=[...]
)

def on_device_add_func(self, device: ZWaveMeData)

def on_device_create_func(self, devices: list[ZWaveMeData])

def on_device_update_func(self, new_info: ZWaveMeData)Hereplatformsis the list of deviceType fields to handle. Used to filter only types supported by your application. For example,["sensorBinary", "lightMultilevel", "toggleButton", "thermostat", "motor", "fan", "doorlock", "switchMultilevel", "switchBinary", "sensorMultilevel", "siren", "switchRGBW", "switchRGB"].Available functions:devices = zwave_api.get_devices()

zwave_api.send_command(device_id, command) # command can be "on", "off", "exact?level=..", "open", "close"

is_connected = zwave_api.get_connection()

zwave_api.close_ws()Device (ZWaveMeData) has the following fields:id: str
  deviceType: str
  title: str
  level: Union[str, int, float]
  deviceIdentifier: str
  probeType: str
  scaleTitle: str
  min: str
  max: str
  color: dict
  isFailed: bool
  locationName: str
  manufacturer: str
  firmware: str
  tags: list[str]
  nodeId: str
  creatorId: str
Package: zweifach
Zweifach (german for “two times”) is an app to make integration of django-otp a bit more biased.Integration of two factor auth is enforced by a middleware which will ensure two things:make sure a user who is required to enable 2FA for its account will be redirected to the setup-view until setup is done.make sure a user who has 2FA enabled will be redirected to verify-view for token input after login until verified.QuickstartInstall packages by running ‘pip install zweifach django-otp qrcode’Add ‘zweifach’ to INSTALLED_APPS.Add ‘zweifach.middleware.ZweifachMiddleware’ to MIDDLEWARE,afterAuthenticationMiddleware.Inlcude ‘zweifach.urls’ somewhere in your url-config.Configure django-otp as described further down belowSettingssettings.ZWEIFACH_AUTH_REQUIREDdefault: []A list of checks which determine, if a user needs 2FA to use its account.examaple:ZWEIFACH_AUTH_REQUIRED = [
    lambda user: user.is_staff,  # all staff unsers must use two factor auth
    lambda user: '2fa' in user.groups.values_list("name", flat=True),  # all users in group '2fa' must use two factor auth
]settings.ZWEIFACH_URL_EXCLUDESdefault: []A list of url which are always accessible without 2FA.
Verify and Setup views are always excluded as well as settings.LOGIN_URL and the admin login view, if admin is enabled.example:ZWEIFACH_URL_EXCLUDES = [
    '/imprint/',
    '/faq/how-to-setup-2fa/',
]Note: If a url is accessible without login, it can of course still be viewed without any 2FA interaction.Notes about django-otp configurationA compatible installation of django-otp should be setup as follows:Add to INSTALLED_APPS:'django_otp',
'django_otp.plugins.otp_totp',
'django_otp.plugins.otp_static',Add to MIDDLEWARE (between AuthenticationMiddleware and ZweifachMiddleware):'django_otp.middleware.OTPMiddleware'Configure issuer:OTP_TOTP_ISSUER = 'MyProject'UsageTo generate static recovery tokens (also useful for first login on freshly installed systems) use:./manage.py addstatictoken <username>DevelopmentEnsure basic code style with:toxBuild package with:python3 -m buildUpload package to PyPI:python3 -m twine upload dist/zweifach-x.x.x*
Package: zwembad
Aboutzwembadoffers anMPIPoolExecutorclass, an implementation of theconcurrent.futures.Executorclass of the standard library.Example usagefrom zwembad import MPIPoolExecutor
from mpi4py import MPI

def menial_task(x):
  return x ** MPI.COMM_WORLD.Get_rank()

with MPIPoolExecutor() as pool:
  pool.workers_exit()
  print("Only the master executes this code.")

  # Submit some tasks to the pool
  fs = [pool.submit(menial_task, i) for i in range(100)]

  # Wait for all of the results and print them
  print([f.result() for f in fs])

  # A shorter notation to dispatch the same function with different args
  # and to wait for all results is the `.map` method:
  results = pool.map(menial_task, range(100))

print("All processes join again here.")You'll see that some results will have exponentiated either by 1, 2, ..., n
depending on which worker they were sent to. It's also important to prevent your
workers from running the master code using thepool.workers_exit()call. As a
fail safe any attribute access on thepoolobject made from workers will
result in them exiting anyway.TheMPIPoolExecutorof zwembad is designed to function withoutMPI.Spawn()for cases where this approach isn't feasible, like supercomputers whereMPI.Spawnis deliberatly not implemented (for example CrayMPI).Therefor the pool can only use MPI processes that are spawned when the MPI world
is initialised and must be run from the command line using an MPI helper such asmpirun,mpiexecor SLURM'ssrun:$ mpirun -n 4 python example.py
Package: zwf
zwf — Zwift WAD file toolA tool to list/extract files from Zwift WAD files — the asset archives (like a tar/zip file) that Zwift uses.LimitationsCompressed .wad files are not supported. The .wad files which ship with Zwift underassets/**/*.wadare compressed. This tool can work with the decompressed versions, but does not implement decompression itself.You might find decompressed versions in a memory dump of a Zwift process, but that may be against the Zwift TOS.
Package: zw-fast-quantile-py
zw_fast_quantile_pyzw-fast-quantilepython bindingInstallationpipinstallzw_fast_quantile_pyUsageimportzw_fast_quantile_pysummary=zw_fast_quantile_py.IntQuantileSummary(0.01)summary.update(1,2,3,4,5,6,7,8,9,10)summary.query(0.0)BenchmarkWe calculate the median of[1, 1000], thezw_fast_quantile_pyis slightly slower thanstatistics.quantilesdue to the serilization cost between python and extension.zw_fast_quantile_py502
4.4792000000000096e-05statistics.quantiles499.5
3.883300000000027e-05
Package: zwift-client
Zwift Mobile API clientZwift Mobile API client written in Python. Heavily inspired byzwift-mobile-api.Installation$ pip install zwift-clientUsageClient>>> from zwift import Client
>>> username = 'your-username'
>>> password = 'your-password'
>>> player_id = your-player-id
>>> client = Client(username, password)Profile>>> profile = client.get_profile()
>>> profile.profile  # fetch your profile data
>>> profile.followers
>>> profile.followees
>>> profile.get_activities()  # metadata of your activities
>>> profile.latest_activity  # metadata of your latest activityActivity>>> activity = client.get_activity(player_id)
>>> activities = activity.list()  # your activities (default start is 0, default limit is 20)
>>> activities = activity.list(start=20, limit=50)
>>> latest_activity_id = activities[0]['id']
>>> activity.get_activity(latest_activity_id)  # metadata of your latest activity
>>> activity.get_data(latest_activity_id)  # processed FIT file dataWorld>>> world = client.get_world(1)  # get world with id 1
>>> world.players  # players currently present in this world
>>> world.player_status(player_id) # current player status information like speed, cadence, power, etc.CreditsThis package was created withcookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.2.0 (2018-03-02)Add optionalstartandlimitkeyword arguments toActivity.list().0.1.0 (2018-01-14)Initial release.
Package: zwiftpktmon
zwiftpktmonA Python port of the C# ZwiftPacketMonitor project which monitors Zwift UDP packets.This project implements a TCP and UDP packet monitor for the Zwift cycling simulator. It listens for packets on a specific port of a local network adapter, and when found, deserializes the payload and dispatches events that can be consumed by the caller.  It uses the asyncio standard library to allow the packet parsing activities to not interfere with the event consumer.NOTE: Because this utilizes a network packet capture to intercept the UDP packets, your system may require this code to run using elevated privileges.  This is definitely required on MacOS.RequirementsRequires Python version 3.10 or higherUses the project pcapy-ng as its interface to the Pcap-API.  The Pcap-API exists natively on MacOS and Linux but not on Windows.
On Windows, the Npcap packet capture library must be installed.  Npcap is available here:https://npcap.com/dist/npcap-1.60.exeThe pcapy-ng library is written in Cython at must be compiled for each environment.  Currently, two environments have been pre-compiled and supported:Windows 10+ (64bit AMD; Intel might work but untested)MacOS 10.13+ (High Sierra)Setuppip install zwiftpktmonThere are some example scripts in the .\tests folder:test_harness.py: A simple script allowing network selection and event logging.test_harness_ui.py: A simple UI based upon PySimpleGui.  To use this you must pip install PySimpleGui first.
Package: zwift-workouts-parser
Zwift Workouts ParserWant to try a workout of some specific plan on Zwift but don't want to start the plan? Use this utility to parse any desired plan or workout straight from thehttps://whatsonzwift.com.Just feed it with an URL and it will export everything it can into .zwo files which you can import into Zwift and try them out.Installationpip install zwift-workouts-parserpip install bs4pip install certifipip install lxml
Package: zwlib
ZwlibZwLib is a package that provides a series of utility functions for Convo studio, HyperPM, and AIForYou products.FeaturesEasy-to-use API request functions with built-in error handlingFunctions for handling image, video, and payment meta-dataBuilding NLP ModelsCompatible with Python 3.6 and aboveInstallationTo install Zwlib, simply run:pipinstallzwlib
Package: zw.mail.incoming
Zaehlwerk’s Incoming mail processingThis small module enables a Zope process to react on incoming mails,
reading a Maildir or (in the future) an imap folder.zw.mail.incoming can be seen as the counterpart to zope.sendmail
but for processing incoming emails.CHANGESVersion 0.1.2.3 (2009-01-18)Message processing is loggedVersion 0.1.2.1 (2009-01-18)Python 2.4 compability bugVersion 0.1.2 (2009-01-17)‘dropmail’ script allows to read a message from stdin and
to write to a Maildir.Version 0.1.1 (2009-01-10)NewEmailFailureEvent has now a delivery_report fieldVersion 0.1 (2009-01-08)Initial release
Package: zwog
Zwift workout generatorHave you ever been frustrated by any WYSIWYG workout editor, such as theZwift Workout editorand theTrainingPeaks Workout Builder?ZWOG makes it easier to generate structured workouts using a syntax similar to the one used onWhat's on Zwift?.InstallationPyPIInstall the latest stable version from PyPI$pipinstallzwogGitHubInstall the version from the main branch$pipinstallgit+https://github.com/tare/zwog.gitSyntaxThe basic building blocks are ramp intervals10min from 30 to 60% FTPand steady state intervals2hrs 10min @ 60% FTPInterval durations can be given in seconds (sec,s), minutes (min,m), and hours (hrs,h).Moreover, it is possible to create repeated intervals4x 5min @ 95% FTP, 5min @ 85% FTPFinally, a complete workout can be defined as follows10min from 40 to 85% FTP
3x 5min @ 95% FTP, 5min @ 86% FTP
5min @ 50% FTP
3x 5min @ 95% FTP, 5min @ 86% FTP
10min from 75 to 55% FTPThe parser is rather robust when it comes to newlines and other whitespaces.UsageYou can use the command line application$zwog--helpusage: zwog [-h] -i INPUT_FILE [-o OUTPUT_FILE] [-a AUTHOR] [-n NAME][-c CATEGORY] [-s SUBCATEGORY] [-v]Zwift workout generatoroptional arguments:-h, --help            show this help message and exit-i INPUT_FILE, --input_file INPUT_FILEinput filename-o OUTPUT_FILE, --output_file OUTPUT_FILEoutput filename-a AUTHOR, --author AUTHORauthor name-n NAME, --name NAME  workout name-c CATEGORY, --category CATEGORYcategory-s SUBCATEGORY, --subcategory SUBCATEGORYsubcategory-v, --version         show program's version number and exitor call it from Pythonimportzwogworkout_text="15min from 10 to 50% FTP 5min from 50 to 70% FTP 2x 0.5hrs @ 100% FTP, 0.5hrs @ 50% FTP, 10min from 80 to 90% FTP 2min @ 50% FTP\n2min @ 50% FTP\n10min @ 50% FTP, 10min @ 60% FTP 10min from 50 to 10% FTP"workout=zwog.ZWOG(workout_text)workout.save_zwo('workout.xml')print(workout)print(f"{round(workout.tss)}TSS")LimitationsOnly theZWO file formatis supported currentlyWorkout files have to be uploadedmanuallyto Zwift
Package: zword
zword安装方法如下，请用 python3pip install zword使用有问题请到gitee.com/znlp/zword/issues发帖。从维基百科抽取中文语料维基百科语料下载地址 :dumps.wikimedia.org/zhwiki有很多链接，下载比如https://dumps.wikimedia.org/zhwiki/20200701/zhwiki-20200701-pages-articles.xml.bz2下载后运行类似如下的命令来抽取中文语料wiki_txt /share/wiki/zhwiki-20200701-pages-articles.xml.bz2小技巧：维基百科打包打包很大，但是不需要完全下载也可以运行以上命令（会报错，但能部分输出，方便开发）会在bz2的同目录输出两个文件条目正文：zhwiki-20200701-pages-articles.title.txt.zd条目标题：zhwiki-20200701-pages-articles.txt.zd这两个文件是Zstandard压缩后的纯文本文件 ( 参见Zstandard：一种新的无损压缩算法)使用本软件包附带的zdcat命令可以查看， 比如：zdcat /share/wiki/zhwiki-20200701-pages-articles.title.txt.zd在条目正文中，条目的标题以 "➜ " 开头。在程序中读取zd文件，可用如下方法from zword import zd

with zd.open(
  "/share/wiki/zhwiki-20200701-pages-articles.txt.zd"
) as f:
  for i in f:
    print(i)特别感谢代码改编自《获取并处理中文维基百科语料 - 科学空间|Scientific Spaces》
Package: zw-outliersdetec
zw_outliersdetecThis is a small outliers-detection package. You can clickGithub-vidieweito see more about this package.This package includes six algorithms for unsupervised-outliers-detection
1銆丠OT-SAX  2銆丳APR_RW  3銆両ntervalSets  4銆乮Forest  5銆丷DOS  6銆丗astVOA
Package: zw.schema
Zaehlwerk FieldsColor fieldEmail fieldColor FieldThe string contained in the field describes a RGB color in hexdecimal
format. Let’s first generate a color field:>>> from zw.schema.color import Color
>>> color = Color()Make sure the colors validate:>>> color.validate('aa00cc')
>>> color.validate('00aa000')
Traceback (most recent call last):
...
InvalidColor: 00aa000CHANGESVersion 0.2.2 (2008-04-14)packaging bug fixed.Version 0.2.1 (2008-04-13)Remove email field. (It can be found in z3c.schema)Version 0.2 (2008-04-11)Added email field
Package: zwsp-steg-py
# zwsp-steg-pyZero-Width Space Steganography. Encodes and decodes hidden messages as non printable/readable characters.This repository is a Python porting of [zwsp-steg-js](https://github.com/offdev/zwsp-steg-js).All credits to [offdev](https://github.com/offdev)!### Installation```bash$ pip install zwsp-steg-py```### Usage Example```.pyimport zwsp_stegencoded = zwsp_steg.encode('hidden message')decoded = zwsp_steg.decode(encoded)print(decoded)  # hidden message```Note that decoding a message will ignore all non 'special' characters. That means if you hide your message within a readable string, and decode the whole string, you will only return the hidden message.### ParametersYou can use different sets of characters in different encoding / decoding modes.```.pyimport zwsp_stegzwsp_steg.encode('hidden message', zwsp_steg.MODE_ZWSP)zwsp_steg.encode('hidden message', zwsp_steg.MODE_FULL)```#### Character sets used- **MODE_ZWSP**: Zero-Width Space (\u200b), Zero-Width Non-Joiner (\u200c), Zero-Width Joiner (\u200d)- **MODE_FULL**: All MODE_ZWSP characters, Left-To-Right Mark (\u200e), Right-To-Left Mark (\u200f)### License[Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0)
Package: zww-test-package
使用说明安装打包:pipinstall-Usetuptoolswheeltwine使用打包命令pythonsetup.pysdistbdist_wheel上传到PyPI:twineupload--repository-urlhttps://upload.pypi.org/legacy/dist/*注:
去pypi申请账号
注册获取api key 配置好~/.pypirc文件twineupload--repository-urlhttps://upload.pypi.org/legacy/--config-file$HOME/.pypircdist/*
Package: zx
zxZX Spectrum Emulator written in a mix of Python and C++.More screenshotsFeaturesDesigned to be suitable for research and development purposes
such as unattended testing of Spectrum software, timing
analysis, etc.Meant to be easy to customize and re-use via Python interfaces.Fast and accurate emulation.Based on the fast and flexibleZ80 emulator.Development statusGeneral status: working pre-alpha.Supported machines: 48K only for now.Display: multi-colour effects,accurate timings.Sound: not supported yet.Tape: TAP and TZX formats supported as well as conversion to WAV.Snapshots: Z80.Playback recordings: RZX.Installation and runningFor the latest release:$sudopip3installzxOr directly from the repository for current development version:$sudopip3installgit+https://github.com/kosarev/zxLocal development setups are also supported:$gitclone--recursivehttps://github.com/kosarev/zx
$cdzx
$python3setup.pydevelop--prefix~/.localRunning:$zxControlsF1displays help.F2is to save snapshot.F3is to load snapshot or tape file.F6pauses/resumes tape.F10andESCquit the emulator.F11and double click switch between fullscreen and windowed mode.PAUSEand mouse click pause/resume emulation or RZX playback.Any Spectrum key stroke resumes emulation and leaves the RZX
playback mode back to the regular emulation mode.Running snapshots, recordings and tapes$zxelven.z80$zxexolon.rzx$zxhttps://www.worldofspectrum.org/pub/sinclair/games/e/EricTheFloaters.tzx.zipConverting filesSupported formats:.rzx,.scr,.tap,.tzx,.wav,.z80,.zip.$zxjack.tzxjack.wav$zxeric.taperic.z80Dumping files$zxdumprick.z80
OrderedDict([('id','z80_snapshot'),('a',213),('f',66),...On thedumpcommand,zxparses the specified file (that can
be of any supported format) in the form of raw Python data.Reference papersScreen timings
Package: zxc
Салам короче это модуль от чела который не шарит в питоне
Вот что хочу тебе сказать тут есть только две функции
и только 4 атрибутаimport zxczxc.zxc_math()Это запуск самого калькулятора на дефолдных настройках
у функции zxc_math() есть 3 атрибута
delay = По умолчанию стоит 0.2 требуте тип данных float или int | Это задержка на вывод
action = True/False bool тип данных | Подтверждение на продолжение выполнения скрипта
thread = True/False bool тип данных | Будет находиться в потоке или нетПример :::import zxczxc.zxc_math(delay=0.2,action=False,thread=False)Так же можно изменить само число от которого калькулятор будет отниматьimport zxczxc.setNum(1000)
zxc.zxc_math(delay=0,2,action=False,thread=False)в функции setNum() есть только один атрбут эта функция передаёт данные числа с которого
отнимается 7 в zxc_math() обязательно если есть в коде должна распологаться сверху zxc_math() во избежание ошибок
num = 1000 желательно использовать int но можно и float | Выставляет число для zxc_math()API to zxc python module by.Fikko @