Saravanan666/pypi-org huggingface dataset:
Package: polywrap-wasm
This package contains the runtime for executing Wasm wrappers.QuickstartThe following code snippet demonstrates how to use the runtime to execute a Wasm wrapper.Imports>>> import os
>>> from typing import cast
>>> from polywrap_core import Uri, FileReader, InvokerClient
>>> from polywrap_wasm import WasmWrapper
>>> from polywrap_msgpack import msgpack_decode
>>> from polywrap_manifest import deserialize_wrap_manifest, AnyWrapManifestCreate a Wasm wrapper>>> path_to_wrapper = os.path.join(os.path.dirname(__file__), "..", "tests", "cases", "simple")
>>> assert os.path.exists(path_to_wrapper)
>>> with open(os.path.join(path_to_wrapper, "wrap.wasm"), "rb") as f:
...     wasm_module = f.read()
>>> assert isinstance(wasm_module, bytes)
>>> with open(os.path.join(path_to_wrapper, "wrap.info"), "rb") as f:
...     manifest = deserialize_wrap_manifest(f.read())
>>> assert isinstance(manifest, AnyWrapManifest)
>>> wrapper = WasmWrapper(
...     cast(FileReader, NotImplemented),
...     wasm_module,
...     manifest
... )
>>> assert isinstance(wrapper, WasmWrapper)Invocation>>> message = "Hello, World!"
>>> args = {"arg": message}
>>> result = wrapper.invoke(
...     uri=Uri.from_str("wrap://authority/path"),
...     method="simpleMethod",
...     args=args,
...     client=cast(InvokerClient, NotImplemented),
... )
>>> assert result.encoded is True
>>> assert msgpack_decode(cast(bytes, result.result)) == message
Package: polywrap-web3-config-bundle
This package contains the system configuration bundle for Polywrap Client.Bundled WrapswrapdescriptionhttpTo make HTTP requestsipfs_http_clientTo add or retrieve items from IPFSipfs_resolverTo fetch wraps from IPFSethereum_providerTo perform ethereum RPC callsethereum-wrapperA higher level API to perform ethereum operations (like etheres.js)ens_text_record_resolverTo resolve URIs from ens text recordens_ipfs_contenthash_resolverTo resolve URIs from ens content hashens_resolverTo resolve URIs from ensQuickstartImports>>> from polywrap_client_config_builder import PolywrapClientConfigBuilder
>>> from polywrap_web3_config_bundle import web3_bundle
>>> from polywrap_client import PolywrapClient
>>> from polywrap_core import Uri, UriPackageConfigure>>> config = PolywrapClientConfigBuilder().add_bundle(web3_bundle).build()
>>> client = PolywrapClient(config)Resolve URI with bundled ens resolver>>> response = client.try_resolve_uri(
...     Uri.from_str("wrap://ens/wrap-link.eth")
... )
>>> assert isinstance(response, UriPackage)
Package: pomace
PomaceDynamic page objects for browser automation.Quick StartOpenTerminal.appin macOS and paste:python3-mpipinstall--upgradepomace&&python3-mpomacerunor if you have Homebrew:brewinstallpipx;pipxrun--no-cachepomacerunFull DemoIf you're planning to run Pomace multiple times, install it withpipxfirst:pipxinstallpomaceor get the latest version:pipxupgradepomaceThen download some site models:pomaceclonehttps://github.com/jacebrowning/pomace-twitter.comAnd launch the application:pomaceruntwitter.comUsageInstall this library directly into an activated virtual environment:pipinstallpomaceor add it to yourPoetryproject:poetryaddpomace
Package: pomarkdown
👉项目官网：https://www.python-office.com/👈👉本开源项目的交流群👈🌎English Documentation📚简介Python-office 是一个 Python 自动化办公第三方库，能解决大部分自动化办公的问题。而且每个功能只需一行代码，不需要小白用户学习 Python 知识，做到了真正的开箱即用。功能持续更新中，提交你的功能需求/参与项目开发，联系👉开发者微信🍺特点一键搭建所有 Python + 自动化办公的编程环境。使用一行代码解决大部分自动化办公的问题，不需要小白学习 Python 知识贴合职场办公需求极简编程，学习成本极低，工作效率提升显著📦安装🍊pip 自动下载&更新pip install -i https://pypi.tuna.tsinghua.edu.cn/simple python-office -U📝文档📘官网：https://www.python-office.com/视频教程以下绿色文字，均可点击直达👇第1讲：项目发布第2讲：项目安装第3讲：批量重命名第4讲：PPT转PDF第5讲：批量生成Excel数据第6讲：合并Excel第7讲：微信机器人持续更新中🚀免费读者群👉传送门文字教程全部功能的文字教程👉传送门犀利吐槽学会编程，能拿高薪？别再被洗脑了什么是大数据抓嫖？看完一身冷汗，你也可能遇到少儿编程，有必要学吗？程序员被问懵了30岁转行程序员，我的转行经历Excel还是Python？别被割韭菜，高效办公选一个就够了！🛠️包含组件以下所有功能，都在逐步搭建中。模块介绍excelexcel处理wordword处理pptppt处理pdfpdf处理file文件和文件夹的操作tools便捷小工具web网站快捷搭建email邮件功能image图片处理video视频处理ocr识别功能：文字识别、语音识别可以根据需求对每个模块单独引入，也可以通过import office方式引入所有模块。🏗️添砖加瓦📐PR的建议python-office欢迎任何人来添砖加瓦，贡献代码，建议提交的pr（pull request）符合一些规范，规范如下：参与项目建设的步骤：例如：你需要给python-office添加一个add方法。你的Github账户名为：demo于是你在./contributors新建了文件夹./demo新建了add.py文件，编辑你的代码编辑完成，提交pr到master分支（gitee或者GitHub，都可以）。可以注明你对自己功能的取名建议晚枫收到后，会对各位的代码进行测试后，合并后打包上传到python官方库📐代码规范注释完备，尤其每个新增的方法应按照Google Python文档规范标明方法说明、参数说明、返回值说明等信息，必要时请添加单元测试，如果愿意，也可以加上你的大名。python-office的文档，需要进行格式化。注意：只能格式化你自己的代码请直接pull request到master分支。master是主分支，表示已经发布pypi库的版本。未来参与人数增多，会开辟新的分支，请留意本文档的更新。我们如果关闭了你的issue或pr，请不要诧异，这是我们保持问题处理整洁的一种方式，你依旧可以继续讨论，当有讨论结果时我们会重新打开。🧬贡献代码的步骤在Gitee或者Github上fork项目到自己的repo把fork过去的项目也就是你的项目clone到你的本地修改代码commit后push到自己的库登录Gitee或Github在你首页可以看到一个 pull request 按钮，点击它，填写一些说明信息，然后提交到master分支即可。等待维护者合并🎋分支说明python-office的源码分为两个分支，功能如下：分支作用master主分支，pypi发布版本使用的分支,可以直接prdevelop开发分支，供大家各自开发使用🐞提供bug反馈或建议提交问题反馈时，请务必填写和python-office代码本身有关的问题，不进行有关python学习，甚至是个人练习的知识答疑和讨论。Gitee issueGithub issue🪙支持python-office💳捐赠如果你觉得python-office不错，可以捐赠请维护者喝杯咖啡~，在此表示感谢^_^。捐赠给项目👈该项捐赠仅用于支持本项目发展使用捐赠给程序员晚枫⭐Star python-office📌联系作者
Package: pomatillo
PomatilloIntroductionPomatillo is a simple Pomodoro timer for the command line. It is meant to be used in the
following modes:As a library for other programsAs a command line tool (CLI)As a Textual User Interface (TUI)Other modes may be added upon request.InstallationPomatillo supports Python 3.10 and above. To install Pomatillo, run the following command:pipinstallpomatilloDevelopmentPomatillo usesPoetryfor dependency management and packaging.
If you want to contribute to Pomatillo, here are the steps to get started:# Clone the repogitclonehttps://github.com/AdityaGudimella/pomatillo# Go into the repocdpomatillo# Install dependencies using PoetrypoetryinstallRunning testsPomatillo usespytestfor testing. To run the
tests, run the following command:Using a Poetry managed virtual environmentpoetryrunpytestIf you installed it in a custom managed virtual environmentActivate the virtual environment and run the following command:python-mpytestBuilding docsPomatillo usesMkDocs Materialfor
documentation. To help with various documentation tasks, Pomatillo provides a cli:Using a Poetry managed virtual environmentpoetryrunpomatillodocs--helpIf you installed it in a custom managed virtual environment, activate the virtual
environment firstpython-mpomatillodocs--help
Package: pomcorn
Pomcorn, orPage Object Model corn, is a Python package that contains base classes to create
systems based onSeleniumframework andPage Object Modelpattern. You can read more about this patternhere.
The package can be used to create autotesting systems, parsing scripts and anything that requires
interaction with the browser.The package includes next base classes to create Page Object Model (POM) pages:It also includesclasses to locate elementson the web page and a number of additionalwaiting conditions.InstallationYou can install it bypip:$pipinstallpomcornOrpoetry:$poetryaddpomcornDocumentationLink to the documentation:http://pomcorn.rtfd.io/.UsageYou need toinstall pomcornandChrome webdriver.Below is the code that opensPyPI.org, searches for packages by name and prints names of found
packages to the terminal. The script contains all base classes contained inpomcorn:Page,ComponentWithBaseLocator,ListComponentandElement.fromtypingimportSelffromselenium.webdriverimportChromefromselenium.webdriver.common.keysimportKeysfromselenium.webdriver.remote.webdriverimportWebDriverfrompomcornimportComponentWithBaseLocator,Element,ListComponent,Page,locators# Prepare base pageclassPyPIPage(Page):APP_ROOT="https://pypi.org"defcheck_page_is_loaded(self)->bool:returnself.init_element(locators.TagNameLocator("main")).is_displayed@propertydefsearch(self)->Element[locators.XPathLocator]:returnself.init_element(locators.IdLocator("search"))# Prepare componentsPackage=ComponentWithBaseLocator[PyPIPage]classPackageList(ListComponent[Package,PyPIPage]):item_class=Package@propertydefbase_item_locator(self)->locators.XPathLocator:returnself.base_locator//locators.ClassLocator("snippet__name")@propertydefnames(self)->list[str]:return[package.body.get_text()forpackageinself.all]# Prepare search pageclassSearchPage(PyPIPage):@classmethoddefopen(cls,webdriver:WebDriver,**kwargs)->Self:pypi_page=super().open(webdriver,**kwargs)# Specific logic for PyPI for an open search pagepypi_page.search.fill("")pypi_page.search.send_keys(Keys.ENTER)returncls(webdriver,**kwargs)@propertydefresults(self)->PackageList:returnPackageList(page=self,base_locator=locators.PropertyLocator(prop="aria-label",value="Search results",),)deffind(self,query:str)->PackageList:self.search.fill(query)self.search.send_keys(Keys.ENTER)returnself.resultssearch_page=SearchPage.open(webdriver=Chrome())print(search_page.find("saritasa").names)For more information about package classes, you can read inObject HierarchyandDeveloper Interface.Also you can try ourdemo autotests project.
Package: pomdp-py
pomdp_pyis a framework to build and solve POMDP problems, written in Python and Cython.Why pomdp_py?It provides a POMDP framework in Python with clean and intuitive interfaces. This makes POMDP-related research or projects accessible to more people. It also helps sharing code and developing a community.Please refer to thefull documentationandinstallation instructions.If you find this library helpful to your work, please cite thefollowing paper:@inproceedings{zheng2020pomdp_py,
   title = {pomdp\_py: A Framework to Build and Solve POMDP Problems},
   author = {Zheng, Kaiyu and Tellex, Stefanie},
   booktitle = {ICAPS 2020 Workshop on Planning and Robotics (PlanRob)},
   year = {2020},
   url = {https://icaps20subpages.icaps-conference.org/wp-content/uploads/2020/10/14-PlanRob_2020_paper_3.pdf},
   note = {Arxiv link: "\url{https://arxiv.org/pdf/2004.10099.pdf}"}
}Call for Contributions: please check out -h2r/pomdp-py/issues/25.
Package: pome
What is pome?pomeis a distributed accounting software.Why pome?We believe that accounting data is one of the most valuable data of a business.Hence, it seems crucial to us that:Entrepreneurs should own their accounting data and not depend on a third-party cloud to access them.The accounting data should be written using a simple, documented and open human-readable formatThis is what pome offers.Our ambition is to provide the framework for an ecosystem that will let businesses get the most out of their accounting data.How does pome work?pomereads and write accounting data locally on your computer in a regular folder that is also agit repository. This approach provides a powerful framework to collaboratively work on accounting data in a distributed way.pomeprovides a web UI that you can access from your browser.Getting startedInstall pomepomerequires Python 3.9.We recommend running the below command in a Python 3.9virtual environment.pip3.9 install pomeStart your company's accounts pome repositoryYou can use example companies to get started:git clone https://github.com/pome-gr/pome.git
cd pome
cp -r examples/companies/<choose_your_example_company> /path/to/your/new/company/repository
cd /path/to/your/new/company/repository
git init
git add -A
git commit -m "Initial commit"
pomeThen open your browser athttp://localholst:5000to launch the UI.You can change pome's port by launching pome with the port as first argument:pome <PORT_NUMBER>.Using a remote git repositoryIt is common and useful to host your git repository on a server that all your collaborators can access.
Common ways to achieve this are to use services such ashttps://github.comorhttps://gitlab.com.Once you have a remote setup, you can ask pome to pull and push automatically from and to it by setting"git_communicate_with_remote": trueinpome_settings.jsonat the root of your company's account repository (create the file if it is not present and put in.gitignoreif you don't want to propagate your settings to your collaborators).
Package: pom-elements
The Python packagepom-elementsfor a Page Object Model that extends to Page Elements.Installation$ pip install pom-elementsUsageOrganize your ui-tests in Classes that represent you page designs. Also organize all of the selectors for your tests with Page Elements. sFeaturesOrganize your tests to reflect how your web page is desinged (Page Objects).Augment your current tests by using through the organization of Pages, PageObjects, or individual Elements.Allows test writers to bring their favorite locator of choice (MultiElement).Use any number of nested PageObjects without needing to manually hand off a webdriver to each instance.Improve the experience of debugging through geting the Element on every call (Descriptor Protocol).WebdriversThis project currently supports the Python Selenium webdriver. The project has been tested with Pytest and Unittest class designs. Please feel free to add any additional framework support. You may need the following to get started with this project.[ChromeDriver](https://chromedriver.chromium.org/)[GeckoDriver](https://github.com/mozilla/geckodriver/releases)[Selenium-Grid](https://www.selenium.dev/documentation/en/grid/)
Package: pomeloabc-OI
PomeloABC - OIProject IntroductionThis is an open-sourceOItool developed byPomeloABCStudio, with code written inPythonlanguage.This tool can help you more conveniently perform some OI operations.Have you encountered the following situations:Hope to generate some strong data in a short period of time and easily use them to capture several programs.Hope to quickly crawl the question information (competition information) and submit the question code (competition code).Hope to compare two huge files and calculate their similarity.Hope to encrypt my private files and not crack them.Hope to quickly convert my Markdown document into a PDF document.So, you can usepomeloabc-OIandPythonto achieve these requirements, and the current features include:Program PairerData ComparatorData similarity comparator (using cosine similarity algorithm)Data encryptor (using RSA algorithm)Document ConverterData generators (data structures, files, mathematics, strings, etc.)Luogu Crawler (topics, competitions, users, posts, comments, private messages, including submission and other functions)Getting Started GuideBefore downloading, you need to prepare Python.Python download url:https://www.python.orgpip install:pip3 install pomeloabc-oigit clone:git clone https://github.com/AndyPomeloMars/OI.gitAt present, please understand and operate on your own. The official documents will be released in the future (estimated time from July to August 2024)If you find any gaps in the code, please raise an issue and make temporary modifications based on examples and source codeUsage examplesimportpomeloabc_OI.OJHelper.Luoguasluoguimportpomeloabc_OI.Generatorasgenimportpomeloabc_OI.Utilsasutilsuser=luogu.User("username","password")user.login()problem=luogu.Problem(user,"P1001")problem.generate()problem.submit("P1001.cpp")record=luogu.Record(user,"10000000")result=record.get()luogu.print_evaluation_res(result)gra=gen.Graph()graph=gra.graph(100,70)graph_str=gra.format(graph)io=gen.IO("example")io.input_write(graph_str)rsa=utils.RSA(2048)rsa.file_encode("example.in")rsa.file_decode("example.in")Configuration RequiredPython$\geq$ 3.8playwright$\geq$ $1.31.0$bs4$\geq$ $0.0.1$rich$\geq$ $13.6.0$pyperclip$\geq$ $1.8.0$requests$\geq$ $2.31.0$pillow$\geq$ $9.4.0$html2text$\geq$ $2020.1.16$Crypto$\geq$ $1.4.0$sklearn$\geq$ $1.3.0$Tex$2023$ContributionAll contributors please check the Honor List page and sincerely thank them for their contributions to thepomeloabc-oiproject.Welcome to contribute topomeloabc-oi. If you have any features you would like to add, you can provide us with an Issue or implement them yourself and then initiate a Pull Request.For more detailed information on how to make contributions, please review how to make contributions.
Package: pomerge
Script to merge translations from a set of po files to other set of po files.pomergedoes not care about.pofile names, a translation
from one file can land in another as long as theirmsgidare identical.UsageBasic usage ispomerge--fromsource.po--todest.po, seepomerge--helpfor more.--fromand--toare optional, when not given, pomerge will use
a temporay file. So:pomerge --from a/**/*.po --to b/**/*.pois strictly equivalent to:pomerge --from a/**/*.po
pomerge --to b/**/*.poThe wrapping of your.pofiles is not kept bypomerge,
completly destroying the readability of git diffs, to fix this I usepoindent.RecipesPropagating translations from a directory to anotherWhen you’re having two directories with.pofiles and want to copy
translations (msgstr) from one to another, even if the hiearchy is
not the same, run:pomerge --from ../contributors/**/*.po --to **/*.poIn this case, two options can be useful:--no-overwrite: Avoid touching already translated strings.--mark-as-fuzzy: Mark all new translations as fuzzy, usefull
when you know you’ll have to proofread the translations.Propagating known translationsIn big projects, there may be multiple occurrences of the same string
in different.pofiles, to automatically fill blanks with already
translated ones, use:pomerge --no-overwrite --from **/*.po --to **/*.poThe--no-overwriteis usefull if the samemsgstrhas already
been translated twice, but differently (depending on the context
maybe), the--no-overwritewill prevent one to be overwritten by
the other.Synchronizing translation between git branchesIf you’re having multiple branches of your documentation to track
multiple branches of your project, you may want to synchronize known
translations between branches, you can do it like this:git checkout master  # The place where your contributors work
pomerge --from **/*.po  # Make pomerge "learn" this set of translations
git checkout old_version  # The translation for an old branch
pomerge --to **/*.poThis way you can still make old translation progress a bit while
focusing only on the current master.
Package: pomerium-http-adapter
pomerium_http_adapterTransport adapter for requests to handle Pomerium authenticationIntroductionThis Python module acts as a "transport adapter" for the popular "requests"
library. It enables transparent Pomerium authentication (in a similar
fashion as "pomerium-cli") of HTTPS requests.Current statusThe module is still in early development and lacks things such as a test
suite and documentation. Contributions are welcome!Example usageimport requests
import pomerium_http_adapter

session = requests.Session()
adapter = pomerium_http_adapter.PomeriumHTTPAdapter(
    authenticated_domains=['example.com'])

session.mount('https://', adapter)

for user in session.get('https://api.example.com/v2/users').json():
    print('=> %s' % user['name'])
Package: pomf
# Pomf.pyPomf.se uploader made in Python3.5+.This script makes it so you can upload to any pomf.se site, only requiring the url of the site. The script is also small enough to be taken wherever you need it to go, only taking up a single file. This script also needs `requests` but seeing as thats such a widely installed module, i dont think anyone DOESNT have it installed!## Getting startedTo get started with pomf.py first you must have Python 3.5 or higher as it makes use of asyncio. There is a non-async version you can download in the Github if you want to use it on anything below Python3.5.```pyimport pomf# select a host via get_host.host = pomf.get_host('mixtape')# you dont need anything other than a file# to upload to the hostret = host.upload(open('hearts.png', 'rb'))# {'hash': 'f6bb5ef07fe63759ecfac1c81193c5912b96c45b', 'name': 'hearts.png', 'url': 'https://my.mixtape.moe/hsoali.png', 'size': 25553}# if you want to add a host:new_host = pomf.add_host('mixtape2', 'https://mixtape.moe')```### Asyncio SupportIf you want to use pomf.py with asyncio, you can add a `_async` to the upload that will return a coroutine:```pyawait host.upload_async(open('hearts.png', 'rb'))# {'hash': 'f6bb5ef07fe63759ecfac1c81193c5912b96c45b', 'name': 'hearts.png', 'url': 'https://my.mixtape.moe/hsoali.png', 'size': 25553}```### Pre-installed HostsHere are the hosts that are ready to be used with the script out of the box.```py# mixtape - https://mixtape.moepomf.get_host('mixtape')# safe - https://safe.moepomf.get_host('safe')# void - https://void.catpomf.get_host('void')```
Package: pomice
PomicePomice is a fully asynchronous Python library designed for communicating withLavalinkseamlessly within thediscord.pylibrary. It features 100% coverage of theLavalinkspec that can be accessed with easy-to-understand functions along with Spotify and Apple Music querying capabilities using built-in custom clients, making it easier to develop your next big music bot.Quick LinksDiscord ServerRead the DocsPyPI HomepageInstallTo install the library, you need the lastest version of pip and minimum Python 3.8Stable versionpip install pomiceUnstable version (this one gets more frequent changes)pip install git+https://github.com/cloudwithax/pomiceSupport And DocumentationThe official documentation ishereYou can join our support serverhereExamplesIn-depth examples are located in theexamples folderHere's a quick example:importpomiceimportdiscordimportrefromdiscord.extimportcommandsURL_REG=re.compile(r'https?://(?:www\.)?.+')classMyBot(commands.Bot):def__init__(self)->None:super().__init__(command_prefix='!',activity=discord.Activity(type=discord.ActivityType.listening,name='to music!'))self.add_cog(Music(self))asyncdefon_ready(self)->None:print("I'm online!")awaitself.cogs["Music"].start_nodes()classMusic(commands.Cog):def__init__(self,bot)->None:self.bot=botself.pomice=pomice.NodePool()asyncdefstart_nodes(self):awaitself.pomice.create_node(bot=self.bot,host='127.0.0.1',port='3030',password='youshallnotpass',identifier='MAIN')print(f"Node is ready!")@commands.command(name='join',aliases=['connect'])asyncdefjoin(self,ctx:commands.Context,*,channel:discord.TextChannel=None)->None:ifnotchannel:channel=getattr(ctx.author.voice,'channel',None)ifnotchannel:raisecommands.CheckFailure('You must be in a voice channel to use this command''without specifying the channel argument.')awaitctx.author.voice.channel.connect(cls=pomice.Player)awaitctx.send(f'Joined the voice channel `{channel}`')@commands.command(name='play')asyncdefplay(self,ctx,*,search:str)->None:ifnotctx.voice_client:awaitctx.invoke(self.join)player=ctx.voice_clientresults=awaitplayer.get_tracks(query=f'{search}')ifnotresults:raisecommands.CommandError('No results were found for that search term.')ifisinstance(results,pomice.Playlist):awaitplayer.play(track=results.tracks[0])else:awaitplayer.play(track=results[0])bot=MyBot()bot.run("token here")FAQWhy is it saying "Cannot connect to host"?You need to have a Lavalink node setup before you can use this library. Download ithereWhat experience do I need?This library requires that you have some experience with Python, asynchronous programming and the discord.py library.Why is it saying "No module named pomice found"?You need toinstallthe package before you can use itContributorsThanks tovveepsfor implementing some features I wasn't able to do myself