Saravanan666/pypi-org huggingface dataset:
Package: pcollections
pcollectionsA persistent collections library for Python.Aboutpcollectionsis a library of persistent (immutable) collections inspired by
the immutable data structures ofClojurebut built to resemble
the native Python collections as closely as possible. The library is implemented
in Python but employs thephamt(Persistent Hash Array Mapped Tries) library, which is implemented in C, to
perform efficient low-level operations.The library implements three persistent types:plist,pset, andpdict. These are immutable versions of the builtinlist,set, anddicttypes. The persistent object interfaces are as similar as possible to the native
types, but the method signatures differ in ways necessary to accomodate
efficient immutable ways of doing things. For example, thepdictconstructor
is identical to thedictconstructor and always returns apdictequal to thedictthat would be created with the same arguments. However, instead of
supporting operations liked[key] = val,pdictssupport asetmethod:d = d.set(key, val).In addition to the persistent types, there are two lazy types,llistandldict. These types are enabled by thelazytype. Alazyobject is
basically apartialobject that, when called, caches the function's return
value and returns that value without rerunning the function on subsequent
calls. Thellistandldicttypes are equivalent to theplistandpdicttypes with one exception. Elements of anllistand values of anldictthat
are of thelazytype are dereferenced when requested. This allows a programmer
to easily create data structures (potentially nested data structures) whose
items are the results of complex or long-running computations that only get
computed once requested. The persistent data structures allow the arguments to
these lazy functions to be safe from mutation.Finally, the persistent and lazy types have transient correlaries that enable
more efficient batch-mutation of the persistent types. The transient typestlist,tset,tdict,tllist, andtldictall have interfaces equivalent
to their standard mutable correlaries (transient types are mutable).LicenseMIT LicenseCopyright (c) 2022-2023 Noah C. BensonPermission 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: pcommerce.core
IntroductionPCommerce (Plone commerce) provides a simple shop system which supports:product variationsmultiple prices per product to support special prices per user or group
(over the sharing tab) and prices only available for a specific time
(by using the expiration date)multiple pluggable payment methodsmultiple currencies by using Products.CurrencyUtilityPluggable Payment MethodsTo register a new payment method for PCommerce register a utility implementing
the IPaymentMethod interface. If your payment method requires data from the user
set the pre_view_name attribute of the utility to the name of the view implementing
IPreOrderView which provides the necessary fields. If you would like to display
information after ordering set the post_view_name attribute to the name of the
view providing those.For a simple example pcommerce.email provides a payment method which simply sends
an email to the administrator containing the billing address.Optional dependenciesProducts.CurrencyUtility - to add support for multiple currenciesImageTag_CorePatch - to add support for dynamic image scaling
[http://www.zope.org/Members/bowerymarc/ImageTag_CorePatch/0.3/ImageTag_CorePatch.tgz]Changelog0.4 - Alpha releaseAdded Spanish translations (thanks to Manuel Gualda Caballero)0.3 - Alpha releaseRemoved setupHandler which rebuilded the catalog and slowed down (re)installFixed version in metadata.xml0.2 - Alpha releaseRemoved profile dependency to Products.CurrencyUtility0.1 - Alpha releaseInitial release
Package: pcommerce.email
Introductionpcommerce.email is deprectated and only works with pcommerce <= 0.4.
A payment plugin providing the same functionality is available for
pcommerce.core > 0.4 named pcommerce.payment.invoice.pcommerce.email provides a payment method for PCommerce, which simply
sends an email to administrator containing the billing address.Changelog0.5Added deprecation info to READMEAdded version bound dependency for pcommerce.core 0.40.4Added Spanish translations (thanks to Manuel Gualda Caballero)0.3bugfix in configure.zcml0.2added five:registerPackage to support i18n0.1Initial release
Package: pcommerce.multilanguagefields
IntroductionProvides raptus.multilanguagefields support for PCommerce.Changelog1.0a4 (2012-01-23)added z3c.autoinclude entry point1.0a3 (2011-11-29)Removed reindexing from setuphandler1.0a2 (2011-09-26)Added multilanguage body text field to product and variation1.0a1 (2010-12-20)Initial release
Package: pcommerce.payment.docdata
pcommerce.payment.docdata=======================pcommerce.payment.docdata is a plone plugin, which provides payment over docdata for PCommerceYou can find it on github at: https://github.com/huubbouma/pcommerce.payment.docdataBy: Huub Bouma (http://www.wyldebeast-wunderliebe.com)The Docdata specific hashing, status, and exception code was taken from the**django-docdata** project (https://github.com/dokterbob/django-docdata)The author of that part of the code is Mathijs de Bruinhe has stated in en email conversation that his code is licenced with AGPLwhich is included with this softwareThis package was mainly designed after the **pcommerce.payment.saferpay** plugin, and works almost identically, except ofcourse this uses a different payment platform.Installation instructions-------------------------*Step 1 - installing**********************Install via the plone quickinstaller*Step 2 - configure plone***************************Look at the docdata settings in the site configurationYou should set the docdata specific settings and these should obviouslymatch the settings as you have configured them with Docdata.- `DocData merchant name`- `DocData merchant password`- `DocData profile`- `DocData debug mode`*step 3 - Docdata settings**************************In Docdata there are a couple of settings which you should set:return URL (in your merchant profile -> URLs)http://my.website.com/processDocdata?form_id=note that the form_id is necessary. This should really be the 'orderId'but since I had some non related integration issues I changed it to form_iddocdata will automatically add the order_id to last GET parameterDocdata should be able to access this URL in order for it to work.*LICENCE**********This code is open source. It's licenced under the AGPLV3 licence, which is compatible with the GPLV3See LICENCE.txtChangelog=========1.1 (2013-09-30)----------------* Small update to use latest docdata code from the django-docdata project1.0 (2012-06-13)----------------* Stable release0.1a1 (unreleased)------------------* initial import to plone collective* Updated translations [kcleong]
Package: pcommerce.payment.invoice
Introductionpcommerce.payment.invoice provides a payment method for PCommerce, which simply
sends an email to the administrator containing the billing address.Changelog1.0b5 (2012-04-17)implemented redirection to order detail after processing / failing an order [simu]1.0b4 (2011-12-13)updated translationsadded french translations1.0b3 (2011-09-01)Added dutch translations
(thanks to Albert Peschar)1.0b2 (2010-12-20)Added possibility for admin to fail a payment1.0b1 (2010-10-20)Plone 4 compatibility0.1a1First public release
Package: pcommerce.payment.ogone
pcommerce.payment.ogonepcommerce.payment.ogone is a plone plugin, which provides payment over ogone for PCommerceBy: Huub Bouma (http://www.goldmund-wyldebeast-wunderliebe.com)The Ogone specific hashing, status, and exception code was taken from thedjango-ogoneproject (Thierry Schellenbach).
django-ogone is licenced under the GPLV3 licence, which is includedThis package was mainly designed after thepcommerce.payment.saferpayplugin, and works almost identically, except ofcourse this uses a different payment platform.Installation instructionsStep 1 - installingInstall via the plone quickinstallerStep 2 - configure ploneLook at the ogone settings in the site configurationYou should set the ogone specific settings and these should obviously
match the settings as you have configured them with Ogone.Ogone Server URLpspidSHA In PassphraseSHA Out Passphrasestep 3 - Ogone settingsIn Ogone there are a couple of settings which you should set:Hash algorithm:SHA-512SHA-IN Pass phrase:your secret password for hashing the requestSHA-OUT Pass phrase:your secret password for hashing the responseI want to receive transaction feedback parameters on the redirection URLs:checkedOn the subsectionDirect HTTP server-to-server requestyou can set theTiming of the requestto:Always deferred (not immediately after the payment).This will make sure that if something goes wrong and the customer has already
payed, it will still be processed by plone because Ogone will send the request
(again)Make sure that you fill in the complete URL of theprocessOgoneURL, which
will be the URL of your homepage, followed by ‘/processOgone’, e.g.:http://my.website.com/processOgoneOgone should be able to access this URL in order for it to work.LICENCEThis code is open source. It’s licenced under the GPLV3 licence.
See LICENCE.txtChangelog0.1a2 (unreleased)0.1a1 (2011-11-21)First release on GW20e’s private egg repository
Package: pcommerce.payment.paypal
Introductionpcommerce.payment.paypal provides payment over paypal for PCommerce.PCommerceAddon for PCommerce:pypi.python.org/pypi/pcommerce.core/DependenciesAutomatically pulled:paypal-python -https://github.com/duointeractive/paypal-pythonSponsored and in production at PortKnox -https://portknox.netHistoryChangelog0.4 (2012-12-15)Nothing changed yet.0.3.6 (2012-12-15)First public release
Package: pcommerce.payment.saferpay
Introductionpcommerce.payment.saferpay provides payment over saferpay for PCommerce.Changelog1.0b4 (2012-01-23)added z3c.autoinclude entry pointFixed translation domain in configlet.pt1.0b3 (2011-09-01)Added dutch translations
(thanks to Albert Peschar)1.0b2 (2011-1-17)replace propertiestool.xml with setuphandlers. this fix a error
with deleted properties by reinstalling the product1.0b1 (2010-10-20)plone 4 compatibility
remove actionsicons because is no more supported in plone 40.1a1First public release
Package: pcommerce.shipment.haulage
Introductionpcommerce.shipment.haulage provides a haulage shipment method for PCommerce.Changelog1.0b4 (2012-01-23)added z3c.autoinclude entry point1.0b3 (2011-12-13)updated translationsadded french translations1.0b2 (2011-09-01)Added dutch translations
(thanks to Albert Peschar)1.0b1 (2010-10-20)Plone 4 compatibility0.1a1First public release
Package: pcommerce.shipment.pickup
IntroductionProvides a pick up shipment plugin for PCommerceChangelog1.0b2 (2012-01-23)added z3c.autoinclude entry point1.0b1 (2011-12-13)updated translationsadded french translations1.0a2 (2011-09-01)Added dutch translations
(thanks to Albert Peschar)1.0a1 (2010-12-20)Initial release
Package: pcommerce.shipment.swisspost
Introductionpcommerce.shipment.swisspost provides a SwissPost shipment method for PCommerce.Changelog1.0b3 (2012-01-23)added z3c.autoinclude entry point1.0b2 (2011-09-01)Added dutch translations
(thanks to Albert Peschar)1.0b1 (2010-10-20)Plone 4 compatibility0.1a1First public release
Package: pcommerce.stock
IntroductionThis package provides basic stock functionality for PCommerce.Changelog1.0b3 (2012-01-23)added z3c.autoinclude entry point1.0b2 (2012-01-05)fixed bug in increasing/decreasing stock when manually switching between checkout and cart1.0b1 (2011-12-13)updated translationsadded french translations1.0a4 (2011-09-02)Fixed dutch translations (wrong i18n domain)1.0a3 (2011-09-01)Plone 4 compatibilityAdded dutch translations
(thanks to Albert Peschar)1.0a2 (2010-12-21)Fixed Bug when using only one variation type or no variations at all1.0a1 (2010-12-20)Initial release
Package: pcomp
A simple library that calculates all possible permutations (with repetition) from an iterator and a length.Example(hex to binnary)import pcompprint (pcomp.area(range(2),4))#it returns: 16print (pcomp.pc(range(2),4))#it returns: [[0, 0, 0, 0], [0, 0, 0, 1], [0, 0, 1, 0], [0, 0, 1, 1], [0, 1, 0, 0], [0, 1, 0, 1], [0, 1, 1, 0], [0, 1, 1, 1], [1, 0, 0, 0], [1, 0, 0, 1], [1, 0, 1, 0], [1, 0, 1, 1], [1, 1, 0, 0], [1, 1, 0, 1], [1, 1, 1, 0], [1, 1, 1, 1]]#[0]=0,[1]=1 .... [15]=fChange Log1.2.1 (28/11/2022)typo1.2 (28/11/2022)Added error exception for invaide arguments1.1.1 (22/8/2022)combinations --> permutations with repetition (word replacement due to typo)
(I might add combinations in the future + repetition True-False) (The package name will remain the same)Version 1.0.2 in the changelog was 2 times (typo)1.1.0 (19/8/2022)New return formThe all function has been renamed to pcBetter file organization and function syntax1.0.2 (10/7/2022)Added github1.0.1 (10/7/2022)Fixed a problem1.0.0 (10/7/2022)First Release
Package: pconf
Hierarchical python configuration with files, environment variables,
command-line arguments.SeeGitHubfor detailed documentation.ExamplefrompconfimportPconfimportjson"""
Setup pconf config source hierarchy as:
  1. Environment variables
  2. A JSON file located at 'path/to/config.json'
"""Pconf.env()Pconf.file('path/to/config.json',encoding='json')# Get all the config values parsed from the sourcesconfig=Pconf.get()# Just print everything nicelyprintjson.dumps(config,sort_keys=True,indent=4)Run the above script:pipinstallpconfpythonexample.pyThe output should be something like this:{
    "HOSTNAME": "bb30700d22d8",
    "TERM": "xterm",
    "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
    "PWD": "/",
    "SHLVL": "1",
    "HOME": "/root",
    "no_proxy": "*.local, 169.254/16",
    "_": "/usr/bin/env",
    "example": {
        "another": "stuff",
        "key": "value"
    }
}
Package: p-config
Simple configure management tool for python project.YAML file and environment variable both supported.Free software: BSD licenseDocumentation:https://p-config.readthedocs.io.Install$:pipinstallp_config--upgradeUsageInitialize aConfiginstance. You can add some default value here.Load local file or environment value. Value with same key will be overridden.Access config through the instance(default)p_config)ENV=UATipythonPython3.9.1(default,)Type'copyright','credits'or'license'formoreinformationIPython7.20.0--AnenhancedInteractivePython.Type'?'forhelp.In[1]:fromp_configimportConfigIn[2]:config=Config(ENV='SIT')In[3]:config.ENV# default config defined at [2]Out[3]:'SIT'In[4]:!catdemo.yamlENV:PRDBROKER_URI:redis://DB:NAME:testHOST:localhostPORT:3306In[5]:config.load_yaml_file('demo.yaml')In[6]:config.ENV# overridden by config in demo.yamlOut[6]:'PRD'In[7]:config.DB# only support upper caseOut[7]:{'NAME':'test','HOST':'localhost','PORT':3306}In[8]:config.DB.HOSTOut[8]:'localhost'In[9]:config.load_env()In[10]:config.ENV# overridden by config in demo.yamlOut[10]:'UAT'CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: p-connector-dfg
IntroductionThis project implements the connector method proposed in the paperSupporting Confidentiality in Process Mining Using Abstraction and EncryptionandEnsuring Confidentiality in Process Mining.Python packageThe implementation has been published as a standard Python package. Use the following command to install the corresponding Python package:pipinstallp-connector-dfgUsagefromp_connector_dfg.privacyPreservingimportprivacyPreservingela_path=".\intermediate_results\ela_connector.xml"ela_method="Connector Method"ela_desired_analyses=['directly follows graph','process discovery']activity_activity_matrix_path=r".\intermediate_results\test.csv"dfg_path="./DFG.svg"freq_threshold=0.0#Connector structure parameters--------------relation_depth=True#if you want to have relation depth in the connector structuretrace_length=True# if you want to have trace length in the connector structuretrace_id=True# if you want to have a fake trace id in the connector structureevent_log="sample_log.xes"key='DEFPASSWORD12345'pp=privacyPreserving(event_log)pp.apply_privacyPreserving(key,ela_path,ela_method,ela_desired_analyses,event_log,relation_depth=relation_depth,trace_length=trace_length,trace_id=trace_id)pp.result_maker_ela(ela_path,True,True,True,freq_threshold,dfg_path,activity_activity_matrix_path=activity_activity_matrix_path,key=key)
Package: pconsole
panda3d consolea tiny and easy-to-use runtime console for panda3d-powered appsInstallationpipinstallpconsoleInitialize consoleimportpconsolecommandDic={"func1_string":func1,# "associated string" : function name"func2_string":func2}key='t'# this key will toggle the console, by default, pconsole will use 'f1'myConsole=pconsole.Console()myConsole.create(commandDic,event=key)# command line is now up and runningdefault commandshelp: lists all available commandsusage: specific helpadditional featuresuse the 'app' argument when creating the console in order to be able to access attributes and variables from your main class in the python interpreter:myConsole.create(commandDic,event=key,app=self)# the self keyword will be refered to as 'main' in the interpreter
Package: pconvert-python
P(NG)ConvertSimple PNG conversion tool usinglibpng.BuildIt should be simple to build the project usingmake. Please note that the project requires both Python and libpng.make
makeinstallTo build pconvert for a specific system use theSYSMakefile variable:makeSYS=darwinIt's also possible to build the Python extension and install in a local machine.pythonsetup.pyinstallPython Methodsblend_imagesArgumentTypeMandatoryDefaultDescriptionbottom_pathstrtrue-The path to the bottom image.top_pathstrtrue-The path to the top image.target_pathstrtrue-The path of the target (resulting) image.algorithmstrfalsemultiplicativeThe blending algorithm to be used.is_inlineboolfalsefalseIf the inline methods should be used to perform the blending.blend_multipleArgumentTypeMandatoryDefaultDescriptionpathslisttrue-The sequence of paths of the images to be blended from bottom to top.target_pathstrtrue-The path of the target (resulting) image.algorithmstrfalsemultiplicativeThe blending algorithm to be used to blend all images in a pair-wise fashion.algorithmslistfalse-The sequence of blending algorithms to use for each blending operation. If defined,algorithmwill not be used.is_inlineboolfalsefalseIf the inline methods should be used to perform the blending.ExampleRunning a simple set of composition can be done using:pconvertcomposeassets/demo/To be able to convert one image into a normalized PNG format use theconvertcommand as following:pconvertconvertassets/demo/tux.pngtux.out.pngTo run a simple benchmark operation (results inbenchmark.txt) using pconvert use:pconvertbenchmarkassets/demo/ConanThis package makes use of theConanpackage manager to use run:pipinstall--upgradeconan
conaninstall.--buildmissingIt's important to note that the usage of Conan is not mandatory and it's still possible to build P(NG)Convert without it.CMakeLinux & MacOSconaninstall.--buildmissing
cmake.
makeWindowsconaninstall.--buildmissing
cmake.-DCMAKE_CL_64=1-DCMAKE_GENERATOR_PLATFORM=x64-Ax64
msbuildALL_BUILD.vcxproj/P:Configuration=ReleaseLicensePConvert is currently licensed under theApache License, Version 2.0.Build Automation
Package: pconv-lib
pconvConvert Python data to Javascript through JSON. Read, Write, and Update data through JSON files for multi-language compatibility.Installation and usePrerequisite:If you haven't already, install the latest version of pip and Python. The package may only run on Python versions that are 3.7 or higher.Check Pip Version:pip --versionCheck Python Version:python --versionInstallpconv:pip install pconv_libInstallpconvwith pip3:pip3 install pconv_libImport Library to File:from pconv_lib import pconvDependenciespconv depends on the following Python modules for development:sys- utilities for system variables and function.json- Allows Python to interact with JSON files.Full Python script referenceInitializationBefore interacting with the package, you must set a filepath of the relative json that needs to be worked with.var pconv_var = pconv.Conv('FILEPATH_OF_JSON')Adding Data to JSONpconv will add data in the form of a dictionary to the JSON file.pconv_var.attach('FILEPATH_OF_JSON', 'KEY_VALUE', 'CORRESPONDING_VALUE')Note: If there is a key that is being added to the JSON that has already been added before, the function will override past data on the JSON by nature.A user may also be faced with an error of typeNoFilepathFoundErrorif their filepath is incorrect. View theErrorssection of this documentation for more information.Loading Specific KeysLoads a value of a desired key in the JSON.returned_var = pconv_var.load('DESIRED_KEY')If a key is not found, pconv will returnNone.Loading All DataView all the data in the form of a dictionary.result_from_json = pconv_var.spill()Note: If the json is empty, the function will returnNone.ErrorsA very common error that a user might face is:NoFilepathFoundError: FILE_PATH not foundIn this case, it is essential that the user has typed the correct filepath and has ensured that the json file is actually placed in their desired location. pconv does not take filenames, but paths. A common mistake users have is that they do not place,./before the parent directory to indicate that the location is within our present directory location on the Operating System.Resources (Coming Soon)Pypi pconvJsconvContact InformationHere are some of the ways you can find me:[www.jaivalpatel.com]TwitternpmInstagramMade by @Jaival - 2022
Package: pconway
Conway’s Game of Life Terminal Eye Candy implemented in Python.featuresPlay Conway’s Game of Life on your terminal.Added mutation feature so the game never terminates (which makes it
a terminal eye candy!).Documentation:https://pconway.readthedocs.ioRepository:https://github.com/terrencetec/pconwayGetting StartedDependenciesRequiredNumpyCurses (Included in the Linux version of Python. For Windows users,
install windows-curse)InstallationFrom PyPIpipinstallpconwayFrom sourcegitclonehttps://github.com/terrencetec/pconway.gitcdpconwaypipinstall.Debian based(Not available yet)sudoapt-getinstallpconwayArch-based(Not available yet)
Install from AUR:paru-Syupconwayoryay-SyupconwayUsageCommand$gameoflifeHelp message$gameoflife-husage:gameoflife[-h][-c{black,blue,cyan,green,magenta,red,white,yellow}][-CCHAR][-b][-sSPEED][-mMUTATION_RATE]PlayConway\'sgameoflifeoptionalarguments:-h,--helpshowthishelpmessageandexit-c{black,blue,cyan,green,magenta,red,white,yellow},--color{black,blue,cyan,green,magenta,red,white,yellow}Foregroundcolor.Defaults\'white\'-CCHAR,--charCHARCharacterrepresentinglivecells.Defaults\'o\'.-b,--borderBorderonthescreen-sSPEED,--speedSPEEDFramepersecond-mMUTATION_RATE,--mutation-rateMUTATION_RATEMutationrateHow to ContributeTry out the package and file an issue if you find any!
Package: pco-tools
A Python module to read images that have been recorded using a PCO camera and
the software PCO CamWare.Tested camerasSensiCam qeThe module should also work for other PCO cameras.ExamplesLoad an image and show it using matplotlib:from pco_tools import pco_reader as pco
import matplotlib.pyplot as plt

img = pco.load('myimage.b16')
plt.imshow(img)