Saravanan666/pypi-org huggingface dataset:
Package: trythatagain
# trythatagain[![Build Status](https://travis-ci.org/angstwad/trythatagain.svg?branch=master)](https://travis-ci.org/angstwad/trythatagain)This provides decorators for super simple function/method call retries when an exception is raised.## Installation```bashpip install trythatagain```## ExamplesHere's a simple use case: querying the AWS API, knowing you might hit API limits.```pythonfrom trythatagain import retry@retrydef find_ebs_volumes(unattached=True, no_snapshots=True):...try:find_ebs_volumes()except CaughtException as e:print('Failed to list EBS volumes')print(e.__cause__)```This will retry calling `func` three times.  If was not successful in calling the function without an exception, it will re-raise the exception as `CaughtException`, with the original exception available at the attribute `__cause__`.Retry as many times as times as necessary:```pythonfrom trythatagain import retry@retry(retries=5)def try_five_times():raise Exception('This always fails')@retry(retries=0)def retry_forever():raise Exception('Terrible waste of CPU cycles')```Raise immediately on specific exceptions:```python@retry(raise_for=ValueError)def update_cache():...```Suppress re-raising exceptions:```python@retry(reraise=False)def reload_user_data():...```There's also exponential and linear backoff retries things like cooling down after hitting API limits.  In fact, AWS recommends exponential backoff to deal with API limits.```python# waits 1 second, then 4, then 9, etc.@retry_exp_backoff(unit=MILLISECONDS)def update_instance_tags():...@retry_linear_backoff(unit=SECONDS)def scrape_url():...```Custom wait functions are also possible:```pythondef fixed(i, unit):time.sleep(5 * unit)@retry(wait_func=fixed, unit=MILLISECONDS)def func():...```
Package: tryton-analyzer
Tryton AnalyzerWhat's thistryton-analyzeris a dedicated Language Server / Linter to assist developers
using thetrytonframework.Due to how the framework operates (most notably the runtime inheritance), the
standard Python tooling is not as useful as it can / should be. This means that
most errors that could be detected by a linter (unknown attributes, etc.)
are not, which leads to runtime / production errors.DisclaimerThis is just a hobby project for now, and though it is already useful, it
requires a patched trytond (on version 6.8).It is only tested on Neovim, though it should work on other editors supporting
the Language Server Protocol.How does it workIt usespyglsto handle the language
server protocol,libcstto parse the
sources, and apatched
trytondto be able to
load modules without any database whatsoever.The language server itself spawns and requests informations from separatetrytondprocesses to be able to survive Syntax Errors in the source code.What can it doFocus so far has been on basic things:Detecting unkown attributes (python / xml)CompletionSupport ofextras_dependto distinguish available models / fields even in a
given moduleModel detection is done through parsing of the syntax tree usinglibsct. It
relies on:self/clsfor obvious reasonsSpecial function parameters (for instance, the second argument ofvalidatewill always be a list of records)Parsing ofPool().getcallsCustom type annotations:def my_function(self, invoices: Records["account.invoice"]), though this does not play well with other
linters who interpret"account.invoice"as a type that obviously does not
existThere are a few very specific checks that are implemented because of past
trauma :)Do not call super on a function without a parentForgetting a super callWhat will it doI have a lot of things I would like to do next:Global ignore list via tox.iniReturn type annotationsExtract more informations from the tryton pool (identifygetters& co to
automatically assign types to parameters, identify from super calls)Domain / state parsingJump to definitionBetter information for fields during completionFind usages of fields / methods (though this one will probably be difficult
and need some sort of persistent caching)Detect register / depends missing a extras_dependGive it a trypip install tryton-analyzer, and setup your development environment to use
thepatched trytondrather than the default one.On the client side, uselspconfigfor Neovim:locallspconfig=require("lspconfig")localconfigs=require'lspconfig.configs'ifnotconfigs.tryton_analyzerthenconfigs.tryton_analyzer={default_config={cmd={'tryton-ls'},filetypes={'python','xml'},root_dir=lspconfig.util.root_pattern(".git"),settings={},};}endlspconfig.tryton_analyzer.setup{}You should be good to go.Thetryton-lintscript allows to lint a tryton module as a whole.
Package: trytonar_account_ar
The account_ar module of the Tryton application platform.InstallingSee INSTALLSupportIf you encounter any problems with this module, please don’t hesitate to ask
questions on the module bug tracker:https://bitbucket.org/thymbra/account_ar/issuesFor more information please contact the programmers at tryton-arwebsite:https://groups.google.com/forum/#!forum/tryton-arIf you encounter any problems with Tryton, please don’t hesitate to ask
questions on the Tryton bug tracker, mailing list, wiki or IRC channel:http://bugs.tryton.org/http://groups.tryton.org/http://wiki.tryton.org/irc://irc.freenode.net/trytonirc://irc.freenode.net/tryton-esLicenseSee LICENSECopyrightSee COPYRIGHTFor more information please visit the Tryton web site:http://www.tryton.org/
Package: trytonar_account_bank_ar
The account_bank_ar module of the Tryton application platform.InstallingSee INSTALLSupportIf you encounter any problems with this module, please don’t hesitate to ask
questions on the module bug tracker:https://bitbucket.org/thymbra/account_bank_ar/issuesFor more information please contact the programmers at tryton-arwebsite:https://groups.google.com/forum/#!forum/tryton-arIf you encounter any problems with Tryton, please don’t hesitate to ask
questions on the Tryton bug tracker, mailing list, wiki or IRC channel:http://bugs.tryton.org/http://groups.tryton.org/http://wiki.tryton.org/irc://irc.freenode.net/trytonirc://irc.freenode.net/tryton-esLicenseSee LICENSECopyrightSee COPYRIGHTFor more information please visit the Tryton web site:http://www.tryton.org/
Package: trytonar_account_check_ar
The account_check_ar module of the Tryton application platform.InstallingSee INSTALLSupportIf you encounter any problems with this module, please don’t hesitate to ask
questions on the module bug tracker:https://bitbucket.org/thymbra/account_check_ar/issuesFor more information please contact the programmers at tryton-arwebsite:https://groups.google.com/forum/#!forum/tryton-arIf you encounter any problems with Tryton, please don’t hesitate to ask
questions on the Tryton bug tracker, mailing list, wiki or IRC channel:http://bugs.tryton.org/http://groups.tryton.org/http://wiki.tryton.org/irc://irc.freenode.net/trytonirc://irc.freenode.net/tryton-esLicenseSee LICENSECopyrightSee COPYRIGHTFor more information please visit the Tryton web site:http://www.tryton.org/
Package: trytonar_account_coop_ar
# trytond_account_coop_arThe Trytonaccount_coop_armodule add an account chart template for Cooperative ArgentinaSeetryton.cfg## InstallingSee INSTALL##SupportIf you encounter any problems with this module, please don’t hesitate to ask
questions on the module bug tracker:https://github.com/gcoop-libre/account_coop_ar/issuesFor more information please contact the programmers at Gcoopwebsite:http://www.gcoop.coop/email:info@gcoop.coopIf you encounter any problems with Tryton, please don’t hesitate to ask
questions on the Tryton bug tracker, mailing list, wiki or IRC channel:http://bugs.tryton.org/http://groups.tryton.org/http://wiki.tryton.org/irc://irc.freenode.net/trytonirc://irc.freenode.net/tryton-es##LicenseSee LICENSE## CopyrightSee COPYRIGHTFor more information please visit the Tryton web site:http://www.tryton.org/
Package: trytonar_account_invoice_ar
# account_invoice_arThe Trytonaccount_invoice_armodule add account invoice localization for Argentina (AFIP).Seetryton.cfgThis module is based on [pyafipws.openerp](http://code.google.com/p/pyafipws.openerp/)## InstallingSee INSTALL##SupportIf you encounter any problems with this module, please don’t hesitate to ask
questions on the module bug tracker:https://github.com/tryton-ar/account_invoice_ar/issuesFor more information please contact the programmers at tryton-arwebsite:https://groups.google.com/forum/#!forum/tryton-arIf you encounter any problems with Tryton, please don’t hesitate to ask
questions on the Tryton bug tracker, mailing list, wiki or IRC channel:http://bugs.tryton.org/http://groups.tryton.org/http://wiki.tryton.org/irc://irc.freenode.net/trytonirc://irc.freenode.net/tryton-es##LicenseSee LICENSE## CopyrightSee COPYRIGHTFor more information please visit the Tryton web site:http://www.tryton.org/
Package: trytonar_account_retencion_ar
The account_retencion_ar module of the Tryton application platform.InstallingSee INSTALLSupportIf you encounter any problems with this module, please don’t hesitate to ask
questions on the module bug tracker:https://bitbucket.org/thymbra/account_retencion_ar/issuesFor more information please contact the programmers at tryton-arwebsite:https://groups.google.com/forum/#!forum/tryton-arIf you encounter any problems with Tryton, please don’t hesitate to ask
questions on the Tryton bug tracker, mailing list, wiki or IRC channel:http://bugs.tryton.org/http://groups.tryton.org/http://wiki.tryton.org/irc://irc.freenode.net/trytonirc://irc.freenode.net/tryton-esLicenseSee LICENSECopyrightSee COPYRIGHTFor more information please visit the Tryton web site:http://www.tryton.org/
Package: trytonar_account_voucher_ar
The account_voucher_ar module of the Tryton application platform.InstallingSee INSTALLSupportIf you encounter any problems with this module, please don’t hesitate to ask
questions on the module bug tracker:https://bitbucket.org/thymbra/account_voucher_ar/issuesFor more information please contact the programmers at tryton-arwebsite:https://groups.google.com/forum/#!forum/tryton-arIf you encounter any problems with Tryton, please don’t hesitate to ask
questions on the Tryton bug tracker, mailing list, wiki or IRC channel:http://bugs.tryton.org/http://groups.tryton.org/http://wiki.tryton.org/irc://irc.freenode.net/trytonirc://irc.freenode.net/tryton-esLicenseSee LICENSECopyrightSee COPYRIGHTFor more information please visit the Tryton web site:http://www.tryton.org/
Package: trytoncalidae-authentication-dummy
# Authentication DummyAuthentication dummy is a module developed to work with [Tryton ERP](https://www.tryton.org/).
This module allow to login tryton without password in order to make work easier in development mode.## How does it work?Authentication dummy is very simple:
1. Add this module to your dependencies.
2. Set authentication dummy in sessions section in your tryton config file.`bash [session] authentications = dummy `## SupportIf you encounter any problems with Tryton, please don’t hesitate to ask
questions on the Tryton bug tracker, mailing list, wiki or IRC channel:http://bugs.tryton.org/http://groups.tryton.org/http://wiki.tryton.org/irc://irc.freenode.net/tryton## LicenseSee LICENSE## CopyrightSee COPYRIGHT
Package: trytoncalidae-jinja-report
Jinja Reports modulejinja_reports is ajinja2extension developed to work withTryton ERP.
We can create our own reports based on jinja2 with html templates.How does it work?Steps to use Jinja Reports:Inherit the base Jinja2Report class.Define the meta model name.Create an html template.Create an action report pointing to template path and model name.ExampleHere's a an example of a report which contains three files.Python class that must be registered to the Tryton Pool.fromtrytond.modules.jinja_report.reportimportJinja2Reportfromtrytond.poolimportPoolclassMyReport(Jinja2Report):__name__='my_module.my_report'defregister():Pool.register(MyReport,module='your_module',type_='report')The html template of your report<html><body>{% for record in records %}
            {{ record.name }}
        {% endfor %}
        {{ data.get('some_data') }}</body></html>The action report registered as xml:<recordmodel="ir.action.report"id="my_report_action"><fieldname="name">Titleofmyreport</field><fieldname="report">path/to/my/report.html</field><fieldname="report_name">my_module.my_report</field><fieldname="model">party.party</field><fieldname="extension">pdf</field><fieldname="template_extension">html</field></record>
Package: trytoncommunity-setuptools
Shortening the boilerplate in Tryton modulesTryton modules normally contain and require a lot of boilerplate insetup.py.  Not only this is a lot of duplicate code, also it is a burden to
maintain this between different versions of Tryton.This package allows moving most all the meta-data and options being somewhat
“static” between Tryton modules and Tryton Versions intosetup.cfgand
using a quite tersesetup.pyonly.trytoncommunity-setuptoolsalso supports the ‘module prefix mapping` quite
some developers and integrators use.Examplesetup.py:from trytoncommunity_setuptools import setup, get_require_version

requires = ['lxml']
tests_require = [
    get_require_version('proteus'),
    'pycountry',
]

setup('trytoncommunity', 'country_order',
      requires=requires, tests_require=tests_require)Corresponding examplesetup.cfg:[metadata]
; name will be filled by trytoncommunity-setuptools
description  = Precedence rating for countries in Tryton
long_description = file: README.rst
long_description_content_type = text/x-rst
url           = https://tryton.community
author        = Hartmut Goebel
author_email  = h.goebel@crazy-compilers.com
license       = GPL-3.0-or-later
license_files = LICENSE-GPL-3.0.txt
keywords      = tryton, country
classifiers =
  Development Status :: 5 - Production/Stable
  License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
  Natural Language :: English
  Natural Language :: German
;; These classifiers will be added by trytoncommunity-setuptools,
;  Environment :: Plugins
;  Framework :: Tryton
;  Intended Audience :: Developers
;  Programming Language :: Python :: … filled according to Tryton version
;  Programming Language :: Python :: Implementation :: CPython
;  Topic :: Office/Business
;  Operating System :: OS Independent

[options]
;python_requires = …          # filled by trytoncommunity-setuptools
;include_package_data = True  # enforced by trytoncommunity-setuptools
;zip_safe = False             # enforced by trytoncommunity-setuptoolsWhen using a PEP 517 compliant build tool
e.g.build, you need to also provide apyproject.tomlfile:[build-system]
requires = ["trytoncommunity-setuptools >= 0.3"]
build-backend = "setuptools.build_meta:__legacy__"
Package: trytond-account-asset
The account_asset module adds the depreciation of fixed assets.AssetAn Asset defines how an asset is depreciated. It is mainly defined by:Product (of type “Assets”).Journal.Value, Depreciated Amount and Residual Value.Start and End Date.Depreciation Method:LinearFrequency:MonthlyYearly (using fixed year of 365 days)Lines.The asset can be in one of this states:DraftThe depreciation lines can be created.RunningThe accounting moves of depreciation lines are posted.ClosedThe value of the asset has been completely depreciated.A wizard “Create Assets Moves” allows to post all accounting move up to a date.The day and the month when the move will posted are defined on the accounting
configuration.Asset LineAn Asset Line defines for a date the value to depreciate.
Package: trytond-account-be
The Belgian account module defines the standard chart of account.The module generates french and dutch chart of accounts / chart of taxes. The
french / dutch XML files are generated from the same original XML file thanks
to the localize.xsl XSLT script. The script will produce on the standard output
the desired XML file. The XSLT script can be launched with the following
command:xsltproc --stringparam lang <lang> localize.xsl <xml file>wherelangis eitherfrornl.
Package: trytond-account-cash-rounding
The account_cash_rounding module allows cash amounts to be rounded using the
cash rounding factor of the currency.When the invoice has to round the lines to pay, the exceeded amount is debited
or credited to the accounts defined on the accounting configuration.Sales and invoices have the rounding activated by default based on the
accounting configuration flag. Purchase use the last purchase for the supplier
as the default value and transfer the value to the created invoices.
Package: trytond-account-dunning
The account_dunning module adds dunning for receivable move lines.ProcedureAProceduredefines the dunning process with an ordered list of levels.
A dunning will raise from one level to an other by selecting the next level
that pass the test.
The Procedure is set perPartyand a default one can be configured in the
accounting configuration.LevelALeveldefines the parameters to reach it:Days: The number of overdue days.DunningADunningdefines the dunning level of an overdue move line. Once processed,
it triggers the communication defined on the procedure level. It is mainly
defined by:Line: The overdue move lineProcedure: TheProcedurefollowed.Level: The currentLevel.Blocked: If true, it blocks the dunning to raise.The dunning can be in one of these states:DraftThe current level is not yet processed.WaitingThe current level has been processed.FinalAll levels have been processed.
Package: trytond-account-dunning-fee
The account_dunning_fee module allows to generate accounting moves as fees when
processing dunning which are at a level with aFeedefined.The accounting move debit the fee amount from the same account as the due line
and credit the revenue account of the product.  Only one move is created per
dunning and level.FeeAFeedefines the parameters to apply the fee:Name: The string that will be used as account move description.Product: The service product that represent the fee.Journal: The journal on which the move will be posted.Compute Method:List Price: The list price of the product.Percentage: A percentage of the due amount.
Package: trytond-account-es
The Spanish account module defines the following charts of account:Plan General Contable Español 2008Plan Contable para PYMES 2008The chart was published asREAL DECRETO 1514/2007on 20th November
2007.A wizard allows to generate the following AEAT files:Modelo 111Modelo 115Modelo 303The module generates the chart of accounts for the normal and pyme charts.
The XML files for each variant are generated from the same original XML file
thanks to the create_variant.xsl XSLT script. The script will produce on the
standard output the desired XML file. The XSLT script can be launched with the
following commands:xsltproc --stringparam chart <chart> create_chart.xsl account.xml
xsltproc --stringparam chart <chart> create_chart.xsl tax.xmlwherechartisnormalorpyme.
Package: trytond-account-fr
The French account module defines the standard chart of accountA wizard allows to generate the FEC file for a fiscal year.ConfigurationThe account_fr module uses the sectionaccount_frto retrieve some parameters:fec_opening_code: defines the journal code for the opening balance in the
FEC file. The default value isOUV.fec_opening_name: defines the journal name for the opening balance in the
FEC file. The default value isBalance Initiale.fec_opening_number: defines the number of the opening balance in the FEC
file. The default value is0.
Package: trytond_account_nl
This module is based on the l10n_nl from
OpenERP’s addons-community repository by
Jan Verlaan (www.veritos.nl).It provides a chart of accounts based on
the semi-standard ‘Bakker’ chart, with added
rules for value-added taxes.If you which to access the github repository
using Mercurial, please install the hg-git
extension:http://hg-git.github.com/This module is provided as-is, without any
warranties, under the GPLv3 license.For bugs in this module please contact the
author of this module, not the Tryton author.—
Paul J Stevens <paul@nfg.nl>
Package: trytond-account-payment-braintree
The account_payment_braintree module allows receipt of payments usingBraintree.
It uses theDrop-in UIin a checkout form to handle thepayment method
noncefor card and other supported payment methods.AccountThe Account stores the information about the Braintree account like the
merchant ID, the public and secret keys etc.The account’s webhook endpoint is the URL used by Braintree’swebhooks.
If no webhook is setup, disputes will not update existing payments.CustomerThe Customer allows parties to be registered as Braintree customers.
The checkout/add card button opens the Braintree Drop-in UI form.A scheduled task runs every hour to create new customers on Braintree and
another to delete them if they have become inactive.JournalThe journal has a new field to store the Braintree account if the process
method is set to “Braintree”.PaymentThe payment also has a checkout button which opens the Braintree Drop-in UI
form.
A payment can be processed using a nonce or apayment methodfrom the
customer.
In case of an error, a new field displays the error message from Braintree.
The settle field can be unchecked to only authorize on processing and settle
the amount in a second step.Two scheduled tasks run every 15 minutes to transact and settle each processing
payment.
Another scheduled task also runs every 15 minutes to pull updates for each
processing payment until they have succeeded or failed.The Braintree payments have a pull button which can be used to force an update
with the braintree transaction.ConfigurationThe account_payment_braintree module uses the sectionaccount_payment_braintreeto retrieve some parameters:payment_methods_cache: defines the duration in seconds that payment
methods are kept in the cache. The default value is15 * 60.
Package: trytond-account-payment-sepa
The account_payment_sepa module allows to generate SEPA files for a Payment
Group.JournalThe Journal has some fields when the process method is SEPA:Bank Account Number.Payable Flavor:
- pain.001.001.03
- pain.001.001.05
- pain.001.003.05Receivable Flavor:
- pain.008.001.02
- pain.008.001.04
- pain.008.003.02Payable/Receivable Initiator Identifier:
- SEPA Creditor Identifier
- Belgian Enterprise Number
- Spanish VAT NumberBatch Booking.Charge Bearer:
- Debtor
- Creditor
- Shared
- Service LevelGroupThe Group has a fieldSEPA Messagescontaining the XML messages.MandateThe Mandate stores information for the Direct Debit. It is mainly defined by:Party.Account Number.Identification.Type:
- Recurrent
- One-offScheme:
- CORE
- Business to BusinessSignature DateThe mandate can be in one of this states:DraftRequestedValidatedCancelledMessageThe Message stores the incoming and outgoing XML message.The message can be in one of this states:DraftWaitingDoneCancelledBank to Customer Debit Credit Notification (camt.054)For incoming message camt.054, each booked entry will succeed the corresponding
payment if any return information is found. Otherwise it will fail and the
return reason will be stored on it.PartyThe Party has a fieldSEPA Creditor Identifierused for the party of the
company.ConfigurationThe account_payment_sepa module uses the sectionaccount_payment_sepato
retrieve some parameters:filestore: a boolean value to store SEPA message in the FileStore.
The default value isFalse.store_prefix: the prefix to use with the FileStore. The default value isNone.