Saravanan666/pypi-org huggingface dataset:
Package: powfile
powfileA quick script to help you switch up powershell profile files, and reset them back to normal.WhyI use different $profile settings when I’m doing screencasts/live demos, and a different one for script and project development.Becomes too taxing to keep switching profile settings, especially when each project I use may come with it’s own settings.FeaturesIncredibly Simple CLI script. Just specify the file (.ps1) you’re looking to place in your profile folder, and the script would take care of the rest.Warns you before you overwrite an existing file.Let’s you reset everything back to ‘normal’ (no profile files) if you’d like to have them go back to normal.Simply uses ‘os’, ‘argparse’, ‘shutil’ libraries.How To Usecd into your project directory.create a ‘custom-profile.ps1’ file with the required settings you’re looking for.run ‘powfile -replace true’ to let the script work.Optionsreplace: Replacement file that exists in current folder, to be copied into the powershell folder.reset: Reset file back to default.trueprofile: Custom powershell profile path, if you’re using a path that’s not %userprofile%/Documents/WindowsPowerShell.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-12-14)First release on PyPI.
Package: powheg-tools
Some useful powheg scriptsInstallTo install the scripts, simply run the following command:$pipinstallpowheg-toolscleanpowhegThis script is used to clean the powheg output files. It is useful to clean the output files before running the next iteration of the powheg process. The script is used as follows:$cleanpowheg[-phere/or/there]genpwgseedsGenerates a list of random seeds for the powheg process. The script is used as follows:$genpwgseeds[-n10][...]Generates equidistante seed numbers, such that individual bad seeds can easily be increased without producing conflicting seeds or too long seedsgeninitrwgtGenerates the initrwgt block for specific pdf and scale variations. The script is used as follows:$geninitrwgtcteq66
Package: powned
PownedPowned is a python packaged designed to check if your password was recovered in a data breach.Harnessing the power ofhaveibeenpwnedyour query is sent safely and securely using k-anonymity practices.InstallationWindows, OS X, and Linux>pipinstallpownedUsage Example>>>importpowned>>>powned.check("password1")21345  # "password1" recovered in 21345 breachesDevelopment SetupFor when you want to work on Powned.Create a virtual environment>virtualenvvenv
>./venv/scripts/activateUsepipto install in editable mode with development requirements>pipinstall-e'.[dev]'Run the provided test suite>python-mpytestRelease History0.2.0Removes defunctsetup.py uploadAdds CONTRIBUTING.md0.1.0Initial releaseAdds passwordcheckfunctionalityMetaAlex Macniven -@alex_macniven-@gmailDistributed under the MIT license.
Package: poword
👉项目官网：https://www.python-office.com/👈👉本开源项目的交流群👈📚简介poword 是python自动化办公之Word操作的第三方库。来自于开源项目：python-office，📘官网：https://www.python-office.com/。📦安装🍊pip 自动下载&更新pip install -i https://mirrors.aliyun.com/pypi/simple/ poword -U📝功能已有功能的说明如下：序号方法名功能视频文档演示代码1merge4docx合并Word文档播放查看打开2docx2doc/doc2docxdoc和docx，互相转换播放查看打开3docx2pdfword 转 pdf播放查看打开🏗️添砖加瓦本项目欢迎任何人参与开发，如果是小白，可以看一下开发教程👉如何参与开源项目？0基础入门：怎么打开GitHub？什么是issue？什么是PR？🐞提供bug反馈或建议提交问题反馈时，请务必填写和该项目本身有关的问题，不进行有关python学习，甚至是个人练习的知识答疑和讨论。Github issuegitee issue🧬贡献代码的步骤在Gitee或者Github上fork项目到自己的repo把fork过去的项目也就是你的项目clone到你的本地修改代码commit后push到自己的库登录Gitee或Github在你首页可以看到一个 pull request 按钮，点击它，填写一些说明信息，然后提交到master分支即可。等待程序员晚枫合并，＋微信说一声更好👉CoderWanFeng📌联系作者读者福利几个没有套路的福利，每天都可以领一次~
Package: powpow
✨███████████████████  ░█▀▀█ █▀▀█ █░░░██▄─▄▄─█─▄▄─█▄─█▀▀▀█─▄▒█▄▄█ █✨ █ █▄█▄███─▄▄▄█─██─██─█─█─█─█▒█░░░ ▀▀▀▀ ░▀░▀░▀▄▄▄▀▀▀▄▄▄▄✨▄▄▄▀▄▄▄▀✨░░░░░🐍░░░░░✨ᴘᴏᴡ! ᴘᴏᴡ!Give any Python interpretter UNIX-like shell capabilities.I don't have the time to flesh out a full README yet (I spent most of what was
available on the ASCII art above 🙃), so here's an example of how to grep large
dicts using PowPow:frompowpowimportgrep# locals() is used as an example of a dict you might want to grep. You can# pass any other object instead - grep() will pretty-format it and try to find# a match.locals()|grep("powpow")
Package: powpy
Proof of workA simple Proof Of Work module made with pythonPOW ALGORITHMThe algorythm used in this module is very simple:
The inputs are aninitial SHA-256 hash(that could be the last proof of work hash, like in bitcoin system) and adifficult in number of zeroes. That means the number of zeroes that the resulting hash must have at it's begining.Starting with those two arguments, the script now makes a new random hash. That's the proof of work.
This new hash has to meet a condition:The new hash is attached to theinitial hashThe script now converts those two joint hashes (initial + new) into another hash. (Resulting hash)If the resulting hash begins with the specifiednumber of zeroes, the proof of work is valid.The information returned is: (proof_of_work_hash, resulting_hash, number_of_attempts)Notice that the resulting hash may have more zeroes than the specified. The difficult is aminimum.For curious people:What is a proof of work?Other methodsproof_of_work() is not the only method contained in this module. Here's an explanation of some others:random_hash(): Returns a random SHA-256 hash.make_hash(string): Converts a string into a SHA-256 hash.How to use itFrom pip:pip install powpyFrom github repository:Download and run setup.py
Package: powrap
powrapScript to fix indentation of given.pofiles. If--modifiedis
given, it will only fix modified files according to git (useful if
your.pofiles are versioned).if--quietis given, the progress bar will not be shownPowrap is part of poutils!Poutils(.poutils) is a metapackage to easily install useful Python tools to use with po files
andpowrapis a part of it! Go check outPoutilsto discover the other tools!Dependenciespowraprelies onmsgcatfromgettextso you’ll have to
installgettextfirst, for example on Debian run:apt install gettextContributingStart by creating a venv andpip install-rrequirements-dev.txtin
it.To run the tests, usetox-pauto.To installpowrapin the current venv runpip install-e..DependenciesWe’re usingpip-toolsto pin our dependencies, but in thesetup.cfgour dependencies arenotpinned, the goal is to ensurepowrapcan easily be installed along with other tools.Dependencies pinning is only done to have a reproducible development
environment and corresponding env in the CI:pip-compile setup.py  # generates requirements.txt
pip-compile requirements-dev.in  # generates requirements-dev.txtIt’s possible to upgrade pinned dependencies with the--upgradeflag ofpip-compile.
Package: powsolver
PoWSolver (WIP)A proof of work puzzle solver mainly for CTF challenges and whatnot.Getting StartedYou can get started usingpowsolverby installing it through pip.pip install powsolverUsageThe main component of the powsolver package is thePoWSolverclass which encapsulates the main functionality.Here is a basic usage example of the powsolver:frompowsovlerimportPoWSolversolver=PoWSolver()solver.parse("Please submit a printable string X, such that{alg}(X)[{start:d}:] ={target}and len(X) ={len}","Please submit a printable string X, such that sha256(X)[-6:] = 86d113 and len(X) = 11")sol=solver.sol()Exampled of more elaborated usage can be found in theexamplesfolder.Running the tests:TODO:ContributingAny PRs are welcome!VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.AuthorsAntreas Pogiatzis-Initial workSee also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: powspec
Power SpectrumThis package provides functions to compute power and cross spectral density of 2D arrays. Units are properly taken into account. More information is available in the documentation, avaliableonline at readthedocs.org.Build and coverage statusLicenseThis project is Copyright (c) Alexandre Beelen, Mathilde Van Cuyck and licensed under
the terms of the BSD 3-Clause license. This package is based upon
theOpenastronomy packaging guidewhich is licensed under the BSD 3-clause licence. See the licenses folder for
more information.ContributingWe love contributions! powspec is open source,
built on open source, and we’d love to have you hang out in our community.Imposter syndrome disclaimer: We want your help. No, really.There may be a little voice inside your head that is telling you that you’re not
ready to be an open source contributor; that your skills aren’t nearly good
enough to contribute. What could you possibly offer a project like this one?We assure you - the little voice in your head is wrong. If you can write code at
all, you can contribute code to open source. Contributing to open source
projects is a fantastic way to advance one’s coding skills. Writing perfect code
isn’t the measure of a good developer (that would disqualify all of us!); it’s
trying to create something, making mistakes, and learning from those
mistakes. That’s how we all improve, and we are happy to help others learn.Being an open source contributor doesn’t just mean writing code, either. You can
help out by writing documentation, tests, or even giving feedback about the
project (and yes - that includes giving feedback about the contribution
process). Some of these contributions may be the most valuable to the project as
a whole, because you’re coming to the project with fresh eyes, so you can see
the errors and assumptions that seasoned contributors have glossed over.Note: This disclaimer was originally written byAdrienne Lowefor aPyCon talk, and was adapted by
powspec based on its use in the README file for theMetPy project.
Package: powspechi
# powspechiA simple python library for angular power spectral analysis of heavy-ion data - coupled to [HEALPix](https://healpix.sourceforge.io/). Explore the combination of methods used to analyze the early universe with debris from the matter created in accelerators. In other words, [quark-gluon plasma](https://home.cern/science/physics/heavy-ions-and-quark-gluon-plasma) meets spherical harmonics.Below it is possible to see examples of maps created from simulated particle distributions as well as some of the spherical harmonics that contribute to their geometries (left). One can also see the final spectra (right) extracted from [ALICE public data from Run 1](http://opendata.cern.ch/record/1106) and the [mALICE](https://github.com/cbourjau/alice-rs/) repository. The spectra are shown for the 10-20% most central events at different ranges of transverse momentum (pT). Figures taken from [“Geometry in heavy ions: estimating an angular power spectrum”](https://www.nbi.ku.dk/english/research/phd_theses/phd_theses_2019/meera_vieira_machado/meera.pdf).![Simulated maps (left) and power spectra (right)](exmaps_powspec.png)Anyone simply interested in performing an angular power spectral analysis of heavy-ion collisions is welcome to usepowspechi. Feel free to test your 3+1D theoretical models, to test on the Run 2 data of LHC, or to just have fun creating your own spharical maps and spectra! Any questions, just contact me atmachado.meera@protonmail.com.### PrerequisitesIn order to runpowspechi, the HEALPix-based python package [healpy](https://healpy.readthedocs.io/en/latest/index.html) should be installed. Preferably healpy >= 1.12.10, which can be installed as follows:Conda` conda config--addchannelsconda-forgeconda install healpy `Pip` pip install--userhealpy `### InstallingIn order to installpowspechi, just follow the procedure below:` pip install powspechi `### DocumentationCheck the full documentation for the lastest version ofpowspechi[here](https://powspechi.readthedocs.io/en/latest/)!### TutorialA Jupyter notebook tutorial along with some example files can be downloaded [here](https://github.com/m33ra/powspechi/raw/master/tutorial.zip); be warned that it is around 200 MB due to the example files. Alternatively, the tutorial can be visualized with Jupyter nbviewer [here](https://nbviewer.jupyter.org/github/m33ra/powspechi/blob/future/tutorial/Tutorial.ipynb).### Publications[Angular power spectrum of heavy ion collisions](https://journals.aps.org/prc/abstract/10.1103/PhysRevC.99.054910), by M. Machado, P.H. Damgaard, J.J. Gaardhoeje and C. Bourjau;[Heavy ion anisotropies: a closer look at the angular power spectrum](https://arxiv.org/abs/1907.00413), by M. Machado
Package: powx
👉项目官网：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: poxo
poxo(poco)Pequeño y perezoso panda | Small and lazy pandaEN|ESIntroducciónEsta librería esta enfocada a ser una herramienta para aprender prácticas de programación creando una copia simple de la conocida libreríapandasIntroThis library is intended to be a learning tool for programming while creating a simple copy of the known librarypandasEjemplo | Exampleimportpoxoaspos=po.Series()
Package: poynter
poynter -worse of both worldsFeaturesHave you ever wanted to have the same fun with Python as you have with C?Do you long for a segmentation fault without having to use SWIG or similar?Do you miss the random segmentation faults when accessing memory out of bounds?Do you want to shoot your self in the foot with a Python?Do you want to be equals to your embedded developer colleagues?Do you want to write to memory you shouldn't write to without these pesky IndexOutOfRangeException?→ No?→ Great! This is why we didn't spare any expenses and developed a real python poynter.
Now with true random segmentation faults when reading memory out of bounds, a real size_t type and much, much more!Customer commentsBut don't just trust us. See what our customers have to say about our product:→ "This is worse than hell!" -ARM Limited→ "Why should I ever use this?" -Guido van Rossum→ "Is this a joke? Am I a joke to you?" -Elon Musk→ "Ahh kill me now, I cannot un-see this ... ever! There is no God" -God→ "The user you have called is currently not available!" -Google→ "Nice! It is perfect." -Rice Powell→ "What have I done? All is lost!" -Library authorExamples:frompoynterimportmalloc,freedata_ptr=malloc(10)data_ptr[3]=15print(data_ptr[100])# Might result in a segmentation fault, but if you are lucky, it doesn'tfree(data_ptr)# Don't forget this, we need to free our memory, otherwise:segmentation fault
Package: poyonga
PythonGroongaClient.
poyonga support to HTTP and GQTP protocol.RequrementsPython 3.6+Installationfrom pip:pip install --upgrade poyongaUsageSetup Groonga Server$ groonga -n grn.db     # create groonga database file
$ groonga -s grn.db     # start groonga server with GQTPBasic Usage>>>frompoyongaimportGroonga>>>g=Groonga()>>>g.protocol'http'>>>ret=g.call("status")>>>ret<poyonga.result.GroongaResultobjectat0x8505ccc>>>>ret.status0>>>ret.body{u'uptime':427,u'max_command_version':2,u'n_queries':3,u'cache_hit_rate':66.6666666666667,u'version':u'1.2.8',u'alloc_count':156,u'command_version':1,u'starttime':1328286909,u'default_command_version':1}>>>with eventletfrompoyongaimportGroongaimporteventleteventlet.monkey_patch()deffetch(cmd,**kwargs):g=Groonga()ret=g.call(cmd,**kwargs)printret.statusprintret.bodyprint"*"*40cmds=[("status",{}),("log_level",{"level":"warning"}),("table_list",{})("select",{"table":"Site"})]pool=eventlet.GreenPool()forcmd,kwargsincmds:pool.spawn_n(fetch,cmd,**kwargs)pool.waitall()Custom prefix pathIf you use theCustom prefix pathandMulti databases, specifyprefix_path.# default is '/d/'g=Groonga(prefix_path='/db2/')with Apache ArrowGroonga supportsApache Arrow, use it withloadandselectcommands.use poyonga with Apache Arrow, you needpyarrow.requrie pyarrow:$ pip install pyarrowand call withoutput_type="apache-arrow"option:frompoyongaimportGroongag=Groonga()g.call("select",table="Users",match_columns="name,location_str,description",query="東京",output_type="apache-arrow",output_columns="_key,name",)Noteoutput_typecan also specifypoyonga.const.OutputType.APACHE_ARROW.
If is not specified,poyonga.const.OutputType.JSONis specified by default.load withinput_type="apache-arrow":importpyarrowaspafrompoyongaimportGroonga# use Apache Arrow IPC Streaming Formatdata=[pa.array(["groonga.org"])]batch=pa.record_batch(data,names=["_key"])sink=pa.BufferOutputStream()withpa.ipc.new_stream(sink,batch.schema)aswriter:writer.write_batch(batch)buf=sink.getvalue()values=buf.to_pybytes()g=Groonga()g.call("load",table="Site",values=values,input_type="apache-arrow")Noteinput_typecan also specifypoyonga.const.InputType.APACHE_ARROW.
If is not specified,poyonga.const.InputType.JSONis specified by default.more information:https://groonga.org/docs/reference/commands/load.htmlexample codeseeexamples directoryfor Developerinstall dev dependencies:$ pip install ".[dev]"run tests:$ pytestrun linter:$ ruff .run formatter:$ black --diff .LinksPyPIGitHub
Package: pozo
para español🐰 Pozo Well VisualizerPozo is an open source, intuitive api for visualizing well logs. It usesplotlyto render interactive graphs.$pipinstallpozoDon't forgetpip install lasioif you're using lasio! If you're using jupyter,pip install ipywidgets plotly nbformatas well.Simplest Usageimportpozoimportlasiolas=lasio.read("SALADIN.LAS")# You can specify the data you are interested inmyGraph=pozo.Graph(las,include=["CALI","CGR","LLS","ILD","LLD","NPH","RHOB"])# This is a good thememyGraph.set_theme("cangrejo")# recommended theme!myGraph.render(height=800,depth=[1080,1180])Notice the tracks are in the same order as your listinclude=[...].Combining Tracks# Before you render

graph1.combine_tracks("CGR", "CALI") # Also maintains order!

graph1.combine_tracks("LLD","ILD","LLS") 

graph1.combine_tracks("RHOB", "NPHI")

# Notice we change position of depth axis with `depth_position=1`
graph1.render(height=800, depth_position=1, depth=[1080, 1180])ThemingThe"cangrejo"theme above is built-in. It uses themnemonicof the data to determine what the color, range, and unit might be. However, it doesn't cover all cases, so you have two options:# Option One: Set a fallback for everything (only works if theme is set to "cangrejo")
graph.get_theme().set_fallback{"track_width":200}

# Option Two: Set a specific theme on a specific track:
graph.get_tracks("CGR")[0].set_theme({"track_width":200})

# Some possible settings:
#  "color": "blue"
#  "scale": "log"
#  "range": [0, 10]
#  "range_unit": "meter"TODO: to learn more about themingSelecting Tracks# Returns list of Track objects
tracks         = graph1.get_tracks("CGR", "MDP") # by name
other_tracks   = graph1.get_tracks(0, 2)         # by position

# Removes AND returns list of Track of objects
popped_tracks  = graph1.pop_tracks("CGR", 3)     # by name or position

# Note: The name is often the mnemonic. But not always, like in combined tracks.
# To search explicitly by mnemonic:
popped_tracks2 = graph1.pop_tracks(pozo.HasLog("CGR"))TODO: to learn more about selectingAdding Data ManuallySometimes you want to do your own math and construct your own data:data = [1, 2, 3]
depth = [1010, 1020, 1030]

new_data=Data(data, depth=depth, mnemonic="LOL!")
graph.add_tracks(new_data)
# all data must have either a mnemonic or a nameYou can now callgraph.add_tracks(new_data)But maybe you want to theme it first. Don't theme the "Data" directly, it won't impact much:new_tracks = graph.add_tracks(new_data)
new_tracks[0].set_theme({"color":"red", range=[0, 1], range_unit="fraction"})TODO: learn more about the pozo internal data structureSanitizing DataUnitsTODO: common geology-only unitsCommon OperationsCommon Derived DataCommon Track ViewsUtility FunctionsExporting to LAS file
Package: ppad
Papertrail log archives downloaderppad, stands forPaPertrail log Archives Downloader, can download log archives fromPapertrail.The downloading process works on multi-thread and checkingAPI'sRate Limitsfrom the headerso you can download the archives fastly and safely.InstallPlease usepippip install ppadUsagePlease set your token to the environment variable namedPAPERTRAIL_API_TOKENto run the script.$PAPERTRAIL_API_TOKEN=YOUR_TOKENppad# Download all the log archives$PAPERTRAIL_API_TOKEN=YOUR_TOKENppad2020-01-01~2020-02-01# Download the archives which have logged January 2020$PAPERTRAIL_API_TOKEN=YOUR_TOKENppad2020-01-01~# Specified the since date (including the since date file)$PAPERTRAIL_API_TOKEN=YOUR_TOKENppad~2020-02-01# Specified the until date (NOT including the until date file)By running the above command(s), you can get the log archives named such as2020-01-01-XX.tsv.gzin the current directory.The date format is ISO-8601 format supported.(The script usesdateutil.isoparse)