Personal tools
Skip to content. | Skip to navigation
Introduction Archetypes.querywidget implements a widget for creating catalog queries using an email-filtering-like interface, as found in GMail or Apple Mail.Changelog 1.1.3 (2016-08-12) Bug fixes:- Fix base_url variable when editing a collection. [rodfersou]- Added 'safe_unicode' call for raw query values. [rodfersou] 1.1.2 (2014-11-05) - Added 'SelectionWidget', a single selection widget....
Introduction ************This is an implementation of referencebrowser widget. It provides a widget used for Archetypes reference-fields. The widget can be used on its own or as a dropin replacement of the ATReferenceBrowserWidget in Plone 3 and is included in Plone > 4. Unlike the ATReferenceBrowserWidget, archetypes.refencebrowserwidget uses an overlay instead of a popup to display the...
argcomplete - Bash tab completion for argparse *Tab complete all the things!*Argcomplete provides easy, extensible command line tab completion of arguments for your Python script.It makes two assumptions:* You're using bash as your shell (limited support for zsh, fish, and tcsh is available) * You're using argparse < to manage your command line arguments/optionsArgcomplete is particularly...
Argh: The Natural CLI :target:
The argparse module makes it easy to write user friendly command line interfaces.The program defines what arguments it requires, and argparse will figure out how to parse those out of sys.argv. The argparse module also automatically generates help and usage messages and issues errors when users give the program invalid arguments.As of Python > 2.7 and > 3.2, the argparse module is maintained...
This simple module gives you an elegant interface for your command line argumemnts.
ASGI is a standard for Python asynchronous web apps and servers to communicate with each other, and positioned as an asynchronous successor to WSGI. You can read more at package includes ASGI base libraries, such as:* Sync-to-async and async-to-sync function wrappers, asgiref.sync * Server base classes, asgiref.server * A WSGI-to-ASGI adapter, in asgiref.wsgi
Python has long had the pyasn1 and pyasn1_modules available for parsing and serializing ASN.1 structures. While the project does include a comprehensive set of tools for parsing and serializing, the performance of the library can be very poor, especially when dealing with bit fields and parsing large structures such as CRLs. After spending extensive time using pyasn1, the following issues were identified: Poor performance Verbose, non-pythonic API Out-dated and incomplete definitions in pyasn1-modules No simple way to map data to native Python data structures No mechanism for overridden universal ASN.1 types The pyasn1 API is largely method driven, and uses extensive configuration objects and lowerCamelCase names. There were no consistent options for converting types of native Python data structures. Since the project supports out-dated versions of Python, many newer language features are unavailable for use. Time was spent trying to profile issues with the performance, however the architecture made it hard to pin down the primary source of the poor performance. Attempts were made to improve performance by utilizing unreleased patches and delaying parsing using the Any type. Even with such changes, the performance was still unacceptably slow. Finally, a number of structures in the cryptographic space use universal data types such as BitString and OctetString, but interpret the data as other types. For instance, signatures are really byte strings, but are encoded as BitString. Elliptic curve keys use both BitString and OctetString to represent integers. Parsing these structures as the base universal types and then re-interpreting them wastes computation. asn1crypto uses the following techniques to improve performance, especially when extracting one or two fields from large, complex structures: Delayed parsing of byte string values Persistence of original ASN.1 encoded data until a value is changed Lazy loading of child fields Utilization of high-level Python stdlib modules While there is no extensive performance test suite, the CRLTests.test_parse_crl test case was used to parse a 21MB CRL file on a late 2013 rMBP. asn1crypto parsed the certificate serial numbers in just under 8 seconds. With pyasn1, using definitions from pyasn1-modules, the same parsing took over 4,100 seconds. For smaller structures the performance difference can range from a few times faster to an order of magnitude or more.
AuthEncoding is a framework for handling LDAP style password hashes.It is used in Zope but does not depend on any other Zope package.Changelog 4.3 (2021-06-29) -- Replace hand-rolled salt creation with os.urandom (8 < 4.2.1 (2021-04-08) - Test on GHA.- Skip some tests for broken crypt implementations. 4.2 (2020-09-30) -- Add support for Python 3.8 and 3.9. 4.1 (2018-10-30) -- Add support for...
:target: PyPI link_ :target: PyPI link_.. _PyPI link: :alt: Code style: Black