Giter Site home page Giter Site logo

harshsikhwal / nuget-visualizer Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 288 KB

An interactive script that helps you to visualize NuGet package dependencies as well as dependencies of your Solution and csproj.

License: MIT License

Python 75.94% HTML 24.06%
nuget nuget-package nuget-packages nuget-server visual-studio visualization visualizer

nuget-visualizer's Introduction

NuGet Visualizer

GitHub issues GitHub stars GitHub license

An interactive script that helps you to visualize NuGet package dependencies as well as dependencies of your Solution and csproj.

A sample dependency graph for sample solution:

img.png

Requirements: Python 3.8+

Python requirements:

- requests
- os
- xmltodict
- json
- pyvis.network

To install requirements, run: pip install -r requirements.txt

This script helps the users to generate:

  1. NuGet Package Dependencies
  2. Solution/csproj dependencies

1. NuGet Package

Script Workflow:

  • Search for a certain NuGet package
  • Select from the result
  • Generate dependency for latest or specific version

The script calls the NuGet API's recursively and generate the dependencies of the mentioned version.

Searching for microsoft.codeanalysis.csharp:

img_1.png

Generated Graph:

img_2.png

2. Solution/csproj Dependencies

Script Workflow:

  • Can choose between solution file or csproj
  • Enter the path
  • If csproj:
    • Generates the Package and Project references
  • If Solution:
    • Scans all csproj associated and generates all the packages and project references
  • Option to generate a basic graph, or a full feature graph (scans the dependencies of all the NuGet packages associated)

You can check the sample_graph folder as an example. Download the folder and run the html file.

Rate Limit

NuGet has published its Rate Limit, i.e. The number of requests a client can make to NuGet server.

If there is any error, it may be because the request limit has been breached.

To know more about the Rate Limit:

The current request rate limit is defined here: https://learn.microsoft.com/en-us/nuget/api/rate-limits

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.