Giter VIP home page Giter VIP logo

subnet-calculator's Introduction

Command-line Subnetting Calculator - Created in Python!

Scalc is a simple command-line subnet calculator. It can be used to generate markdown tables of subnet information.


Usage

  1. Navigate into the project directory:
    cd subnet-calculator
  2. Install the module:
    pip install .
  3. Run the command-line tool:
    ❯ scalc --help
    
    Usage: scalc [OPTIONS] IP_ADDRESS
    
    ╭─ Arguments ──────────────────────────────────────────────────────────────────────────────────────────────╮
    │ *    ip_address      TEXT  IP address. [default: None] [required]                                        │
    ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
    ╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────╮
    │ --version         -v                 Show version.                                                       │ 
    │ --slash-notation  -sn       INTEGER  Slash notation. Overrides --subnets. [default: 24]                  │
    │ --subnets         -s        INTEGER  Number of subnets. [default: 2]                                     │
    │ --output-format   -of       TEXT     Output format. Supported formats: terminal [default: terminal]      │
    │ --help                               Show this message and exit.                                         │
    ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
  4. Example output for scalc 193.64.33.0 -s 4:
    Subnet Network Address Slash Notation First Usable IP Address Last Usable IP Address Broadcast Address
    1 193.64.33.0 /26 193.64.33.1 193.64.33.62 193.64.33.63
    2 193.64.33.64 /26 193.64.33.65 193.64.33.126 193.64.33.127
    3 193.64.33.128 /26 193.64.33.129 193.64.33.190 193.64.33.191
    4 193.64.33.192 /26 193.64.33.193 193.64.33.254 193.64.33.255

Current features:

  • Subnet /24-/32 notation IP address
  • Generate markdown tables of subnet information
  • ...

Planned features:

  • Calculate supernetting data /23-/8 notation IP address
  • Export subnet information to files
  • ...

Contribution

Feel free to create a pull request and add some new features or create an issue and I'll see to it when I can. Any help is appreciated.

subnet-calculator's People

Contributors

brookjeynes avatar rjboas avatar

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.