Saravanan666/pypi-org huggingface dataset:
Package: p-unity
Programming Unity in PythonProgramming Unity License 10.42SPDX: Programming-Unity-10.42PurposeThis license gives everyone as much permission to work with this software as possible, while protecting contributors from liability.AcceptanceIn order to receive this license, you must agree to its rules.  The rules of this license are both obligations under that agreement and conditions to your license. You must not do anything with this software that triggers a rule that you cannot or will not follow.CopyrightEach contributor licenses you to do everything with this software that would otherwise infringe that contributor's copyright in it.RulesYou may only exercise your license in countries with green ticks in the following columns on theLGBT Rights By Country or Territorypage on Wikipedia.Same-sex marriageSame-sex sexual activityAdoption by same-sex couplesRecognition of same-sex unionsLGB people allowed to serve openly in militaryAnti-discrimination laws concerning sexual orientationTicks must be visible for 30 continuous days to be considered valid.EthicsYou may only exercise your license if you and your organisation follow, or are striving to followThe Software Engineering Code of Ethics and Professional Practiceand any future updates.  The document must be re-read every year on or around your birthday where the year is divisible by three or five.InteroperationWhere the licensed software interoperates with "Artificial Intelligence" it may only be used when the use is compliant, or is striving to become compliant with theseAI Ethicsor similar comprehensive frameworks designed to protectHuman Rights.NoticesYou must ensure that everyone who gets a copy of any part of this software from you, with or without changes, also gets the text of this license.ExcuseIf anyone notifies you in writing that you have not complied with notices, you can keep your license by taking all practical steps to comply within 180 days after the notice.  If you do not do so, your license ends immediately.PatentEach contributor licenses you to do everything with this software that would otherwise infringe any patent claims they can license or become able to license.ReliabilityNo contributor can revoke this license.No LiabilityAs far as the law allows, this software comes as is, without any warranty or condition, and no contributor will be liable to anyone for any damages related to this software or this license, under any kind of legal claim.
Package: punjab
GENERAL INFORMATIONPunJab is a HTTP jabber client interface. It is a BOSH connection manager that
allows persistent client connections to a XMPP server.INSTALLSee INSTALL.txt for setup and installation instructions.CONTRIBUTORSJack Moffitt xmpp:jackm@jabber.orgGarret Heaton <powdahound@gmail.com>Zewt (https://github.com/zewt)COPYRIGHT AND WARRANTYCopyright (C) 2001-2013 Christopher Zorn ,tofu@thetofu.comThe code in this distribution is made available under the MIT License.See LICENSE.txt for more details.
Package: punjabi-stopwords
Punjabi Stopwords LibraryThepunjabi_stopwordslibrary is a Python package providing a collection of stopwords in the Punjabi language. Stopwords are words which are filtered out before processing natural language data. They are typically words that are very common in the language and do not contribute much to the meaning of a sentence, especially when performing tasks like text analysis or natural language processing.Main FeaturesThe punjabi_stopwords package offers several functionalities, including:Identifying Punjabi stopwords in text.Removing Punjabi stopwords from text.Adding custom stopwords to the existing list.Install the PackageYou can install punjabi_stopwords directly from PyPIInstallationInstallpunjabi_stopwordsusing pip:pipinstallpunjabi_stopwordsUsageHere's how to use the punjabi_stopwords library in your Python projects:Check if a word is a stopwordfrompunjabi_stopwordsimportis_stopwordword='ਇਸ'print(is_stopword(word))# Returns: True if the word is a stopword, False otherwiseOutputTrueRemove stopwords from textfrompunjabi_stopwordsimportremove_stopwordssample_text='ਇਹ ਇੱਕ ਉਦਾਹਰਣ ਵਾਕ ਹੈ।'filtered_text=remove_stopwords(sample_text)print(filtered_text)Outputਉਦਾਹਰਣ ਵਾਕAdd additional stopwordsfrompunjabi_stopwordsimportadd_stopwordsadditional_stopwords=['ਨਵਾਂਸਟਾਪਵਰਡ1','ਨਵਾਂਸਟਾਪਵਰਡ2']add_stopwords(additional_stopwords)ContributingContributions to punjabi_stopwords are welcome! If you have suggestions for additional stopwords, or improvements to the existing list, please feel free to contribute.LicenseThis project is licensed under the MIT License - see the LICENSE file for details.
Package: punkeditor
PunkEditorFramework for flexible and powerful curses-based applications.InstallationFor command line version only:pipx install punkeditorTo use the code library:pip3 install punkeditor(or add to yourrequirements.txtetc).UseWe only have a prototype at the moment. It's a variation on the curses TextBox class. If you seek word wrapping, or even character mapping, or copy/paste, or basically anything, look elsewhere.The command is:punkeOptionally, provide--widthand--heightoptions for an edit box smaller than the full terminal window.The editor will open with an empty buffer. Try keys:KeyAction<arrows>movectrl-aleft end of linectrl-eright end of linectrl-ddelete characterctrl-kdelete remainder of line<backspace>backspaceHitTabto quit. The command will dump the contents of the buffer to the output after quitting.We're still missing the concept of a newline character. The editor ignores theReturnkey, and only inserts a space between outputLogo byFreepik
Package: punktdict
a dict with key attributespip install punktdictThis module provides thePunktDictclass, which is a subclass of dict with additional functionality for handling nested dictionaries.
It also provides some configuration options through thedictconfigobject.importsysfrompunktdictimportPunktDict,dictconfig,convert_to_dict# Configure PunktDict behaviordictconfig.allow_nested_attribute_creation=Truedictconfig.allow_nested_key_creation=Truedictconfig.convert_all_dicts_recursively=TruePunktDict._check_forbidden_key=(lambdaself,x:(x.startswith("_ipython")orx=="_repr_mimebundle_"))# Create a PunktDict objectd=PunktDict({'popeye':{'mole':{'bole':'dolle'}}})# Access and modify nested dictionary valuesd['hallo']['baba']=11d.lll.ddd.xxx=333# Update PunktDict with new datad.update({'rrrx':{'xxxxx':'bbbb'}})d.rrrx.xxxxxxx=[]d.rrrx.xxxxxxx.append(3)# Access nested dictionary values using attribute syntaxd['gggg']['xxxxx']['tttt']=12print(d.gggg.xxxxx.tttt)# Convert PunktDict to a regular dictionarydi=convert_to_dict(d)---------------Attributes:------------allow_nested_attribute_creation:AbooleanflagindicatingwhetherPunktDictallowscreationofnestedattributes.DefaultisTrue.-allow_nested_key_creation:AbooleanflagindicatingwhetherPunktDictallowscreationofnestedkeys.DefaultisTrue.-convert_all_dicts_recursively:AbooleanflagindicatingwhetherPunktDictrecursivelyconvertsallnesteddictionariestoPunktDictobjects.DefaultisTrue.Classes:---------PunktDict:Asubclassofdictwithadditionalfunctionalityforhandlingnesteddictionaries.Functions:-----------check_if_compatible_dict:Checksifanobjectisacompatibledictionarybasedonitstypeandattributes.-convert_to_dict:RecursivelyconvertsaPunktDictobjectoracompatibledictionarytoaregulardictionary.Note:-----The`PunktDict`classoverridesseveralmethodsandprovidesadditionalmethodstohandlenesteddictionaries.Theconfigurationoptionscanbemodifiedthroughthe`dictconfig`object.The`convert_to_dict`functioncanbeusedtoconvertaPunktDictobjectoracompatibledictionarytoaregulardictionary.
Package: punkz
PUNKZThis is a package developed by Devpunks that contains some utilities for our projects.
At the moment it includes:Cache System (local, AWS S3 bucket)Processor Framework (very experimental)Table of ContentsInstallationUsageLicenseInstallationYou can easily install this package using pip.pip install punkzUsageThere are many utilities contained in this package.Cache SystemLocal CachingExample Code for local caching.from punkz.core import Cache, LocalCacheProvider
from punkz.packages import get_logger

logger = get_logger("cache_logger")
provider = LocalCacheProvider(".cache", logger=logger)
my_cache = Cache(
    provider=provider,
    cache_instance_id="test",
    expiration="1d",
    logger=logger
    )

@my_cache.cache
def my_func(x):
    return x + 1

print(my_func(99))Note: not passing logger to the Cache or the Provider is possible and if done
it will simply deactivate logging and printing.Caching on AWSExample Code for caching on an AWS S3 bucket.from punkz.core import Cache, AWSS3CacheProvider
from punkz.packages import get_logger

logger = get_logger("cache_logger")
provider = AWSS3CacheProvider(
    bucket_name="your-bucket-name",
    access_key_id="your-access-key-id",
    secret_access_key="your-secret-access-key",
    logger=logger
    )
my_cache = Cache(
    provider=provider,
    cache_instance_id="test",
    expiration="1d",
    logger=logger
    )

@my_cache.cache
def my_func(x):
    return x + 1

print(my_func(99))Processor FrameworkThis is still a work in progress functionality. Documentation will be added
in future releases.LicenseThis package is released under MIT License.DisclaimerThis package is highly experimental and it will be further expanded and refactored in the future.
Package: punppci
PUNPPCI: Penalising Unexplainability Network Payments per Claim IncurredA package for processing insurance premiums and claims data, with scikit-learn compatible applications of the PUNPPCI risk pricing and reserving model, as well as implementations of chain ladder and PPCI.This package is a work in progress. Please check results carefully. PR's and feedback (via the issue tracker) welcome.Installation:pip install punppciUsage:Refer toExample.ipynbfor an example.
Package: punpy
# punpy: Propagating Uncertainties with PYthonpunpyis a Python software package to propagate random, structured and systematic uncertainties through a given measurement function.punpy is part of the [CoMet Toolkit](https://www.comet-toolkit.org) (community metrology toolkit), and can combined with the [obsarray](https://obsarray.readthedocs.io/en/latest/) (Measurement uncertainty handling in Python) for efficient definition, storing and interfacing with uncertainty information using standardised metadata.## Installationpunpy is installable via pip.` pip install punpy `## DocumentationFor more information visit our [documentation](https://punpy.readthedocs.io/en/latest).## Licensepunpy is free software licensed under the
[GNU Public License (v3)](./LICENSE).## Acknowledgementspunpy has been developed by [Pieter De Vis](https://www.comet-toolkit.org/author/pieter-de-vis/).The development has been funded by:The UK’s Department for Business, Energy and Industrial Strategy’s (BEIS) National Measurement System (NMS) programmeThe IDEAS-QA4EO project funded by the European Space Agency.## Project statuspunpy is under active development. It is beta software.
Package: punq
An unintrusive library for dependency injection in modern Python.
Inspired byFunq, Punq is a dependency injection library you can understand.No global stateNo decoratorsNo weird syntax applied to argumentsSmall and simple code base with 100% test coverage and developer-friendly comments.InstallationPunq is available on thecheese shop.pipinstallpunqDocumentation is available onRead the docs.Quick StartPunq avoids global state, so you must explicitly create a container in the entrypoint of your application:importpunqcontainer=punq.Container()Once you have a container, you can register your application’s dependencies. In the simplest case, we can register any arbitrary object with some key:container.register("connection_string",instance="postgresql://...")We can then request that object back from the container:conn_str=container.resolve("connection_string")Usually, though, we want to register some object that implements a useful service.:classConfigReader:defget_config(self):passclassEnvironmentConfigReader(ConfigReader):defget_config(self):return{"logging":{"level":os.env.get("LOGGING_LEVEL","debug")},"greeting":os.env.get("GREETING","Hello world")}container.register(ConfigReader,EnvironmentConfigReader)Now we canresolvetheConfigReaderservice, and receive a concrete implementation:config=container.resolve(ConfigReader).get_config()If our application’s dependencies have theirowndependencies, Punq will inject those, too:classGreeter:defgreet(self):passclassConsoleGreeter(Greeter):def__init__(self,config_reader:ConfigReader):self.config=config_reader.get_config()defgreet(self):print(self.config['greeting'])container.register(Greeter,ConsoleGreeter)container.resolve(Greeter).greet()If you just want to resolve an object without having any base class, that’s okay:classGreeter:def__init__(self,config_reader:ConfigReader):self.config=config_reader.get_config()defgreet(self):print(self.config['greeting'])container.register(Greeter)container.resolve(Greeter).greet()And if you need to have a singleton object for some reason, we can tell punq to register a specific instance of an object:classFileWritingGreeter:def__init__(self,path,greeting):self.path=pathself.message=greetingself.file=open(self.path,'w')defgreet(self):self.file.write(self.message)one_true_greeter=FileWritingGreeter("/tmp/greetings","Hello world")container.register(Greeter,instance=one_true_greeter)You might not know all of your arguments at registration time, but you can provide them later:container.register(Greeter,FileWritingGreeter)greeter=container.resolve(Greeter,path="/tmp/foo",greeting="Hello world")Conversely, you might want to provide arguments at registration time, without adding them to the container:container.register(Greeter,FileWritingGreeter,path="/tmp/foo",greeting="Hello world")Fuller documentation is available onRead the docs.Github workflows, nox configuration, and linting gratefully stolen fromHypermodern Python
Package: punsctl
The project is currently under development and is not ready for use in production.punsctl - POSIX User's Namespace ControlThepunsctlutility manages multiple namespaces (user environments) for the current POSIX user.
That means the user can have multiple "profiles" for the same or different tool configurations in the same user account
(~/.ssh,~/.gitconfig,~/.gnupg,~/.config,~/.config/nvim, ...).
The user can create, delete, activate and deactivate namespaces without additional permissions.InstallationpipinstallpunsctlUsagepunsctl <options>

options:
    -h                  Help menu
    -r                  Root path                 (Default: ~/.ns)
    -s                  Symlink path              (Default: ~/)
    -l                  List namespaces
    -n <namespace>      Create namespace
    -x <namespace>      Delete namespace
    -a <namespace>      Activate namespace
    -d                  Deactivate namespacesList all namespacespunsctl-lList all namespaces from thenon-defaultroot pathpunsctl-p<root_path>-lCreate new namespacepunsctl-n<namespace>Create a new namespace in thenon-defaultroot pathpunsctl-p<root_path>-n<namespace>Delete namespacepunsctl-x<namespace>Delete namespace innon-defaultroot pathpunsctl-p<root_path>-x<namespace>Activate namespacepunsctl-a<namespace>Activate the namespace from thenon-defaultroot pathpunsctl-p<root_path>-a<namespace>Activate the namespace from thenon-defaultroot path and change the symlink pathpunsctl-p<root_path>-s<symlink_path>-a<namespace>Deactivate namespacespunsctl-d
Package: punsy
punsyA rhyming pun generator for PythonInitial POCThe POC takes in a sentence, picks out the last word, finds a random rhyming match and inserts it in place.
E.g."Napoleon Dynamite" -> "Napoleon VEGEMITE"To install, run:pip install punsyYou can then run punsy with:punsy --sentence 'napoleon dynamite'An example run:20:10:22 │ ☯ ~ punsy --sentence 'napoleon dynamite'
2019-08-09 00:55:24,851 punsy.punsy INFO Parsing & loading 125699 entries from CMU dictionary file
125700it [00:02, 58591.59it/s]
2019-08-09 00:55:27,005 punsy.punsy INFO Pronunciation of "DYNAMITE" is "D-AY1-N-AH0-M-AY2-T"
2019-08-09 00:55:27,005 punsy.punsy INFO Fetching rhymes, applying offset=2: "N-AH0-M-AY2-T"
2019-08-09 00:55:27,005 punsy.punsy INFO Rhymes for DYNAMITE: ['DYNAMITE']
2019-08-09 00:55:27,005 punsy.punsy INFO Generated pun for napoleon dynamite: napoleon DYNAMITE (DYNAMITE -> DYNAMITE)
2019-08-09 00:55:27,181 punsy.punsy INFO napoleon DYNAMITEDockerYou build the docker image and run the POC withmakepocRunning interactivelyEnter the docker container withmakebuildshellOption 1:You can use thepunsy/cmu.pycommand with the following format:./punsy/cmu.py <cmu_file_path> <sentence> <offset>Option 2: ipythonThen, launch theipythoncommand and use as follows (output omitted):In[1]:frompunsyimportcmuIn[2]:poc=cmu.POC()In[3]:poc.run('NAPOLEON DYNAMITE',offset=2)The Suffix trieYou can experiment with the suffix trie by running it directly with./punsy/structs/suffix_trie.pyOR, the regular trie with./punsy/structs/trie.pyHall of FameAs time passes, this will hopefully fill with some legitimately funny examples! Until then, we have these :)commandoutput'Adventure Time'"Adventure PART-TIME"'A Good Day To Die Hard'"A Good Day To Die AVANT-GARDE"'The Rolling Stones'"The Rolling CLONES"
Package: punt
I sawkickerthe other day and thought: I could write that in a minute!So I did.INSTALLATION$ pip install puntUSAGE$ punt 'du -sh'  # list file sizes, update the list when a file in cwd changes
$ punt -w tests 'py.test'          # run py.test when any file in tests/ changes
$ punt -w tests -w lib 'py.test'   # run py.test when any file in tests/ or lib/ changes
$ punt -l make                     # only monitor "local" files (don't observe subdirectories)
$ punt --help
$ punt --versionINFOpuntis a tiny tool, just one__init__.pyfile.  It useswatchdogto
monitor file changes, anddocoptto parse command line arguments.LICENSEAuthor:Colin Thomas-ArnoldCopyright:2012 Colin Thomas-Arnold <http://colinta.com/>Copyright (c) 2012, Colin Thomas-Arnold
All rights reserved.SeeLICENSEfor more details (it’s a simplified BSD license).
Package: punter
A tiny python wrapper for theEmail Hunter
API. Seriously. It’s tiny.UsageIn most cases the primary usage will be executing searches on a domain.>>>importpunter>>>s=punter.search('d08d2ba22218d1b59df239d03fc5e66adfaec2b2','stripe.com')>>>s['status']u'success'>>>s['results']164>>>s['emails'][{"status":"success","results":164,"webmail":false,"pattern":"{first}""offset":0,"emails":[{"value":"hoon@stripe.com","type":"personal","sources":[{"domain":"stripe.com","uri":"https://stripe.com/blog/weekly-and-monthly-transfers","extracted_on":"2015-03-05"}]},...]}]Want to do an email search? Essentially the same deal.>>>importpunter>>>s=punter.search('d08d2ba22218d1b59df239d03fc5e66adfaec2b2','apple-pay@stripe.com')>>>s['status']u'success'>>>s['exist']True>>>s['email']u'apple-pay@stripe.com'>>>s['emails'][{u'domain':u'mpora.com',u'extracted_on':u'2015-04-27',u'uri':u'http://mpora.com/tags/wolfgang-wildner'}]Install$pipinstallpunterTodoThere’s always room for improvement.More Pythonic!Tighten up the exception handlingTox configurationPerhaps make a cli (new project?)LicenseThe MIT License (MIT)Copyright (c) 2015 Joshua GoodlettPermission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: punter_cli
# punter-cli[![status][1]][2]
[![version][3]][4]
[![license][5]][6]A simple command line utility for the [Email Hunter API](https://emailhunter.co/api).## UsageThe command line interface provides two commands,searchandkey. Before executing a search it is advisable that you first set your [API key](](https://emailhunter.co/users/sign_up)) using thekeycommand. Whenkeyis first run a configuration file is created in the user’s home directory (~/.punter). Currently the only value stored is the API key. To view the current API key (if it has been set) simply run thekeycommand without any arguments.![key][7]Thesearchcommand takes as its argument either a domain name or valid email address, with a successful search returning raw JSON collected from the Email Hunter service.![key][8]## Install$ pip install punter-cli## TodoAdd unit testsOutput throttlingOptions for parsing/formatting results## LicenseCopyright &copy; 2015 Joshua GoodlettReleased under the [MIT License (MIT)](https://github.com/jgoodlet/punter-cli/blob/master/LICENSE)[1]:https://img.shields.io/travis/jgoodlet/punter-cli.svg[2]:https://travis-ci.org/jgoodlet/punter-cli.svg[3]:https://img.shields.io/pypi/v/punter-cli.svg[4]:https://pypi.python.org/pypi/punter-cli[5]:https://img.shields.io/pypi/l/punter-cli.svg[6]:https://pypi.python.org/pypi/punter-cli[7]: assets/key.png
[8]: assets/screenshot.png
Package: punx
punx - Python Utilities for NeXus HDF5 filesDocumentationThepunxpackage provides these features:Validate NeXus HDF5 data filesChoose the NeXusreleaseto use for validationValidate NeXus NXDL filesDisplay NeXus HDF5 data file structureDisplay NeXus class hierarchy (stretch goal, graphical output)Package Detailsauthor:   Pete R. Jemianemail:prjemian@gmail.comcopyright:   2014-2022, Pete R. Jemianlicense:   Creative Commons Attribution 4.0 International Public License (seeLICENSE.txt)URL:https://prjemian.github.io/punxgit:https://github.com/prjemian/punxissues:https://github.com/prjemian/punx/issuescitation:static code analyses:
Package: punycode
Punycode Converter Library for PythonYou can convert Punycode domain to/from Unicode domain with only one function:punycode.convert().How to useInstallpipinstallpunycodeFunctionThere is only one functionpunycode.convert().input:input_text: stringInput can be both a Punycode domain and a Unicode domain.return:output_text: stringIf you input Punycode domain, the return will be a Unicode domian.On the other hand, if you input a Unicode domain, you will get a Punycode domain.Code sampleimportpunycode# Convert Unicode domain to Punycode domainstr1="美しい.世界"str2="こっち.みんな"str3="日本語.jp"print(f"{str1}->{punycode.convert(str1)}")print(f"{str2}->{punycode.convert(str2)}")print(f"{str3}->{punycode.convert(str3)}")# 僕だけの.世界 -> xn--08j3a5b142t.xn--rhqv96g# こっち.みんな -> xn--l8j9flb8a.xn--q9jyb4c# 日本語.jp -> xn--wgv71a119e.jp# Punycode domain to Unicode domainstr4="xn--n8jub8754b.xn--rhqv96g"str5="xn--28j2af.xn--q9jyb4c"str6="xn--wgv71a119e.jp"print(f"{str4}->{punycode.convert(str4)}")print(f"{str5}->{punycode.convert(str5)}")print(f"{str6}->{punycode.convert(str6)}")# xn--n8jub8754b.xn--rhqv96g -> 美しい.世界# xn--28j2af.xn--q9jyb4c -> こっち.みんな# xn--wgv71a119e.jp -> 日本語.jpascii_only option (v0.2.0 or later)If you don't want to convert a Punycode domain to Unicode when you useconvert()function, you can useascii_onlyoption. (Default: False)With this optionTrue,convert()will convert only Unicode domains.# ascii_only option (v0.2.0 or later)ascii_only=True# Only Unicode domains will be converted if ascii_only=Trueprint(f"{str4}->{punycode.convert(str4,ascii_only)}")print(f"{str5}->{punycode.convert(str5,ascii_only)}")print(f"{str6}->{punycode.convert(str6,ascii_only)}")# xn--n8jub8754b.xn--rhqv96g -> xn--n8jub8754b.xn--rhqv96g# xn--28j2af.xn--q9jyb4c -> xn--28j2af.xn--q9jyb4c# xn--wgv71a119e.jp -> xn--wgv71a119e.jpThis option is available on 0.2.0 or later version, so if you use v0.1.0, please updatepunycode.pipinstall-Upunycode