{"id":21102717,"url":"https://github.com/arnocan/namedtupledefs3","last_synced_at":"2026-05-19T18:33:09.283Z","repository":{"id":72202098,"uuid":"225312313","full_name":"ArnoCan/namedtupledefs3","owner":"ArnoCan","description":"Patched namedtuple for field defaults.","archived":false,"fork":false,"pushed_at":"2019-12-13T12:50:39.000Z","size":9998,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T03:11:12.647Z","etag":null,"topics":["collections","namedtuple","python","python3"],"latest_commit_sha":null,"homepage":"https://namedtupledefs3.sourceforge.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArnoCan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"licenses-amendments.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-02T07:30:31.000Z","updated_at":"2019-12-13T12:50:42.000Z","dependencies_parsed_at":"2023-05-31T08:00:56.751Z","dependency_job_id":null,"html_url":"https://github.com/ArnoCan/namedtupledefs3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArnoCan%2Fnamedtupledefs3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArnoCan%2Fnamedtupledefs3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArnoCan%2Fnamedtupledefs3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArnoCan%2Fnamedtupledefs3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArnoCan","download_url":"https://codeload.github.com/ArnoCan/namedtupledefs3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243546412,"owners_count":20308500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["collections","namedtuple","python","python3"],"created_at":"2024-11-19T23:56:17.242Z","updated_at":"2025-12-28T18:17:19.378Z","avatar_url":"https://github.com/ArnoCan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"namedtupledefs3 / namedtupledefs - Python3\n==========================================\n\nThe package *namedtupledefs3* provides a patched version of the factory class\n*collections.namedtuple* with field defaults for *namedtuple*. The package\n*namedtupledefs3* supports *Python3*  syntax - released for *Python3.5+*. This\nis a drop-in compatible patch with minimal changes only - basically one line\nin the class template only.\n\n\timport namedtupledefs\n\t\n\tPoint0 = namedtupledefs.namedtuple('Point', ('x', 'y', 'z'))\n\tPoint1 = namedtupledefs.namedtuple('Point', ('x y z'))\n\t\n\tpoint0 = Point0(11, 22, 33) \n\tpoint1 = Point1(11, 22, 33) \n\nthe same with defaults:\n\n\tfrom namedtupledefs import namedtuple\n\t\n\tPoint0defs = namedtupledefs.namedtuple('Point', ('x', 'y', 'z'), fielddefaults=(22, 33))\n\tPoint1defs = namedtupledefs.namedtuple('Point', ('x y z'), fielddefaults=(22, 33))\n\t\n\tpoint0defs = Point0defs(11, 22) \n\tpoint1defs = Point1defs(11) \n\nwith the identical results:\n\t\n\tpoint0defs == point0 \n\tpoint1defs == point1 \n\nof the printout:\n\n\t\u003e\u003e\u003e point0\n\tPoint(x=11, y=22, z=33)\n\t\n\t\u003e\u003e\u003e point0defs\n\tPointdefs(x=11, y=22, z=33)\n\nThe package 'namedtupledefs3' additionally provides the method *_merge* for the\ncreated class with the accurate handling of *_fields* and *_fielddefaults*:\n\n\tmsg_header._merge('NewClassName', msg_body, msg_data)\n\nSee doc-string for more examples.\nFor the standard library *collections.namedtuple* see Python documentation.\n\nFor the *Python3* syntax alternative see *namedtupledefs*.\nFor the *Python2* syntax refer to *namedtupledefs2*.\n\n**Online documentation**:\n\n* https://namedtupledefs3.sourceforge.io/  # Python3 standard documentation style\n* https://namedtupledefs.sourceforge.io/   # ReadTheDocs documentation style\n\n\n**Runtime-Repository**:\n\n* PyPI: https://pypi.org/project/namedtupledefs/\n\n  Install: *pip install namedtupledefs*, see also section 'Install' of the online documentation.\n\n* PyPI: https://pypi.org/project/namedtupledefs3/\n\n  Install: *pip install namedtupledefs3*, see also section 'Install' of the online documentation.\n\n**Downloads**:\n\n* sourceforge.net: https://sourceforge.net/projects/namedtupledefs3/files/\n\n* bitbucket.org: https://bitbucket.org/acue/namedtupledefs3\n\n* github.com: https://github.com/ArnoCan/namedtupledefs3/\n\n* pypi.org: https://pypi.org/project/namedtupledefs3/\n\n\n* sourceforge.net: https://sourceforge.net/projects/namedtupledefs/files/\n\n* bitbucket.org: https://bitbucket.org/acue/namedtupledefs\n\n* github.com: https://github.com/ArnoCan/namedtupledefs/\n\n* pypi.org: https://pypi.org/project/namedtupledefs/\n\nProject Data\n------------\n\n* PROJECT: 'namedtupledefs'\n\n* MISSION: The extension of the standard *collections.namedtuple* by default values, merging, and accurate pickling.\n\n* VERSION: 00.01\n\n* RELEASE: 00.01.021\n\n* STATUS: alpha\n\n* AUTHOR: Arno-Can Uestuensoez\n\n* COPYRIGHT=Copyright (c) 2019 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez. \n\t\n* LICENSE=Artistic-License-2.0 + Forced-Fairplay-Constraints - see following clauses\n\nPatches and this Documentation:\n\n* COPYRIGHT=Copyright (c) 2019 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez. All rights reserved.\n\n* PSF: In case of integration into standard libraries PSF LICENSE AGREEMENT FOR PYTHON.  \n\n* This library: LICENSE=Artistic-License-2.0 + Forced-Fairplay-Constraints\n\nOriginal code copied from Standard Python Library see \"namedtupledefs.namedtuple_original\":\n\n* COPYRIGHT ORIGINAL=Copyright (c) 2001-2018 Python Software Foundation. All rights reserved.\n\n* LICENSE ORIGINAL=PSF LICENSE AGREEMENT FOR PYTHON\n\n\nRuntime Environment\n-------------------\nFor a comprehensive list refer to the documentation.\n\n**Python Syntax Support**\n\n* Python3\n  \n  This package requires the *exec* statement/function, it is\n  separated into two variants instead of using shared code.  \n  For the Python2 refer to the package namedtupledefs2.\n\n**Python Implementation Support**\n\n*  CPython, IPython, and PyPy\n\n* IronPython, and Jython as soon as *Python3* syntax released. \n\n\n**OS on Server, Workstation, Laptops, Virtual Machines, and Containers**\n\n* Linux: AlpineLinux, ArchLinux, CentOS, Debian, Fedora, Gentoo, OpenSUSE, Raspbian, RHEL, Slackware, SLES, Ubuntu, ...  \n\n* BSD: DragonFlyBSD, FreeBSD, NetBSD, OpenBSD, GhostBSD, TrueOS, NomadBSD\n\n* OS-X: Snow Leopard\n\n* Windows: Win10, Win8.1, Win7, WinXP, Win2019, Win2016, Win2012, Win2008, Win2000\n\n* WSL-1.0: Alpine, Debian, KaliLinux, openSUSE, SLES, Ubuntu\n\n* Cygwin\n\n* UNIX: Solaris10, Solaris11\n\n* Minix: Minix3\n\n* ReactOS\n\n**Network and Security**\n\n* Network Devices: OpenWRT\n\n* Security: KaliLinux, pfSense, BlackArch, ParrotOS, Pentoo\n\n**OS on Embedded Devices**\n\n* RaspberryPI: ArchLinux, CentOS, OpenBSD, OpenWRT, Raspbian\n\n* ASUS-TinkerBoard: Armbian\n\nCurrent Release\n---------------\n\nMajor Changes:\n\n* Initial release.\n\n\nToDo:\n\n* MicroPython, CircuitPython\n\nKnown Issues:\n\n* not yet\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnocan%2Fnamedtupledefs3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnocan%2Fnamedtupledefs3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnocan%2Fnamedtupledefs3/lists"}