Saravanan666/pypi-org huggingface dataset:
Package: avtdl
avtdlTool to monitor Youtube and some other streaming platforms for new streams and uploads and execute user-defined commands when it happens. It aims to provide a highly configurable environment for setting up automated archiving of new content with filtering and notification support. It does not try to provide downloading streams itself and instead relies on executing commonly used well-known solutions for the task, such asyt-dlp.Refer todocumentationfor full list of available features and description of configuration process.Features overviewSome of the supported features include:monitoring Youtube channels using RSS feedmonitoring Youtube channels, individual tabs of a channel or playlists by parsing html. With authorization cookies from Youtube account it's possible to get notifications for member-only and in any other way restricted streams and uploads, as well as to monitor the entire subscriptions feedmonitoring Youtube channel community tab for new posts (including member-only with authorization cookies)monitoring other streaming platforms, such as Twitch and Twitcasting, for events of a channel going livefiltering new videos and streams by channel name, presence or absense of pre-defined keywords in video title or description, picking up only upcoming streams or only member-only content, deduplication of the same stream or video url coming from multiple sourcessending notifications to a Discord channel and/or as a Jabber message
Package: avtk
AVTK - Python Audio/Video Toolkit=================================AVTK provides functionality for inspecting and manipulating audio and video contents in an easy to use manner.Current version supports working with local files using the `FFmpeg <https://ffmpeg.org/>`_ command line tools(``ffmpeg`` and ``ffprobe``). Future versions will support various online video providers by wrapping theirrespective low-level SDKs.AVTK aims to make it easy to most of the things you might want to do with audio and video, while allowing youto use the underlying tools and libraries for edge cases where you need full low-level functionality.**WARNING:** AVTK is still in beta phase - bugs, missing documentation and frequent API changes are likely. Pleasereport bugs, suggest use cases and feature ideas, and any other feedback you might have, to GitHub issues.Resources---------* Python Package Index: https://pypi.org/avtk/* Documentation: https://github.com/senko/avtk/* Source code: https://github.com/senko/avtk/* Bug and feature tracker: https://github.com/senko/avtk/issuesQuickstart----------Install from Python Package Index::pip install avtkMake sure you have the ``ffmpeg`` and ``ffprobe`` tools available on the system. For detailed installation instructionsplease see the :doc:`install` page in the documentation.Examples--------Converting a video::>>> from avtk.backends.ffmpeg.shortcuts import convert_to_webm>>> convert_to_webm('test-media/video/sintel.mkv', '/tmp/output.webm')Creating a thumbnail::>>> from datetime import timedelta>>> from avtk.backends.ffmpeg.shortcuts import get_thumbnail>>> png_data = get_thumbnail('test-media/video/sintel.mkv', timedelta(seconds=2))Inspecting a media file::>>> from avtk.backends.ffmpeg.shortcuts import inspect>>> info = inspect('test-media/video/sintel.mkv')>>> info.format.durationdatetime.timedelta(seconds=5, microseconds=24000)>>> info.format.bit_rate2657539>>> info.has_videoTrue>>> info.video_streams[0].codec<Codec(name=h264, type=video)>>>> info.has_audioTrue>>> info.audio_streams[0].codec<Codec(name=ac3, type=audio)>>>> info.has_subtitlesTrueFor more examples, see the :mod:`avtk.backends.ffmpeg.shortcuts` documentation.Bugs and feature requests-------------------------To report a bug or suggest a feature, please use the `GitHub issue tracker <https://github.com/senko/avtk/issues>`_.When reporting a bug, please include a detailed description, any logging output and exception tracebacks, andmedia files (direcly or links to) which caused the problem.When suggesting a feature, please explain both the feature (how it would work and what it would do) and rationale(why it is needed, especially if the same can be combined with the existing API).If contributing code, either bugfixes or feature implementation, please include tests for the new or fixedfunctionality, and update documentation accordingly.
Package: av-tmp
PyAVPyAV is a Pythonic binding for theFFmpeglibraries. We aim to provide all of the power and control of the underlying library, but manage the gritty details as much as possible.PyAV is for direct and precise access to your media via containers, streams, packets, codecs, and frames. It exposes a few transformations of that data, and helps you get your data to/from other packages (e.g. Numpy and Pillow).This power does come with some responsibility as working with media is horrendously complicated and PyAV can't abstract it away or make all the best decisions for you. If theffmpegcommand does the job without you bending over backwards, PyAV is likely going to be more of a hindrance than a help.But where you can't work without it, PyAV is a critical tool.InstallationDue to the complexity of the dependencies, PyAV is not always the easiest Python package to install from source. Since release 8.0.0 binary wheels are provided onPyPIfor Linux, Mac and Windows linked against a modern FFmpeg. You can install these wheels by running:pip install avIf you want to use your existing FFmpeg/Libav, the C-source version of PyAV is onPyPItoo:pip install av --no-binary avAlternative installation methodsAnother way of installing PyAV is viaconda-forge:conda install av -c conda-forgeSee theConda installdocs to get started with (mini)Conda.And if you want to build from the absolute source (for development or testing):git clone git@github.com:PyAV-Org/PyAV
cd PyAV
source scripts/activate.sh

# Either install the testing dependencies:
pip install --upgrade -r tests/requirements.txt
# or have it all, including FFmpeg, built/installed for you:
./scripts/build-deps

# Build PyAV.
makeHave fun,read the docs,come chat with us, and good luck!
Package: avtoolbox
Autonomy ToolkitThe Autonomy Toolkit, dubbedautonomy-toolkit, is meant to be a simplified mechansim for quickly setting up and developing a ROS 2 based control stack. Theautonomy-toolkitplatform is under activate development by theSimulation Based Engineering Laboratoryat theUniversity of Wisconsin-Madison.BackgroundTheautonomy-toolkitplatform provides the following resources for expediting development of autonomous algorithms:A development workflow for writing and testing ROS 2 codeA mechansim for easily generating custom images for use with the ROS 2 stackA wrapper for Docker Compose to improve user experienceFurthermore, theAutonomy Research Testbed, which utilizes this toolbox, provides the following functionality:A parts list and instructions on how to build the physical platformA high-fidelity simulation environment built usingChronoto test autonomous algorithmsFor more information about the design considerations and purpose for this project, see thebackgroundsection.SupportContact theSimulation Based Engineering Laboratoryfor any questions or concerns regarding the contents of this repository.See AlsoVisit our website atsbel.wisc.edu!
Package: av-tweet-ingestion
av-tweet-ingestionIngestion of tweets using Twitter's RecentAPI and upload to S3.Installationpipinstallav-tweet-ingestionUsage example - Twitter Recent APISetup Environmental VariablesBEARER_TOKEN="<twitter_bearer_token>"S3_ACESS_KEY="<acess_key>"S3_SECRET_KEY="<secret_key>"S3_BUCKET_NAME="<bucket_name>"S3_LANDING_LAYER="<landing_zone>"Define QueryBuild query to request tweets.https://developer.twitter.com/en/docs/twitter-api/tweets/search/integrate/build-a-queryquery_params = {

'query': 'from: elonmusk',

'user.fields':'id,location,name,public_metrics,created_at',

'tweet.fields': 'author_id',

# 'expansions':'geo.place_id,author_id,entities.mentions.username,in_reply_to_user_id,referenced_tweets.id.author_id',

'max_results':'10'

}IngestImportsfrom ingestion.apis import RecentAPI
from ingestion.ingestors import BatchIngestor
from ingestion.writers import S3WriterBatchIngestor(query_params, # Query

1, # Number of pages to ingest

RecentAPI, # Titter's API to call

'test/RecentAPI', # Set address to save data

S3Writer).ingest() # Writer to be usedContributingFork it (https://github.com/andreveit/av-tweet-ingestion/fork)Create your feature branch (git checkout -b feature/fooBar)Commit your changes (git commit -am 'Add some fooBar')Push to the branch (git push origin feature/fooBar)Create a new Pull Request
Package: avutil
avutilProvide some useful util functions (and a poweful tooltidyup) fortidying upyour personal video folder.
Data source fromLIBRARYorBUS.Extract designatioSearch folder (recursively)Pull & save video info (title, actors etc.)Download cover imageRename video fileEnvironmentPython >= 3.4
BeautifulSoup4 >= 4.7.0
requests >= 2.21.0InstallpipinstallavutilUsage of tidyup$tidyup-h
usage:tidyup[-h][-r][-iIN][-oOUT][-pPROXY][-sSOURCE][-tTHREAD][-eENCODER][--with-poster]Tidyupyourpersonalvideodir

optionalarguments:-h,--helpshowthishelpmessageandexit-rsearchdirrecursively-iIN,--inINvideoinputdir-oOUT,--outOUTvideooutputdir-pPROXY,--proxyPROXYhttpproxyaddress-sSOURCE,--sourceSOURCEdatasourceofvideoinfo,'library'or'bus'-tTHREAD,--threadTHREADthreadsnum,usemulti-threadstodownloadinfo&images-eENCODER,--encoderENCODERencoderofmeta-data,'nfo'(default)or'vsmeta'--with-postersaveposterTidy up current dir$tidyupPython script usageImport avutil:importavutilSearch folder recursively to find videos:folder="StudyResource"videos=avutil.Search_folder(folder)# videos: map { designatio -> [ slice_paths ] }Or you can specify the extension type of videovideos=avutil.Search_folder(folder,media_suffix={".mp4",".wmv",".avi",".mkv"})Pull video info fromLIBRARYby default & download cover imagefordesignatio,file_pathsinvideos.items():video=avutil.Video(designatio,file_paths)# Pull video infovideo.pull_info()# Download cover image (as video.title + .jpg)video.download_cover()It's okey usingBUS# Pull video infovideo.pull_info(source=avutil.Bus)Save video info as .nfo file# Save video infovideo.save_info()Tidy up!# Tidy up (rename to video.designatio + video.actors)video.rename()ProxyProxy is supported in avutil in two ways, you can either pass http-proxy in codevideo.pull_info(http_proxy="http://127.0.0.1:1087")video.download_cover(http_proxy="http://127.0.0.1:1087")Or define a global bash variable (eg. http proxy):$exportHTTP_PROXY="http://127.0.0.1:1087"
Package: avwx-engine
AVWXDocumentation:https://engine.avwx.restSource Code:https://github.com/avwx-rest/avwx-enginePyPI:https://pypi.org/project/avwx-engine/AVWX is a global aviation weather fetching and parsing engine. It sources reports from a variety of government sources, parses individual elements, and calculates additional information like flight rules and time range interpolation.AVWX currently supports:Station data and searchMETARTAFPIREPAIRMET / SIGMETNOTAMNBM (NBH, NBS, NBE)GFS (MAV, MEX)InstallThe easiest way to get started is to download the library from pypi using pip:python-mpipinstallavwx-engineBasic UsageReports use ICAO, IATA, or GPS idents when specifying the desired station. Exceptions are thrown if a potentially invalid ident is given.>>>importavwx>>>>>>metar=avwx.Metar('KJFK')>>>metar.station.name'John F Kennedy International Airport'>>>metar.update()True>>>metar.data.flight_rules'IFR'You can learn more by reading theproject documentationNote: This library requires Python 3.8 or aboveDevelopmentDownload and install the source code and its development dependencies:Clone this repositorygitclonehttps://github.com/avwx-rest/avwx-enginecdavwx-engineRequirements:PoetryPython 3.8+Create a virtual environment and install the dependenciespoetryinstallActivate the virtual environmentpoetryshellTestingThe test suite was built while using thepytestlibrary, which is also installed as a dev dependency. The project usespoethepoet(dev dependency) to run basic tasks.poetestThe end-to-end test files were generated usingutil/build_tests.pyand placed intotests/{report}/data. Because Timestamp generation interprets the text based on the current date, Timestamp objects are nullified in the end-to-end tests.DocumentationThe documentation is automatically generated from the content of thedocs directoryand from the docstrings of the public signatures of the source code. The documentation is updated and published toengine.avwx.restautomatically as part each release.You can also preview local changes during development:poedocsReleasingTrigger theDraft release workflow(pressRun workflow). This will update the changelog & version and create a GitHub release which is inDraftstate.Find the draft release from theGitHub releasesand publish it. When a release is published, it'll triggerreleaseworkflow which creates PyPI
release and deploys updated documentation.Pre-commitPre-commit hooks run all the auto-formatters, linters, and other quality checks to make sure the changeset is in good shape before a commit/push happens.You can install the hooks with (runs for each commit):pre-commitinstallOr if you want them to run only for each push:pre-commitinstall-tpre-pushOr if you want e.g. want to run all checks manually for all files:pre-commitrun--all-files
Package: aw9523b
ExampleInputfrom AW9523B import EX_GPIO,Port0,Port1
import time

inputPin = [Port1.PIN7, Port1.PIN6, Port1.PIN5, Port1.PIN4, Port0.PIN7,
                    Port1.PIN0, Port1.PIN1, Port1.PIN2, Port1.PIN3, Port0.PIN0]

def inputCallback(pin):
    print("inputCallback", pin)

if __name__ == "__main__":
    for pin in inputPin:
        EX_GPIO.setup(pin, EX_GPIO.INPUT)
    EX_GPIO.inputCB = inputCallback
    while 1:
        time.sleep(1)OUTPUTfrom AW9523B import EX_GPIO,Port0
import time

led1 = Port0.PIN5
led2 = Port0.PIN6

EX_GPIO.setup(led1, EX_GPIO.OUTPUT)
EX_GPIO.setup(led2, EX_GPIO.OUTPUT)



if __name__ == "__main__":
    while 1:
        time.sleep(5)
        EX_GPIO.output(led1,EX_GPIO.HIGH)
        EX_GPIO.output(led2,EX_GPIO.LOW)
        time.sleep(5)
        EX_GPIO.output(led1,EX_GPIO.LOW)
        EX_GPIO.output(led2,EX_GPIO.HIGH)
Package: awa
Python Package Template📦 一个快速上传到PyPI的 Python Package 模版。上传到 PyPI 后可以使用pip install安装。1 使用方法点击本项目右上角的绿色按钮Use this template（使用此模板），输入名称和说明，完成创建；将项目克隆到本地，这里以本项目为例，实际操作时这里需要替换你自己的项目；gitclonehttps://github.com/Ailln/python-package-template.git--depth1修改配置，文件中有提示；cdyour_package_name# 1. 替换默认项目名称 package_name 为你的项目名称# Usage: bash scripts/set_package_name.sh os_name old_name new_name# os_name 支持的有 `mac` 和 `linux`# old_name 是 package_name# new_name 是你的项目名称bashscripts/set_package_name.shmacpackage_nameyour_package_name# 2. 将 `README.md` 修改为你的项目介绍，也就是你当前在读的这个文本。编写你的 Package 代码，并进行测试。# 在本地进行充分测试bashscripts/local_test.sh上传到 PyPi（需要注册），参考如何发布自己的包到 pypi；bashscripts/upload_pypi.sh更新到 Github。gitpush2 项目结构.
├── package_name # 项目名称
│    ├── shell # 在命令行中执行的代码
│    │    ├── __init__.py
│    │    └── usage.py
│    └── src # 静态资源
│          └── temp.txt
├── scripts
│    ├── set_package_name.sh # 批量替换默认的项目名称
│    ├── local_install.sh
│    ├── local_test.sh
│    └── upload_pypi.sh
├── README.md # 项目文档
├── requirements.txt # 包依赖
├── .gitignore # 忽略文件
├── MANIFEST.in # 要包含在 sdist 命令构建的分发中的文件列表。
├── LICENSE # 这里面的内容为本项目的 License，你需要手动替换它。
└── setup.py # 安装配置3 TODO增加 test 相关代码。4 许可5 参考Packaging Python Projects如何从模板创建仓库？如何发布自己的包到 pypi ？
Package: awacs
Aboutawacs - Amazon Web Access Control SubsystemThe awacs library allows for easier creation of AWS Access Policy
Language JSON by writing Python code to describe the AWS policies.
To facilitate catching  policy format or JSON errors early the
library has property and type checking built into the classes.NOTE:The oldawacs.aws.Policyobject is going to be deprecated in the
future, in preference for theawacs.aws.PolicyDocumentclass. This is due
to confusion that arises between the old object andtroposphere.iam.Policyobjects.Installationawacs can be installed using the pip distribution system for python by
issuing:$pipinstallawacsAlternatively, you can run use setup.py to install by cloning this repository
and issuing:$pythonsetup.pyinstallExamplesAn example to use this comes from theAWS IAMdocumentation.
This shows creating policy attached to an Amazon S3 bucket:fromawacs.awsimportAction,Allow,PolicyDocument,Principal,Statementfromawacs.iamimportARNasIAM_ARNfromawacs.s3importARNasS3_ARNaccount="123456789012"user="user/Bob"pd=PolicyDocument(Version="2012-10-17",Id="S3-Account-Permissions",Statement=[Statement(Sid="1",Effect=Allow,Principal=Principal("AWS",[IAM_ARN(user,'',account)]),Action=[Action("s3","*")],Resource=[S3_ARN("my_corporate_bucket/*"),],),],)print(pd.to_json())would produce this json policy:{"Id":"S3-Account-Permissions","Statement":[{"Action":["s3:*"],"Effect":"Allow","Principal":[{"AWS":["arn:aws:iam::123456789012:user/Bob"]}],"Resource":["arn:aws:s3:::my_corporate_bucket/*"],"Sid":"1"}],"Version":"2012-10-17"}CommunityWe have a google group,cloudtools-dev, where you can ask questions and
engage with the cloudtools/awacs community.  Issues & pull requests are always
welcome!Contributing new actionsTo update actions there is a generator tool which will scrape policies from
AWS’s documentation resource and auto-generate new files.
The following commands can be run (with Python 3.7+) to update the repo:$python3-mpipinstall-rscrape/requirements.txt$python3-mpipinstall.$python3./scrape/scrape.py$gitdiff
Package: aWaifu
aWaifu - Mass Waifu Profile generatorPython module to randomly generate waifus' profiles in mass scale.Wanna try it out?If you'd like to try out the module with out any installation, I suggesttry the Google Colab notebook version first.InstallationYou can install directly from PyPi:pipinstallaWaifuOr get the `.whl` from https://github.com/git-akihakune/aWaifu/releases/tag/v0.1.1.UsageTo run with default options:python-maWaifuScriptingFirst, create aWaifusobject:fromaWaifu.utilsimportWaifuswaifuGen=Waifus()You can customize the script's behaviour from your object. Here is a quite self-explained list of options:numberOfProfiles:int=10,# number of profiles going to generateverbose:bool=False,# verbose modemultiCultures:bool=True,# False: limit to Japanese profiles onlybigWaifu:bool=False,# larger images, with watermarknoProfile:bool=False,# do not generate profilesnoImage:bool=False,# generate profiles without pictureautoCloseImage:bool=True,# automatically close opened images from verbosefaster:bool=False,# do not assert delays between requestsTherefore, the default script actually is:waifuGen=Waifus(numberOfProfiles=5,verbose=True,bigWaifu=True)Next, generate the profiles:waifuGen.generateProfiles()The results will be saved towaifus/directory. Previous results will be overwritten. If you want to save the results to azipfile:Waifus.getAllInfo()DevelopmentThis module is initiallya Google Colab Python Notebook, with some added details. Therefore, it's not been carefully developed. Every issue, pull request or suggestion is deeply appreciated.
Package: await-ccb
await-ccbGiven a git SHA, waits for a correspondingGoogle Cloud Container Builderbuild to complete successfully.If a successful build exists, exits 0.If a running or queued build exists, polls until no running builds are found
or the --poll-limit is reached. Exits 0 if any are successful, 1 on failure.If no running/queued build is found in the initial search, repeats the search
up to --search-limit times to see if a running build appears.Installpip install await-ccbUsageUsage:
    await-ccb -c credentials.json -r repo-name -s git-sha
        [-t -p my-project --poll-interval 5 --poll-limit 360 --search-limit 5]
    await-ccb --help
    await-ccb --version

Options:
    -c CREDENTIALS_JSON, --credentials CREDENTIALS_JSON
        Path to service account credentials in Google JSON format

    -p PROJECT, --project PROJECT
        Google Code Project ID, defaults to project from credentials

    -r REPO, --repo REPO
        Repo name, as known to CCB (e.g. github-thedyrt-await-ccb)

    -s SHA, --sha SHA
        Git SHA to observer builds for

    -t, --trigger
        Trigger a build if none are found. Requires an existing build trigger
        to be configured for the repo in the Google Cloud Console.

    --search-limit LIMIT
        Number of attempts to make in the initial search for running builds
        [Default: 3]

    --poll-limit LIMIT
        Number of poll requests to make before giving waiting on running builds
        to complete. Total polling time is --poll-limit * --poll-interval.
        [Default: 360]

    --poll-interval SECONDS
        Number of seconds to wait between requests
        [Default: 5]

    -h, --help
        Show this help

    --version
        Show version info
Package: awakatime
🔃 AwakatimeAn asynchronous API wrapper for WakatimeInstallationpipinstallawakatimeUsageIt's recommended to use a context manager to create an instance of the client.importasynciofromawakatimeimportAwakatimeasyncdefmain():asyncwithAwakatime("your_api_key")asawakatime:tasks=[awakatime.get_all_time(),awakatime.get_projects()]all_time,projects=awaitasyncio.gather(*tasks)print(all_time)print(projects)if__name__=="__main__":coro=main()asyncio.run(coro)Developmentgit clone https://github.com/controlado/awakatime.git
cd awakatimeWith Poetrypoetry install --with devWithout Poetrypython -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
Package: awaken2
Awaken 关键字驱动自动化框架介绍Awaken 是以 "关键字驱动" 为中心思想搭建的自动化测试框架。

其核心实现是通过相比编程语言更加语义化的 "关键字" 来组织自动化用例的逻辑实现;

相较于传统的通过编程语言直接编写的自动化脚本而言, "关键字驱动" 极大降低了技术栈的门槛, 使得非技术人员也能参与其中;

但这种 "便捷" 的代价便是牺牲了原生编码的部分灵活性, 并且将功能实现的职责嫁接给框架开发者。安装教程Python PIPpip install awaken2使用说明xxxxxxxxxxxx参与贡献Fork 本仓库新建 Feat_xxx 分支提交代码新建 Pull Request特技使用 Readme_XXX.md 来支持不同的语言，例如 Readme_en.md, Readme_zh.mdGitee 官方博客blog.gitee.com你可以https://gitee.com/explore这个地址来了解 Gitee 上的优秀开源项目GVP全称是 Gitee 最有价值开源项目，是综合评定出的优秀开源项目Gitee 官方提供的使用手册https://gitee.com/helpGitee 封面人物是一档用来展示 Gitee 会员风采的栏目https://gitee.com/gitee-stars/
Package: aw-api
AW_APIUnofficial Armored Warfare APIВерсиядля русскоязычных пользователейRequirementsrequestsPython package for handling API requestsbeautifulsoup4Python HTML parserpython 3.x- You need to have Python 3 installed in order to use thisInstallingOpen terminal or command prompt and typepip install aw-apiin order to install
the latest stable version of library from PyPI.UsageIn order to get access to statistics page you need to get authorized cookies fromarmata.my.games. You can export
them using EditThisCookie Chrome extensionQuick exampleimportjsonfromaw_apiimportAPIaw_api_client=API(raw_cookie=json.loads(open('cookies.json').read()))my_pvp_statistics=aw_api_client.get_statistic_by_nickname('MyNickname')print(f'My nickname is{my_pvp_statistics.nickname}, I have played{my_pvp_statistics.battles}in PvP and have 'f'{my_pvp_statistics.winrate}percents of wins. In average I deal{my_pvp_statistics.damage}per battle and kill{my_pvp_statistics.average_kills}enemies.'f'My teammates do{my_pvp_statistics.average_spotting}damage on tanks spotted by me. ')More detailed information about methods, and their arguments can be found onwiki