{ "info": { "author": "Andrei Gramakov", "author_email": "mail@agramakov.me", "bugtrack_url": null, "classifiers": [], "description": "# dot_to_osscript\n\nThe most universal way to work with .env files!\n\nGenerate script based on .env and files, so it could be imported to the current process\n\n## Install\n\n```\npip install dot-to-osscript\n```\n\n## Usage\nUsage: `python -m dot_to_osscript [OPTIONS]`\n\nOptions:\n\n```\n`-p`, `--powershell` Generate .env.ps1\n`-s`, `--shell` Generate .env.sh\n`-e`, `--env-file TEXT` Input file [default: ./.env]\n`-a`, `--path-append` Appent to existing Path variable\n```\n\n## Example\n\nWe have some directory (./) with `.env` file:\n\n```\nMSYSTEM=mingw32\nTEST_var=\"TEST VAL\"\nPATH=/my_app/bin\n```\n\nWe execute: `python -m dot_to_osscript -psa` and get :\n\n.env.ps1\n```\nSet-Variable -Name 'MSYSTEM' -Value 'mingw32'\nSet-Variable -Name 'TEST_var' -Value '\"TEST VAL\"'\nSet-Variable -Name 'Path' -Value '$env:Path;/my_app/bin'\n```\n\n.env.sh\n```\nMSYSTEM='mingw32'\nTEST_var='\"TEST VAL\"'\nPATH='$PATH:/my_app/bin'\n```\n\nWe could import files to the current command line process:\n\nFor PowerShell: `. .env.ps1`\n\nFor bash: `source .env.sh`\n\n## Tip\nThe best idea is to use oneliners.\n\nPowershell:\n```\npython -m dot_to_osscript -pa; . .env.ps1; Remove-Item .env.ps1\n```\n\nbash:\n```\npython -m dot_to_osscript -pa; source .env.sh; rm ./.env.sh\n```\n\nIt generate ps1/sh file, import it and remove the file.\n\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/an-dr/dot_to_osscript", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "dot-to-osscript", "package_url": "https://pypi.org/project/dot-to-osscript/", "platform": "", "project_url": "https://pypi.org/project/dot-to-osscript/", "project_urls": { "Homepage": "https://github.com/an-dr/dot_to_osscript" }, "release_url": "https://pypi.org/project/dot-to-osscript/0.3.1/", "requires_dist": [ "click", "future" ], "requires_python": ">=3", "summary": "Generate sh and ps1 scripts from .env files to apply for the process", "version": "0.3.1" }, "last_serial": 5664064, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "fd0b5c5deb6b833141b279f6d7495176", "sha256": "84d894aaf42ce64c3881da8f4ac7dc7182741b528e4016992d690e3d90fe094d" }, "downloads": -1, "filename": "dot_to_osscript-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "fd0b5c5deb6b833141b279f6d7495176", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 4034, "upload_time": "2019-08-11T13:20:51", "url": "https://files.pythonhosted.org/packages/7f/e3/37c65be93303310f9541b76aba2bc1ad507af542402bd9b0f63b5c15390a/dot_to_osscript-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9a46abd3cb15d8109a11e0e9afeab322", "sha256": "a5ce592769f58d17f5c59ce9c1d2910542bd528ae717ccde08bb9372612ff2e7" }, "downloads": -1, "filename": "dot_to_osscript-0.2.tar.gz", "has_sig": false, "md5_digest": "9a46abd3cb15d8109a11e0e9afeab322", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 2542, "upload_time": "2019-08-11T13:20:54", "url": "https://files.pythonhosted.org/packages/d8/09/1b8697344d9a77f0b9ce4cf8ee89aa55860c3e03f8c46d866a1c8e746b99/dot_to_osscript-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "08365e73a5479f7fe7f6bdc50e843336", "sha256": "1852c14b365505ce17cf5bb432f1fd0d30ffaf912f4358aa8f5ab7ac34334532" }, "downloads": -1, "filename": "dot_to_osscript-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "08365e73a5479f7fe7f6bdc50e843336", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 4631, "upload_time": "2019-08-11T13:30:48", "url": "https://files.pythonhosted.org/packages/0b/95/b71ce9e69122235f4d173ac8a5a0fb717057cc58894578256d4f96345e9c/dot_to_osscript-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f8422d747b01eb0b2f8eabae6d66fc4c", "sha256": "526ed373a77a1e1fd7ec31e8f60082d8838f7bd8fa0c29ec446bc6450c7a2a7e" }, "downloads": -1, "filename": "dot_to_osscript-0.2.1.tar.gz", "has_sig": false, "md5_digest": "f8422d747b01eb0b2f8eabae6d66fc4c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 2889, "upload_time": "2019-08-11T13:30:50", "url": "https://files.pythonhosted.org/packages/de/73/f8302cfbc48e0ee0f4279ad2e561aa9a37b7bb669dfec8b53bb6936afb33/dot_to_osscript-0.2.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "aecaf575e83b3da44c4415732b4b5744", "sha256": "996b4689f13305dcb4747f9a9ba8193f2203fd02cdc28d2de7b2e4a8521bab0f" }, "downloads": -1, "filename": "dot_to_osscript-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "aecaf575e83b3da44c4415732b4b5744", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 4653, "upload_time": "2019-08-11T14:20:55", "url": "https://files.pythonhosted.org/packages/1b/4b/400bcc00777bf3dd3de7f558a27ef598b7308f70647f4d480ba8eb51874c/dot_to_osscript-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4fe980b82e3aa311a070dceac90d4d52", "sha256": "004a7240c7e586ff0d900acd24f18a7cf5633f49dda2326f811ac594bf156f8b" }, "downloads": -1, "filename": "dot_to_osscript-0.3.tar.gz", "has_sig": false, "md5_digest": "4fe980b82e3aa311a070dceac90d4d52", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 2927, "upload_time": "2019-08-11T14:20:57", "url": "https://files.pythonhosted.org/packages/fd/6a/0055ff160221cb23b2a5e3d1fd9cf07895b1baffc2beec48f091ee4de3b4/dot_to_osscript-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "f98f0dba80a303dba89a29451fce7b87", "sha256": "d0ab4bc9bf231adc34929f9cc24f0ecdebad0d39d974722f575349544bde3624" }, "downloads": -1, "filename": "dot_to_osscript-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f98f0dba80a303dba89a29451fce7b87", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 4676, "upload_time": "2019-08-12T04:50:25", "url": "https://files.pythonhosted.org/packages/02/26/32dec7de1ced47c1fdbc1e52082c172b391cc8cdc0daf122828b99fa28fd/dot_to_osscript-0.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7d9aadab3972b925fbd0205ec6b9eaa7", "sha256": "95e17a85fc61a74038fd4634d3f28d4d89e26788170a4735d7f8f1022ec9cd37" }, "downloads": -1, "filename": "dot_to_osscript-0.3.1.tar.gz", "has_sig": false, "md5_digest": "7d9aadab3972b925fbd0205ec6b9eaa7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 2938, "upload_time": "2019-08-12T04:50:28", "url": "https://files.pythonhosted.org/packages/dd/55/74a7692e8d5e77236cfb1ded6ae2db2f2ef55ae70d77aa5059ebb6d74aae/dot_to_osscript-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f98f0dba80a303dba89a29451fce7b87", "sha256": "d0ab4bc9bf231adc34929f9cc24f0ecdebad0d39d974722f575349544bde3624" }, "downloads": -1, "filename": "dot_to_osscript-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f98f0dba80a303dba89a29451fce7b87", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 4676, "upload_time": "2019-08-12T04:50:25", "url": "https://files.pythonhosted.org/packages/02/26/32dec7de1ced47c1fdbc1e52082c172b391cc8cdc0daf122828b99fa28fd/dot_to_osscript-0.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7d9aadab3972b925fbd0205ec6b9eaa7", "sha256": "95e17a85fc61a74038fd4634d3f28d4d89e26788170a4735d7f8f1022ec9cd37" }, "downloads": -1, "filename": "dot_to_osscript-0.3.1.tar.gz", "has_sig": false, "md5_digest": "7d9aadab3972b925fbd0205ec6b9eaa7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 2938, "upload_time": "2019-08-12T04:50:28", "url": "https://files.pythonhosted.org/packages/dd/55/74a7692e8d5e77236cfb1ded6ae2db2f2ef55ae70d77aa5059ebb6d74aae/dot_to_osscript-0.3.1.tar.gz" } ] }