{ "info": { "author": "Nathan Van Gheem", "author_email": "vangheem@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# JSON Schema Application Environment Configuration and Validation\n\nThis package allows you to validate application environment variables that are\nused for configuration with JSON schemas.\n\nIt is extremely useful to use with Docker/kubernetes where you might have\nquite a bit of configuration originating from environment variables; however,\nit also provides a nice generic way to define and validate any application\nconfiguration with JSON Schema.\n\n\n## Usage\n\nFirst, define a JSON Schema file(`env-schema.json`):\n\n```json\n{\n \"$schema\": \"http://json-schema.org/draft-07/schema#\", \n \"type\": \"object\",\n \n \"properties\": {\n \"db_uri\": {\n \"type\": \"string\",\n \"title\": \"AMQP host\"\n }\n },\n \"required\": [\"db_uri\"]\n}\n```\n\nThen, validate your environment config(`export DB_URI=postgresql://localhost:5432`):\n\n```python\nimport enviral\nsettings = enviral.validate_env('env-schema.json')\nsettings['db_uri']\n```\n\nValidate with multiple files:\n\n```python\nimport enviral\nsettings = enviral.validate_env('env-schema.json', 'package:validation-file.json')\n```\n\nYou can also validate existing objects against JSON schema files:\n\n```python\nimport enviral\nenviral.validate_object({\"db_uri\": \"postgresql://localhost:5432\"}, 'env-schema.json')\n```\n\nOr command line validate:\n\n```bash\njson-schema-env-validator env-schema.json package:validation-file.json\n```\n\n## Development\n\n```bash\npip install -r requirements.txt\npip install -e .\n./bin/pre-commit install\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/onna/enviral", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "json-schema-env-validator", "package_url": "https://pypi.org/project/json-schema-env-validator/", "platform": "", "project_url": "https://pypi.org/project/json-schema-env-validator/", "project_urls": { "Homepage": "https://github.com/onna/enviral" }, "release_url": "https://pypi.org/project/json-schema-env-validator/1.0.4/", "requires_dist": null, "requires_python": "", "summary": "", "version": "1.0.4" }, "last_serial": 5924899, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "09904048deb18aedbe5789501a1c8425", "sha256": "c7d55935451a388486b8ca27a300dacdcf3d31850cf3cde846c47e74ec943911" }, "downloads": -1, "filename": "json_schema_env_validator-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "09904048deb18aedbe5789501a1c8425", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4171, "upload_time": "2019-09-26T18:39:28", "url": "https://files.pythonhosted.org/packages/b6/d4/5972a534e6490209f55ab7c1d82d0e70bcaf6e2b4accacabdf8c930f3c54/json_schema_env_validator-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "04bdbe3ac8446224474c18bd99964ab2", "sha256": "38b86419de33e59837803b0d6bce7d1b67a6a72e48ac3bf0e0164a5d3fd4aa25" }, "downloads": -1, "filename": "json-schema-env-validator-1.0.0.tar.gz", "has_sig": false, "md5_digest": "04bdbe3ac8446224474c18bd99964ab2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4751, "upload_time": "2019-09-26T18:39:26", "url": "https://files.pythonhosted.org/packages/c5/91/e3aa72100a69a6f7d2d46b40909616241caf7a50acd467d209b69448b256/json-schema-env-validator-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "3ffc2b2ddf94b1eb45c7c326c1741148", "sha256": "84b9992e116adb166b4f73828a240b7ae15af3e92e2c1f36a32dca8a299954b1" }, "downloads": -1, "filename": "json_schema_env_validator-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3ffc2b2ddf94b1eb45c7c326c1741148", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4181, "upload_time": "2019-09-27T01:55:10", "url": "https://files.pythonhosted.org/packages/3b/d2/65f2d6d98cc9324b413a2a2d9674c6c8d415d149ec52200d421b9e9bd615/json_schema_env_validator-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d585fccbac975e1fb00adf5a7e18ff4a", "sha256": "b54b1aaa788abe3b97a025bfa0a345e758256c37bad55c13f7979541bf8e2d27" }, "downloads": -1, "filename": "json-schema-env-validator-1.0.1.tar.gz", "has_sig": false, "md5_digest": "d585fccbac975e1fb00adf5a7e18ff4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4771, "upload_time": "2019-09-27T01:55:08", "url": "https://files.pythonhosted.org/packages/5d/94/d23732ffb96a509decfca8c865820f2161735ba91b2c55bdaf0cbcf1d2c7/json-schema-env-validator-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "2b925aadb79c24752e51f1c74691fb50", "sha256": "f819c10222e23218c2de55db518c4b7404d960f0873c7d702845e5e239f89c54" }, "downloads": -1, "filename": "json_schema_env_validator-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "2b925aadb79c24752e51f1c74691fb50", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5404, "upload_time": "2019-09-27T20:29:24", "url": "https://files.pythonhosted.org/packages/98/6f/252fdaa56ebe91ca5ed06ba8ec548498aa98ae87e0a615a2035aca34a50f/json_schema_env_validator-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bc997dcdd83d81423c5b20a0f81db0b1", "sha256": "3f97b0c122e568e6400c63b8c4ce1be627a4f3c0eb93df354c7cffcf4a1adca9" }, "downloads": -1, "filename": "json-schema-env-validator-1.0.2.tar.gz", "has_sig": false, "md5_digest": "bc997dcdd83d81423c5b20a0f81db0b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5849, "upload_time": "2019-09-27T20:29:22", "url": "https://files.pythonhosted.org/packages/07/89/6616ed8c913dc6b12110c0e1436393e235d5ac215254a4c487ec8f0f96ec/json-schema-env-validator-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "68709a6c08fe8fcf9fa7d815d7cc5404", "sha256": "ec9bc401bcde04022fee627d06f55b385e732fb7e5b11530756197986fd435f4" }, "downloads": -1, "filename": "json_schema_env_validator-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "68709a6c08fe8fcf9fa7d815d7cc5404", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5546, "upload_time": "2019-09-29T18:12:34", "url": "https://files.pythonhosted.org/packages/73/de/cd11384362bf66c7fdad483e47463c1f6bcfd4957121856e3c21897ce8b4/json_schema_env_validator-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "af2e3e0328242be610c3230dcbb10fc9", "sha256": "d7047a4f71b4d2a351ea9f8e1900025705851eed03034cd29b51c358f6c84547" }, "downloads": -1, "filename": "json-schema-env-validator-1.0.3.tar.gz", "has_sig": false, "md5_digest": "af2e3e0328242be610c3230dcbb10fc9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6057, "upload_time": "2019-09-29T18:12:33", "url": "https://files.pythonhosted.org/packages/41/5d/4f05c5f3dcc90e4b1581f1d6386d6e638fd51b758c3239e5b1f47f5d02da/json-schema-env-validator-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "397c1b0cd261bb1842efd6d9d860fb42", "sha256": "c87d77cd4ea6f8aa416d950bbd9e2449487e6040ba4f06596548ecea575f3a2b" }, "downloads": -1, "filename": "json_schema_env_validator-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "397c1b0cd261bb1842efd6d9d860fb42", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5543, "upload_time": "2019-10-03T19:15:56", "url": "https://files.pythonhosted.org/packages/8b/4c/0df08a56e9a71b62fc851d781e9f29e651b5e4260e8029538cc05b6a5518/json_schema_env_validator-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0b6d39d3975d1617168af6406d7e0dcb", "sha256": "af4ec635102b200b54ea047dcb8a44de03fa2e749afc18ee76b435ac3636a353" }, "downloads": -1, "filename": "json-schema-env-validator-1.0.4.tar.gz", "has_sig": false, "md5_digest": "0b6d39d3975d1617168af6406d7e0dcb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6104, "upload_time": "2019-10-03T19:15:55", "url": "https://files.pythonhosted.org/packages/5c/30/cc391e5c3267ae726bc39ae6de876e6364ab11bd23fab1fcb22b81d35b07/json-schema-env-validator-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "397c1b0cd261bb1842efd6d9d860fb42", "sha256": "c87d77cd4ea6f8aa416d950bbd9e2449487e6040ba4f06596548ecea575f3a2b" }, "downloads": -1, "filename": "json_schema_env_validator-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "397c1b0cd261bb1842efd6d9d860fb42", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5543, "upload_time": "2019-10-03T19:15:56", "url": "https://files.pythonhosted.org/packages/8b/4c/0df08a56e9a71b62fc851d781e9f29e651b5e4260e8029538cc05b6a5518/json_schema_env_validator-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0b6d39d3975d1617168af6406d7e0dcb", "sha256": "af4ec635102b200b54ea047dcb8a44de03fa2e749afc18ee76b435ac3636a353" }, "downloads": -1, "filename": "json-schema-env-validator-1.0.4.tar.gz", "has_sig": false, "md5_digest": "0b6d39d3975d1617168af6406d7e0dcb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6104, "upload_time": "2019-10-03T19:15:55", "url": "https://files.pythonhosted.org/packages/5c/30/cc391e5c3267ae726bc39ae6de876e6364ab11bd23fab1fcb22b81d35b07/json-schema-env-validator-1.0.4.tar.gz" } ] }