NamedtupleX¶
Abstract¶
The namedtuplex package provides extended named tuples with additional features including an abstract base class, standard and extended class factories with function-style default values and additional parameters.
The best application is for return values as tuples with a variable number of valid members. The provided namedtuplex class fabric could be used as a drop-in replacement of the standard namedtuple [namedtuple].
The current release supports:
- ineritance:
Inheritance of abstract and non-abstract classes.
- mixin:
The use of the generated tuple class as mixin.
- symbolic fieldnames
Alternative symbolic names for the fields of the tuple, see also [namedtuple].
- default values
Default values for the fields, supports partial fields for the initialization of the generated class - similar to function arguments [PYFUNC].
- attributes:
Additional non-field attributes for the created tuple including default values.
- performance impact
The performance impact of the created named tuple class is compared to the collections.namedtuple none, compared to the standard tuple negligible. The created named tuple class actually uses the tuple as it’s base class, where the add-ons are performed for the customized creation only.
For an overview with additional details refer to the following section Blueprint.
For the extended namedtupledefs.namedtuple with fielddefaults see [namedtupledefs]. For the standard library collections.namedtuple see Python documentation [NAMEDTUPLEABCREF]. For the fast enumeration of the Python implementation and release refer to [pythonids].
Resources¶
Home
Sourceforge.net: https://sourceforge.net/projects/namedtuplex/
Online Documents
Sourceforge.net: https://namedtuplex.sourceforge.io/
Runtime Repository
Python Package Index: https://pypi.org/project/namedtuplex/
Downloads
bitbucket.org: https://bitbucket.org/acue/namedtuplex/
github.com: https://github.com/ArnoCan/namedtuplex/
Python Package Index: https://pypi.org/project/namedtuplex/
Sourceforge.net: https://sourceforge.net/projects/namedtuplex/
Licenses¶
Product¶
Product Data
MISSION=Extended namedtuple - extends fabric and provides abstract classes.
AUTHOR=Arno-Can Uestuensoez
PROJECT=namedtuplex
COPYRIGHT=(C)2019 Arno-Can Uestuensoez
LICENSE=Artistic-License-2.0 + Forced-Fairplay-Constraints
VERSION=0.1.26
RELEASE=0.1.26
STATUS=Unknown
BUILDDATE=2019.12.13-13:12
Modified Artistic License¶
The modified Artistic License is based on the ArtisticLicense2.0, but adds the amendmend of “Forced-Fairplay-Constraints” for peer-to-peer fairplay rules. The modification restricts, and even revokes the permission including the open source attribution in case of breaches, including the past.
License:ModifiedArtisticLicense2.0 = ArtisticLicense2.0 + Forced-Fairplay-Constraints From Ingenieurbuero Arno-Can Uestuensoez Name ModifiedArtisticLicense2.0
This is perfectly allright, as you may refer to cases like the faith of Andreas Pavel [AndreasPavel], or even my own - UnifiedSessionsManager (C) 2008 Arno-Can Uestuensoez [UnifiedSessionsManager] - the first multivendor cloud management system, capable of distributed hybrid clouds including virtual desktops. The UnifiedSessionsManager was originally licensed as GPL3.
So the software is OpenSource as long as you comply to basic rules - else not.
Artistic-License-2.0(base license): ArtisticLicense20
Forced-Fairplay-Constraints(amendments): licenses-amendments