{"id":26989935,"url":"https://github.com/ankitsaini2609/pviewer","last_synced_at":"2025-04-03T21:22:57.583Z","repository":{"id":55560590,"uuid":"309862784","full_name":"ankitsaini2609/PViewer","owner":"ankitsaini2609","description":"This Tool will be used to find the conflicting policies for a user.","archived":false,"fork":false,"pushed_at":"2020-12-22T03:47:05.000Z","size":160,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-13T15:40:08.792Z","etag":null,"topics":["aws","boto3","iam","iam-policy","python3"],"latest_commit_sha":null,"homepage":"","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/ankitsaini2609.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-04T02:41:00.000Z","updated_at":"2022-01-20T12:39:06.000Z","dependencies_parsed_at":"2022-08-15T03:10:55.095Z","dependency_job_id":null,"html_url":"https://github.com/ankitsaini2609/PViewer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitsaini2609%2FPViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitsaini2609%2FPViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitsaini2609%2FPViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitsaini2609%2FPViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ankitsaini2609","download_url":"https://codeload.github.com/ankitsaini2609/PViewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247079629,"owners_count":20880082,"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":["aws","boto3","iam","iam-policy","python3"],"created_at":"2025-04-03T21:22:57.035Z","updated_at":"2025-04-03T21:22:57.576Z","avatar_url":"https://github.com/ankitsaini2609.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PViewer\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Twitter](https://img.shields.io/twitter/follow/d3afh3av3n?style=social)](https://twitter.com/d3afh3av3n)\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n## Table of Contents\n\n* [About the Project](#about-the-project)\n  * [Built With](#built-with)\n* [Getting Started](#getting-started)\n  * [Installation via pip](#Installation-via-pip)\n  * [How to run](#How-to-run)\n  * [Project Setup](#project-setup)\n* [Usage](#usage)\n* [License](#license)\n* [Contact](#contact)\n* [Acknowledgements](#acknowledgements)\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\nPViewer is a tool which will be used to find the conflicting policies for a AWS IAM user.\n\n\n### Built With\n* [python3](https://docs.python.org/3/)\n\n\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\nThis is an example of how you may give instructions on setting up your project locally.\nTo get a local copy up and running follow these simple example steps.\n\n\n### Installation via pip \n\n1. Install using pip:\n```sh\npip3 install pviewer\n```\n\n### How to run\n1. Set the AWS_PROFILE as environment variable\n```sh\nexport AWS_PROFILE=default\n```\n2. Run\n```sh\npython3 -m pviewer -u username\nWhere username is IAM username in AWS for which you have to find the overlapping policies\n```\n\n\n### Project Setup\n\n1. Clone this repo\n   * With HTTPS\n   ```sh\n   git clone https://github.com/ankitsaini2609/PViewer.git\n   ```\n   * With SSH (just use HTTPS if you aren't sure what SSH is)\n   ```sh\n   git clone git@github.com:ankitsaini2609/PViewer.git\n   ```\n2. Hop into the project directory\n```sh\ncd PViewer/pviewer\n```\n3. Install python3 packages\n```sh\nsudo pip3 install -r requirements.txt\n```\n4. Set the AWS_PROFILE as environment variable\n```sh\nexport AWS_PROFILE=default\n```\n5. Run it :rocket:\n```sh\npython3 __main__.py -u username\nWhere username is IAM username in AWS for which you have to find the overlapping policies.\n```\n6. Output\n![OUTPUT](https://github.com/ankitsaini2609/PViewer/blob/master/pviewer/output.png \"output\")\n\n\n\u003c!-- USAGE EXAMPLES --\u003e\n## Usage\nTwo policies allowing you to write objects in the same S3 bucket. It will plot a graph and connecting overlapping policies as edges.\n\n![DEMO](https://github.com/ankitsaini2609/PViewer/blob/master/pviewer/demo.gif \"demo\")\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See [LICENSE](https://github.com/ankitsaini2609/PViewer/blob/master/LICENSE.txt) for more information.\n\n\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nAnkit Saini \n* Twitter - [@d3afh3av3n](https://twitter.com/d3afh3av3n)\n* Github - [ankitsaini2609](https://github.com/ankitsaini2609)\n* Medium - [ankitsaini2609](https://medium.com/@ankitsaini2609)\n* LinkedIn - [ankitsaini2609](https://linkedin.com/in/ankitsaini2609)\n\n\n\u003c!-- ACKNOWLEDGEMENTS --\u003e\n## Acknowledgements\n* [GitHub Emoji Cheat Sheet](https://www.webpagefx.com/tools/emoji-cheat-sheet)\n* [Choose an Open Source License](https://choosealicense.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankitsaini2609%2Fpviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankitsaini2609%2Fpviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankitsaini2609%2Fpviewer/lists"}