Skip to content

shivammathur/IPpy

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PyPI version Build Status codecov License Support me on Patreon Support me on Paypal Contact me on Codementor

πŸš€ IPpy

Parallel testing of IP addresses and domains in python. Reads IP addresses and domains from a CSV file and gives two lists of accessible and inaccessible ones. Refer to Usage to see how to use this.

πŸŽ‰ About

  • Compatible with both Python 2 and 3.
  • Testing of IPs and domains is done in parallel.
  • By default there are 4 Workers.
  • All Workers work on an input Queue and a output Queue.

πŸ†Ž Modes

  • verbose - if true, ping output will be displayed.
  • output - json or csv

✨ Support

  • Windows, Linux and macOS are supported.
  • Supports both IPv4 and IPv6 IPs, and domain names.
# Examples
127.0.0.1
::1
localhost

⚑ Install

$ pip install ippy

πŸ“ Usage

# Create IPpy instance
ippy_obj = ippy.Ippy()

# Set config - verbose, output, num_workers
# verbose - True or False
# output - csv or json
ippy_obj.set_config(True, 'csv', 4)

# Set Input File
ippy_obj.set_file(file='ip_list.csv')

# Run IPpy
ippy_obj.run()

# Get Results
output = ippy_obj.result()
print(output)

🚨 Tests

To run the tests, first install tox.

$ pip install tox

then run tox from the project root directory.

$ tox

πŸ“œ License

The scripts and documentation in this project are released under the MIT License. This project has multiple dependencies and their licenses can be found in their respective repositories.

πŸ‘ Contributions

Contributions are welcome! See Contributor's Guide.

πŸ’– Support this project

  • Please star the project and share it.
  • Consider supporting the project using GitHub sponsors.

About

πŸš€ Ping IP addresses and domains in parallel to find the accessible and inaccessible ones.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published