{"id":19129511,"url":"https://github.com/launchbynttdata/magicdust","last_synced_at":"2025-06-10T23:05:23.276Z","repository":{"id":228431570,"uuid":"773973052","full_name":"launchbynttdata/magicdust","owner":"launchbynttdata","description":"Launch's magicdust templating tool","archived":false,"fork":false,"pushed_at":"2024-03-18T20:09:04.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-22T16:18:13.422Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/launchbynttdata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-18T18:08:49.000Z","updated_at":"2024-03-18T18:11:11.000Z","dependencies_parsed_at":"2024-03-18T20:12:44.881Z","dependency_job_id":"92558633-c5bb-4973-8989-ff405179efae","html_url":"https://github.com/launchbynttdata/magicdust","commit_stats":null,"previous_names":["launchbynttdata/magicdust"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Fmagicdust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Fmagicdust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Fmagicdust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Fmagicdust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/launchbynttdata","download_url":"https://codeload.github.com/launchbynttdata/magicdust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Fmagicdust/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259166902,"owners_count":22815587,"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":[],"created_at":"2024-11-09T06:07:40.985Z","updated_at":"2025-06-10T23:05:23.251Z","avatar_url":"https://github.com/launchbynttdata.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# magicdust\n\nThis project contains all the python helpers to be used for Nexient designed:\nTerraForm Modules and TerraGrunt Templates\nAWS cloud resource provisioning in json or yaml data structures\nCould be extended to support dynamically generating any data structure type describing a deployment to some API.\n\nUser can install this repo as a python module and use it in their code. This could also be used as a CLI.\n\u003cbr\u003e[GitHub] https://github.com/launchbynttdata/magicdust\n\n## Usage\n* Lists down all the commands:\n`magicdust -h`\n* List down all the parameters of the command __jinja__:\n`magicdust jinja -h`\n* Render a jinja template for subnets\n\n```buildoutcfg\nmagicdust jinja sprinkle -f aws_infra_values.yaml --environment-type qa -o json -t subnets.yaml.jinja2\n```\n\n### Parameters Description:\n```buildoutcfg\nmagicdust jinja -h\n```\n```buildoutcfg\n\nusage: magicdust jinja [-h] --values VALUES --environment-type ENVIRONMENT_TYPE\n                --template TEMPLATE [--output {yaml,json}]\n                [--env-prefix ENV_PREFIX]\n                {sprinkle}\n\npositional arguments:\n  {sprinkle}              Type of action\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --values VALUES, -f VALUES\n                        Path to the input yaml values file\n  --environment-type ENVIRONMENT_TYPE\n                        Deployment environment like qa|uat|prod\n  --template TEMPLATE, -t TEMPLATE\n                        Absolute or relative path to the template file. e.g.\n                        subnets.yaml.jinja2\n  --output {yaml,json}, -o {yaml,json}\n                        Format of the output. Either yaml or json\n  --env-prefix ENV_PREFIX, -p ENV_PREFIX\n                        Environment variables prefix for auto discovery of\n                        dynamic variables during template rendering\n```\n\n```buildoutcfg\nmagicdust aws -h\n```\n```buildoutcfg\nusage: magicdust aws [-h] --environment-type ENVIRONMENT_TYPE --values VALUES\n              --templates-dir TEMPLATES_DIR [--dry-run]\n              {ecs-fargate} {create,destroy}\n\npositional arguments:\n  {ecs-fargate}         Name of the infrastructure to install\n  {create,destroy}      Choose between create or destroy\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --environment-type ENVIRONMENT_TYPE\n                        Deployment environment like qa|uat|prod\n  --values VALUES, -f VALUES\n                        Path to the input yaml values file\n  --templates-dir TEMPLATES_DIR, -d TEMPLATES_DIR\n                        Root directory where the templates are located. Its\n                        sub-dirs should be ec2, ecs, etc.\n  --dry-run             Dry run for delete action\n```\n\n## Installation\n\n### Create a virtual environment\n```buildoutcfg\npython -m venv \u003cpath_to_venv\u003e\n# Example will create a virtual env in the directory venv in home dir of the user\npython -m venv ~/venv\n\n# Activate a virtual env\nsource venv/bin/activate\n\n# Deactivate a virtual env\ndeactivate\n```\n\nThis module could be installed as a pip package.\n```buildoutcfg\n# Clone the repository\ngit clone https://github.com/launchbynttdata/magicdust\n# cd into the repo\ncd magicdust\n# install the module\npython setup.py install\n# alternate installation\npip install .\n```\n\n__Note:__ in case of using python inside asdf, perform a `asdf reshim`\u003cbr\u003e\nUse `pip list` to find the installed package by the name: _magicdust_\n\n### Testing\n\n- Ensure that all tests is prefixed `test_*.py`\n- Run `pytest` to run all python unit tests\n- To run a specific test run the command `pytest -q file_directory`\n\n### Linting\n\n- `pylint`: outputs a list of arguments that can be run with this command\n- `pylint [filename].py`: lints specific python file\n- `pylint *`: runs linting for the entire project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchbynttdata%2Fmagicdust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchbynttdata%2Fmagicdust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchbynttdata%2Fmagicdust/lists"}