Saravanan666/pypi-org huggingface dataset:
Package: gocept.rdbmanagement
This is a zc.buildout recipe that helps managing schema updates on relational
databases.It currently only supports PostgreSQL.Defining a managed databaseA managed database has to be created (CREATEDB) outside of this recipe. The
recipe only takes care of initialising an existing database and upgrading the
schema subsequently.Part definitions look like:[managed_db]
recipe = gocept.rdbmanagement
dbname = mydatabase
eggs = projectegg
schema = projectegg.schemadir

host = localhost
user = username
password = apasswordWheredbnameis the name of the PostgreSQL database to work witheggsis a list of egg requirements that should be activated before looking
up the schema directory resource pathschemais a setuptools resource path that is amanaged schema directoryManaged schema directoriesA schema directory contains a set of SQL and Python files that are used to
manage the schema for a database. A typical directory looks like this:$ ls schemadir
__init__.py
init.sql
precondition3.py
update1.sql
update2.sql
update3.sqlNotice: A managed schema directory has to be a Python package.init.sqlCreates the schema beginning from an empty database.After init.sql the current generation will be set to the highest generation
number as available from the update scripts. Therefore the init.sql always
creates a current database schema and no updates will be run.updateX.sqlUpdate scripts MUST start with a BEGIN statement and end with a COMMIT
statement.Update script X will be run from a database at generation X-1.preconditionX.pyScript must contain a function calledpreconditionwhich takes one
parameter which is an open DB-API2-connection to the database.Precondition script X will be run on a database at generation X-1.Precondition script X has to raise an exception to indicate that the
database MUST not be updated to generation X.Changes1.1 (2020-04-15)Support Python 3.1.0 (2015-07-06)Implement ability to use a password when accessing the database, requiring at
least PostgreSQL 9.0 for this feature.Require at least Python 2.7.0.1.2allow newer versions than exactely psycopg2==2.0.60.1.1first public release
Package: gocept.recipe.deploymentsandbox
This recipe can be used to create deployments that are located in a sandbox.
This is useful for deploying self-contained buildouts or for development
setups that are going to use a deployment recipe in the future.It is compatible to zc.recipe.deployment and can be used as a drop-in.It is not intended for system-wide deployments, please use
zc.recipe.deployment for that.Change history0.2 (2009-06-05)Allow to override single variables in the section.0.1.1 (2008-02-27)Using $LOGNAME instead of os.getlogin to set the user.0.1.0 (2008-02-15)Initial release.Detailed DocumentationSandbox environmentsThis recipe creates a sandbox environment for deployments similar to
zc.recipe.deployment. It is not intended for system-wide installation but as a
sandboxed/development variation of the deployment pattern.For production, system-wide deployments you can simply switch out a sandbox
deployment part with a real deployment part.A root directory is defined for the sandbox (by default this isparts/${name}) in which the following directory structure is created:${root}/var/run
${root}/var/log
${root}/etc/
${root}/etc/cron.d
${root}/etc/init.d
${root}/etc/logrotate.dAdditionally to be able to mix multiple deployments within a single sandbox we
compute the following paths compatible to zc.recipe.deployment:crontab-directory
logrotate-directory
rc-directory
run-directory
log-directory
etc-directoryAlso, theuseroption is setup to match the current user.Supported optionsThe recipe supports a single optional option:rootOptional: The root directory of the sandbox. Will be computed from the
section name if not given.Example usageWe’ll start by creating a buildout that uses the recipe.>>> import os
>>> write('buildout.cfg',
... """
... [buildout]
... parts = deployment
...
... [deployment]
... recipe = gocept.recipe.deploymentsandbox
... """)Running the buildout gives us:>>> print system(buildout)
Installing deployment.
>>> ls(sample_buildout, 'parts')
d deployment
>>> ls(sample_buildout, 'parts', 'deployment')
d etc
d var
>>> ls(sample_buildout, 'parts', 'deployment', 'etc')
d  cron.d
d  deployment
d  init.d
d  logrotate.d
>>> ls(sample_buildout, 'parts', 'deployment', 'var')
d log
d run
>>> ls(sample_buildout, 'parts', 'deployment', 'var', 'log')
d deployment
>>> ls(sample_buildout, 'parts', 'deployment', 'var', 'run')
d deploymentContributorsChristian Theune, AuthorDownload
Package: gocept.recipe.env
ContentsDetailed DocumentationContributorsChange historyDownloadCode repository:http://svn.gocept.com/Detailed DocumentationExample usageThe value of this recipe is that its part can be referenced from other parts
using the ${…} syntax. The recipe mirrors the current environment variables
into its section, so that e.g. ${env:USER} will give the current user.In addition to whatever is in the environment,UIDandGIDwill be set to
the effective user id and group id as reported by Python’sosmodule.Let’s look at how this works:>>> write('buildout.cfg',
... """
... [buildout]
... parts = env
...
... [env]
... recipe = gocept.recipe.env
... """)This configuration references an environment variable calledbuildout-test-info. Lets set it so we know its value:>>> import os
>>> os.environ['buildout-test-info'] = '42'Running the buildout gives us:>>> print 'start', system(buildout) # doctest:+ELLIPSIS
start...
Installing env.
<BLANKLINE>And theinstalled.cfgrecorded the corresponding environment value:>>> cat('.installed.cfg')
[buildout]
...
[env]
...
GID = ...
...
UID = ...
...
buildout-test-info = 42
...ContributorsChristian Theune <ct@gocept.com>, AuthorThomas Lotze <tl@gocept.com>, AuthorChange history1.0 (2008-07-22)Created recipe with ZopeSkel [Christian Theune <ct@gocept.com>].Download
Package: gocept.recordserialize
The gocept.recordserialize distributionFile writer/parser for fixed-width and character-separated files.This package is compatible with Python version 2.7.Fixed-width formatDefine the format by listing all fields, in order. Each field has the following
settings:name:Name of the field (required)width:Width of the field in characters (required)fill character:default: Spacealignment:default: align LEFT (that is, pad on the right side)For example:>>> from gocept.recordserialize import FixedWidthRecord
>>> class FixedExample(FixedWidthRecord):
...
...    encoding = 'utf-8'
...    lineterminator = '\r\n'
...
...    fields = [
...        ('one', 3, ' ', FixedWidthRecord.LEFT),
...        ('two', 7, '0', FixedWidthRecord.RIGHT),
...    ]Writing>>> r = FixedExample()
>>> r['one'] = 'foo'
>>> r['two'] = '12'
>>> str(r)
'foo0000012\r\n'Reading>>> r = FixedExample.parse('bar0000034\r\n')
>>> r['one']
u'bar'
>>> r['two']
u'34'Also available:parse_filewhich takes a file-like object.Character-separated formatDefine the format by declaring attributes on the class. Each field has the
following settings:position:position of the fielddefault:default value to write if none is givenmaximum length:truncate field to this lengthNote that you do not have to declare all fields, any positions not declared are
filled with empty columns. For this reason, you always have to give the total
number of fields in thefieldsattribute:>>> from gocept.recordserialize import SeparatedRecord
>>> class PipeExample(SeparatedRecord):
...
...    fields = 5
...    encoding = 'utf-8'
...    separator = '|'
...    lineterminator = '\r\n'
...
...    first = 1
...    default = 2, 'qux'
...    maxlen = 3, 3
...    maxlen_default = 4, 5, 'asdfg'Writing>>> r = PipeExample()
>>> r['first'] = 'some text'
>>> r['maxlen'] = '12345'
>>> str(r)
'some text|qux|123|asdfg|\r\n'Reading>>> r = PipeExample.parse('some text|qux|123|asdfg|\r\n')
>>> r['first']
u'some text'
>>> r['default']
u'qux'
>>> r['maxlen']
u'123'
>>> r['maxlen_default']
u'asdfg'Also available:parse_filewhich takes a file-like object.EscapingFor subclassing, SeparatedRecord provides classmethodsescapeandunescapethat each value is passed through on write/read. An example that
makes use of this isgocept.recordserialize.CSVRecordwhich escapes quotes:>>> from gocept.recordserialize import CSVRecord
>>> class CSVExample(CSVRecord):
...
...     fields = 1
...     one = 1

>>> r = CSVExample()
>>> r['one'] = 'my "quoted" string'
>>> str(r)
'"my \'quoted\' string"\r\n'Developing gocept.recordserializeAuthor:gocept<mail@gocept.com>PyPI page:https://pypi.org/project/gocept.recordserialize/Issue tracker:https://bitbucket.org/gocept/gocept.recordserialize/issuesSource code:https://bitbucket.org/gocept/gocept.recordserialize/Change log for gocept.recordserialize1.0 (2017-12-06)Add support forsetuptools >= 32.Drop support for Python 2.6.0.3 (2016-02-29)Escape unicode characters on errors.0.2 (2013-11-26)Fixed dependency on setuptools.0.1 (2012-09-19)initial release
Package: gocept.remoteleds
=================gocept.remoteleds=================Preparing a developer machine----------------------------->>> hg clone https://bitbucket.org/gocept/gocept.remoteleds>>> cd gocept.remoteleds>>> virtualenv .>>> bin/pip install -e .[test]Running tests is than as easy as:>>> bin/py.testDetailed Documentation**********************=======CHANGES=======1.3 (2014-09-20)================- Change SNR in example config to something the more user friendly.1.2 (2014-09-20)================- Improved config file handling.1.1 (2014-09-20)================- Better discovery.- Support for jenkins views.1.0 (2014-09-20)================- First working release ready for production use.0.1.1 (2014-09-19)==================- Rediscover remoteleds when device is unplugged and plugged in again.0.1.0 (2014-09-19)==================- Initial Release.
Package: gocept.sequence
This package lets you generate a persistent sequence. That means in practice,that you can generate sequent numbers without having to worry about storingthe last generated number. This is done by gocept.sequence within theannotation of an object you provide.===============gocept.sequence===============Sequences=========>>> import Persistence>>> import zope.annotation.interfaces>>> from zope.interface import implementsWe need a testobject, where the SequenceGenerator stores his data:>>> class Dummy(Persistence.Persistent):...     implements(zope.annotation.interfaces.IAttributeAnnotatable)>>> test_object = zope.annotation.interfaces.IAnnotations(Dummy())You get a SequenceGenerator by adapting to ISequenceGenerator:>>> from gocept.sequence.interfaces import ISequenceGenerator>>> seq_gen = ISequenceGenerator(test_object)You get a sequence like this:>>> seq_gen.getNextValue()1>>> seq_gen.getNextValue()2>>> seq_gen.getNextValue()3You can also set the generator to a value:>>> seq_gen.setNextValue(1)>>> seq_gen.getNextValue()1>>> seq_gen.setNextValue(5)>>> seq_gen.getNextValue()5>>> seq_gen.getNextValue()6>>> seq_gen.getNextValue()7>>> seq_gen.getNextValue()8But setNextValue only accepts integer arguments:>>> seq_gen.setNextValue('1')Traceback (most recent call last):...ValueError: setNextValue expected Integer, <type 'str'> found.>>> seq_gen.setNextValue(3.14)Traceback (most recent call last):...ValueError: setNextValue expected Integer, <type 'float'> found.Changes=======0.4 (unreleased)----------------0.31 (2008-07-21)----------------- added migration code and tests for the bugfix of release 0.3- added README text and CHANGELOG0.3 (2008-07-21)----------------- fixed a bug with Plone, where the dot in the annotation key caused an accesserror- improved readability of test cases0.1---- initial release
Package: gocept.template-rewrite
gocept.template_rewriteA tool to rewrite parts of template files (DTML, ZPT and XPT).The initial use case is to have a pluggable system to convert Python 2
expressions in templates to Python 3.This package runs on Python 3.6 up to 3.10.RequirementsFor the rewrite to work properly, it is necessary to have this structureattr="value"for attributes in tags with no whitespaces around the=,
as otherwise the values will get lost.CaveatsDuring rewrite double hyphens within HTML-comments are removed as the Chameleon
engine in Zope 4 (and theactual specification) is very strict about it.The underlying lib2to3 does not take into account, that thecmpfunction
is no longer available in Python 3.This tool converts Python 2 to Python 3 - that means the code may not be
compatible with Python 2 any more. For these edge cases manual changes are required to make it
compatible with both versions.Developing gocept.template_rewriteAuthor:gocept<mail@gocept.com>Issues:https://github.com/gocept/gocept.template_rewrite/issuesSource code:https://github.com/gocept/gocept.template_rewriteCurrent change log:https://raw.githubusercontent.com/gocept/gocept.template_rewrite/master/CHANGES.rstInstallation:pip3 install gocept.template_rewriteRun the tests:$ toxChange log for gocept.template_rewrite1.1 (2022-04-29)Convert single quotes used for HTML attributes into double quotes.
(#25)Add support for Python 3.9 and 3.10.Ensure compatibility withpytest >= 6.0.Use GHA as CI system.1.0 (2020-04-07)Print exact location of error in case of problems parsing Page Templates.Add parameter–collect-errorsthat continues to parse all given files and
prints all found parsing errors but exits with an error and does not replace
any files if an error was found. This replaces the argument–only-show-errorspresent in earlier versions. This allows to create a
full list of errors to be fixed before a rewrite is possible.Add notes about more caveats.File discovery now also includes TrustedFSPageTemplate files, which
are registered with the file ending.xpt.
Package: gocept.thermosnake
gocept.thermosnakegocept.thermosnake is a nagios check script to use with the thermosnake usb hardware (“solder skills required”:http://www.elektor.com/magazines/2008/june/thermo-snake.495081.lynkx). It requires the “measuretemp” program, which can be downloaded in sourcecode “here”:http://www.elektor.com/products/books/computer/embedded-linux-enhanced-edition.1706867.lynkxCHANGES0.7 (2011-03-14)finally a working MANIFEST0.6 (2011-03-14)Nothing changed yet.0.5 (2011-03-14)typo0.4 (2011-03-04)removed setuptools-hg dependency0.3 (2010-03-03)Initial public release.Download
Package: gocept.xmlrpcskin
This package is an extension to the Zope Publisher that provides a ZCML
directive for XML-RPC views that supports alayerparameter.It collects the changes that briefly were contained in 3.5.0alpha releases (but
subsequently have been removed) of the following packageszope.app.publisher (removed in r82484)zope.traversing (removed in r82482)zope.publisher (removed in r82493)UsageThegocept:xmlrpcviewdirective is like thexmlrpc:viewdirective ofzope.app.publisher, but with an additional parameterlayer.Here’s an abbriged example (also available asgocept.xmlrpcskin.tests.fixture):<include package="zope.component" file="meta.zcml" />

<include package="gocept.xmlrpcskin" file="meta.zcml" />
<include package="gocept.xmlrpcskin" />

<interface
  interface=".interfaces.IFooLayer"
  type="gocept.xmlrpcskin.interfaces.IXMLRPCSkinType"
  name="foo"
  />

<gocept:xmlrpcview
  for="*"
  class=".view.Example"
  permission="zope.Public"
  methods="
  all_layers
  "
  />

<gocept:xmlrpcview
  for="*"
  class=".view.Example"
  layer=".interfaces.IFooLayer"
  permission="zope.Public"
  methods="
  foo_layer
  "
  />


class IFooLayer(zope.publisher.interfaces.xmlrpc.IXMLRPCRequest):
    pass

class Example(zope.app.publisher.xmlrpc.XMLRPCView):

    def all_layers(self):
        return dict(returncode=1)

    def foo_layer(self):
        return dict(returncode=2)The methodall_layerswill then be available on all layers, whilefoo_layeronly is available on/++skin++foo.CHANGES2.0 (2023-02-17)Add support for Python 3.9, 3.10, 3.11.Drop support for Python 2.7, 3.5, 3.6.Fix warning in setup.py.1.1 (2019-12-03)Explicitly support and test for Python 2.7, 3.7 and 3.8.1.0 (2011-09-22)first release.
Package: gocept.zeoraid
The ZEORaid storage is a storage intended to make ZEO installations more
reliable by applying techniques as used in hard disk RAID solutions.The implementation is intended to make use of as much existing infrastructure
as possible and provide a seamless and simple experience on setting up a
reliable ZEO server infrastructure.Note: We use typical RAID terms to describe the behaviour of this system.The RAID storageThe ZEORaid storage is a proxy storage that works like a RAID controller by
creating a redundant array of ZEO servers. The redundancy is similar to RAID
level 1.Therefore, up to N-1 out of N ZEO servers can fail without interrupting
the service.It is intended that any storage can be used as a backend storage for a RAID
storage, although typically a ClientStorage will be the direct backend.The ZEORaid serverThe RAID storage could (in theory) be used directly from a Zope server.
However, to achieve real reliability, the RAID has to run as a storage for
multiple Zope servers, like a normal ZEO setup does.For this, we leverage the normal ZEO server implementation and simply use a
RAID storage instead of a FileStorage. To achieve full reliability, you can
install multiple ZEORaid servers with identical configuration:[ Zope 1 ]                      [ ZEORaid 1 ]                  [ ZEO 1 ]
[ Zope 2 ]    talk to all -->   [ ZEORaid 2 ]   talk to all -> [ ZEO 2 ]
...                             ...                            ...
[ Zope N]                       [ ZEORaid N ]                  [ ZEO N ]ZEO RAID servers maintain a list of all the optimal, degraded and recovering
storages and provide an extended Storage API to allow querying the RAID status
and disabling and recovering storages at runtime.DevelopmentDiscussion via mailing list happens onzodb-dev@zope.org. For subscriptions
visithttp://mail.zope.org/.A bug tracker is available at launchpad:https://bugs.launchpad.net/gocept.zeoraid/
Package: go-chatgpt
Go ChatGPTQuick start「go_chatgpt」是一个快速调用 openai chatgpt api 的网页封装「go_subtitle」 is a quick call to openai chatgpt api web page encapsulationSetup项目需要运行在包含python3.8.16的环境中The project needs runs in an environment containingpython3.8.16建议通过miniconda安装python以便管理环境It is recommended to install python throughminicondato manage the environmentcondacreate-nchatgptpython=3.8你可以通过下面的命令安装此项目最新的版本You can install the project latest version using the following command# 从PyPI安装pipinstall-Ugo_chatgpt# 从GitHub安装pipinstallgit+https://github.com/RedHeartSecretMan/go_chatgpt.git你需要创建OpenAI账号获取api-key以使用You need to create an OpenAI account to get the api-key to use项目中的deploy文件夹包含了在Linux、macOS和Windows平台上的快速部署脚本The deploy folder in the project contains rapid deployment script for the Linux, macOS and Windows platformsDocker你可以通过以下命令获取docker镜像You can obtain the docker image with the following commanddockerpull1046911101/go_chatgpt:0319你需要为该镜像创建一个容器并启动，常用的参数都被设置未了环境变量，根据需要调整You need to create a container for the image and start it and the usual parameters are set to environment variables and adjusted as neededdockerrun-eapi_key="write_yourself_api_key_from_openai.com"-erequest_method="official"--namego_chatgpt_0319-p7860:7860-it1046911101/go_chatgpt:0319Tips: 其中默认的请求方法为post而write_yourself_api_key_from_openai.com应该是一串类似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的代码如果网路无法访问则需要为容器设置代理，可以使用宿主机的代理服务If the network is inaccessible, you need to set up a proxy for the container. You can use the proxy service of the hostdockerrun-eapi_key="write_yourself_api_key_from_openai.com"-eproxy_name="192.168.1.7"-eproxy_port=7890--namego_chatgpt_0319-p7860:7860-it1046911101/go_chatgpt:0319Tips: 其中192.168.1.7是局域网中网关分配给宿主机的IP地址，7890是宿主机被代理的端口，根据实际情况设置End项目现在是一个可用的demo，计划在23年6月份左右完善The project is now an available demo, which is planned to be completed around June in 23
Package: goclecdscraper
GoclecdScraper (IN DOING)InstallationpipinstallgoclecdscraperORclone this repository andpipinstall-rrequirements.txt

pythonsetup.pyinstallUsageInitialization with requestsfromgoclecdscraperimportGoclecdScraperscraper=GoclecdScraper()Search productsresults=scraper.search('grounded')forresultinresults:print(result)"""Title : Groundedprice : 30.52 â‚¬href : https://www.goclecd.fr/acheter-grounded-cle-cd-comparateur-prix/Title : Grounded Xbox Oneprice : 22.71 â‚¬href : https://www.goclecd.fr/acheter-grounded-xbox-one-comparateur-prix/Title : Grounded Xbox Series Xprice : 31.99 â‚¬href : https://www.goclecd.fr/acheter-grounded-xbox-series-comparateur-prix/"""
Package: go-cli
A command line interface forVumi GoHTTP APIs.InstallationInstall with:$ pip install --user go-cliThen run:$ go-cli --helpand read the usage instructions.Sending messagesRun:$ go-cli send --helpto learn about the options available for sending.Example message sending:$ go-cli --account 1edfdd412f253e9fc4975eb93c2c1e8c \
         send \
         --conversation a3aa791fab164dc894328564e2be5f16 \
         --token secret-token-you-entered \
         --csv messages.csvWheremessages.csvlooks something like:to_addr,content
+12345678,"Hello first person"
+12345679,"Hello second person"Exporting contactsRun:$ go-cli export-contacts --helpto learn about the options available for downloading contacts.Example contact exporting:$ go-cli --account 1edfdd412f253e9fc4975eb93c2c1e8c \
         export-contacts \
         --token secret-token-for-your-contacts-api \
         --csv contacts.csvWherecontacts.csvis the file you’d like to export the contacts to.If contact exporting is interrupt by a network error, a message will be printed
explaining how to use–resumeto continue it.Reporting issuesYou can contact the Vumi development team in the following ways:viaemailby joining the thevumi-dev@googlegroups.commailing listonircin#vumion theFreenode IRC networkIssues can be filed in the GitHub issue tracker. Please don’t use the issue
tracker for general support queries.
Package: goco
GocoConnecting to Google apis has never been easier!FeaturesEasy and Fast connection to google apisAuto-renewable access tokenInstallationgocorequires Python 3.Usepipto install the package from PyPI:pipinstallgocoOr, install the latest version of the package from GitHub:pipinstallgit+https://github.com/elmoiv/goco.gitUsageUsing goco to connect to blogger::# Blogger examplefromgocoimportGocoGoogleApi=Goco("path\\to\\client_secret.json")MyBlog=GoogleApi.connect(scope='Blogger',service_name='blogger',version='v3')Posts=MyBlog.posts().list(blogId='7599400532066909387').execute()print(Posts)TestsHere are a few sample tests:Blogger TestDrive TestContributingPlease contribute! If you want to fix a bug, suggest improvements, or add new features to the project, justopen an issueor send me a pull request.
Package: gocomics.py
RequirementsThis module requires the following modules:beautifulsoup4requestsInstallationPython 3.8 or higher is required.To install the stable version, do the following:# Unix / macOSpython3-mpipinstall"gocomics.py"# Windowspy-mpipinstall"gocomics.py"To install the development version, do the following:$gitclonehttps://github.com/Infiniticity/gocomics.pyLinksGoComicsDocumentation
Package: godaddy-api
godaddy-apiTable of ContentsInstallationLicenseAPI environmental variablesAPI Key, Secret and URL are passed as environmental variables.GODADDY_API_KEYfor API KeyGODADDY_API_SECRETfor API SecretGODADDY_API_URLfor API URL (https://api.ote-godaddy.com/andhttps://api.godaddy.com/at the time of writing)Example:exportGODADDY_API_KEY='xxx'exportGODADDY_API_SECRET='yyy'exportGODADDY_API_URL='https://api.godaddy.com/'CLI utilityIncluded CLI utility allows you to easily set A record. You still need to set API environmental variables.Example forentire-domain.com:exportGODADDY_API_KEY='xxx'exportGODADDY_API_SECRET='yyy'exportGODADDY_API_URL='https://api.godaddy.com/'python-mgodaddy_api"entire-domain.com""@""123.123.123.123"Example forsubdomain.entire-domain.com:exportGODADDY_API_KEY='xxx'exportGODADDY_API_SECRET='yyy'exportGODADDY_API_URL='https://api.godaddy.com/'python-mgodaddy_api"entire-domain.com""subdomain""123.123.123.123"Installationpip install godaddy-apiLicensegodaddy-apiis distributed under the terms of theApache-2.0license.