{ "info": { "author": "kpe", "author_email": "kpe.git@gmailbox.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "Params\n======\n\n|Build Status| |Coverage Status| |Version Status| |Python Versions|\n\nA type safe dictionary class in python.\n\n\nLICENSE\n-------\n\nMIT. See `License File `_.\n\nInstall\n-------\n\n``params`` is on the Python Package Index (PyPI):\n\n::\n\n pip install py-params\n\n\nUsage\n-----\n\n``Params`` instances are ``dict`` s for which default values could be\nprovided as class level fields when subclassing `Params`.\nThose default values could than be overridden in instances of the class,\nby specifying the values in the constructor.\n\nAccessing parameters not defined as class level variable\nwould raise an ``AttributeError``.\n\n.. code:: python\n\n >>> from params import Params\n\n >>> class TestParams(Params):\n ... param_a = 'a'\n ... param_b = True\n\n >>> args=TestParams() ## using defaults\n >>> args\n {'param_a': 1, 'param_b': True}\n\n >>> TestParams(param_a='c') ## override param_a\n {'param_a': 'c', 'param_b': True}\n\n >>> args.param_a = 2 ## access as attribute or key\n >>> args[\"param_a\"] = 3\n >>> args.param_a == args[\"param_a\"]\n True\n\n >>> args.param_c\n AttributeError: 'TestParams' object has no attribute 'test_c'\n\n >>> args.param_c = 3\n AttributeError: Setting unexpected parameter 'param_c' in Params instance 'TestParams'\n\n >>> args[\"param_d\"] = 4\n AttributeError: Setting unexpected parameter 'param_d' in Params instance 'TestParams'\n\n\n\n.. |Build Status| image:: https://travis-ci.org/kpe/py-params.svg?branch=master\n :target: https://travis-ci.org/kpe/py-params\n.. |Coverage Status| image:: https://coveralls.io/repos/kpe/py-params/badge.svg?branch=master\n :target: https://coveralls.io/r/kpe/py-params\n.. |Version Status| image:: https://badge.fury.io/py/py-params.svg\n :target: https://badge.fury.io/py/py-params\n.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/py-params.svg\n\nResources\n---------\n\nAs an illustration of how ``Params`` could be used to reduce boilerplate code check:\n\n- `kpe/params-flow`_ - utilities for reducing keras boilerplate code in custom layers\n- `kpe/bert-for-tf2`_ - BERT implementation using the TensorFlow 2 Keras API\n\n.. _`kpe/params-flow`: https://github.com/kpe/params-flow\n.. _`kpe/bert-for-tf2`: https://github.com/kpe/bert-for-tf2", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kpe/py-params/", "keywords": "dict dictionary utility parameters flags arguments", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "py-params", "package_url": "https://pypi.org/project/py-params/", "platform": "", "project_url": "https://pypi.org/project/py-params/", "project_urls": { "Homepage": "https://github.com/kpe/py-params/" }, "release_url": "https://pypi.org/project/py-params/0.6.4/", "requires_dist": null, "requires_python": ">=3.4", "summary": "A type safe dictionary in python", "version": "0.6.4" }, "last_serial": 5607842, "releases": { "0.1.5": [ { "comment_text": "", "digests": { "md5": "36594c85cc7df93196898250607c4bda", "sha256": "900cc38e42c59b741c6d6d598f6c250b083843715630dfb1303c19edce3f1f89" }, "downloads": -1, "filename": "py_params-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "36594c85cc7df93196898250607c4bda", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 4359, "upload_time": "2019-03-16T03:18:01", "url": "https://files.pythonhosted.org/packages/4c/c8/63510ed517ebbc4f8c82da13f415e89bdfd8369a792c7d2482a0b430cebc/py_params-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a4672311e4e89aa91eea411ad2bb6fff", "sha256": "76cf004c3103f0740a7a51fe2cffe9df3d50278ef5802c97f9c552ab59a049be" }, "downloads": -1, "filename": "py-params-0.1.5.tar.gz", "has_sig": false, "md5_digest": "a4672311e4e89aa91eea411ad2bb6fff", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3262, "upload_time": "2019-03-16T03:18:04", "url": "https://files.pythonhosted.org/packages/f1/22/aee9704c335bb2087b7e6306a3c50374f35def86f39dc0e8ce43e0a2498e/py-params-0.1.5.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "85461aea1c0f04be46216284842e4f68", "sha256": "cb5bb6d12565edcf590e3b1a36588516226769c171c09bf111c68e7d2d896d30" }, "downloads": -1, "filename": "py-params-0.1.9.tar.gz", "has_sig": false, "md5_digest": "85461aea1c0f04be46216284842e4f68", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3356, "upload_time": "2019-03-16T03:49:22", "url": "https://files.pythonhosted.org/packages/cc/f3/b6946e1993957f34b346ea4981d62edecbda51861eaf46b98c90b0034def/py-params-0.1.9.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "00fa6f094ddef3f6da56fc68a465ee16", "sha256": "6dbdab99ffdc6d6e85d3527cd1103f31e2b158f8fddbe0969e818de1e7ef0d5a" }, "downloads": -1, "filename": "py-params-0.2.0.tar.gz", "has_sig": false, "md5_digest": "00fa6f094ddef3f6da56fc68a465ee16", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3358, "upload_time": "2019-03-16T03:55:08", "url": "https://files.pythonhosted.org/packages/ca/a0/4642ef286886301f549592fc074d1b32c3eabbd076219ad162545a62f5fc/py-params-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "9d27fbb1a95febd1726c32f05d98af9c", "sha256": "b2fb487ec90e2bccc4a809c6c69fc70465d4c151bf02de28351ceb582e8ef692" }, "downloads": -1, "filename": "py-params-0.2.1.tar.gz", "has_sig": false, "md5_digest": "9d27fbb1a95febd1726c32f05d98af9c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3359, "upload_time": "2019-03-16T04:06:26", "url": "https://files.pythonhosted.org/packages/c5/f3/dd2b865291d569098493a687cc51d04af668bc14622450f088b6f9fb432e/py-params-0.2.1.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "e397c4c0cb5b20a73efe42e411f3db8f", "sha256": "d5306056cb5f9d383835c4578bdd47c78e9318ecb264235df289cb6e93827af8" }, "downloads": -1, "filename": "py-params-0.2.4.tar.gz", "has_sig": false, "md5_digest": "e397c4c0cb5b20a73efe42e411f3db8f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3359, "upload_time": "2019-03-16T04:29:28", "url": "https://files.pythonhosted.org/packages/fd/01/4998b436561e8c6b9c5f42fc5b995b3b536f9b1516a4ab36c3467f5e7618/py-params-0.2.4.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "238c0b3b6b1be4018706f4b19326c19a", "sha256": "e0439175462c33493f44508a9dd3353801b8d03b0698027b7852ab4256981b24" }, "downloads": -1, "filename": "py-params-0.3.1.tar.gz", "has_sig": false, "md5_digest": "238c0b3b6b1be4018706f4b19326c19a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3533, "upload_time": "2019-03-21T14:24:29", "url": "https://files.pythonhosted.org/packages/59/ee/6b260950a9d65268706a282d6762bec3f0d1216d21d904d7442b78d85359/py-params-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "b6a3b0637ce51f0f7be9170f8afccecd", "sha256": "fb31c11d882c38f36f38fff94283228859dfc63d6562d5d2843f4f9f28b786a0" }, "downloads": -1, "filename": "py-params-0.4.0.tar.gz", "has_sig": false, "md5_digest": "b6a3b0637ce51f0f7be9170f8afccecd", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3542, "upload_time": "2019-03-22T13:01:22", "url": "https://files.pythonhosted.org/packages/03/a6/e38b43387e4c0dc2d0a23570fb21c796f4afdd3de468836a5898b89f6c2c/py-params-0.4.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "5c6c78c65b5edcc2b428febcb64571fd", "sha256": "6ebd0b4aaca2588dd59844299dedbe22d909359f8687c2472ab456105757566b" }, "downloads": -1, "filename": "py-params-0.5.1.tar.gz", "has_sig": false, "md5_digest": "5c6c78c65b5edcc2b428febcb64571fd", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3611, "upload_time": "2019-03-27T14:53:00", "url": "https://files.pythonhosted.org/packages/89/2b/a295e93ab3dd1de7ef1aa37fa12d5c43d3673f85decae8e0a9e2817e63f2/py-params-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "5b1e99ed071a9cae55646ffa2f5f775f", "sha256": "c52f16fde87628865847f38ae35732f736e37301d6df03160c7a9fbf33e1da0e" }, "downloads": -1, "filename": "py-params-0.5.2.tar.gz", "has_sig": false, "md5_digest": "5b1e99ed071a9cae55646ffa2f5f775f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3608, "upload_time": "2019-05-22T07:11:24", "url": "https://files.pythonhosted.org/packages/ff/7b/6680cccfd1e92afe9833c0fea5870ab6e33aee2f1dc2431993367c4110cc/py-params-0.5.2.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "f15e6677cc04775b303fb03cff5fbbe9", "sha256": "247a12a459b454b1e781ceb6545eed697b113e618ace0950770638e7e65d8c63" }, "downloads": -1, "filename": "py-params-0.6.0.tar.gz", "has_sig": false, "md5_digest": "f15e6677cc04775b303fb03cff5fbbe9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 3614, "upload_time": "2019-05-23T11:05:59", "url": "https://files.pythonhosted.org/packages/e2/57/90902ec2c2a057b4319f0da29846af5d76cb56f73723905d81d9013d66f6/py-params-0.6.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "2c109faf4518bce057c8dfa2ded8037f", "sha256": "9412beacf8acc8b9b2c74aad25e276f5223f60fe3ca0ad3ab3b278f55efa57fb" }, "downloads": -1, "filename": "py-params-0.6.1.tar.gz", "has_sig": false, "md5_digest": "2c109faf4518bce057c8dfa2ded8037f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 3904, "upload_time": "2019-05-23T12:57:07", "url": "https://files.pythonhosted.org/packages/34/7a/28f83f0c7e0dcec61a8a1ee766bdda0d9a2c56b0af0019ab7fc86f17e858/py-params-0.6.1.tar.gz" } ], "0.6.2": [ { "comment_text": "", "digests": { "md5": "e7d87246aa4c688ab01d50f497ccaa4e", "sha256": "dd5dc9b178213bfcff9bc052f1f2450993c538ea46c4f0c5bbb321be83f87b3f" }, "downloads": -1, "filename": "py-params-0.6.2.tar.gz", "has_sig": false, "md5_digest": "e7d87246aa4c688ab01d50f497ccaa4e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 3990, "upload_time": "2019-05-23T13:59:36", "url": "https://files.pythonhosted.org/packages/64/c5/18b1d3ac6f403bd1daae951f40b8a284c7b28fccc3b50f14ff7dbd99c4a5/py-params-0.6.2.tar.gz" } ], "0.6.3": [ { "comment_text": "", "digests": { "md5": "5e74798d805a164ba5241d9ac13cb4f1", "sha256": "375e6a512a1858e1d12bbf85665169d147a88942d4da80f1cf33e582c0ff724c" }, "downloads": -1, "filename": "py-params-0.6.3.tar.gz", "has_sig": false, "md5_digest": "5e74798d805a164ba5241d9ac13cb4f1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 4082, "upload_time": "2019-05-23T14:52:56", "url": "https://files.pythonhosted.org/packages/a3/d0/811e7380e20724c2700c9afa9cf439aaa2031c3c21db0c26d2df9afc331f/py-params-0.6.3.tar.gz" } ], "0.6.4": [ { "comment_text": "", "digests": { "md5": "567e1276441fd6099e177eca4519524c", "sha256": "4b5f473ce1569912148d4f1d8c13fb9ba482b1cec4e0a5259d2f62583b666703" }, "downloads": -1, "filename": "py-params-0.6.4.tar.gz", "has_sig": false, "md5_digest": "567e1276441fd6099e177eca4519524c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 4070, "upload_time": "2019-07-30T13:56:49", "url": "https://files.pythonhosted.org/packages/9f/1c/fb033b46949a0efb8e58b2297b46db535f37816af53b3b0915c7b143c430/py-params-0.6.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "567e1276441fd6099e177eca4519524c", "sha256": "4b5f473ce1569912148d4f1d8c13fb9ba482b1cec4e0a5259d2f62583b666703" }, "downloads": -1, "filename": "py-params-0.6.4.tar.gz", "has_sig": false, "md5_digest": "567e1276441fd6099e177eca4519524c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 4070, "upload_time": "2019-07-30T13:56:49", "url": "https://files.pythonhosted.org/packages/9f/1c/fb033b46949a0efb8e58b2297b46db535f37816af53b3b0915c7b143c430/py-params-0.6.4.tar.gz" } ] }