Saravanan666/pypi-org huggingface dataset:
Package: avilla-satori
AvillaThe next-gen framework for IM development.即刻动身, 踏上寻找第二个故乡的旅程.Avilla 是Graia Project的 "下一代" 框架实现,
通过对OneBot,Telegram Bot API及其他的基于不同即时通讯软件实现的各式对接接口,
以及其他具有相应概念的 "异步消息流" 实例进行总结, 抽象其中最为基本的各式模型, 构造了一个理论上可以实现零成本切换对接平台的框架.该框架目前处于快速迭代状态, API 可能会发生剧烈变化, 可能还不适合进行生产性的开发与运维项目名称取自日本轻小说 《魔女之旅》 的角色 "艾维莉亚(Avilla)".DocsNotable Features原生跨平台: 开创性的 Relationship 操作模型, 配合最小功能单元, 行为扩展等诸多独特设计, 无论是简单的消息收发还是平台设计的独特交互, Avilla 都能处理地得心应手.原生多账号: Avilla 在设计之初, 就考虑了同时管理多个账号, 甚至是多个平台上的多个账号这些问题, 并加以研究与解决. 而现在, 账号管理本应如此简单便捷而收放自如.一次编写, 多平台可用: 得益于 Avilla 的强大抽象, 开发者只需面向 Avilla 就能完成核心业务的开发, 显著的减少了维护成本.平台特性友好: Avilla 以 Activity, Reaction, Extension 等诸项设计, 使得开发者在运用平台特性的方式更加规范而不失表达性. 担心平台间特性的不通用? 你可以同时为多个平台编写不同的特性用例, Avilla 会自动应用可用的适配, 不改动核心逻辑的同时保证基本特性的可用!担心可用性? 我们同样提供了一些核心的非平台依赖实现, 例如TextCommand, 这些组件仅要求平台实现最基本的交互实现, 剩下的一切交给 Avilla 处理!现有基建兼容: 得益于Amnesia,Commander,Twilight,Alconna或是基于Launart编写的各式扩展, 可以直接与 Avilla 协同而无需任何迁移成本.高可伸缩性: Avilla 既支持单文件使用, 亦支持基于 Graia Saya 驱动的模块系统编写应用.Quick Startfromavilla.coreimportAvilla,Context,MessageReceivedfromavilla.console.protocolimportConsoleProtocolavilla=Avilla()avilla.apply_protocols(ConsoleProtocol())@avilla.listen(MessageReceived)asyncdefon_message_received(cx:Context,event:MessageReceived):awaitcx.scene.send_message("Hello, Avilla!")avilla.launch()部件发布情况代号对接平台协议开发进度PyPI维护者开源协议Core--AlphaOfficialMITConsole终端环境ConsoleAlphaOfficialMITElizabethTencent QQmirai-api-httpAlphaOfficialAGPLv3Onebot 11多平台支持OneBot v11WIPOfficial-QQ APITencent QQ / QQ-GuildQQ / QQ-Guild Official APIWIPOfficialMITRedTencent QQNTRed ProtocolWIPOfficialMITSatori多平台支持Satori Protocol (v1)WIPOfficialMITTelegramTelegramTelegramDraft--NightcordDiscordDiscord BotsDraft--KookKookKookDraft--OneBot 12多平台支持OneBot v12Planned---我们的愿景创造出比这之前还要更加具有潜力和创造性的作品, 借此有力促进社区的发展,
助力社区的艺术家们 (Developers & Artists) 以更高的效率, 基于更完善的底层, 创作出更加精彩的作品.相关项目星座的光芒是由一个个星点共同组成的, 任何优秀的作品都绝不会是一个人的功绩.而若是没有这些项目, Avilla 的实现就无从谈起.排名不分顺序, 可能有许遗漏, 这里仅列出部分较为重要的项目.Nonebot Team:Nonebot v2: 同样是社区中赫赫有名的优秀框架.Arclet Project: 在借鉴的基础上, 还进行了难能可贵的优秀创新, 仍在不断成长的框架实现.Mamoe Technologies:miraimirai-api-httpOneBot Spec: Avilla for OneBot 所依据的实现规范, 同时也是 Avilla Protocol 设计时的参考之一.go-cqhttp: 可能是现在运用最为广泛的 OneBot v11 & v12 实现.无论如何, Avilla 都是 Graia Project 下的一个子项目, 以下项目均在不同层面上支持了 Avilla 的开发:Broadcast Control: 事件系统实现, 最为锋利的魔剑(Magic Sword).Ariadne: 继承了前作的衣钵, 在 Avilla 尚未成熟之际撑起大梁的后续作品, 同样进行了可贵的创新.衷心感谢这些以及其他未被提及的项目.开源协议若非特殊说明, Avilla 及其子包默认使用 MIT 作为开源协议, 但如果你若引用到了使用 GPL/AGPL/LGPL 等具有传染性开源协议的项目, 无论是对 Avilla 实现或是使用了相应 Avilla 实现的项目仍需要遵循相关规则.
Package: avilla-spec-qq
AvillaThe next-gen framework for IM development.即刻动身, 踏上寻找第二个故乡的旅程.Avilla 是Graia Project的 "下一代" 框架实现,
通过对OneBot,Telegram Bot API及其他的基于不同即时通讯软件实现的各式对接接口,
以及其他具有相应概念的 "异步消息流" 实例进行总结, 抽象其中最为基本的各式模型, 构造了一个理论上可以实现零成本切换对接平台的框架.该框架目前处于快速迭代状态, API 可能会发生剧烈变化, 可能还不适合进行生产性的开发与运维项目名称取自日本轻小说 《魔女之旅》 的角色 "艾维莉亚(Avilla)".DocsNotable Features原生跨平台: 开创性的 Relationship 操作模型, 配合最小功能单元, 行为扩展等诸多独特设计, 无论是简单的消息收发还是平台设计的独特交互, Avilla 都能处理地得心应手.原生多账号: Avilla 在设计之初, 就考虑了同时管理多个账号, 甚至是多个平台上的多个账号这些问题, 并加以研究与解决. 而现在, 账号管理本应如此简单便捷而收放自如.一次编写, 多平台可用: 得益于 Avilla 的强大抽象, 开发者只需面向 Avilla 就能完成核心业务的开发, 显著的减少了维护成本.平台特性友好: Avilla 以 Activity, Reaction, Extension 等诸项设计, 使得开发者在运用平台特性的方式更加规范而不失表达性. 担心平台间特性的不通用? 你可以同时为多个平台编写不同的特性用例, Avilla 会自动应用可用的适配, 不改动核心逻辑的同时保证基本特性的可用!担心可用性? 我们同样提供了一些核心的非平台依赖实现, 例如TextCommand, 这些组件仅要求平台实现最基本的交互实现, 剩下的一切交给 Avilla 处理!现有基建兼容: 得益于Amnesia,Commander,Twilight,Alconna或是基于Launart编写的各式扩展, 可以直接与 Avilla 协同而无需任何迁移成本.高可伸缩性: Avilla 既支持单文件使用, 亦支持基于 Graia Saya 驱动的模块系统编写应用.Quick Startfromcreartimportcreatefromgraia.amnesia.builtins.aiohttpimportAiohttpClientServicefromgraia.broadcastimportBroadcastfromavilla.coreimportAvilla,Context,MessageReceivedfromavilla.elizabeth.connection.configimportWebsocketClientConfigfromavilla.elizabeth.protocolimportElizabethProtocolbroadcast=create(Broadcast)avilla=Avilla(broadcast,[ElizabethProtocol(WebsocketClientConfig("bot-account","mah-verify-code"))],[AiohttpClientService()])@broadcast.receiver(MessageReceived)asyncdefon_message_received(ctx:Context,event:MessageReceived):ifctx.client.follows("group.member(<master-account>)"):awaitctx.scene.send_message("Hello, Avilla!")avilla.launch_manager.launch_blocking(loop=broadcast.loop)部件发布情况代号协议开发进度PyPI维护者开源协议Core-AlphaOfficialMITElizabethmirai-api-httpWIPOfficialAGPLv3-OneBot v11WIPOfficial--OneBot v12DraftOfficial--TelegramDraft--NightcordDiscord BotsDraftOfficial-我们的愿景创造出比这之前还要更加具有潜力和创造性的作品, 借此有力促进社区的发展,
助力社区的艺术家们 (Developers & Artists) 以更高的效率, 基于更完善的底层, 创作出更加精彩的作品.相关项目星座的光芒是由一个个星点共同组成的, 任何优秀的作品都绝不会是一个人的功绩.而若是没有这些项目, Avilla 的实现就无从谈起.排名不分顺序, 可能有许遗漏, 这里仅列出部分较为重要的项目.Nonebot Team:Nonebot v2: 同样是社区中赫赫有名的优秀框架.Arclet Project: 在借鉴的基础上, 还进行了难能可贵的优秀创新, 仍在不断成长的框架实现.Mamoe Technologies:miraimirai-api-httpOneBot Spec: Avilla for OneBot 所依据的实现规范, 同时也是 Avilla Protocol 设计时的参考之一.go-cqhttp: 可能是现在运用最为广泛的 OneBot v11 & v12 实现.无论如何, Avilla 都是 Graia Project 下的一个子项目, 以下项目均在不同层面上支持了 Avilla 的开发:Broadcast Control: 事件系统实现, 最为锋利的魔剑(Magic Sword).Ariadne: 继承了前作的衣钵, 在 Avilla 尚未成熟之际撑起大梁的后续作品, 同样进行了可贵的创新.衷心感谢这些以及其他未被提及的项目.开源协议若非特殊说明, Avilla 及其子包默认使用 MIT 作为开源协议, 但如果你若引用到了使用 GPL/AGPL/LGPL 等具有传染性开源协议的项目, 无论是对 Avilla 实现或是使用了相应 Avilla 实现的项目仍需要遵循相关规则.
Package: avilla-standard-qq
AvillaThe next-gen framework for IM development.即刻动身, 踏上寻找第二个故乡的旅程.Avilla 是Graia Project的 "下一代" 框架实现,
通过对OneBot,Telegram Bot API及其他的基于不同即时通讯软件实现的各式对接接口,
以及其他具有相应概念的 "异步消息流" 实例进行总结, 抽象其中最为基本的各式模型, 构造了一个理论上可以实现零成本切换对接平台的框架.该框架目前处于快速迭代状态, API 可能会发生剧烈变化, 可能还不适合进行生产性的开发与运维项目名称取自日本轻小说 《魔女之旅》 的角色 "艾维莉亚(Avilla)".DocsNotable Features原生跨平台: 开创性的 Relationship 操作模型, 配合最小功能单元, 行为扩展等诸多独特设计, 无论是简单的消息收发还是平台设计的独特交互, Avilla 都能处理地得心应手.原生多账号: Avilla 在设计之初, 就考虑了同时管理多个账号, 甚至是多个平台上的多个账号这些问题, 并加以研究与解决. 而现在, 账号管理本应如此简单便捷而收放自如.一次编写, 多平台可用: 得益于 Avilla 的强大抽象, 开发者只需面向 Avilla 就能完成核心业务的开发, 显著的减少了维护成本.平台特性友好: Avilla 以 Activity, Reaction, Extension 等诸项设计, 使得开发者在运用平台特性的方式更加规范而不失表达性. 担心平台间特性的不通用? 你可以同时为多个平台编写不同的特性用例, Avilla 会自动应用可用的适配, 不改动核心逻辑的同时保证基本特性的可用!担心可用性? 我们同样提供了一些核心的非平台依赖实现, 例如TextCommand, 这些组件仅要求平台实现最基本的交互实现, 剩下的一切交给 Avilla 处理!现有基建兼容: 得益于Amnesia,Commander,Twilight,Alconna或是基于Launart编写的各式扩展, 可以直接与 Avilla 协同而无需任何迁移成本.高可伸缩性: Avilla 既支持单文件使用, 亦支持基于 Graia Saya 驱动的模块系统编写应用.Quick Startfromavilla.coreimportAvilla,Context,MessageReceivedfromavilla.console.protocolimportConsoleProtocolavilla=Avilla()avilla.apply_protocols(ConsoleProtocol())@avilla.listen(MessageReceived)asyncdefon_message_received(cx:Context,event:MessageReceived):awaitcx.scene.send_message("Hello, Avilla!")avilla.launch()部件发布情况代号对接平台协议开发进度PyPI维护者开源协议Core--AlphaOfficialMITConsole终端环境ConsoleAlphaOfficialMITElizabethTencent QQmirai-api-httpAlphaOfficialAGPLv3Onebot 11多平台支持OneBot v11WIPOfficial-QQ APITencent QQ / QQ-GuildQQ / QQ-Guild Official APIWIPOfficialMITRedTencent QQNTRed ProtocolWIPOfficialMITSatori多平台支持Satori Protocol (v1)WIPOfficialMITTelegramTelegramTelegramDraft--NightcordDiscordDiscord BotsDraft--KookKookKookDraft--OneBot 12多平台支持OneBot v12Planned---我们的愿景创造出比这之前还要更加具有潜力和创造性的作品, 借此有力促进社区的发展,
助力社区的艺术家们 (Developers & Artists) 以更高的效率, 基于更完善的底层, 创作出更加精彩的作品.相关项目星座的光芒是由一个个星点共同组成的, 任何优秀的作品都绝不会是一个人的功绩.而若是没有这些项目, Avilla 的实现就无从谈起.排名不分顺序, 可能有许遗漏, 这里仅列出部分较为重要的项目.Nonebot Team:Nonebot v2: 同样是社区中赫赫有名的优秀框架.Arclet Project: 在借鉴的基础上, 还进行了难能可贵的优秀创新, 仍在不断成长的框架实现.Mamoe Technologies:miraimirai-api-httpOneBot Spec: Avilla for OneBot 所依据的实现规范, 同时也是 Avilla Protocol 设计时的参考之一.go-cqhttp: 可能是现在运用最为广泛的 OneBot v11 & v12 实现.无论如何, Avilla 都是 Graia Project 下的一个子项目, 以下项目均在不同层面上支持了 Avilla 的开发:Broadcast Control: 事件系统实现, 最为锋利的魔剑(Magic Sword).Ariadne: 继承了前作的衣钵, 在 Avilla 尚未成熟之际撑起大梁的后续作品, 同样进行了可贵的创新.衷心感谢这些以及其他未被提及的项目.开源协议若非特殊说明, Avilla 及其子包默认使用 MIT 作为开源协议, 但如果你若引用到了使用 GPL/AGPL/LGPL 等具有传染性开源协议的项目, 无论是对 Avilla 实现或是使用了相应 Avilla 实现的项目仍需要遵循相关规则.
Package: avio
avioPython library for processing media streamsPlease NoteThis python module has dependencies on development libraries which
must be installed prior to installing.  This module is released as
a source distribution and is compiled on the host.Debian or Ubuntu linux, use the following command
to install the dependencies.sudo apt install cmake libavcodec-dev libavdevice-dev libsdl2-devWindows, please use Anaconda.  The dependencies may
be installed using the following command under a conda prompt.  The
Visual Studio C++ compiler must be installed as well.conda install cmake ffmpeg sdl2 -c conda-forgeIf successful, install avio python modulepip install avioTo uninstallpip uninstall avioCopyright (c) 2022, 2023  Stephen RhodesLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: avi-okta
IntroductionProvides a client abstraction to programmatically perform CRUD operations on resources in the
avinetworks Okta org.Supported objectsApplicationsUsersUser groupsTrusted originsAPI tokensDesign OverviewThe design philosphy is for client operations to achieve a desired state. Therefore if a resource
aleady exists, calling create on that same resource will simply return the existing resource.
Likewise a delete operations will succeed if the resource already does not exist. Calling get on
a non-existant resource will throw an exception.Return ValuesMost client methods will return a JSON representation of a resource, but a few such as delete
operations will return the status code of the API request.Usage ExamplesInitialize an API clientThe client will typically be initizialized with an API token, but if you need to programatically
create API tokens you’ll need to initialize with a username and password.client=AviOktaClient(token='<your API token>')ApplicationsOnly SAML application creation is supported for now.app=client.create_app("my-app","https://my-app.example.com")app['_created']# Trueapp=client.create_app("my-app")app['_created']# Falseapp=client.get_app(label="my-app")apps=client.list_apps()client.delete_app(app['id'])UsersUser creation will also send a user activation email to the specified email address.
Application-user resources support up to ten tenant/role mappings with namesTenant<n>andRole<n>where<n>is a number from 1 to 10.user=client.create_user("FirstName","LastName","example@avinetworks.com")user=client.get_user(login="example@avinetorks.com")users=client.list_users()attrs={'Tenant1':'my-tenant','Role1':'Tenant-Admin'}app_user=client.assign_user_to_app(app['id'],user['id'],attributes=attrs)client.delete_user(user['id'])User Groupsgroup=client.create_group('my-group')group=client.get_group(name='my-group')groups=client.list_groups()client.assign_user_to_group(user['id'],group['id'])client.delete_group(group['id'])Trusted Originstrusted_origin=client.create_trusted_origin('My App','https://my-app.example.com',cors=False,redirect=True)API TokensCreated tokens will be associated with the user who’s credentials were used to initialize the clienttoken=client.create_token('my-token')
Package: avionix-airflow
Why are there so many guides on how to set upApache Airflowwhen the code could
just be given to you?!Welcome toAvionix Airflow, an out of the box solution to installing airflow onKubernetes.Currently supported platforms areMinikubeandAWS EKS(managed nodegroups only),
pull requests adding support for GKE and AKS are welcome.Overview of Avionix Airflow CapabilitiesAvionix airflowprovides the following out of the box solutions for airflowAirflow Webserver and Scheduler with configured RBAC for the KubernetesExecutorAirflow metric collection (statsd -> telegraf -> elasticsearch)Airflow log collection (stdout -> filebeat -> elasticsearch)Metric and log visualization (elasticsearch & postgres -> grafana)Installationpip install avionix_airflowRequirementskubectlhelmConfigurationAvionix airflowis configured by using Options objects, there are currently 4
different objects:AirflowOptionsPostgresOptionsMonitoringOptionsCloudOptions (Specified using LocalOptions or AwsOptions)RedisOptions (Only for use with CeleryExecutor,*not recommended*)These options are then passed into the functionget_chart_builder, which can be
used to retrieve anavionixchart builder object. For instruction on how to use the
builder object, seeavionixFAQHow do I change the grafana dashboard?You can change the dashboard by setting the MonitoringOptions role to “Admin”DocumentationAdditional documentation can be foundhere
Package: aviplot
aviplot======Plotting data on Google Maps, the easy way. A matplotlib-likeinterface to generate the HTML and javascript to render all thedata you'd like on top of Google Maps. Several plotting methodsmake creating exploratory map views effortless. Here's a crash course:::import aviplotgmap = aviplot.GoogleMapPlotter(37.428, -122.145, 16)gmap.plot(latitudes, longitudes, 'cornflowerblue', edge_width=10)gmap.scatter(more_lats, more_lngs, '#3B0B39', size=40, marker=False)gmap.scatter(marker_lats, marker_lngs, 'k', marker=True)gmap.heatmap(heat_lats, heat_lngs)gmap.draw("mymap.html")Geocoding---------``aviplot`` contains a simple wrapper around Google's geocoding service enablingmap initilization to the location of your choice. Rather than providing latitude,longitude, and zoom level during initialization, grab your aviplot instance witha location:::gmap = aviplot.from_geocode("San Francisco")Plot types----------* Polygons with fills.* Drop pins.* Scatter points.* Grid lines.* Heatmaps... image:: http://i.imgur.com/dTNkbZ7.pngMisc.-----Code hosted on `GitHub <https://github.com/AvijitGhosh82/aviplot>`_Install easily with ``pip install aviplot`` from PyPI.Inspired by Yifei Jiang's (jiangyifei@gmail.com) pygmaps_ module... _pygmaps: http://code.google.com/p/pygmaps/
Package: avi-r
AVI-R Package(formerly DIVA IO)Author: Lijun YuEmail:lijun@lj-y.comA robust reader for AVI video files.
Originally designed for theMEVAdataset to replaceOpenCV'scv2.VideoCapturein theDIVAproject.Installationpipinstallavi-rUsageA robust video loader that deals with missing frames inAVIfiles.
InAVI-R, missing frames are automatically filled with the previous available frame, or the next available frame for the beginning of a video.
This ensures you are getting the correct frame ids and valid frame contents all the time.In comparison,OpenCV'scv2.VideoCapturewould skip missing frames without warning, leading to wrong frame ids.Pimswould return empty frames also without warning.
Anddecordwould crash.Iterator Interfacefromavi_rimportAVIReadervideo=AVIReader(video_path)# or AVIReader(video_name, parent_dir)forframeinvideo:# frame is a avi_r.frame.Frame objectimage=frame.numpy()# image is an uint8 array in a shape of (height, width, channel[BGR])# ... Do something with the imagevideo.close()# Release internal buffersReplacecv2.VideoCaptureTo replace thecv2.VideoCaptureobjects in legacy codes, simply change fromimportcv2cap=cv2.VideoCapture(video_path)tofromavi_rimportAVIReadercap=AVIReader(video_path)AVIReader.readfollows the schema ofcv2.VideoCapture.readbut automatically inserts the missing frames while reading the video.AVIReader.releasealso followscv2.VideoCapture.release.Random AccessRandom access of a frame requires decoding from the nearest key frame (approximately every 60 frames for MEVA).
Averagely, this introduces a constant overhead of 0.1 seconds.
However, when the nearest key frame is missing,AVIReaderwill try to search a valid one till the beginning.start_frame_id=1500length=100video.seek(start_frame_id)forframeinvideo.get_iter(length):image=frame.numpy()# ... Do something with the imagevideo.close()Video Propertiesvideo.num_frames# cap.get(cv2.CAP_PROP_FRAME_COUNT)video.frame_rate# cap.get(cv2.CAP_PROP_FPS)video.height# cap.get(cv2.CAP_PROP_FRAME_HEIGHT)video.width# cap.get(cv2.CAP_PROP_FRAME_WIDTH)Other InterfacesFor other usages, please see the comments inreader.py.SpeedSeespeed.md.Version HistorySeeversion.md.
Package: avirtech-autoexport-jp2
This is script to automate exporting data TIF to JP2000 if only the TIF has GSD oneInstallpip install avirtech_autoexport_jp2Usagefrom avirtech_autoexport_jp2.avirtech_autoexport_jp2 import autoexport_jp2autoexport_jp2.autoexport_jp2()
Package: avirtech-outering-gentwo
This is script to automate generation of outer ring boundary, version 2 with less automation and more user inputInstallpip install avirtech_outering_gentwoUsagefrom avirtech_outering_gentwo.avirtech_outering_gentwo import *Firststart_outer(loc_gdb).start_outer()Secondcalculate_age(loc_gdb)Thirdstart_middle(loc_gdb)Fourthgenerate_middle_crown(loc_gdb).start_middle()
Package: avirtech-spraying-jiyi-lib
Script ini untuk membuat jalurterbang Spraying untuk drone spraying FC JIYI.Data yang dihasilkan adalah berupa garis(.shp).Data garis/polyline(.shp) yang diperlukan menggunakan koordinat "WGS_1984", mohon tidak diproject atau menggunakan koordinat UTM seperti 48 S, 49 S,48 N, dan lain-lain.Bila menggunakan data DSM(.tif) boleh menggunakan koordinat WGS_1984, maupun koordinat UTM.Hasil file jalur terbang (.kml) dapat lihat pada folder "Hasil KML".Disarankan untuk memberi nama spesifik pada file (.kml) tersebut.Data file jalur terbang (.kml) dapat digunakan dalam aplikasi "AgriAsistant"Installpip install avirtech_spraying_jiyi_libUsagefrom avirtech_spraying_jiyi_lib.avirtech_spraying_jiyi import autocorrect
Package: avirtech-spraying-jiyi-wp-lib
Script ini untuk membuat jalurterbang Spraying untuk drone spraying FC JIYI, "memanfaatkan hasil waypoint dari avirplaner".Data yang dihasilkan adalah berupa garis(.shp).Data yang dibutuhkan adalah (.waypoint) hasil dari avirplaner.Bila menggunakan data DSM(.tif) boleh menggunakan koordinat WGS_1984, maupun koordinat UTM.Data tersebut dilanjutkan di software Qgis, untuk diconvert menjadi (.kml), lalu di "dissolve".Data hasil dissolve dapat digunakan dalam aplikasi "AgriAsistant"Installpip install avirtech_spraying_jiyi_wp_libUsagefrom avirtech_spraying_jiyi_wp_lib.avirtech_spraying_jiyi_wp import autocorrect
Package: avishan-wrapper-old
Avishan is a set of tools for building fast, comfortable and reliable django apps.Quick startOn linux remember to install this packages:sudo apt-get install build-essential libffi-dev python3-pip python3-devCreate virtual environment for your project:sudo -H pip3 install virtualenvJust run this command:python manage.py avishan_configFeaturesRequest data storage (current_request dict)Auto-find and checks token from session, or request headerHandle sort, search, filter and pagination on responseConfigure django settings.py fileHandle CORSCreates config.py file for each app and project
Package: avishayil-cdk.ecr-deployment
cdk-ecr-deploymentCDK construct to deploy docker image to Amazon ECRFeaturesCopy an ECR image to anotherCopy docker hub image to ECRCopy an archive tarball image from s3 to ECRExamplesRuntest/integ.ecr-deployment.tsnpxcdkdeploy-a"npx ts-node -P tsconfig.jest.json --prefer-ts-exts test/integ.ecr-deployment.ts"Tech Details & ContributionThe core of this project relies onhttps://github.com/containers/imagewhich is used byhttps://github.com/containers/skopeo.
Please take a look at those projects before contribution.To support a new docker image source(like docker tarball in s3), you need to implementimage transport interface. You could take a look atdocker-archivetransport for a good start.To test thelambdafolder,make test.
Package: avisochek-sdk
LOTR SDKThe LOTR SDK is a python SDK for retrieving book titles, movie titles, characters and quotes related to the Lord of the Rings Trilogy. It is built as a client tothe one API, which provides data on the lord of the rings.InstallationUse the package managerpipto install the requests library and the LOTR SDK.pipinstallrequests
pipinstallavisochek-sdkYou will also need an API key from the one API, which you can get by signing uphere.UsagefromLOTR.lotrimportLOTRfrompprintimportPrettyPrinterpp=PrettyPrinter()# initialize a clientlotr=LOTR(`<yourAPIKey>`)# Get a list of books.list_of_books=lotr.get_book_info()print("Lord Of The Rings Books:")pp.pprint(list_of_books)# Get a list of movies.list_of_movies=lotr.get_movie_info()print("Lord Of The Rings Movies:")pp.pprint(list_of_movies)# Get a list of characters.list_of_characters=lotr.get_character_info()print("10 Characters From Lord of the Rings:")pp.pprint(list_of_characters[0:10])movie_id=list_of_movies[6]["_id"]movie_name=list_of_movies[6]["name"]# Get a list of quotes from a particular movie# (only works for lord of the rings trilogy for now)quotes_from_movie=lotr.get_quotes_from_movie(movie_id)print(f"10 Quotes From{movie_name}:")pp.pprint(quotes_from_movie[0:10])# Get a list of quotes from a particular characterquotes_from_frodo=lotr.get_quotes_from_character("5cd99d4bde30eff6ebccfc15")print("10 Quotes From Frodo Baggins:")pp.pprint(quotes_from_frodo[0:10])book_id=list_of_books[0]["_id"]book_name=list_of_books[0]["name"]# Get a list of chapters from the first bookbook_chapters=lotr.get_book_chapters(book_id)print(f"Chapters From{book_name}:")pp.pprint(book_chapters)LicenseMIT
Package: aviv-aws-costexplorer
Aviv AWS CostExplorerAims to provide a quick and comprehensive interface to AWS costexplorer api.
This is useful to extract cost and usage (aka CAU) data, save it and to make it available for reporting and analysis.Requirementspython >= 3.8boto3Access to AWS ce:cost_and_usageUsagepipinstallaviv-aws-costexplorer# Install additional libraries required to save/read data on AWS S3: pandas, awswranglerpipinstallaviv-aws-costexplorer[datastore]Sample codefromaviv_aws_costexplorerimportcostreportercr=costreporter.CostReporter()costs=cr.get_cost_and_usage()# Will print you last 3 months costsprint(costs)fromaviv_aws_costexplorerimportdatastoreds=datastore.DataStore(database='test',bucket='my-s3-bucket')ds.to_parquet(data=costs,path='monthly/last3',database='monthly')# Show it nicelyimportpandasaspddf=pd.DataFrame(costs)df.head()# Store on S3 and make it available through Athena (uses awswrangler)Developmentpipenvinstall-dTest, Build, ReleaseWe typically follow thestandard python packaging and distributionprocess to release this package.# Run testspipenvrunpytest-vtests/# Build python packagepython3-mpipinstall--upgradebuild
python3-mbuild# Release on testpypipython3-mpipinstall--upgradetwine
python3-mtwineupload--repositorytestpypidist/*Note: the Pypi release is also done during the CICD process.ContributeYes please! Send us your PR's
Package: aviv-cdk
AVIV CDK for PythonA set of AWS CDK examples and constructs.InstallRequires:Python >= 3.6, pipcdknpminstall-gaws-cdk
pipinstallaviv-cdk# With 'extra' to install additionnal librariespipinstallaviv-cdk[data]Use itimportaviv_cdkCICDfromaws_cdkimportAppfromaviv_cdk.cicd.stackimportCodePipelineStackapp=App()CodePipelineStack(app,'cicd-stack',connections={'myorg':dict(connection_name='myorg')},sources={'cicd-stack':dict(repo_string='myorg/repo',branch='main')},pipeline=dict(self_mutation=False))app.synth()Route53fromaviv_cdk.route53importDomainZone# Creates a new HostedZonez=DomainZone(stack,'myzone',fqdn='mydomain.com')# add recordz.a('toto.mydomain.com','10.0.0.1')# Use an existing Zonez=DomainZone(stack,'myzone',fqdn='mydomain.com',zone_id='42')z.txt('mydomain.com','my-dummy-check')RDSFargateDevelopmentDevelop and contribute :)Requirements:pipenv, cdk client[optional] docker & AWS codebuild docker image (standard >= 4.0)gitclonehttps://github.com/aviv-group/aviv-cdk-python&&cdaviv-cdk-python
pipenvinstall-d-e.# Build with codebuild agent - see: buildspec.ymlcodebuild_build.sh-iaws/codebuild/standard:4.0-acdk.out# Run testspipenvrunpytest-vtests/Build, distrib & releaseRequirestwineto be installed (pip install twine) and credentials to upload a new verison to pypi.# Test and buildpython3setup.pysdistbdist_wheel# Release on pypipython3-mtwineupload--repositorytestpypidist/*
python3-mtwineupload--repositorypypidist/*ContributeYes please! Fork this project, tweak it and share it back by sending your PRs.Have a look at theTODO'sandchangelogfile if you're looking for inspiration.LicenseThis project is developed under theMIT license.Author(s) and ContributorsJules Clement <jules.clement@aviv-group.com>