Saravanan666/pypi-org huggingface dataset:
Package: gocept.jasmine
The gocept.jasmine distributionJasmine integration for selenium.UsageYou need two things to run jasmine tests with selenium:A test app which requires your resources and jasmine test files:class MyTestApp(gocept.jasmine.jasmine.TestApp):

    def need_resources(self):
        # Require your resources here
        my.package.resource.need()
        my.package.tests.jasmine_tests.need()

    @property
    def body(self):
        # HTML setup for your tests goes here
        return '<div id="my_container"></div>'A TestCase with the jasmine layer:class MyJasmineTestCase(gocept.jasmine.jasmine.TestCase):

    layer = gocept.jasmine.jasmine.get_layer(MyTestApp())

    def test_integration(self):
        self.run_jasmine()The important things here are, that theget_layerfunction is given
your jasmine app and that the returned Layer is used on your TestCase.In your Test, simple runrun_jasmine, which will open the TestApp in your
Browser. The TestApp renders yourbodyand includes all needed resources and
then runs the jasmine tests.run_jasminewill wait for these tests to finish
and the report success or failure. Jasmine tracebacks and error details are
visible through the selenium error handling.DebuggingYou can set thedebugflag on your test case to get a pdb debugger right
after the start of the jasmine tests. This lets you debug your jasmine tests
within your browser:class MyJasmineTestCase(gocept.jasmine.jasmine.TestCase):

    layer = gocept.jasmine.jasmine.get_layer(MyTestApp())
    debug = True

    def test_integration(self):
        self.run_jasmine()Developing gocept.jasmineAuthor:Sebastian Wehrmann<sw@gocept.com>PyPI page:http://pypi.python.org/pypi/gocept.jasmine/Issues:https://github.com/gocept/gocept.jasmine/issuesSource code:https://github.com/gocept/gocept.jasmineCurrent change log:https://raw.githubusercontent.com/gocept/gocept.jasmine/master/CHANGES.txtChange log for gocept.jasmine0.7 (2019-12-09)Remove version pinnings in buildout as this is a library which should
run with the newest versions of its dependencies.Add a simple self test.Requirepytest < 5to keep Python 2 support.Migrate to Github.Support Python 3.7 and 3.8.0.6 (2017-03-21)Update to fanstatic 1.0a to use minifier.Ensure compatibility withsetuptools >= 30.0.0.5.1 (2014-06-10)The last two releases (0.4 and 0.5) were brown bag releases, so we need to make a new one.0.5 (2014-06-10)Add JS library to mock ajax calls during jasmine tests.0.4 (2014-06-06)Make it possible to run multiple TestApps.0.3 (2013-08-27)Fixed a problem where the testrunner finishedsucessfullybefore all
jasmine tests finished in browser.0.2 (2013-08-17)Added helper function to ease test layer setup.Made it easier to debug jasmine tests in the browser.0.1 (2013-08-16)initial release
Package: gocept.jenkinsdsl
The gocept.jenkinsdsl distributionCreate a DSL script for the Jenkins Job DSL plugin from configuration.This package is compatible with Python version 3.6, 3.7 and 3.8.Developing gocept.jenkinsdslAuthor:gocept<mail@gocept.com>PyPI page:https://pypi.python.org/pypi/gocept.jenkinsdslIssues:https://github.com/gocept/gocept.jenkinsdsl/issuesSource code:https://github.com/gocept/gocept.jenkinsdslCurrent change log:https://raw.githubusercontent.com/gocept/gocept.jenkinsdsl/master/CHANGES.rstChange log for gocept.jenkinsdsl1.0 (2019-09-30)Initial release.
Package: gocept.jslint
This package integrates the JSHint code analysis tool (http://jshint.com) with
Python’s unittest module. (The name is left over from when JSHint didn’t exist
and only Douglas Crockford’s JSLint was available.)It provides a special JSLint-TestCase class that collects JavaScript files (in
a configurable manner) and dynamically generates a test method for each file
that calls jshint on that file.To use it, create a test class like this:class MyJSLintTest(gocept.jslint.TestCase):

    include = ('my.package.browser:js',
               'my.package.browser:js/lib')
    options = (gocept.jslint.TestCase.options +
               ('browser', 'jquery',))includeis a list of “resource paths” of the formpackagename:path(passed to pkg_resources).optionsis a list of arguments that are passed to JSHint (see itsdocumentationfor details).predefinedis a list of global names that should be considered predefined
(for use with theundefoption).excludecan be a list of filenames (without path) that will not be
collected.All files ending in.jscontained in each of these paths will be collected,
and the test class will grow a method namedtest_jslint_filename.js.You can ignore JSLint error by settingignoreon the test class (a list of
substrings that are matched against each JSLint output line):ignore = (“Use a named parameter”,
)Requirementsgocept.jslint is tested with Python 3.6, 3.7 and 3.8.gocept.jslint usesnode.jsto run jshint, so you need to have node.js
(version 0.3 or later) with thejshintnpm module installed and thejshintbinary available on your$PATH.You can customize the name of the jshint binary by settingjshint_commandon the TestCase, or set the environment variableJSHINT_COMMAND.CHANGES3.0 (2021-05-07)Drop support for Python 2.Add support for Python 3.9.Fix output/encoding handling for Python 3,
especially regarding theignoresetting.2.1 (2021-01-07)Add support for Python 3.8.Migrate to GitHub and GitHub Actions.2.0 (2019-02-25)Add support for Python 3.6 and 3.7.Stop testing with Python 2.6.Run the tests against currently most recent versions of the dependencies.Change testrunner to py.test.1.1.1 (2014-10-22)Get jshint command from environment (#13073).1.1 (2012-05-21)Use jshint instead of jslint.1.0.1 (2012-04-18)Uniquify duplicate file names in a prettier way: increment a counter, don’t
just blindly append ‘_1’ (#9454).1.0 (2011-08-25)Add support for linting JS files contained in zipped eggs (#9453).Add an entry point for running jslint from the command line (#9449).Skip tests if node.js is not available. Skipping tests only works properly in
Python >= 2.7, though. (#9458)0.2 (2011-08-24)Implement custom error ignores (#9456).0.1 (2011-08-10)first release.
Package: gocept.linkchecker
What is gocept.linkchecker?gocept.linkchecker is a Plone product which both monitors the availability of
links (URLs) within thecontentof the site and shows which objects are
referencing each other.High level overviewA coloured and grouped list of all links of the site gives a detailed and
high level overview on the status of the links.Author and object level overviewAdditional reporting is available to the content authors who can see their
personal link status page (My links) as well as an overview over all links in
one object (Links tab of object).Referenced byA portlet shows whether an object is referenced by another object (due to
HTML anchor or img tag).Replace functionalityDirectly edit URLs of (broken) links from the overview without having to locate the
link deep in a document.How to install or upgradeUse the general Plone installation mechanism that you’re familiar with
(Control Panel or Generic Setup).AcknowledgementsThe initial development was sponsored by the Bertelsmann Foundation
(http://www.bertelsmann-stiftung.de/) in late 2003.The bi-directional reference management was sponsored by the Land Office of
Criminal Investigation of a German state in 2004-2005.The upgrade to Plone 3 including eggification was sponsored by Syslab in 2008.Maik Derstappen of Inqbus has contributed by asking questions, hiring us, and
providing patches.What? Problems?If you encounter any problems there’s a publicbugtracker.Commercial support is available from gocept. Contact us viaemailor by phone: +49 345 122 9889 0.Changelog3.0a9 (2012-09-24)Nothing changed yet.3.0a8 (2012-09-21)Make compatible with Plone 4 (Thanks to Martin Reisetadbakk)Clean up and fix adapter registrations for link retrieval. (Thanks to Maik Derstappen)3.0a7 (2011-02-22)Force hashing a URL to encode to utf-8 first so that the md5 hexdigest can
be applied.3.0a6 (2011-02-14)Significant performance improvements for displaying the overview statistics
and browsing links by status.Significant improvements on continuous re-retrieving script for whole site.Readability improvements when browsing links by status.3.0a5 (2011-02-08)Fix for dealing with objects that are being created from a portal factory.3.0a4 (2011-02-08)Remedy another brown-bag release: CHANGES.txt was missing in the manifest
after restructuring in a3.3.0a3 (2011-02-08)Fix manifest to include .py files from non-Python-package directories.Update setup.py to include a somewhat sensible long description.
Package: gocept.lockd
Using the lockd APIlockd provides a light-weight implementation of a locking mechanism for
long-running resources by maintaining lock files in a given directory.>>> import tempfile
>>> lockdir = tempfile.mkdtemp()
>>> from gocept.lockd.lockd import Lockd
>>> daemon = Lockd(lockdir)Resources are identified by a string and clients performing the lock are
identified by another string:>>> daemon.lock('resource1', 'client1')Once a resource is locked, it can not be locked again:>>> daemon.lock('resource1', 'client2')
Traceback (most recent call last):
Exception: Resource already locked by 'client1'However, other resources can be locked in parallel:>>> daemon.lock('resource2', 'client2')Clients, other than the client who locked a resource, can not unlock it:>>> daemon.unlock('resource1', 'client2')
Traceback (most recent call last):
Exception: Resource locked by 'client1' cannot be unlocked by 'client2'The client, who locked the resource, can unlock it again:>>> daemon.unlock('resource1', 'client1')Once unlocked, it can not be unlocked a second time:>>> daemon.unlock('resource1', 'client1')
Traceback (most recent call last):
Exception: Resource not lockedIMPORTANT security noteResource identification and client authorization are out of scope for
lockd. It should only be used and exposed within a trusted environment.Cleanup:>>> import shutil
>>> shutil.rmtree(lockdir)
Package: gocept.loginuser
The gocept.loginuser distributionSqlalchemy user object and password management.This package is compatible with Python version 3.6 up to 3.9 and PyPy3.Developing gocept.loginuserAuthor:gocept<mail@gocept.com>PyPI page:https://pypi.org/project/gocept.loginuser/Issues:https://github.com/gocept/gocept.loginuser/issuesSource code:https://github.com/gocept/gocept.loginuserCurrent change log:https://raw.githubusercontent.com/gocept/gocept.loginuser/master/CHANGES.rstChange log for gocept.loginuser3.0 (2021-04-08)Drop support for Python 2 and 3.5.Add support for Python 3.9.2.1 (2021-01-07)Drop support for Python 3.4.Add support for Python 3.7 and 3.8.Migrate to GitHub and GitHub Actions.2.0 (2018-02-16)Passwords are now saved in LDAP style:{SHA256}adkjiois34jhdi.Attention: If the hash does not start with name of an encryption scheme,
plaintext password is assumed instead of bcrypt, which was assumed in 1.x.Migration:Passwords, that start withSHA256:: Replace the prefix with{SHA256}.Passwords without prefix: Add{BCRYPT}as prefix.Drop support for Python 2.6 and 3.3.Add support for Python 3.6.1.3 (2017-04-25)Fix setup.py1.2 (2015-09-24)Add support for Python 3.3 up to 3.5.1.1 (2015-02-09)Allow for the password hash to specify the hashing algorithm inline (made
sha256 available so far).1.0.1 (2015-01-07)Fixed brown-bag release.1.0 (2015-01-07)initial release
Package: gocept.lxml
This package provides zope interfaces for lxml objects. Far from being
complete but a starting point.InterfacesInterfaces are here:>>> import gocept.lxml.interfacesThere is an interface for lxml.etree elements:>>> import lxml.etree
>>> xml = lxml.etree.fromstring('<a/>')
>>> gocept.lxml.interfaces.IElement.providedBy(xml)
TrueAnd for objectifieds:>>> import lxml.objectify
>>> obj = lxml.objectify.fromstring('<a><str>holla</str></a>')
>>> gocept.lxml.interfaces.IElement.providedBy(obj)
True
>>> gocept.lxml.interfaces.IObjectified.providedBy(obj)
True
>>> gocept.lxml.interfaces.IElement.providedBy(obj.str)
True
>>> gocept.lxml.interfaces.IObjectified.providedBy(obj.str)
TrueObjectified parsersThere is a helper for creating objectifieds from file handles ingocept.lxml.objectify. Open a file:>>> import os.path
>>> import gocept.lxml.objectify
>>> filename = os.path.join(
...     os.path.dirname(__file__),
...     'ftesting.zcml')
>>> xml_file = file(filename)And parse it:>>> xml = gocept.lxml.objectify.fromfile(xml_file)
>>> xml
<Element {http://namespaces.zope.org/zope}configure at ...>This really is objectified:>>> gocept.lxml.interfaces.IObjectified.providedBy(xml)
True
>>> xml.include.get('package')
'zope.app.component'For conviniencefromstringis also defined ingocept.lxml.objectify:>>> xml = gocept.lxml.objectify.fromstring('<a><b/></a>')
>>> xml
<Element a at ...>
>>> gocept.lxml.interfaces.IObjectified.providedBy(xml)
TrueChanges0.2.1 (2008-02-14)Lifted dependency on lxml<2.0dev so lxml 2 can be used now.
Package: gocept.mochikit
===============gocept.mochikit===============gocept.mochikit integrates MochiKit (http://mochikit.com) into Zope 2 andZope 3. Send questions to Christian Zagrodnick <cz@gocept.com>.Usage (Zope 3)==============To use gocept.mochikit you need to add the following to your packageconfiguration (ZCML)::<include package="gocept.mochikit" />This provides several resource libraries using the `zc.resourcelibrary`package. In a page template you use::<tal:replace replace="resource_library:mochikit" />This will automatically load the main MochiKit file in its packed variant.There are several additional MochiKit files which are not included in thelibarary above:* mochikit.DragAndDrop* mochikit.Controls* mochikit.MockDOM* mochikit.Selector* mochikit.TestYou use those like this::<tal:replace replace="resource_library:mochikit.DragAndDrop" />Unpacked Variant----------------If you need to debug it's often easier to use the plain and unpacked MochiKitvariant. To use you load the package like this::<include package="gocept.mochikit" file="unpacked" />Usage (Zope 2)==============To use gocept.mochikit in Zope 2 you need to add the following to your packageconfiguration (ZCML)::<include package="gocept.mochikit" file="zope2.zcml" />This provides the packed version of MochiKit, so in your HTML template youneed to include the following::<scripttype="text/javascript"src="++resource++gocept.mochikit/MochiKit.js"></script>Changes=======1.4.2.3 (2009-04-24)++++++++++++++++++++* Added configuration (zope2.zcml) for Zope 2 compatibility.1.4.2.2 (2009-04-20)++++++++++++++++++++* Lightbox: only set "Loading..." message when the lightbox is empty.* Made unregistering of event handlers more reliable in lightbox.* Allow to not use ids for the lightbox.1.4.2.1 (2009-04-06)++++++++++++++++++++* Sending a signal before the lightbox closes (before-close).1.4.2 (2008-12-10)++++++++++++++++++* Updated to MochiKit 1.4.21.3.2 (2008-02-13)++++++++++++++++++* Added styles (CSS) for lightbox* Updated to Mochikit r13231.3.1 (2007-12-07)++++++++++++++++++* Created a viewlet manager to allow easy dynamic javascript injection1.3 (2007-11-26)++++++++++++++++* Updated to Mochikit r1320* Added a lightbox (probably doesn't work in IE)1.2+++* Added an approach for easier inheritance fromhttp://www.ajaxpath.com/javascript-inheritance/* Update to Mochikit r1315
Package: gocept.month
A datatype which stores a year and a month.This package provides the data typeMonth(typical usage:Month(4, 2003)), which supports conversion to and from strings, as well as
a zope.schema field and widgets for both zope.formlib and z3c.form.To use the month field,<includepackage="gocept.month"/>and declare a
schema like this:>>> import gocept.month
>>> import zope.interface
>>> import zope.schema
>>> class IContract(zope.interface.Interface):
...     title = zope.schema.TextLine(title=u"Contract title")
...     start = gocept.month.MonthField(title=u"Starting date")
...     end = gocept.month.MonthField(title=u"Ending date")To use the form widgets, you need to require theformsetuptools extra
(i.e.gocept.month[form]), and<includepackage="gocept.month.browser"/>in your ZCML.CHANGES3.0 (2021-08-27)Backwards-incompatible changesRe-licence from ZPL to MIT licence.Drop support for Python 2 and 3.6.FeaturesAdd support for Python 3.10 (as of rc.1).2.2 (2021-04-20)FeaturesAdd support for Python 3.7, 3.8 and 3.9.Bug fixesAdd missing security declaration needed for.browser.widget.MonthWidget,
the month widget forz3c.form.Other CHANGESMigrate to Github.Use Github actions as CI.Drop support for Python 3.4 and 3.5.2.1 (2017-04-13)Officially support Python 3.6.Fixconfigure.zcmlto be compatible with Python 3.2.0 (2016-04-28)Made the package compatible with Python 2.7 and Python 3 at the same time.Backwards-incompatible change towards stricter comparison behaviour: While
arbitrary objects (except month strings) used to be considered less than anyMonthinstance, such a comparison now raises aTypeError.Removed deprecatedMonth.isBetweenmethod.1.5 (2016-04-27)Support Python 2.7 and PyPy only.Add tox as testrunner.1.4 (2016-02-07)Add a__len__method toMonthInterval.Requirez3c.form >= 2.6to get rid of some odd test dependencies.1.3.2 (2015-10-13)Fixconfigure.zcmlto include neededmeta.zcmlfiles.1.3.1 (2015-08-05)Migrate repository tohttps://bitbucket.org/gocept/gocept.month1.3 (2014-07-16)Add placeholder for month widget in z3c forms describing the required month
format.1.2 (2013-02-18)Split off widgets into setuptools extraform, and don’t include thebrowserZCML by ourselves, so clients can use only the domain part of
this package without the UI parts.AddedfirstOfMonthmethod toMonth.Usingzope.formlib >= 4.0instead ofzope.app.form.Updated to ZTK 1.1.5.1.1 (2012-02-09)Add MonthInterval.forYear().DeclaredfromStringmethod as a class method in interface.1.0.2 (2011-09-01)Added__contains__method onMonth.1.0.1 (2011-04-26)Declare dependencies that some upstream packages need but don’t declare.Use stdlib’s doctest module, not zope.testing’s which is deprecated.1.0 (2009-10-05)Initial public release.
Package: gocept.munin
This package provides base classes for defining Munin graphs and a main
function to handle munin-typical symlinked scripts.Munin plugin scriptsA single plugin file defines (multiple) graphs by subclassing the bases as mentioned in
the next section. The main function uses the called script’s filename  to
determine which of the defined graphs is relevant.Data for each graph is determined by retrieving a text file from a URL (with
possibly given basic authentication data).The format for the data is plain/text wich each line having key/value pairs
split by ‘:’. The values are expected to be floats.All graph bases expect two environment variables to be set:URLThe URL at which to retrieve data from. Must include a ‘%s’ which encodes
the graph name.AUTHHTTP basic authentication information. Either empty or in the form of
‘username:password’.The environment variables can be configured using munin’splugin-conf.dlike
this:The plugin is calledprefix_something_1:[prefix_*]
env.URL http://foo:8900/myapp/munin?data=%s
env.AUTH admin:adminGraph basesThe following base classes are currently defined:SimpleGraphA simple graph with a single value that is plotted as an absolute value.SimpleMultiGraphMultiple absolute values plotted on the same graph and scale.more bases will be added as needed.Main functionThe main function handles munin-typicaltype_option_indexsymlink scripts by
looking at the name from which the main script was called.Example scriptHere’s a sample script that you could symlink into thepluginsdirectory:from gocept.munin.client import SimpleGraph, main

class people(SimpleGraph):
    name = key = 'people'
    title = 'How many people are there?'
    category = 'Office'

main()
Package: gocept.nginx
The gocept.nginx recipe allows to configure an ngin in buildout:[ngnix]
recipe = gocept.cmmi
url = http://sysoev.ru/nginx/nginx-0.5.30.tar.gz
md5sum = 804cf3d6583fe820de42c5e7c50d7a1a

[frontend]
recipe = gocept.nginx
hostname = localhost
port = 8080
configuration =
    worker_processes 1;
    events {
        worker_connections 1024;
    }
    http {
      ...Changes0.9.4 (2008-10-01)Added a way to prevent setting the user in nginx.conf when using a deployment
recipe.Fixed names of config, log, run and lock files when using a deployment
recipe.0.9.3 (2008-09-19)Added support for zc.recipe.deployment / gocept.recipe.deploymentsandbox,
including logrotate.0.9.2 (2008-06-18)Override accidental -dev release.0.9.1 (2008-06-18)Fix configtest command in the generated ctl script.0.9 (2008-01-14)Allowing configuration of config file location.Writing config file in own part by default.
Package: gocept.patch-keyreferences
gocept.patch_keyreferencesThis package fixes the comparison between keyreferences ofzope.keyreferencein Python 3.ReasoningIn Python 2zope.keyreferenceused to compare items via the__cmp__method. This was facilitated by the C-implementation of the Zope security
packages, as it allowed the comparison without un-wrapping the security proxy
explicitly. Python 3 used rich comparison and this behaviour stopped working.
For further information see the followingPR.This package applies a monkey patch to make the fix usable although it is the
wrong place to fix it in general.UsageTo use this package include it in the zcml of you application:<configure xmlns="http://namespaces.zope.org/zope">

    <include package="gocept.patch_keyreferences" />

</configure>Changes0.1 (2020-08-07)Initial release.
Package: gocept.printinvoices
Analyzes Postscript files containing batches of invoices output by Collmex and
inserts printer control commands to make the printer use paper from one tray
for first pages and paper from another tray for subsequent pages.Works with Collmex output as of March, 2011 and with a Kyocera FS 1128MFP
printer.The package comes with two console_script entry points,process-psandprocess-pdf.The first one,process-ps,
implements a stream filter reading Postscript from stdin and writing
Postscript to stdout. The entry point needs to be called with two arguments:tray1specifying the number of the tray holding first-page paper, andtray2specifying the tray number for subsequent pages. There isn’t
currently a configuration file or command-line arguments for configuring the
trays.The second script,process-pdf, takes four command-line arguments: the
numbers of the papers trays used for first pages and subsequent pages, resp.,
the path to a PDF file as output by Collmex and the name of a printer queue
for thelprcommand to print to.Changes0.2 (2011-05-05)Work on invoices printed in English as well.0.1 (2011-04-10)first release