Saravanan666/pypi-org huggingface dataset:
Package: potypo
Spellchecking for translation using .po-files. This is currently work-in-progress.
This project is specifically tailored to be used with django-applications, but
may be used in any project that uses .po-files for translation.Installationpotypo is available viapip3 install potypoNote that this is not considered stable and might be subject to massive
changes. Please do use it, and report any problems encountered :)ConfigurationConfiguration is done in a configuration file calledsetup.cfg. It follows
the configuration file format used in most of the python world, thus it can be
easily used with similar files that are used for other projects, i.e.flake8,isortor others.This is an example configuration for potypo.[potypo]
# This is the default language of the application, and the language that is
# translated from. It follows the locale tag naming scheme.
default_language = en_US

# This is the directory that contains the .po-files.
# It follows the structure <lang>/LC_MESSAGES/django{js}.po where <lang> is the
# language that is translated into.
locales_dir = /path/to/my/projects/locales

# This is the directory containing word lists with words that are not included
# in the corresponding language dictionary, since they are application-specific,
# uncommon inflections or otherwise special.
# The wordlists only need to contain uncapitalized words.
# They should be named according to the language they belong to in the format
# <lang>.txt, i.e. for the language "en_US", the file should be named
# "en_US.txt".
# They can also be placed in the language- or .po-file-directory
wl_dir = /path/to/my/projects/wordlists

# For easy CI-Integration, potypo will issue an exit(1) if any errors have been encountered.
# If there are languages for which this is not wanted, they should be added to this list.
no_fail =
    fr
    pt_BR

# Because of how the spell-checking work, some words might be output as "wrong",
# even though they are correctly spelled. This will for example happen to
# hyphenated words where a part is not a correct word on its own, abbreviations
# containing numbers, webpages, …
# This is a list containing those words, so that they can be filtered.
edgecase_words =
    add-ons
    MT940
    pre-selected
    myblog.org
    myproject.org-Blog
    myproject.org-Server
    4th

# Similar to the above edgecase words, there might be complete phrases that are used
# in a language although not being from that language, i.e. the phrase "powered
# by" being used in a german text.
# This is a list containing these phrases, so that they can be filtered.
phrases =
    powered by

# This is a list of filters and chunkers to be used by the spell checking
# process.
chunkers = enchant.tokenize.HTMLChunker
filters = PythonFormatFilter,enchant.tokenize.URLFilter,HTMLFilterCurrent Work:add config option for languages that should not failenhance READMEfind .po-files recursively?move this list to issuesfinish setting up testsetup
* change .po-files
* set up setup.cfg
* find out how to start potypo correctly
Package: pou
A stylish, minimalistic, ChatGPT-infused command-line interfaceInstall as a Python LibraryDo one of the following options:>py-mpipinstallpou
>python-mpipinstallpou
>pipinstallpouRun in terminalDo one of the following options:>py-mpou
>python-mpouConfigure settingsSamplesask 'Say something cool and amazing'translate indonesian 'Hello, how are you?'Get involved🐛Found a bug or interested in adding a feature?- Create anissue🤗Want to help?- Create a pull-request!
Package: poulpe
Automatic criminal analysis graph generatorFree software: AGPL licenseDocumentation:https://poulpe.readthedocs.org.FeaturesAll of Git’s power for decentralized collaborative work, including :Secure and efficient data transfersHistory and cryptographically secure accountabilityBranchingIntuitive graph visualization for easy information managementSeamless workflow integration : just version control your files, The Poulpe will take care of everything.History0.0.3 (2015-11-02)Graph visualization0.0.0 (2015-11-01)First release
Package: poultry
Poultrydocumentation:http://poultry.readthedocs.orghomepage:https://github.com/dimazest/poultryPoultry is a tweet collection manager.Changes1.5.1Themediacommand outputs the CSV header and thesource_status_idfield.1.5.0Python 2 is not supported anymore.Use thefull_textfield to retrieve tweet’s text, fall back totextif
it’s not available.languagefiltering predicate.The--modeparameter for thefiltersubcommand that sets the file opening
mode. Usewto rewrite the files anda(the default) to append.The-u(force UTF-8 output) option is removed.--outputand--encodingare added instead.The South-West point of tweet’s place is used if its coordinate is not provided.TheTweet.bounding_boxproperty is introduced, it is always a polygon.The--filtersoption forfilterto define what filters are used.Refactored communication with Twitter and internal stream handling.Newmediacommand.1.3.0Thepoultry.readline_dir()generator iterates over a collection of tweets
and yieldsTweetobjects.1.2.0Windows support.-ooption fortextto print tweets to a file.1.1.1Conda support.1.1.0Python 3 support.1.0.2Producer and consumer process creation and start is fixed.
Package: pourover
Pourover is the onlychemicaly-alteredCEF Log Parsing library for
Python, ideal for consumption by Lizard People.Some stuff we can do:fromdatetimeimportdatetimeimportpourover# Create log objects from a filelog=pourover.parse_file('test.log')# check the length pythonically - expose useful propertiesiflen(log)>10:iflog.has_syslog_prefixandlog.start_time>datetime(year=2018,month=4,day=20):# perform some operationspasselse:# perform some operations on a logfile that doesn't have syslog prefixespasselse:# perform some operations on a really small logpass# Find messages with a certain value in the headersearch_results=log.search_headers('Specific Vendor')formessageinlog:# iterate through each message in the log like you'd expect to be able topass# Logs can be indexed/sliced in the way you'd expectfirst_message=log[0]last_message=log[-1]# Create message objects from a stringmessage=pourover.parse_line('Apr 15 22:11:20 testhost CEF:0|Test Vendor|Test Product|Test Version|100|Test Name|100|src=1.1.1.1 dst=1.1.1.2')ifmessage.has_syslog_prefix:ifmessage.timestamp>datetime(year=2018,month=4,day=20):# perform an operation on logs from later than April 20th, 2018passif'src'inmessage.extensions:# do something if it's got an extension called 'src'passifmessage.device_vendor=='Some Vendor':# do something if the vendor is Some Vendorpass# stick this message right onto that log (it'll even order the messages by timestamp - wow!)log.append(message)Installing :computer:To install Pourover, simply run$pipinstallpourover✨🐊✨Features :crocodile:- :dragon_face: Create CEF-formatted log lines from parameters with support for extensions and a syslog prefix- :dragon_face: Create useful line objects from a string, or an entire log object from a file- :dragon_face: Iterable log objects to manipulate collections of logs at once- :dragon_face: Parse lines with or without syslog prefixesorextensions with ease- :dragon_face: Search logs for messages with specific headers or extensions- :dragon_face:And more to come…Contributing :dragon::bug:Bugs:Please create any issues you think I should check out! If there’s a
bug you spot or a function you think is acting up, please let me know.
This project will have tests eventually, but until then I’m sure there
will be issues sprouting up from time to time!:sparkles:New Features/PRs:The project is still in it’s infancy, so PRs might have a rough time
getting merged in while the codebase is in a constant state of flux,
but I’d me more than happy to have a discussion with you about a new
feature you’d like to see!Get in Touch :snake:If you’ve found a Bug or would like to make a feature request, please
see theContributingsection above, thanks!If you’d like to reach out, shoot me an email atzach@csh.rit.edu.
Package: pou-shap
This is a fork of a newer version of the Shap library originally created by Scott Lundberg. Unfortunately, the PyPi version (as of June 2023) is outdated with the current version of Numpy so I am creating my own private fork to work with numpy 1.24 and 1.25.SHAP (SHapley Additive exPlanations)is a game theoretic approach to explain the output of any machine learning model. It connects optimal credit allocation with local explanations using the classic Shapley values from game theory and their related extensions (seepapersfor details and citations).InstallSHAP can be installed from eitherPyPIorconda-forge:
Package: pout2prot
pout2prot converts Percolator output files to protein group and subgroup files (Occam or anti-Occam) as input for
Prophane. In pout2prot, the user can choose between two protein grouping strategies: Occam’s razor and anti-Occam’s
razor. Occam’s razor is based on the principle of maximum parsimony, and provides the smallest set of proteins that
explains all observed peptides. Here, proteins and their associated taxonomy and functions are expected to be
present in the sample, but proteins that by chance could not be matched to a unique peptide are falsely discarded.
This algorithm is for example used in the X!TandemPipeline. On the other hand, anti-Occam’s razor is based on the
maximal explanatory set of proteins. Here, any protein that contains at least one identified peptide, will be
provided in the protein list. This algorithm is used in for example the MetaProteomeAnalyzer (MPA). Importantly,
while it is important to mention which grouping algorithm was used, there is no way to determine which algorithm is
more correct.pout2prot is also available as an online web application (seehttps://pout2prot.ugent.be) that’s run entirely in
your browser (you don’t need to install anything to get started).See our release page on GitHub for a detailed description of all changes between different versions:https://github.com/tivdnbos/pout2prot/releases.
Package: poutils
poutils is a metapackage to easily install usefull Python tools to use
with po files.powrapScript to fix indentation of given.pofiles.pospellWrapper around hunspell to spell check.pofiles.pogrepA side-by-side grep in.pofiles displayingmsgidon the left
andmsgstron the right, usefull to find how a word has already been
translated.potodoA tool to find in which.pofile work is needed (untranslated and
fuzzy are reported).Can sync with github issues to tell which file have already an issue
opened, hint that the file may currently been translated by someone
else.pomergeA “translation memory” CLI tool, usefull for example to backport
translation from a branch to another, or simply to replicate known
translations from a bunch of file to other files.padpoLinter for gettext files (*.po) including Grammalecte,
non-breakable space checks, glossary checks etc …sphinx-lintA reasonably fast and accurate linter that focuses on finding errors that are not caught by sphinx-build.
Package: pouty
Pouty: a very silly library bringing weird C++ features to Python since 2022Do you like Python? Wanna use std::cout in it? No? I didn't ask!poutyis a Python package that will make you pout with it's ability to use C++ style IO in Python.FAQ:Is it fast?No.Does C++ I/O even make sense in this context?That's for you to judge.Is it faster than Python's print()?While it mayoccasionallyavoid a string creation or contcatenation, it does so through multiple operator overloads and several function calls + type checks. Therefore, no.Why is C++'s iostream fast?C++ is a compiled language with static typing and function call inlining.Why make this?Because I can.Example code (examples/test.py):frompouty.iostreamimport*;importrandom;std.cout<<"Hello, world!"<<std.endlclassCustomOutput:#custom operator<< and operator>> overload supportedis_pouty_stream=Truedef__init__(self)->None:self.x=ref(0)passdef__lshift__(self,other:any)->None:other<<self.x[...]def__rshift__(self,other:any)->None:other>>self.x# Python [unfortunately, perhaps fortunately!] does not have implicit reference parameters.x=ref(0)std.cin>>xstd.cout<<x<<std.endl# uses the __str__ method of refstd.cout<<x[...]<<std.endl# dereferences the ref and prints the intx=CustomOutput()std.cin>>xstd.cout<<x<<std.endlx=random.random()#precision is supported too!std.cout<<x<<std.endlstd.cout<<std.precision(3)std.cout<<x<<std.endlusing_namespace(globals(),"std")cout<<"Hello, world!"<<endl# bringing namespace pollution into Python since 2022 :)frompouty.stdlib.himport*;printf("%s","Hello, world!")printf("%d",123)#note that precision is not supported yet here (feel free to contrubute it)puts("Hello, world!")Installationpip install poutyContributingPull requests are welcome. For major changes, please open an issue first to discuss the change.
Package: poutyne-transformers
poutyne-transformersTrain🤗-transformersmodels withPoutyne.Installationpipinstallpoutyne-transformersExampleimporttorchfromtransformersimportAutoModelForSequenceClassification,AutoTokenizerfromdatasetsimportload_datasetfromtorch.utils.dataimportDataLoaderfromtorchimportoptimfrompoutyneimportModel,Accuracyfrompoutyne_transformersimport(TransformerCollator,model_loss,ModelWrapper,MetricWrapper,)print("Loading model & tokenizer.")transformer=AutoModelForSequenceClassification.from_pretrained("distilbert-base-cased",num_labels=2,return_dict=True)tokenizer=AutoTokenizer.from_pretrained("distilbert-base-cased")print("Loading & preparing dataset.")dataset=load_dataset("imdb")dataset=dataset.map(lambdaentry:tokenizer(entry["text"],add_special_tokens=True,padding="max_length",truncation=True),batched=True,)dataset=dataset.remove_columns(["text"])dataset=dataset.shuffle()dataset.set_format("torch")collate_fn=TransformerCollator(y_keys="labels")train_dataloader=DataLoader(dataset["train"],batch_size=16,collate_fn=collate_fn)test_dataloader=DataLoader(dataset["test"],batch_size=16,collate_fn=collate_fn)print("Preparing training.")wrapped_transformer=ModelWrapper(transformer)optimizer=optim.AdamW(wrapped_transformer.parameters(),lr=5e-5)device=torch.device("cuda:0"iftorch.cuda.is_available()else"cpu")accuracy=MetricWrapper(Accuracy(),pred_key="logits")model=Model(wrapped_transformer,optimizer,loss_function=model_loss,batch_metrics=[accuracy],device=device,)print("Starting training.")model.fit_generator(train_dataloader,test_dataloader,epochs=1)You can also create models with a custom architecture usingtorch.nn.Sequentialclass:fromtorchimportnnfromtransformersimportAutoModelfrompoutyneimportLambdafrompoutyne_transformersimportModelWrapper...transformer=AutoModel.from_pretrained("distilbert-base-cased",output_hidden_states=True)custom_model=nn.Sequential(ModelWrapper(transformer),# Use distilberts [CLS] token for classification.Lambda(lambdaoutputs:outputs["last_hidden_state"][:,0,:]),nn.Linear(in_features=transformer.config.hidden_size,out_features=1),Lambda(lambdaout:out.reshape(-1)),)...
Package: poverlap
POVERLAPPOverlap or Point Overlap is pure python library For Check Overlapping or Colliding 2D Point With Any 2D Shape. And Work Everywhere.InstallationInstall library like other library usepippackage manager.pipinstallpoverlappy-mpipinstallpoverlapUsageFirst ImportingpoverlapPackageimportpoverlapthen use any function you neededpoint_a=(10,200)point_b=(30,100)pdp:float=poverlap.point_distance(point_a,point_b)pop:bool=poverlap.point_point(point_a,point_b)pop_area:bool=poverlap.point_point_add_area(point_a,point_b,5.5)Some DetailAll Overlapping Point Algorithm in One File and Any File Fully NoDepended Can Use One File Frompoverlapin your app without need anything else.TypeAliases Mean:# in point_point.pyT_X:TypeAlias=int|floatT_Y:TypeAlias=int|floatT_POINT:TypeAlias=tuple[T_X,T_Y],list[T_X,T_Y]# added in point_line.pyT_LINE:TypeAlias=tuple[T_POINT,T_POINT],list[T_POINT,T_POINT]# added in point_rectangle.pyT_W:TypeAlias=int|floatT_H:TypeAlias=int|floatT_POSITION:TypeAlias=T_POINTT_SIZE:TypeAlias=tuple[T_W,T_H],list[T_W,T_H]# added in point_circle.pyT_RADIUS:TypeAlias=int|float# added in point_polygon.pyT_POLYGON:TypeAlias=tuple[T_POSITION],list[T_POSITION]Some of Function Name Ended With_add_area()likepoint_point_add_area()this means u can Use for Bigger or Some Bigger and Smaller Area for Detection Overlapping.SourceCodeLicenseMIT
Package: poverse
poverse: Gets the version of dependencies installed by PoetryPoetryis a great tool for managing python projects. This small library retrieves the version of an installed package.Supports python versions >=3.7, <=3.9Installation$pipinstallpoverseUsageCli$poverse--help
Usage:poverse[OPTIONS][LOCK_FILE_PATH]LooksforpackagewithnameinLOCK_FILE_PATH.LOCK_FILE_PATHisthepathtoPoetrylockfiledefaultsto`$PWD/poetry.lock`ifnotsupplied

Options:-p,--packageTEXTNameofthepackageinlockfile[required]--helpShowthismessageandexit.Example usage$poverse-pclick7.1.2

$poverse-pclick$PWD/tests/test_data/poetry.lock7.1.2APIget_installed_versionGets the actual installed version for the supplied package with name
from the poetry lock.Params:package_name(required, str): name of the package that could be in the lock file (required)lock_file_path(str): path topoetry.lockfile. Defaults to apoetry.lockin the current directory.Returns:Optional[str]- Version of requested dependency,Noneif package does not exist.Examplesfrompoverseimportget_installed_versionget_installed_version("boto3")# Get the installed version of boto3 from project's poetry.lockget_installed_version("boto3","/home/user/projects/project/poetry.lock")# Get the installed version of boto3 from the poetry lock suppliedMotivationThe idea behind this project is for applications where you perhaps need to install specific versions of binaries (e.g. Spark or GDAL) that are dependent on your application dependencies.DevelopmentFound something that should not be happening? Do you have an idea that would make this library great? Raise an issue or PR, contributions welcome!
Package: poverty
POVERTYA Python Package to calculate indexes related to poverty and inequality.Who is this for?For anybody who want to calculate indexes related to poverty and inequality using a python package.InstallingYou can installpoverty packageusing pip:$ pip install povertyImplemented FeaturesHeadcount IndexPoverty IndexSquared Poverty IndexSen IndexSen-Shorrocks-Thon IndexWatts IndexGini CoefficientLorenz CurveCommands>>> import poverty as pt>>> poverty_line=125>>> expenditure=[100,110,150,160]>>> pt.calc_head(expenditure,poverty_line)>>> pt.pov_index(expenditure,poverty_line)>>> pt.squared_pov_index(expenditure,poverty_line)>>> pt.sen_index(expenditure,poverty_line)>>> pt.sst_index(expenditure,poverty_line)>>> pt.watts_index(expenditure,poverty_line)>>> pt.gini(expenditure)>>> pt.draw_lorenz(expenditure)ContributorRonak Sisodia
Package: povertylevel
U.S. Federal Poverty GuidelinesUsagefrompovertyimportPovertyLevelpl=PovertyLevel()pl.state='AK'pl.get(household_size=3)# 26660pl.percent(income=26660,household_size=3)# 1.00pl.below(income=26500,household_size=3)# True# You can also pass `state` as an argumentpl.get(household_size=3,state='New Jersey')# 21330pl.below(income=19000,household_size=3,state='New Jersey')# TrueResourcesPoverty Guidelines
Package: povideo
👉项目官网：https://www.python-office.com/👈👉本开源项目的交流群👈📚简介povideo是python自动化办公的小工具的代码合集。📦安装🍊pip 自动下载&更新pip install -i https://mirrors.aliyun.com/pypi/simple/ povideo -U📝功能📘官网：https://www.python-office.com/序号项目介绍代码地址1合同和财务系统源码2人脸门禁系统源码3商场管理系统源码4报表自动化 + 邮件自动发送源码5爬取招聘网站源码🏗️添砖加瓦📐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分支即可。等待维护者合并🐞提供bug反馈或建议提交问题反馈时，请务必填写和python-office代码本身有关的问题，不进行有关python学习，甚至是个人练习的知识答疑和讨论。Github issue📌联系作者
Package: powder
IntroductionA python package to simulate powder diffraction using CCP4 and xprepx.Home Page & RepositoryHome Page:https://pypi.python.org/pypi/powder/Documentation:http://pythonhosted.org/powder/Repository:https://github.com/jcstroud/powderExampleMake a new directory and put your pdb file in it.Make a template settings file in that directory:powder -t > settings.cfgEditat leastthe first five values in the settings
file on the right hand side of the “=” signs.Important- Don’t change the names on the left
of the “=” signs because the left hand side names have meaning.Runpowderwith the config file you edited:powder settings.cfgTesting SetupYou can test your setup in the test directory with the command:./powder-test test.cfgThis allows testing after development without the need to build and install.The-dflag is also available to prevent powder from running ccp4 and
xprepx during debugging.
Package: power1d
power1dNumerical power estimates for one-dimensional continuaSoftware documentation:www.spm1d.org/power1dPlease cite:Pataky TC (2017) Power1D: A Python toolbox for numerical power estimates in experiments involving one-dimensional
continua. PeerJ Computer Science 3: e125. DOI: 10.7717/peerj-cs.125https://peerj.com/articles/cs-125/Installpip install power1dDownloadDownloadPython source code <https://github.com/0todd0000/power1d/archive/master.zip>_IssuesPlease report software bugs or other problems by searching existing issues or creating a new issuehere.Licensepower1d is a package for numerically estimating statistical power in experiments involving one-dimensional continua.Copyright (C) 2023  Todd Pataky

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.