Saravanan666/pypi-org huggingface dataset:
Package: pyramid-webpack
Pyramid WebpackBuild:Documentation:http://pyramid-webpack.readthedocs.io/Downloads:http://pypi.python.org/pypi/pyramid_webpackSource:https://github.com/stevearc/pyramid_webpackA Pyramid extension for managing assets with Webpack.Quick StartInstallcookiecutterCreate a new project:$ cookiecutter gh:stevearc/pyramid-cookiecutter-webpackInstall and set up necessary packages:$ cd <your project>
$ virtualenv env
$ source env/bin/activate
$ pip install --upgrade pip
$ pip install -e .
$ npm installStart the webpack build:$ npm run watchIn a separate terminal, start the Pyramid server:$ pserve --reload development.iniChangelog0.1.3 - 2017/9/5Fix loading stats file in python 3.5PR #60.1.2 - 2017/9/3Fix#4: Issue with Jinja2 renderingCreated acookiecutterto make it easier to get started:https://github.com/stevearc/pyramid-cookiecutter-webpack0.1.1 - 2016/10/27Add cache_max_age config option0.1.0 - 2016/10/23Initial release
Package: pyramid_who
pyramid_whopyramid_whois an extension for thepyramidweb framework, providing
an authentication policy based on the “new”repoze.whoAPI, as found in
version 2.0 and greater.For more information seehttp://docs.pylonsproject.org/projects/pyramid_who/dev/pyramid_whoChangelog0.3 (2011-11-07)Add tox.ini for Jenkins testing.Added a “challenge decider” function for use byrepoze.whowith
current versions ofpyramid, which now return “403 Forbidden” instead
of “401 Unauthorized” on authorization failures.0.2 (2011-03-23)Pass the identifier plugin toapi.remember, rather than its name,
as required by the interface.  Fixeshttps://github.com/Pylons/pyramid_who/issues#issue/2Fixed test ofunauthenticated_userid.Fixed tests broken byrepoze.whochanges (relaxing exceptions to
warnings for missing / invalid config rile).Fixed URL to docs in README.txt.  Thanks to Łukasz Fidosz.0.1 (2011-02-18)Addunauthenticated_useridmethod to whov2 authentication policy to
appease Pyramid 1.0 IAuthenticationPolicy interface.Add a tox.ini file for Jenkins testing.0.0 (2011-01-10)Initial public version.
Package: pyramid_whoauth
An authentication policy for Pyramid that uses the repoze.who v2 API.OverviewThis plugin allows you to configure a repoze.who authentication stack as a
pyramid authentication policy.  It takes a repoze.who API factory and turns
it into an pyramid IAuthenticationPolicy:from repoze.who.config import make_api_factory_with_config

api_factory = make_api_factory_with_config(global_conf, "etc/who.ini")
authn_policy = WhoAuthenticationPolicy(api_factory)
config.set_authentication_policy(authn_policy)This will load the repoze.who configuration from the specified config file
and hook it into Pyramid.The advantage of using pyramid_whoauth instead of the repoze.who middleware
is that authentication is only performed when your application explicitly
requests it using e.g. pyramid’s authenticated_userid() function.For convenience, you can also specify all of the repoze.who configuration
settings as part of your paster deployment settings.  For example, you
might have the following:[app:pyramidapp]
use = egg:mypyramidapp

who.plugin.basicauth.use = repoze.who.plugins.basicauth:make_plugin
who.plugin.basicauth.realm = MyRealm

who.plugin.authtkt.use = repoze.who.plugins.auth_tkt:make_plugin
who.plugin.authtkt.secret = Oh So Secret!

who.identifiers.plugins = authtkt basicauth
who.authenticators.plugins = authtkt basicauth
who.challengers.plugins = basicauthThis configures repoze.who to use the “basicauth” and “auth_tkt” plugins,
using pyramid’s dotted-settings style rather than the repoze.who config file.
Then it is a simple matter of including the pyramid_whoauth module into your
configurator:config.include("pyramid_whoauth")In addition to configuring the repoze.who API factory from the given settings,
this will also set up some extra conveniences for your application:a forbidden view that challenges for credentials via repoze.whoa login view that authenticates any credentials submitted via POSTa logout view that sends forget headers when accesseda tween that calls the repoze.who “remember” method for each response0.1.2 - 2012-05-28Place the tween directly above the EXCVIEW tween.  This will help
ensure it is underneath other unrelated tweens, so they will not see
the ApplicationRedirectException being thrown.0.1.1 - 2012-01-30Update to MPL 2.00.1.0 - 2011-11-11Initial release
Package: pyramid_xslt
Rendering forpyramidusing XSLT.UsageYou can include the xslt rendering in your pyramid app via :config.include('pyramid_xslt')or in the .ini deployement file :pyramid.includes =
    pyramid_xsltAnd in your views :@view_config(route_name='home', renderer='templates/home.xsl')
def my_view(request):
    return ('<a>aa</a>', {'A': 2})The view can returna string containing the whole xml, an url to an xml file or a path to an xml file,a tuple where the first element is a string as above, the second is a dictionnary of
arguments passed to xslt stylesheet and the third is a dictionnary of arguments for
the pyramid response (not implented yet). The second and the third element of the
tuple are optionnal.The xslt tree is build one the first request and cached after. So the first request
is slower than the next one.
Package: pyramid-yards
pyramid_yardsAn http parameters validator for the Pyramid Web frameworkIt adds a “yards” attribute to the pyramid request object,
containing every validated parameter using colander schemas.This lib has been inspired by the cornicevalidatedproperty,
but the implementation differ.Changelog0.15 (2019-01-03)Remove deprecation warning for pyramid >= 1.90.14 (2017-09-12)Add i18n support for colander message base on locale of pyramid request,
requires the locale negociator.0.13 (2016-10-28)Fix the DISABLE_CSRF_CHECK attribute0.12 (2016-10-27)Fix DISABLE_CSRF_CHECK attribute for schema per http verb0.11 (2016-07-25)Fix sequence deserialization0.10 (2016-01-05)Add a schema per http verb0.9 (2015-09-23)Fix sequence validator0.8 (2015-09-21)Fix colander.drop deserialization in sequence member0.7 (2015-07-06)Fix packaging for locales0.6 (2015-07-06)Check the CSRF (active by default!)You can use the settingspyramid_yards.check_csrf_tokento disable it
globally (while writing json API), or locally by adding the attribute
DISABLE_CSRF_CHECK = False in therequest_schema0.5 (2015-06-02)Ensure request.yards dict contains every described fields0.4 (2014-12-24)Use request.yards as a dict mapping0.3 (2014-12-15)Fix support for sequence0.2 (2014-12-04)Fix usage of colander.drop0.1 (2014-12-03)Initial Release
Package: pyramid_zodbconn
A package which provides integration betweenZODBand
a Pyramid application.See the documentation athttps://docs.pylonsproject.org/projects/pyramid-zodbconn/en/latest/for more
information.0.8.1 (2017-07-26)Avoid aborting at the end of a request if there is no active transaction.
Seehttps://github.com/Pylons/pyramid_zodbconn/pull/100.8 (2017-07-25)Open primary database usingrequest.tm, if present, as the transaction
manager.  If not present, fall back to the default / global transaction
manager.  Compatibility withpyramid_tm >= 0.11, which allowed the
user to specify an explicit per-request transaction factory.https://github.com/Pylons/pyramid_zodbconn/issues/6.Add support for Python 3.5 and 3.6.Drop support for Python 2.6, 3.2, and 3.3.0.7 (2014-07-02)Change transfer log file format to include timestamp and elapsed time.Addzodbconn.transferlog_threshholdfeature:  only log transfers if
a request took > threshhold secs.Adddocssection to tox.ini.0.6 (2014-06-29)Addzodbconn.transferlogfeature, which sends information about ZODB
storage loads and stores to a CSV file.Add ZODBConnectionOpened, ZODBConnectionWillClose, and ZODBConnectionClosed
events, which can be subscribed to.0.5 (2014-01-04)Remove transitive dependencies ofzodburi.Add support for Python 3.2 / 3.3, and test them undertox.0.4 (2012-11-10)Configure database withZODB.ActivityMonitor.ActivityMonitor.0.3 (2012-03-28)includemedocstring fix.Add named database capability (see new docs section entitled “Named
Database Support”).0.2 (2011-08-24)Depend on thezodburipackage rather than implementing our own URI
resolvers and datatypes.0.1 (2011-08-14)Initial release.
Package: pyraml-parser
pyraml-parser - Python parser to RAML, the RESTful API Modeling Language.IntroductionImplementation of a RAML parser for Python based on PyYAML. It is compliant with RAML 0.8http://raml.org/spec.htmlInstallationThe pyraml package can be installed withpiporeasy_installfrom GIT repository or from tarball.$ pip installhttps://github.com/an2deg/pyraml-parser/archive/master.zipFor Python 2.6 packagesordereddictand ‘lxml’ should be installed:$ pip install ordereddict lxmlDeveloping pyraml-paserYou may need to installnose,toxandmockpackages to run pyraml-parser tests.Typical installation process for developing purposes:$ git clonegit@github.com:an2deg/pyraml-parser.git
$ cd pyraml-parser
$ pip install mock
$ python setup.py developTo run tests on all supported python versions:$ pip install tox
$ toxOr to run tests withnose:$ pip install nose
$ python -m noseOr to run tests usingunittest:$ python setup.py testUsing pyraml-parserAn instance of theRamlRootobject can be obtained by calling thepyraml.parser.loadfunction:import pyraml.parserp = pyraml.parser.load(‘schema.raml’)print pMIT LICENSE
—Copyright (c) 2011-2015 Jason Huck, Simon Georgethttp://opensource.org/licenses/MITPermission 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.0.1.9 (2019-10-01)BugfixesSwitch to PyYAML >= 5.1 (@mzagozen)0.1.8 (2019-05-30)BugfixesPin PyYAML to 3.13 as the last working version (@mzagozen)Use !include content as a string (@mzagozen)Fix unit tests (@mzagozen)0.1.3 (2015-05-11)FeaturesAdded Python3 support (https://github.com/an2deg/pyraml-parser/pull/18)
Package: pyramlson
Build JSON REST APIs withRAMLandPyramid.1.3.1Accept other mime types than application/json (thanks @stoer)1.3.0Replaced ValueError with custom Exception when a service doesn’t
contain any decorated methodsAdded route_name parameter to api_service decorator (thanks @stoer)1.2.3Removed debug output for optional params1.2.2Shorten the jsonschema validation error message if debug mode is off1.2.1Fixed handling of missing query parameters1.2.0Added optional parameter validation and conversionImproved test coverage1.1.1Added optional argument transformation callback1.1.0Added max_length / min_length checks for URI and query parametersAdded package-relative resolution of api definition path1.0.0Initial version
Package: pyramses
AboutPyRAMSES is a Python module that facilitates the use of the dynamic simulator RAMSES. The module provides basic functionality like defining test-cases, running a simulation, extracting information, etc. As well as more advanced integration of the simulator into the remaining Python code.Please check the documentation underhttps://pyramses.paristidou.info.Models included in current version:Injectors =  [‘BESSWithChanges’, ‘vfd_load’, ‘IBG’, ‘indmach1’, ‘svc_hq_generic1’, ‘PQ’, ‘WT3WithChanges’, ‘WT4WithChanges’, ‘restld’, ‘theveq’, ‘indmach2’, ‘load’]Exciters =  [‘IEEET5’, ‘AC1A_RETRO’, ‘AC8B_PSS3B_lim’, ‘EXHQSC_PSS4B_MAXEX2’, ‘ST1A_PSS3B’, ‘ST1A_IEEEST’, ‘generic2’, ‘ST1A’, ‘AC4A’, ‘ST1A_PSS4B_OELHQ’, ‘generic1’, ‘ST1A_PSS4B’, ‘EXPIC1_PSS2B_MAXEX2’, ‘ST2A’, ‘DC3A’, ‘ST1A_PSS2B_OELHQ’, ‘EXHQSC_PSS4B_OELHQ’, ‘EXHQSC_PSS4B’, ‘ST1A_PSS3B_OELHQ’, ‘GENERIC3’, ‘ENTSOE_simp’, ‘ST1A_PSS2B’, ‘EXPIC1_PSS2B’, ‘ST1A_lim’, ‘AC1A_RETRO_PSS4B’, ‘AC8B’, ‘ST1A_OELHQ’, ‘kundur’, ‘1storder’, ‘EXPIC1’, ‘EXHQSC_MAXEX2’, ‘ST1A_PSS4B_MAXEX2’, ‘hq_generic1’, ‘ST1A_PSS2B_MAXEX2’, ‘AC1A’, ‘EXHQSC’, ‘constant’, ‘GENERIC4’, ‘AC1A_OELHQ’, ‘ST1A_IEEEST_MAXEX2’, ‘AC1A_MAXEX2’]Speed governors =  [‘HQRVC’, ‘thermal_generic1’, ‘HQRVM’, ‘1storder’, ‘DEGOV1’, ‘hq_generic’, ‘HQRVW’, ‘constant’, ‘ENTSOE_simp’, ‘ENTSOE_simp_consensus_mod’, ‘hydro_generic1’, ‘ENTSOE_simp_consensus’, ‘HQRVN’, ‘hq_generic1’]Two-ports =  [‘HQSVC’, ‘DC_BHPM’, ‘HVDC_LCC’, ‘DC_CHAAUT’, ‘CHENIER’, ‘HVDC_VSC_SC’, ‘vsc_hq’, ‘CSVGN5’, ‘DCL_WCL’, ‘HVDC_VSC’]Discrete controllers =  [‘sim_minmaxspeed’, ‘mais’, ‘ltcinv’, ‘FRT’, ‘oltc2’, ‘ltc’, ‘uvls’, ‘uvprot’, ‘pst’, ‘rt’, ‘sim_minmaxvolt’, ‘ltc2’, ‘HQmais’, ‘voltage_variability’]
Package: pyranch
WIPRancher APIPython wrapper for Rancher APIUsageConnecting to Environmentimportpyranchrancher=pyranch.Environment(<RANCHER_URL>,<RANCHER_ACCESS_KEY>,<RANCHER_SECRET_KEY>,project_id=<ENVIRONMENT_ID>)Additional parameters:port - Rancher API port, default80api_version - Rancher API version, defaultv2-betaWorking on Environmentactivatedeactivateupgradeset_members#TODOMore information can be foundhereWorking on StackStack fieldsFieldTypeRequiredCan updateDefaultbindingdictNoYes{}descriptionstrNoYesNonedockerComposestrNoNoenvironmentdictNoNo{}externalIdstrNoYesNonegroupstrNoYesNonenamestrYesYesoutputsdictNoYes{}previousEnvironmentdictNoYes{}previousExternalIdstrNoYesNonerancherComposestrNoNostartOnCreateboolNoNoFalseRead only valuesFieldTypeidstrhealthStatestrserviceIdslistsystemboolInitialize stack objectcows=rancher.stack(stack_name='cows')Note: Existing stacks can be initialized usingstack_idCreate Stack in ranchercows.description='Stack of cows'cows.create()Print Stack datacows()Update Stackcows.name="bulls"cows.description="Stack of bulls"cows.save()Stack actionsMore actions can be foundhereWorking on ServiceService fieldsFieldTypeRequiredCan updateDefaultassignServiceIpAddressboolNoNoFalsedescriptionstrNoYesNoneexternalIdstrNoNoNonelaunchConfigdictNoNo{}lbConfigdictNoYes{}metadatadictNoYes{}namestrYesYesretainIpboolNoYesFalsescaleintNoYes1scalePolicydictNoYes{}secondaryLaunchConfigslistNoNo[]selectorContainerstrNoYesNoneselectorLinkstrNoYesNonestackIddictNoNo{}startOnCreateboolNoNoFalsevipstrNoNoNoneRead only valuesFieldTypeidstrhealthStatestrsystemboolinstanceIdslistcreateIndexintcurrentScaleintfqdnstrlinkedServicesdictpublicEndpointslistupgradedictInitialize Service objectcow=rancher.service(stack_name='cows')Note: Existing service can be initialized usingservice_idCreate Service in ranchercow.description='Our Cow'cow.create()Print service datacow()Update servicecow.name='bull'cow.description="Our bull"cow.save()Scale servicecow.scale_out(1)cow.scale_in(1)Service Logcow.logs()['data']Service actionsMore actions can be foundhere
Package: pyrandmeme
Hello WorldA simple library that gives you randomized memes. This is useful for discord.py or anything else included with bots.For discord.py your code would look like this:Installationpip install pyrandmeme==0.0.5Usagefromdiscord.extimportcommandsfrompyrandmemeimport*client=commands.Bot(command_prefix="(Add prefix here)")@client.command()asyncdefmeme(ctx):awaitctx.send(embed=awaitpyrandmeme())client.run(token)
Package: pyrandomify
Randomify — A simple module for convenient and fast generation of a character setInstallationWindowsLinux/MacOspip install pyrandomifypip3 install pyrandomifyUsagefrompyrandomifyimportText,Digits,Generate# generating text a-ZText().generate(lenght=15)# output: AUyapxMKqDzSyQx# generating numbers 0-9Digits().generate(lenght=15)# output: 500797162564347# generating random printable symbols (text, digits, symbols, spaces)Generate().generate(lenght=15)# output: q?1wQ#}jpR*;w-.
Package: pyrandomset
pyrandomsetGenerate random characters based on character set.Characters setsPlaceholderTypeCharacter SetaLower-Case Alphanumericabcdefghijklmnopqrstuvwxyz 0123456789AMixed-Case AlphanumericABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789UUpper-Case AlphanumericABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789dDigit0123456789hLower-Case Hex Character0123456789 abcdefHUpper-Case Hex Character0123456789 ABCDEFlLower-Case LetterabcdefghijklmnopqrstuvwxyzLMixed-Case LetterABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyzuUpper-Case LetterABCDEFGHIJKLMNOPQRSTUVWXYZvLower-Case VowelaeiouvMixed-Case VowelAEIOU aeiouZUpper-Case VowelAEIOUcLower-Case ConsonantbcdfghjklmnpqrstvwxyzCMixed-Case ConsonantBCDFGHJKLMNPQRSTVWXYZ bcdfghjklmnpqrstvwxyzzUpper-Case ConsonantBCDFGHJKLMNPQRSTVWXYZpPunctuation,.;:bBracket()[]{}<>sPrintable 7-Bit Special Character!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~\Escape (Fixed Char)Use following character as is.Examplefrompyrandomsetimportgenerate# Generate a ten-character alphanumeric with at least one lowercase character,# at least one uppercase character, and at least three digits:print(generate("AAAAAluddd",shuffle=True))# Generate three unique random syllable:print(generate("zv\ zv\ zv",repeat=False))# Generate 1 character from custom set, three uppercase letters,# three lowercase letters and two digits:print(generate("?uuullldd",{"?":"!@#$%"}))
Package: py-random-useragent
py-random-useragentGenerate a random User AgentInstallationpip install py-random-useragentUsage>>>frompy_random_useragentimportUserAgent>>>UA=UserAgent()>>>print(UA.get_ua())Mozilla/5.0(WindowsNT10.0;Win64;x64;rv:109.0)Gecko/20100101Firefox/114.0AcknowledgmentsMany thanks toUseragents.me
Package: py-random-words
Py Random WordsInstallationTo install, simply:$pipinstallpy_random_wordsUsagefrompy_random_wordsimportRandomWordsrnd_word=RandomWords()print(rnd_word.get_word())# alpacaprint(rnd_word.get_word())# catprint(rnd_word.get_word())# dogRelease steps# Make sure you have the latest versions of setuptools and wheel installed$python3-mpipinstall--user--upgradesetuptoolswheeltwine# Now run this command from the same directory where setup.py is located$makebuild# Uploading the distribution archives$makereleaseRef:https://packaging.python.org/tutorials/packaging-projects/#packaging-your-project
Package: pyrandtoys
pyrandtoysis a python module containing probability-based toys
functions. It works offline and is compatible with both Python 2 and 3.Installationpip install pyrandtoysUsageimport pyrandtoysDice:Optional:Number of Dice<int>Default:Number of Dice = 1Return Type:<tuple>dice(number_of_dice)Coin:Optional:Number of Coins<int>Default:Number of Coins = 1Return Type:<tuple>coin(number_of_coins)Card:Optional:Number of Cards<int>Default:Number of Cards = 1Return Type:<tuple>card(number_of_cards)Similar Toys:Optional:Number of Items<int>Default:Number of Items = 1Return Type:<tuple>dreidel(number_of_dreis)
cat(number_of_cats)
switch(number_of_switches)Spinner:Required:Lower & Upper Limits<int>Default:Lower Limit = 0Return Type:<int>spinner(lowerLimit, upperLimit)Toy Combinations:Default:Number of Toys = 0Return Type:<tuple>If you want to use a combination of toys then,Required:names of toys as<tuple>, <list>, <str>combi("coin", "switch")
combi(("switch", "cat", "dice"))
combi(["dreidel", "coin", "coin", "cat"])For combination of x random toys,combi(x)Project LinksPyPI(https://pypi.org/project/pyrandtoys/)GitHub(https://github.com/thenithinbalaji/pyrandtoys)
Package: pyrandvec
Generate random vectors whose components sum up to oneThis Python3 module implements different approaches [1] to randomly and uniformly generate d-dimensional vectors whose components sum up to one.[1] Maziero, J. Generating Pseudo-Random Discrete Probability Distributions. Brazilian Journal of Physics 45, 377–382 (2015).https://doi.org/10.1007/s13538-015-0337-8InstallationRun the following to install the module:pipinstallpyrandvecUsagefrompyrandvecimportsample# Generate 10 4-dimensional vectors with the simplex-methodsample(10,4,method='simplex')# Generate 10 3-dimensional vectors with the trigonometric methdod with subsequent shufflingsample(10,3,method='trigonometric',shuffle=True)Developing randvecTo install thepyrandvecmodule along with the tools you need to develop and run test, run the following command in yourvirtual environment(virtualenv):pipinstall-e.[dev]
Package: pyrangelist
pyrangelistHello JerryThis is my work for the take home interview.
I'm not a JS guy. But if Jerry wants to take data science seriously, I will help you build the best infrastructure for it.The package has 100% test coverage and has 10/10 pylint score, and it is stress-tested with 100k random add/remove operations.Intstallationpip install pyrangelistDeveloper guideIntallpython setup.py developAs customary, pinned requirements are in therequirements.txt.Testpython -m pytestAboutThis version usesintervaltreelibrary under the hood.
A more efficient implementation would be a modified B-tree structure that would keep ranges as values,
as well as keep the minimum and maximum value of the subtree for each edge. This would allow deletion
and addition to beO(long(n) + m), wherenis the number of ranges currently stored andmis the
number of ranges that the new range overlaps with. However, from the task description it didn't seem
like you guys were looking for maximum efficiency, so I focused my efforts elsewhere. The current implementation
is sub-optimal:O(long(n) * m)