Giter Club home page Giter Club logo

python-scripts's Introduction

python-scripts

Few Python scripts which might be helpful in your day-to-day life.

1. largest_file.py

This script prompts the user to enter a directory path and then displays all the files in that directory in descending order of their size.

Necessary modules

pip install os
pip install termcolor

2. public_ip.py

The script displays your public ip address.

Necessary modules

pip install requests

3. os_Details.py

The script gathers system information and network interface details using the platform, socket, and netifaces libraries. It displays:

OS details like Python version, distribution, OS name, architecture, platform, kernel, and more. Interface details including interface name, IPv4 address, and MAC address for each network interface, distinguishing between Windows and other systems.

pip3 install distro netifaces

4. ipGeolocation.py

The script displays the geolocation of the provided public ip address.

Necessary modules

pip install requests

5. ipLookUp.py

The script displays the geolocation of the provided public ip address. The script utilises a free API to get the geolocation.

Necessary modules

pip install requests

6. website_ip_addr.py

This script displays the public ip address of the provided website.

Necessary modules

pip install socket

7. add_hash.sh

This shell script will prompt you for the start and end line numbers. If you press Enter without entering any value, it will add "#" to every line. If you enter values for the start and end lines, it will add "#" only to the specified range of lines.

./add_hash.sh fileName

python-scripts's People

Contributors

sreehariskumar avatar

Watchers

 avatar

Forkers

rbn232

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.