Saravanan666/pypi-org huggingface dataset:
Package: days-until
days-untilThis CLI helps you count down to upcoming events. Inspired byyear-progress.Installation and Usage$pip3installdays-until
$days-until--add# The config file will be created the first time you run the program$days-untilOptions$days-until[OPTIONS]Countdowndaysuntilevents.WrittenbyAaronLichtman.https://github.com/alichtman/days_until

Options:--addPrompttoaddevents.--cleanRemoveeventswithenddatesthathavepassed.--compressCompressoutputwhenprinting.--configPrintpathtoconfigfile.--removeInteractivelyremoveevents.-v,--versionPrintversionandauthorinfo.-h,-help,--helpShowthismessageandexit.Configuration and Eventsdays-untilreads its configuration from$XDG_CONFIG_HOME/.config/days-until.yamlor~/.config/days_until.yaml.The easiest way to add events is with the--addoption. If you'd like to add the events manually, they should be in the following format:event1:event:"FinalDayinSwitzerland"dates:start:"2019-12-7"end:"2019-12-20"The top level keys (event1in this example) don't matter as long as they're unique. I tend to useevent{N}, but anything will work.eventis a string name for the event.startis the date on from which you'd like progress to be tracked.endis the date of the event.All dates should be inYYYY-MM-DDformat.To remove entries interactively, use the--removeoption.
Package: daytime
This module extends the datetime.time-module and makes it more handy
respectivly to comparison, addition and substraction.
You can compare, add and substract a daytime with another daytime, a
datetime.time-object or an int or float as total amount of seconds.
Making sums is also possible with a datetime.timedelta.Latest VersionThe latest version of this project can be found at :http://github.com/thomst/daytime.InstallationOption 1 : Install via pippip install daytimeOption 2 : If you have downloaded the sourcepython setup.py installDocumentationHow to use?from daytime import DayTime
import datetime

daytime1 = DayTime(2, 20, 23, 90000)
daytime2 = DayTime(12, 25, 0, 8400)

daytime1 - daytime2                 # DayTime(13, 55, 23, 81600)
daytime2 + datetime.time(22,3,4,5)  # DayTime(10, 28, 4, 8405)
daytime1 - 12400                    # DayTime(22, 53, 43, 90000)

daytime1 < daytime2                 # True
daytime2 > 4800                     # True

DayTime.utcfromtimestamp(24000.4)   # DayTime(6, 40, 0, 400000)Reporting BugsPlease report bugs at github issue tracker:https://github.com/thomst/daytime/issuesAuthorthomst <thomaslfuss@gmx.de>
Thomas Leichtfußhttp://github.com/thomst
Package: daytum-data
Intake Catalogue for US Oil and Gas Production DataInstallationpip install daytum-dataUsageTo avoid explicitly providing a username/password to every API call set the following environment variables in your shellBAZEAN_POSTGRES_USERNAME
BAZEAN_POSTGRES_PASSWORDThen import the cataloguesfromintakeimportcate.g. to get the historical production data by API numbercat.production.production_by_api(api='33001000050000')
Package: dayu-oiio
dayu_oiio是OpenImageIO 中oiiotool 的python 封装。将操作转换为stream
的概念，可以帮助用户不用记忆繁杂的终端命令行，直观的生成处理代码。
OpenImageIO 是非常强力的序列帧转码工具，包括生成tx
的工具都可以直接通过OpenImageIO 实现！准备工作首先通过pip 进行安装pipinstall-Udayu_oiio然后，需要用户自行安装或者编译OpenImageIO 中的oiiotool
工具。具体的操作可以参照：https://github.com/OpenImageIO/oiio对于mac 用户，可以比较简单，直接使用brew 进行安装即可：/usr/bin/ruby-e"$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)"brewinstallopenimageiolinux 用户也可以自行进行编译。windows
用户相对来说麻烦一些，需要自己按照OpenImageIO 官方手册自行编译。使用方法假设，用户希望对一套序列帧进行如下的操作：缩放使用ocio 转换色彩空间输出那么对应的代码就非常简单：fromdayu_oiio.streamimport*cmd=OIIO()>>\Input('/some/input/files.%04d.exr',start=1001,end=1008)>>\Resize(1920,1080)>>\ColorConvert('Input - ARRI - V3 LogC (EI800) - Wide Gamut','ACES - ACEScg',ocio='/some/ocio/config/file.config')>>\Output('/some/output/file.%04d',start=1101,end=1108)for_incmd.run():printcmd.progress高级扩展毕竟这里只封装了常用的 oiiotool
指令，如果用户需要使用的指令没有被封装，那么可以自己进行扩展：fromdayu_oiio.baseimportUnaryFilterStreamclassMultiply(UnaryFilterStream):_name='mul'# 这里对应oiio 中的指令def__init__(self,multiply_value):# 这里的参数是对应指令的参数super(Multiply,self).__init__()self.mul=multiply_valuedefcombine(self)# 这里务必将oiio 拼接的指令加到 self._value 这个变量中self._value+='--{param}{mul}'.format(param=self._name,mul=self.mul)这样，就完成了一个multiply 操作的自定义封装。之后就可以直接使用了：cmd=OIIO()>>\Input('/some/input/files.%04d.exr',start=1001,end=1008)>>\Multiply(1.4)>>\Output('/some/output/file.%04d',start=1101,end=1108)for_incmd.run():printcmd.progress一些已知的问题由于oiiotool 的命令行工具，再输出运行指令的时候不是每行都flush
到stdout，因此python 的subprocess
在运行结束之前无法无阻塞的获得运行状态。 因此，只能够每隔1s
进行扫描硬盘，来获得输出素材的进度如果想要同时使用ocio 的色彩管理，那么需要在编译的时候加入opencolorIO
的支持。（Mac 通过brew 安装的已经支持了）
Package: dayu-path
dayu_path针对影视行业的文件路径处理类。比起传统的os.path 有着下面的优点：基于unipath，将文件路径作为对象处理更好的针对影视行业文件优化。可以快速得到frame count、version 等字段扫描文件自动拼合序列帧，并且可以识别丢帧更快捷的文件序列帧格式转换。支持%0?d、####、$F? 的三种形式支持用户自行对DayuPath 添加更多的方法、属性简单用法说明继承与unipath，因此具备所有unipath 的方法。 （unipath
的git：https://github.com/mikeorr/Unipath）fromdayu_pathimportDayuPath# 初始化disk_path=DayuPath('/some/v0001/A001C001_170922_E4FB.1001.exr')# 查询父级目录assertdisk_path.parent=='/some/v0001'# 拼接子文件夹、子文件assertdisk.path.parent.child('child','new_file.txt')=='/some/v0001/child/new_file.txt'# 获得文件名、文件扩展名、文件主干部分assertdisk_path.name=='A001C001_170922_E4FB.1001.exr'assertdisk.path.ext=='.exr'assertdisk_path.stem=='A001C001_170922_E4FB.1001'# 扫描当前目录下的所有文件夹、文件printdisk_path.parent.listdir()# 遍历当前文件夹下所有深度的文件夹、文件forsingle_fileindisk_path.parent.walk():printsingle_file# 快速获得相应的version、frame countassertdisk_path.frame==1001assertdisk_path.version=='v0001'# 快速得到文件的挂载目录（盘符、挂载点）assertdisk_path.root=='/'# 判断文件是本地文件系统，还是网络文件系统assertDayuPath('/some/local/file').is_local==TrueassertDayuPath('/some/network/file').is_network==True# 文件实际名称转换为序列帧形式assertdisk_path.to_pattern()=='/some/v0001/A001C001_170922_E4FB.%04d.exr'assertdisk_path.to_pattern('#')=='/some/v0001/A001C001_170922_E4FB.####.exr'assertdisk_path.to_pattern('$')=='/some/v0001/A001C001_170922_E4FB.$F4.exr'# 从序列帧的形式，恢复成为绝对文件路径disk_pattern=disk_path.to_pattern()assertdisk_pattern.pattern=='%04d'assertdisk_pattern.restore_pattern(1234)=='/some/v0001/A001C001_170922_E4FB.1234.exr'# 文件扫描，支持递归深度。并且将扫描的文件自动识别为序列帧的形式forsequence_fileindisk_path.scan(recursive=True):printsequence_file# SequenceFile(filename='/some/v0001/A001C001_170922_E4FB.%04d.exr'#               frames=[1001, 1002, 1003, 1004, 1006],#               missing=[1005])DayuPathPlugin 的插件用法如果用户需要对DayuPath
添加自定义的函数属性，除了常规的继承方法之外。还可以使用DayuPathPlugin
将自定义的方法、属性以插件的形式加入DayuPath。
这样可以更加灵活的在代码的任意地方根据需要增加、减少功能。fromdayu_pathimportDayuPath,DayuPathPlugin# 用户自己添加的功能函数defmy_function(self,*args,**kwargs):printargs,kwargs# 增加插件函数 （实例化方法）DayuPathPlugin.register_func(my_function)DayuPath('/some/path/file').my_function(123)# (1,2,3), {}# 也可以使用装饰器来进行注册@DayuPathPlugin.register_funcdefother_function(self):return'hello world'# 增加插件属性 （类属性）DayuPathPlugin.register_attribute('my_key',default_value=100)assertDayuPath('/some/other/file').my_key==100# 取消插件函数、插件属性ret=DayuPathPlugin.unregister('my_function')assertret==Trueret=DayuPathPlugin.unregister('my_key')assertret==True
Package: dayu-ratelimit
ratelimit
########安装
==========.. code-block:: shellpip install ratelimit-py3示例
==========2.1 异步.. code-block:: python@AsyncRateLimit(limit=3)
async def add(a, b):
    await asyncio.sleep(0.01)
    return a + b


@AsyncRateLimit(limit=3, uniform_rate=True)
async def sub(a, b):
    await asyncio.sleep(0.2)
    return a - b2.2 同步.. code-block:: python@RateLimit(limit=3)
def add(a, b):
    time.sleep(0.01)
    return a + b


@RateLimit(limit=3, uniform_rate=True)
def sub(a, b):
    time.sleep(0.02)
    return a - b
Package: dayu-timecode
dayu_timecodeTimecode 的计算库。针对影视行业常见的各种timecode、frame
进行计算。有下面的特点：支持SMPTE NDF、SMPTE DF、DLP、SRT、FFMPEG、FCPX 多种格式的timecode目前支持到 fps=60 的高帧速率支持hour loop 和 负数时间timecode、frame 之间自由转换支持和其他常用的数字类型进行运算，无需转换（int、float、Fraction）如何安装直接使用pip 即可安装pipinstall-Udayu_timecodeDayuTimeCode 使用简介fromdayu_timecodeimportDayuTimeCode# 针对各种输入，进行初始化smpte_ndf_tc=DayuTimeCode('01:02:03:12',fps=24.0)smpte_df_tc=DayuTimeCode('01:09:00;02',fps=29.97)srt_tc=DayuTimeCode('00:00:03,245',fps=25.0)dlp_tc=DayuTimeCode('01:12:22:136',fps=24.0)ffmpeg_tc=DayuTimeCode('00:02:12.24',fps=24.0)fcpx_tc=DayuTimeCode('1/24s',fps=24.0)frame_int_tc=DayuTimeCode(100,fps=25.0)frame_long_tc=DayuTimeCode(86400.2,fps=24.0)time_tc=DayuTimeCode([24,3],fps=24.0)# 时码、帧数转换assertsmpte_ndf_tc.timecode()=='01:02:03:12'assertsmpte_ndf_tc.frame()==89364.00# 得到时码中 小时、分钟、秒、帧数的分量assertsmpte_ndf_tc.hour==1assertsmpte_ndf_tc.minute==2assertsmpte_ndf_tc.second==3assertsmpte_ndf_tc.sub_frame==12a=DayuTimeCode('01:02:03:12',fps=24.0)b=DayuTimeCode(86400.2,fps=24.0)# 加法、减法、乘法、除法printa+b# <DayuTimeCode>(02:02:03:12, 175764.20, 24.00)printa-b# <DayuTimeCode>(00:02:03:12, 2963.80, 24.00)printa*3# <DayuTimeCode>(03:06:10:12, 268092.00, 24.00)printa/2# <DayuTimeCode>(00:31:01:18, 44682.00, 24.00)# 各种比较方式printa==bprinta>bprinta>=bprinta<bprinta<=bprinta!=b# 类型转换printfloat(a)printint(a)# 变速（指定一个起点，以及变速的速度）start_tc=DayuTimeCode(0)printa.retime(start_tc,2.0)# 表示从0 开始，两倍速播放后的timecodeDayuTimeRange 使用简介DayuTimeRange 由两个DayuTimeCode 组成的一个时间区域。# 初始化start=DayuTimeCode(0)end=DayuTimeCode(100)time_range=DayuTimeRange(start,end)# zero_length_range = DayuTimeRange(DayuTimeCode(10), DayuTimeCode(10))    # 会出错，因为start 和end 都是同一个时间# 访问属性printtime_range.start# 起点printtime_range.end# 终点printtime_range.duration.frame()# 获得 frame 长度printlen(time_range)# 获得 frame 长度的另一种方法# 加法、减法、乘法、除法printtime_range+10# 表示整个time_range 向右移动 10 frameprinttime_range-20# 表示整个time_range 向左移动 20 frameprinttime_range*2# 表示整个time_range 起点不动，长度变成原来的 2 倍printtime_range/3# 表示整个time_range 起点不动，长度变成原来的 三分之一# 处理handletime_range.handle(10,10)# 表示time_range 的start 向左增加 10 frame，end 向右增加 10 frame# 切镜头处理cut_point=DayuTimeCode(20)printtime_range.cut(cut_point)# 得到两个区域 (0 - 20), (20 - 100)# 判断timecode 或者一个time range 是否在当前timerange 的内部sample_tc=DayuTimeCode(20)sample_time_range=DayuTimeRange(DayuTimeCode(30),DayuTimeCode(70))assertsample_tcintime_rangeassertsample_time_rangeintime_range# 两个DayuTimeRange 之间的交集、并集、差异 运算a=DayuTimeRange(DayuTimeCode(0),DayuTimeCode(100))b=DayuTimeRange(DayuTimeCode(50),DayuTimeCode(150))printa&b# 二者之间交叠的部分 (50 - 100)printa|b# 二者的并集运算 （0 - 150）printa^b# 二者的差异运算  (0 - 50), (100 - 150)# 遍历time range 内的所有时码fortcintime_range:printtc# 会逐一打印 从 DayuTimeCode(0) ~ DayuTimeCode(99)
Package: dayu-widgets
dayu_widgetsComponents for PySide主要参考了AntDesign组件库，其他参考了iView组件库，微信基础组件。更多在此基础上的组件插件：dayu_widgets_tag:中文|ENdayu_widgets_log:中文|ENdayu_widgets_overlay提供亮色(light)和暗色(dark)两种主题，每种主题可以设置主题颜色。
以下截图以：亮色 #1890ff暗色 #fa8c16GeneralMPushButton(<- QPushButton)MLabel (<- QLabel)MLoading (<- QWidget)MToolButton (<- QToolButton)NavigationMBreadcrumb (<- QWidget)MMenuTabWidget (<- QWidget)MPage (<- QWidget)Data EntryMCheckBox <- QCheckBoxMClickBrowserFilePushButton <- MPushButtonMClickBrowserFileToolButton <- MToolButtonMClickBrowserFolderPushButton <- MPushButtonMClickBrowserFolderToolButton <- MToolButtonMDragFileButton <- MToolButtonMDragFolderButton <- MToolButtonMLineEdit <- QLineEditMRadioButton <- QRadioButtonMSwitch <- QRadioButtonMSilder <- QSliderMSpinBox <- QSpinBoxMDoubleSpinBox  <- QDoubleSpinBoxMDateTimeEdit <- QDateTimeEditMDateEdit <- QDateEditMTimeEdit <- QTimeEditData DisplayMAvatar <- QLabelMBadge <- QWidgetMCarousel <- QGraphicsViewMCard <- QWidgetMCollapse <- QWidgetMLineTabWidget <- QWidgetMTag <- QLabelMCheckableTag <- QCheckBoxMNewTag <- QWidgetFeedbackMAlert <- QWidgetMDrawer <- QWidgetMMessage <- QWidgetMProgressBar <- QProgressBarMProgressCircle <- QProgressBarMToast <- QWidgetOtherMDivider <- QWidget如何贡献代码安装poetryshell pip install poetry安装依赖poetryinstall运行单元测试poetryrunpytest运行 black检查poetryrunblackdayu_widgets运行isortpoetryrunisortdayu_widgets提交代码poetryrunczcommitContributors ✨Thanks goes to these wonderful people (emoji key):Yanru Mu💻Hal💻FXTD-ODYSSEY💻
Package: dayu-widgets3
dayu_widgets3这是一个 PySide 组件库。Python: >=3.6, <3.11PySide2/PySide6使用qtpy来做兼容，支持PySide2和PySide6，至于PyQt4、PyQt5，可自行测试。主要参考了AntDesign组件库，其他参考了iView组件库，微信基础组件。更多在此基础上的组件插件：dayu_widgets_tag:中文|ENdayu_widgets_log:中文|ENdayu_widgets_overlay如何贡献代码安装poetryshell pip install poetry安装依赖poetryinstall注意，依赖里并未强制要求安装任何 Qt 的python 绑定库，可根据自己的需要，选择手动安装 PySide2、PySide6、PyQt4、PyQt5。运行单元测试poetryrunpytest运行 black检查poetryrunblackdayu_widgets3运行isortpoetryrunisortdayu_widgets3提交代码poetryrunczcommit
Package: dayu-widgets-overlay
dayu_widgets_overlayPython Qt Overlay Widget as adayu_widgetspluginHow it workoverlay the widget onto the other widget and resize together
much easy to add and maintain instead of create a New type of widget.How to usepip install dayu_widgets_overlayfromdayu_widgets_overlayimportMOverlayIn Qt Designer, you can extend a QWidget into MOverlayQtDesigner Propertydirection:ESWNstretch(optional - default: Auto) :NoStretchVerticalHorizontalCenterAutoSee my blog article for more details in chinesehttps://blog.l0v0.com/posts/1ba28015.html
Package: dayu-widgets-overlay2
dayu_widgets_overlayPython Qt Overlay Widget as adayu_widgetspluginHow it workoverlay the widget onto the other widget and resize together
much easy to add and maintain instead of create a New type of widget.How to usepip install dayu-widgets-overlayfromdayu_widgets_overlayimportMOverlayIn Qt Designer, you can extend a QWidget into MOverlayQtDesigner Propertydirection:ESWNstretch(optional - default: Auto) :NoStretchVerticalHorizontalCenterAutoSee my blog article for more details in chinesehttps://blog.l0v0.com/posts/1ba28015.html
Package: dayz-dev-tools
DayZ Dev ToolsThis project contains tools and libraries that can be useful for DayZ mod
developers and server owners, including:guid- Tool for converting 64-bit SteamIDs to DayZ GUIDsunpbo- Tool for inspecting PBO archives and extracting their contentsrun-server- Tool that makes running DayZ Server easierMore information:DocumentationInstallationDayZ Dev Tools is listed onPyPI. I
highly recommend installing it usingpipxfor
command line use:pipx install dayz-dev-toolsIt can also be installed withpipor using your preferred Python package
manager:pip install dayz-dev-toolsDayZ Dev Tools can be run on Windows or Linux but Python 3.8 or higher is
required.
Package: dazl
Daml Python bindings (formerly known as dazl)Copyright (c) 2017-2023 Digital Asset (Switzerland) GmbH and/or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0Rich Python bindings for accessing Ledger API-based applications.DocumentationThe user documentation is available onlinehere.InstallationIf you just want to use the library, you can install it locally withpip:pipinstall--userdazlRequirementsPython 3.6+Daml ConnectPython gRPC libraries (1.32.0 or later) and ProtobufWARNING:The next major version of dazl (v8.0.0) will requirePython 3.8or later.ExamplesAll of the examples below assume you importeddazl, and are running a ledger with the default scenario generated withdaml new.Connect to the ledger and submit a single command:importasyncioimportdazlasyncdefmain():asyncwithdazl.connect(url='http://localhost:6865',act_as='Alice')asclient:contract={'issuer':'Alice','owner':'Alice','name':'hello world!'}awaitclient.create('Main:Asset',contract)# Python 3.7+asyncio.run(main())# Python 3.6+loop=asyncio.get_event_loop()loop.run_until_complete(main())Connect to the ledger as a single party, print all contracts, and close:importasyncioimportdazlfromdazl.ledgerutilimportACSasyncdefmain():asyncwithdazl.connect(url='http://localhost:6865',read_as='Alice')asconn:asyncwithACS(conn,{"*":{}})asacs:snapshot=awaitacs.read()print(snapshot)# Python 3.7+asyncio.run(main())# Python 3.6+loop=asyncio.get_event_loop()loop.run_until_complete(main())Building locallyYou will need additional dependencies to build locally:GNU Make 4.3 or laterPoetryfor build/dependency managementOnce you have these prerequisites in place:makebuildIf you see errors about incompatible python versions, switch your environment to python3 usingpoetry env use python3, for instance.TestsTests in the Daml Python bindings are written usingpytest. You can run them by doing:maketestSupportThe Daml Python bindings library is supported under the Daml Enterprise license. If you do not have a Daml Enterprise license and are in need of support, have questions or just want to engage in friendly conversation anything Daml, contact us on ourDaml Community Forum.
Package: dazu
DazuDazuis a powerfull engine dialogue engine with two main parts:NLUanddialogue. The main objetive of this project is too use existing chatbots projects and uses it to develop your solution.The name was inspired byDazu Ausubelbecause the main objective of this project was to build a collaborative platform to maintain Bots for learning.Inspired by Watson Assistant and Rasa.Getting StartedThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.Docker:docker-composeup--buildEditable mode:pipinstall-e.cdexamples/my-first-bot
dazutrain
dazurunAfter that you should see this output:dazurun*ServingFlaskapp"dazu.__main__"(lazyloading)*Environment:productionWARNING:Donotusethedevelopmentserverinaproductionenvironment.UseaproductionWSGIserverinstead.*Debugmode:off*Runningonhttp://0.0.0.0:5000/(PressCTRL+Ctoquit)PrerequisitesTo build, first install all necessary dependencies:All the dependencies can be find inrequirements.txtand development inrequirements-dev.txt.Installing Development EnvironmentA step by step installation guide:Run these commands to installdazuin your python virtual env:pipinstall-rrequirements-dev.txt
pipinstall-e.Go to examples folder and start the project:cdexamples/my-first-bot
dazutrain
dazurunHave fun :rocket:Code StyleTo ensure a standardized code style we use the formatterblack.
To ensure our type annotations are correct we use the type checkerpytype.
If your code is not formatted properly or doesn't type check, travis will fail to build.FormattingIf you want to automatically format your code on every commit, you can usepre-commit.
Just install it viapip install pre-commitand executepre-commit installin the root folder.
This will add a hook to the repository, which reformats files on every commit.If you want to set it up manually, install black viapip install -r requirements-dev.txt.
To reformat files executemakeformatterType CheckingIf you want to check types on the codebase, installpytypeusingpip install -r requirements-dev.txt.
To check the types executemaketypesRunning the testsStill neededDeploymentStill neededBuilt WithPython- The main programing language usedContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.AuthorsRaphael Pinto-Creator-ralphg6See also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the Apache-2.0 - see theLICENSEfile for detailsAcknowledgmentsArthur Temporim-arthurTemporim
Package: dazzl-aws-lambda-tools
LIB Dazzl Lambda Tools |Library python for simplify to create lambda function (AWS lambda) and Dazzl API service.The authentication is automatically executed and use a environment variable.How to use# Importimportdazzl_aws_lambda_toolsasaws_lambda# Initialize# It's a bucket eventdz=aws_lambda.Tools(record)# Send a request to backendpath='/super/path/with/id/and/another/data'body={'foo''bar'}dz.send('POST',path,body)# Get name to bucketdz.bucket_name()# Get key to bucketdz.bucket_key()Logger and environmentsThe logger has different level :development has levelDEBUG,staging has levelINFO,production has levelERRORif you want customize log level use variable environmentLOG_LEVELFor more information see :Logging LevelsVariables environmentsNameValue exampleRequiredLOG_LEVELinfofalseURL_API__<env>https://dazzl.tvtrueif you want send requestUSERNAME_<env>roger@dazzl.tvtrueif you want send requestPASSWORD_<env>hidden_passwordtrueif you want send request<env>is a environment type :development :DEVEstaging :STAGproduction :PRODConvention bucket nameThe bucket name exist for three environment :EnvironmentExample bucket namedevelopmentsuffix.name.developmentstagingsuffix.name.stagingproductionsuffix.nameScript testclear; python3 -m memory_profiler ./tests/requests.py ; python3 -m memory_profiler ./tests/simple.py
Package: dazzle
# Dazzle ✨*Make your output sparkle, without long repetitive code*Who doesn't love color, I know I do. However I don't like any color libs, they can take up so much column space, andcan end up being repetitive, leading to functions such as```pydef announcement(title: str, desc: str):print(colorlib.BLUE + "Announcement: " + title + colorlib.WHITE + "\n\n" + desc)```I actually have nothing against these functions, but they got me thinking. If I'm always going to end up makingfunctions, let's cut to the chase.```pyfrom dazzle import Fore, INPannounce = Fore.BLUE + "Announcement: " + INP + Fore.WHITE + "\n\n" + INPannounce("Hello World", "Fizz Buzz")```Each of these methods would result in the same thing. Another issue with color libs, is that they can be a pain toimplement later down the road. Dazzle has you covered here too.```pywith Back.BLUE + INP + " " + Fore.RED + " " + INP:print("John:", "Howdy Mary")print("Mary:", "Howdy John")```Dazzle will override the print function, so that it will add the colors provided in the with statement. Keep in mindthat any excess input will be ignored.## PitfallsWhen you call a color chain, you pass `write=False` in so that it doesn't print the result. If write is True, it won'toutput anything. If False it will output that string.**Don't*** Start it with a normal string, use `t(<string>)` if you need to do that.* Use with statement with inconsistent print functions.* Wrap it with `()`. It should still work, but their's no need.* Use *repr* when requiring an input.* Be stupid.These were the docs, this is a very small and simple library.[here you'll find a list of colors](https://github.com/tartley/colorama/blob/master/colorama/ansi.py#L49) that areavailable. Dazzle covers Fore, Back, Style and Cursor, all as you'd expect. Thanks for using dazzle! ✨
Package: dazzler
DazzlerDazzler is a hybrid UI framework for Python to create Desktop or Web Applications.Built withAiohttp,ReactandElectron.InstallInstall with pip:$ pip install dazzlerFeaturesFast WebSocket based communication, deliver updates in realtime to thousands of connected clients at once.Build desktop applications with Electron.Support for third party integrations via middlewares.Session & authentication systems.Tie & Transform API to perform updates on the client side.QuickstartQuickstart with a GitHub templatedazzler-app-templatedazzler-electron-templatedazzler-component-templateExampleCreate a page with a layout and assign bindings to save & load a visitor name
with the session system. The button to save the visitor name is disabled if
no input value via tie & transform.fromdazzlerimportDazzlerfromdazzler.systemimportPage,BindingContext,CallContext,transformsastfromdazzler.componentsimportcoreapp=Dazzler(__name__)page=Page(__name__,core.Container([core.Html('H2','My dazzler page'),core.Container('Please enter a name',identity='visitor-name'),core.Input(value='',identity='input'),core.Button('Save name',identity='save-btn',disabled=True),],identity='layout',id='layout'),title='My Page',url='/')# UI updates via tie & transformspage.tie('value@input','disabled@save-btn').transform(t.Length().t(t.Lesser(1)))# Bindings executes on the server via websockets.@page.bind('clicks@save-btn')asyncdefon_click(context:BindingContext):# Save the visitor name via session systemname=awaitcontext.get_aspect('input','value')awaitcontext.session.set('visitor',name)awaitcontext.set_aspect('visitor-name',children=f'Saved{name}')# Aspects defined on the layout trigger on initial render and# allows to insert initial data.# `call` executes via regular requests.@page.call('id@layout')asyncdefon_layout(context:CallContext):visitor=awaitcontext.session.get('visitor')ifvisitor:awaitcontext.set_aspect('visitor-name',children=f'Welcome back{visitor}!')app.add_page(page)if__name__=='__main__':app.start()DocumentationFull documentation hosted onreadthedocs.Get help for the command line tools:$ dazzler --help