Saravanan666/pypi-org huggingface dataset:
Package: pyramid_sqla
pyramid_sqla============**pyramid_sqla** is a library for Pyramid_ applications using SQLAlchemy_, andan application template that brings some of Pylons 1's features to Pyramid.This is an alpha release for community testing and feedback. Thegoal is a 1.0 release in time for Pyramid 1.0. API compatibility betweenversions is not guaranteed at this early stage.Documentation is in the 'docs' directory.(c) 2011 Mike OrrCopying and derivations permitted under a BSD-like license, see LICENSE.txt fordetails.0.2  (2011-01-19)------------------ Pyramid 1.0a10 spins off view handler support to 'pyramid_handlers' package.- 'pyramid_sqla' application template depends on Pyramid>=1.0a10.0.1  (2011-01-12)------------------ Initial release.- 'pyramid_sqla' application template is compatible with Pyramid==1.0a9 only(undeclared).
Package: pyramid_sqlalchemy_utility
A simple pyramid extension which register a sqlalchemy utility. It add asqla_sessionproperty to request object. Session is opened at first access
and automatically commited and closed on request’s finished callback.It tights sqlalchemy session to request lifecycle rather than relying on thread
local scoped sessions as recommended in sqlalchemy documentation:The Session can be established as the request begins, or using a lazy
initialization pattern which establishes one as soon as it is needed. The
request then proceeds, with some system in place where application logic
can access the current Session in a manner associated with how the actual
request object is accessed. As the request ends, the Session is torn down
as well, usually through the usage of event hooks provided by the web
framework.—http://docs.sqlalchemy.org/en/rel_0_8/orm/session.htmlSource code and example available onhttps://github.com/hadrien/pyramid_sqlalchemy_utility
Package: pyramid-swagger
PyPI:https://pypi.python.org/pypi/pyramid_swaggerDocumentation:http://pyramid-swagger.readthedocs.org/en/latest/Source:https://github.com/striglia/pyramid_swaggerLicense:Copyright © 2014 Scott Triglia under theBSD 3-clauseBuild status:Current coverage on master:Persistent chat for questions:pyramid_swaggerThis project offers convenient tools for using Swagger to define and validate
your interfaces in a Pyramid webapp.Full documentation is available athttp://pyramid-swagger.readthedocs.org/.How to contributeFork this repository on Github:https://help.github.com/articles/fork-a-repo/Clone your forked repository:https://help.github.com/articles/cloning-a-repository/Make a feature branch for your changes:git remote add upstream https://github.com/striglia/pyramid_swagger.git
git fetch upstream
git checkout upstream/master -b my-feature-branchCreate and activate the virtual environment, this will provide you with all the
libraries and tools necessary for pyramid_swagger development:make
source .activate.shMake sure the test suite works before you start:tox -e py27    # Note: use py35 for Python 3.5, see tox.ini for possible valuesCommit patches:http://gitref.org/basic/Push to github:git pull && git push originSend a pull request:https://help.github.com/articles/creating-a-pull-request/Running a single testMake sure you have activated the virtual environment (see above).py.test -vvv tests/tween_test.py::test_response_properties
Package: pyramid_swagger_spec
Pyramid Swagger Specifier===============================version number: 0.0.8author: Marcel SanderOverview--------Defines APIs, generates a Swagger specification, and validates inputsInstallation / Usage--------------------To install use pip:$ pip install pyramid_swagger_specOr clone the repo:$ git clone https://github.com/ActiDoo/pyramid_swagger_spec.git$ python setup.py installSetup the view-deriver and RouteRegistry in your configuration (\_\_init\_\_.py) by including```pythonconfig.include('pyramid_swagger_spec')```Create an API namespace, e.g. in your routes.py:```pythonfrom pyramid_swagger_spec import create_api_namespaceapi_route = create_api_namespace(namespace="api")```Setup the views. They return the swagger spec as json at /{namespace}/_swagger and as HTML at /{namespace}/_swagger.html.```pythonfrom pyramid_swagger_spec.swagger import create_swagger_viewcreate_swagger_view(config, namespace="api", title="Server Api", version="0.1")```To specify API calls:```pythonimport pyramid_swagger_spec.swagger as sw# If you use traversal, the traversal hierarchy has to match the subpath (i.e. /api/echo must return an EchoRessource instance)# If you don't use traversal, do not pass a context and a name attributefrom myproject.ressources import EchoRessourcefrom myproject.routes import api_route@api_route(path="/echo/{x}", request_method="GET", name="test", context=EchoRessource, renderer='json', api=sw.api(tag="default",operation_id="echo_test",summary="echos the input",parameters=[sw.path_parameter("x", sw.Types.number),sw.query_parameter("o", sw.Types.number)],responses={200: sw.response(schema={"status": sw.property(sw.Types.string)})}))def echo_test_view(request, *args, **kw):return {'x': request.validated_params.path["x"],'o': request.validated_params.query["o"],'status': "ok"}```Contributing------------Everything is welcome. For example tests, output validation, etc.
Package: pyramid_tablib
This package which provides custom renderer factory(xlsx, xls, csv) for
Pyramid.Getting StartedInclude pyramid_tablib either by setting your includes in your .ini, or by callingconfig.include(‘pyramid_tablib’).pyramid.includes =
    pyramid_tablibNow in your view@view_config(route_name='users+xlsx',renderer='xlsx')defall_users(request):headers=['Name','City','Email']data=[(user.name,user.city,user.email)foruserinusers]return{'data':data,'headers':headers,'title':'Users'}
Package: pyramid-task-scheduler
pyramid_task_schedulerInstallinstall packagespip install pyramid-task-scheduleror require insetup.pyadd the follwing line to yourConfiguratiorsection of your pyramid application:
e.gconfig=Configurator(settings=settings)config.include('pyramid_task_scheduler')# Add this LineModesjson crontabadd the following two lines to your .ini filepyramid_task_scheduler_mode = json
pyramid_task_scheduler_path = path_to/crontab.jsonsingle cron crontab example:{"cron":[{"name":"first_cron","import_script":"import_script","exec_func":"function_to_execute","crontab_time":"0 * * * *"}]}multiple crons crontab example:{"cron":[{"name":"first_cron","import_script":"import_script","exec_func":"function_to_execute","crontab_time":"0 * * * *"},{"name":"second_cron","import_script":"import_script","exec_func":"function_to_execute","crontab_time":"0 * * * *"}]}NOTEthis package is alpha experimental. It is recommened to NOT use it for productional environments.
Package: pyramid_tinymce_spellchecker
Pyramid machinery for TinyMCE spellchecker ajax calls. Currently only supports Enchant backend.INSTALL=======::$ pip install pyramid_tinymce_spellcheckerUSAGE=====Use pyramid addon that will configure an ajax view::config.include('pyramid_tinymce_spellchecker')Configure TinyMCE to use spellchecker::tinyMCE.init({...theme: "advanced",plugins: "spellchecker",theme_advanced_buttons3_add: "spellchecker",spellchecker_languages = '+English=en',spellchecker_rpc_url = '{{ request.route_url('tinymce_spellchecker') }}',...})(for options see http://www.tinymce.com/wiki.php/Plugin:spellchecker)DEVELOP=======::$ git clone https://github.com/iElectric/pyramid_tinymce_spellchecker pyramid_tinymce_spellchecker$ cd pyramid_tinymce_spellchecker$ virtualenv .$ source bin/activate$ python setup.py devRUNNING TESTS=============::$ makeChangelog=========0.1 (2013-02-28)----------------- Initial release.[Domen Kožar]pyramid_tinymce_spellchecker Copyright (c) 2012, Domen KožarAll rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditionsare met:1. Redistributions of source code must retain the above copyrightnotice, this list of conditions and the following disclaimer.2. Redistributions in binary form must reproduce the above copyrightnotice, this list of conditions and the following disclaimer in thedocumentation and/or other materials provided with the distribution.3. The name of the author may not be used to endorse or promote productsderived from this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS ORIMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIESOF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUTNOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OFTHIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: pyramid-tiny-utility
```### Utilityfrom pyramid import testingfrom pyramid_tiny_utility import ConfiguredObject, create_configured_instance_lookupclass Uploader(ConfiguredObject):def __init__(self, storepath):self.storepath = storepathget_uploder = create_configured_instance_lookup(Uploader)settings = {"demo.uploader.storepath": "/tmp/storepath"}config = testing.setUp()config.include("pyramid_tiny_utility")config.add_instance(Uploader(settings["demo.uploader.storepath"]))## requestclass request:registry = config.registryuploader = get_uploder(request)assert uploader.storepath == "/tmp/storepath"testing.tearDown()``````### Valiadative Utility## requestclass request:registry = config.registrymail_management = get_mailmanagemt(request)assert mail_management.sender == "foo@bar.jp"assert mail_management.default_title == "default"testing.tearDown()``````### Adapterclass Model(object):def __init__(self,x,y,z):self.x = xself.y = yself.z = zclass Render:passclass RowRender(object):def __init__(self, o):self.o = odef render(self):r = ["<tr>"]r.append("<td>{0}</td>".format(self.o.x))r.append("<td>{0}</td>".format(self.o.y))r.append("<td>{0}</td>".format(self.o.z))r.append("</tr>")return "".join(r)class ListRender(object):def __init__(self, o):self.o = odef render(self):r = ["<ul>"]r.append("<li>{0}</li>".format(self.o.x))r.append("<li>{0}</li>".format(self.o.y))r.append("<li>{0}</li>".format(self.o.z))r.append("</ul>")return "".join(r)## configurationconfig = testing.setUp()config.include("pyramid_tiny_utility")config.add_mapping(Model, Render, RowRender)config.add_mapping(Model, Render, RowRender, name="row")config.add_mapping(Model, Render, ListRender, name="list")## requestclass request:registry = config.registryfrom pyramid_tiny_utility import get_mappingmodel = Model(10,20,30)print get_mapping(request, model, Render)(model).render()print get_mapping(request, model, Render, name="list")(model).render()```
Package: pyramid_torque_engine
[![Build Status](https://travis-ci.org/thruflo/pyramid_torque_engine.svg?branch=master)](https://travis-ci.org/andrecp/pyramid_torque_engine)# Pyramid Torque EngineThis is a very particular dual-queue work-engine system that uses the:[Pyramid][] web framework to configure resource-based state machine rules[nTorque][] task queue system to dispatch events, operations and resultsIt’s highly unlikely to be useful to you.[Pyramid]:http://docs.pylonsproject.org/projects/pyramid/en/latest/[nTorque]:http://ntorque.com
Package: pyramid_transactional_celery
A transaction-aware Celery job setup. This is integrated with the Zopetransactionpackage, which implements a full two-phase commit protocol.
While it is not designed for anything other than Pyramid, it also does not
use any component of Pyramid. It’s simply not tested anywhere else.Free software: BSD licenseDocumentation:https://pyramid_transactional_celery.readthedocs.org.FeaturesQueues tasks into a thread-local when they are called either usingdelayorapply_async.If the transaction is aborted, then the tasks will never be called.If the transaction is committed, the tasks will go through their normalapply_asyncprocess and be queued for processing.LimitationsCurrently, the code is designed around Celery v3.1, and it is unknown whether
it will work with previous versions.  I’m more than happy to integrate changes
that would make it work with other releases, but since I generally stay on
the latest release, it isn’t a priority for my own development.UsageUsing the library is a relatively easy thing to do. First, you’ll need to
integrate Celery into your Pyramid application, for which I recommend usingpyramid_celery. Once that’s done, you simply need to start creating your
tasks. The big difference is for function-based tasks, you use a different
decorator:frompyramid_transactional_celeryimporttask_tm@task_tmdefadd(x,y):"""Add two numbers together."""returnx+yThat’s all there is to it. For class-based tasks, you simply need to
subclassTransactionalTaskinstead ofTask:frompyramid_transactional_celeryimportTransactionalTaskclassSampleTask(TransactionalTask):"""A sample task that is transactional."""defrun(x,y):returnx+yThat’s it. Bob’s your uncle.History0.1.1 (2015-01-19)Removed an excess creation of a CeleryDataManager that was a left-over from
a previous approach. While this didn’t create a bug, it wasted memory.0.1.0 (2015-01-19)Initial functionality, but more testing of edge cases is needed to ensure
that it works correctly in all cases, and with other versions of Celery.First release on PyPI.
Package: pyramid_translogger
development.ini# add pyramid_translogger
pyramid.includes = pyramid_transloggeraccess log is shownserving on http://0.0.0.0:6543
127.0.0.1 - - [01/Nov/2014:14:21:56 +0900] "GET / HTTP/1.1" 200 - "-" "curl/7.33.0"
127.0.0.1 - - [01/Nov/2014:14:22:07 +0900] "GET / HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:32.0) Gecko/20100101 Firefox/32.0"
127.0.0.1 - - [01/Nov/2014:14:22:07 +0900] "GET /static/theme.css HTTP/1.1" 200 - "http://localhost:6543/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:32.0) Gecko/20100101 Firefox/32.0"
127.0.0.1 - - [01/Nov/2014:14:22:07 +0900] "GET /static/pyramid.png HTTP/1.1" 200 - "http://localhost:6543/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:32.0) Gecko/20100101 Firefox/32.0"
127.0.0.1 - - [01/Nov/2014:14:22:07 +0900] "GET /_debug_toolbar/static/css/toolbar.css HTTP/1.1" 304 - "http://localhost:6543/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:32.0) Gecko/20100101 Firefox/32.0"
127.0.0.1 - - [01/Nov/2014:14:22:07 +0900] "GET /_debug_toolbar/static/img/pdtb.png HTTP/1.1" 304 - "http://localhost:6543/_debug_toolbar/static/css/toolbar.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:32.0) Gecko/20100101 Firefox/32.0"
Package: pyramid_traversalwrapper
pyramid_traversalwrapperAn alternate implementation of thepyramid.interfaces.ITraverserFactory(a “traverser”) which
wraps each traversed object in a proxy.  This allows a
“location-ignorant” model (a model which does not possess intrinsic__name__and__parent__attributes) to be used as the root
object and as any object returned from any other model’s__getitem__method during traversal.See docs/index.rst for more information.0.1 (2010-12-15)Initial release (forked fromrepoze.bfg.traversalwrapperversion 0.3).
Package: pyramidueditor
本模块帮助在Pyramid应用中集成百度Ueditor HTML编辑器.说明：采用 Ueditor 1.4.3 封装了一层接口，实现图片、涂鸦、附件、视频、截图上传 在线文件待续1、安装方法方法一：将github整个源码包下载回家，在命令行运行：python setup.py install方法二：使用pip工具在命令行运行(推荐)：pip install PyramidUeditor2、配置urlsfrom pyramid.static import static_viewfrom pyramid_ueditor.settings import UEDITOR_STATIC_ROOTconfig.include(‘pyramid_ueditor’)config.add_static_view(‘uestatic’, path=UEDITOR_STATIC_ROOT, cache_max_age=3600)3、修改pyramid_ueditor.pyramid_ueditor.settings.pyUEDITOR_UPLOAD_ROOT 为上传路径。可进行修改4、自带的访问方式/ueditor/
Package: pyramid-unicodedammit
Pyramid plugin for making a best effort to deal with bizarre query strings.
Query strings should only ever contain UTF-8 encoded text.
However, it’s possible using some web browsers to submit forms or enter URLs containing other encodings.
This plugin registers a tween that uses UnicodeDammit from beautifulsoup4 to make a best effort to properly recognize these query strings.UsageIncludepyramid_unicodedammitusing either thepyramid.includesconfiguration file setting orconfig.include('pyramid_unicodedammit')
Package: pyramid_uniform
pyramid_uniform - Form handling for PyramidScott Torborg -Cart LogicForm rendering and validation for Pyramid. Doesn’t render HTML itself, so you
have full control over form markup.Heavily inspired by thepyramid_simpleformpackage, with some fixes and
updates to work with WebHelpers2 and Python 3.InstallationInstall with pip:$ pip install pyramid_uniformLicensepyramid_uniform is licensed under an MIT license. Please see the LICENSE file
for more information.
Package: pyramid-urireferencer
This plugin for pyramid helps in handling references to resources in other
applications by allowing querying on references to certain URI’s.Please consult the documentatation forUriRegistryfor more information on how
to use this library.0.8.0 (22-01-2021)urireferencer moet een 400 geven als er geen uri wordt meegegeven  (#81)twine fixes (#64)0.7.0 (29-01-2019)Better matching on Accept headers (#18)Nieuwe protected decorator toevoegen die de request niet uit de parent haalt maar rechtstreeks (#50)0.6.0 (2017-06-08)Add some extra logging. (#13)Add required functionget_urito theAbstractReferencerto determine the uri of the current request (#7 and #8)0.5.0 (2016-09-28)Add support for python 3.5Some minor doc fixesChanged an edge case whereitemsorapplicationsresponse attributes could
beNoneso that they are now always empty lists. (#6)Updated error message and added JSON error message when a backend application can’t be reached (#9) and when a resource can’t be deleted (#10)0.4.0 (2015-07-10)Added moduleprotected_resourcescontaining aprotected_operationdecorator function.0.3.0 (2015-06-25)Added uri and request to references parametersIncluded renderer in request configRemoved exception in get_references viewFixed ApplicationResponse title from json0.2.0 (2015-06-07)Changed ApplicationResponse.url to service_url.Cleaned up some documentation.Added an AbstractReferencer that has no implementation whatsoever.Added Python Wheel supportMake sure that the uri parameter is properly urlencoded.0.1.0 (2015-05-21)Initial version
Package: pyramid_versionbadge
pyramid_versionbadgeMinimal tween to display a version number or other stuff on
every page of your app.<div id=”versionbadge”>Your text</div>To use, include the tween and set a value for “versionbadge.text”
in your config registry. You can also set a value for “versionbadge.css”
to have the div get a css class.If the text value is empty, the div will not be rendered.If the text value is not included in the config at all, it will be
rendered with a default value.pyramid_versionbadge0.3 (2018-12-03)Add support for Python 3. Remove (official) support for Python 2.0.2 (2013-12-04)add second setting for css classenable badge per defaultpossibility to set css classtests0.1 (2013-12-03)initial release
Package: pyramid_vgid_oauth2
Thư viện cho phép pyramid login thông quahttps://id.vatgia.commột cách nhanh
chóngUsageĐể sử dụng, thêm dòng sau đây vào hàm main(…):config.include(“pyramid_vgid_oauth2”)Trongdevelopment.inipyramid_vgid_oauth2.client_id = {Client ID cấp bởi VGID}
pyramid_vgid_oauth2.client_secret = {Client Secret cấp bởi VGID}
pyramid_vgid_oauth2.put_user_callback = Đường dẫn đến hàm sẽ được gọi để tạo mới User
pyramid_vgid_oauth2.base_url = /vgid/oauth (đường dẫn dùng để login trên web hiện tại)### Callback để tạo mới Userdef put_user_callback(acc):“””
:type acc: dict
:return object phai co 1 field la .id
“””
pass### APIrequest.vgid_access_tokencó thể dùng để lấy access_token khi đã đăng nhập#### Eventpyramid_vgid_oauth2.events.SignInpyramid_vgid_oauth2.events.SignOut1.1.1Add warning for put_user_callback configurationAccept callable configuration for put_user_callback1.1Add python3 support1.0.xPackagingInitial version
Package: pyramid_viewgroup
pyramid_viewgroupis an extension for thepyramidweb framework. The
extensio makes it possible to make aviewgroupdeclaration which acts
much likeviewinasmuch as it results in a Pyramid view registration.
Unlike a “normal”viewregistration, however, aviewgroupregistration refers to one or more other Pyramid views (matching them by
name,forinterface, and request type).  When aviewgroupis invoked
(either via traversal or via programmatic view execution), a viewgroup will
return a response which appends all the referenced view renderings together
in a single body.For more information seehttp://docs.pylonshq.com/pyramid_viewgroup/dev/0.5 (2012-02-23)Require pyramid_zcml 0.9.2 (forwith_context).0.4 (2011-07-22)Remove install-time dependency on pyramid_zcml.Add tox.ini for Jenkins testing.Pyramid 1.1 compatibility.0.3 (2011-02-10)Basically didn’t actually work, due to too much deferring of callingadd_view.Add an includeme and a way to do imperative configuration of a viewgroup;
internal reshuffling.0.2 (2011-01-18)Make compatible with Pyramid 1.0a10+.0.1 (2010-11-08)Forked from repoze.bfg.viewgroup 0.3.
Package: pyramid-walrus
awalrusintegration for pyramidTo install:$ pip install pyramid_walrusIn your configuration:[app:main]

...

pyramid.includes =
    pyramid_walrusIn your views:def my_view(request):
    db = request.walrus_db
    db.incr('my_counter')Backend-specific configurationswalruscan be configured to use severalredis-like backends.Redis(default)$ pip install redispyramid_walrus.backend = redis
pyramid_walrus.backend.redis.url = redis://@localhost:6379/0
pyramid_walrus.backend.redis.max_connections = 10Rlite$ pip install hirlitepyramid_walrus.backend = rlite
pyramid_walrus.backend.rlite.filename = :memory:
pyramid_walrus.backend.rlite.encoding = utf-8Vedis$ pip install vedispyramid_walrus.backend = vedis
pyramid_walrus.backend.vedis.filename = :memory:LedisDB$ pip install ledispyramid_walrus.backend = ledis
pyramid_walrus.backend.ledis.url = ledis://@localhost:6380/0
pyramid_walrus.backend.ledis.max_connections = 10Custompyramid_walrus.backend = myapp.get_walrus_backend_from_settingsand define your custom factory function:# myapp.py

def get_walrus_backend_from_settings(settings):
    def get_database_for_request(request):
        ...
        return db
    return get_database_for_requestChanges0.1.2 (2015-06-06)Fix COPYING.0.1.1 (2015-06-06)Change license to GNU Lesser General Public License v3 or later (LGPLv3+)Fix packaging.0.1.0 (2015-06-05)Initial release.
Package: pyramid_weblayer
Common / shared utilities for a [Pyramid][] web application.  (Some originally
re-factored from the depreciated [weblayer][] micro-framework).I generally use this package as a home for simple bits of code that are reusable
across Pyramid applications, i.e.: stuff I’ve written once for a project and
then extracted for use across multiple projects.Highlights include:a subscriber to validate incoming requests against cross site request forgeriesa subscriber that extends the template namespace with a_()function for
translating message stringsanhsts.force_httpsconfiguration flag to force incoming requests to httpsajoin_to_transactionfunction to hang function calls off an after commit hooka whole bunch of other request properties and utility functionsRead the source for more info.## TestsI tend to add things too fast to keep 100% coverage and test against multiple
Python versions. So expect code to be tested against python2.7 and to have
decent but not exhaustive coverage. Patches to increase compatibility and
coverage are very welcome.To run the tests,pip install mock nose coverage WebTestand e.g.:$ nosetests pyramid_weblayer –with-doctest –with-coverage –cover-tests –cover-package pyramid_weblayer
…
Ran 40 tests in 0.297sOK[pyramid]:http://pypi.python.org/pypi/pyramid[weblayer]:http://github.com/thruflo/weblayer