{"id":15070196,"url":"https://github.com/difu/tnsmaster","last_synced_at":"2025-04-10T17:52:09.878Z","repository":{"id":70985606,"uuid":"45209721","full_name":"difu/tnsmaster","owner":"difu","description":"Toolset for mastering tnsnames","archived":false,"fork":false,"pushed_at":"2016-07-06T19:39:36.000Z","size":114,"stargazers_count":15,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T15:41:48.504Z","etag":null,"topics":["oracle","oracle-database","tns","tnsnames"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/difu.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2015-10-29T20:49:48.000Z","updated_at":"2024-04-18T20:05:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"4467c7f4-6888-4d49-b067-57e88e330d72","html_url":"https://github.com/difu/tnsmaster","commit_stats":{"total_commits":69,"total_committers":5,"mean_commits":13.8,"dds":"0.18840579710144922","last_synced_commit":"506a7f39ff813ca5465e8d7c3bf31f52eeef9e34"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/difu%2Ftnsmaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/difu%2Ftnsmaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/difu%2Ftnsmaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/difu%2Ftnsmaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/difu","download_url":"https://codeload.github.com/difu/tnsmaster/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248262434,"owners_count":21074308,"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":["oracle","oracle-database","tns","tnsnames"],"created_at":"2024-09-25T02:00:45.507Z","updated_at":"2025-04-10T17:52:09.861Z","avatar_url":"https://github.com/difu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=========\ntnsmaster\n=========\n\nToolset for mastering tnsnames.ora\n\n.. contents::\n\nTravis Status\n=============\n\n.. image:: https://travis-ci.org/difu/tnsmaster.svg\n    :target: https://travis-ci.org/difu/tnsmaster\n.. image:: https://coveralls.io/repos/github/difu/tnsmaster/badge.svg?branch=master\n    :target: https://coveralls.io/github/difu/tnsmaster?branch=master\n\n.. important::\n  At the moment ``tnsmaster`` is in the development phase. Not all features are\n  working. But be encouraged to participate!\n\n``tnsmaster``'s goal is to be the Swiss army knife for creating and maintaining\n``tnsname.ora`` files.\n\nFeatures\n========\n\n* Syntax verification\n    - check for correct syntax before rollout\n* Semantic verification assistance\n    - create and extract easy-to-test components that let you connect easily to\n      each service node (Dataguard, RAC) directly\n\n* Apply different styles to existing ``tnsnames.ora``\n    - consistent upper/lower cases of keywords or values\n    - neat indentation\n    - transform entries to one line per alias or alias list for easy scripting\n      and copy/pasting to application server configurations\n\n\nUsage\n=====\n\nQuickstart\n----------\n\n- To format a tnsnames.ora file with default settings::\n\n    python3 formatter.py path/to/tnsnames.ora\n\n  A neat indented tnsnnames.ora will be printed to stdout.\n\n- To extract all aliases from a tnsnames.ora::\n\n    python3 aliases.py path/to/tnsnames.ora\n\n  All aliases will be printed to stdout.\n\n\nSemantic verification assist\n----------------------------\n\nConsider this address list of a tnsnames.ora file::\n\n    ...\n            (load_balance=yes)\n            (address_list=\n                (address=(protocol=tcp)(host=host1.domain.foo)(port=1522))\n                (address=(protocol=tcp)(host=host2.domain.foo)(port=1524))\n                (address=(protocol=tcp)(host=host3.someotherdomain.foo)(port=1522))\n                (address=(protocol=tcp)(host=host1.someotherdomain.foo)(port=9210))\n                (address=(protocol=tcp)(host=host2.farawaydomain.foo)(port=1522))\n            )\n    ...\n\nIt is hard to test if all connections are correct and the destination can be\nreached, because the client will choose an address randomly. ``tnsmaster`` will\ncreate a single tnsnames file for each address. You can now connect to this\nspecific destination and test if it is reachable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdifu%2Ftnsmaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdifu%2Ftnsmaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdifu%2Ftnsmaster/lists"}