From eba9b1e2bd794d2f0723decc7f1a3fc780890b39 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Sun, 1 Dec 2024 01:20:27 -0500 Subject: [PATCH] Added reference to golcg --- README.md | 2 ++ setup.py | 56 ++++++++++++++++++++++++++++------------------------ unit_test.py | 7 ++++++- 3 files changed, 38 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index fc84e73..5579b74 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ PyLCG is a high-performance Python implementation of a memory-efficient IP address sharding system using Linear Congruential Generators (LCG) for deterministic random number generation. This tool enables distributed scanning & network reconnaissance by efficiently dividing IP ranges across multiple machines while maintaining pseudo-random ordering. +###### A GoLang version of this library is also available [here](https://github.com/acidvegas/golcg) + ## Features - Memory-efficient IP range processing diff --git a/setup.py b/setup.py index 97cadcf..42d3306 100644 --- a/setup.py +++ b/setup.py @@ -1,40 +1,44 @@ +#!/usr/bin/env python +# PyLCG - Linear Congruential Generator for IP Sharding - Developed by acidvegas ib Python (https://github.com/acidvegas/pylcg) +# setup.py + from setuptools import setup, find_packages -with open("README.md", "r", encoding="utf-8") as fh: +with open('README.md', 'r', encoding='utf-8') as fh: long_description = fh.read() setup( - name="pylcg", - version="1.0.3", - author="acidvegas", - author_email="acid.vegas@acid.vegas", - description="Linear Congruential Generator for IP Sharding", + name='pylcg', + version='1.0.3', + author='acidvegas', + author_email='acid.vegas@acid.vegas', + description='Linear Congruential Generator for IP Sharding', long_description=long_description, - long_description_content_type="text/markdown", - url="https://github.com/acidvegas/pylcg", + long_description_content_type='text/markdown', + url='https://github.com/acidvegas/pylcg', project_urls={ - "Bug Tracker": "https://github.com/acidvegas/pylcg/issues", - "Documentation": "https://github.com/acidvegas/pylcg#readme", - "Source Code": "https://github.com/acidvegas/pylcg", + 'Bug Tracker': 'https://github.com/acidvegas/pylcg/issues', + 'Documentation': 'https://github.com/acidvegas/pylcg#readme', + 'Source Code': 'https://github.com/acidvegas/pylcg', }, classifiers=[ - "Development Status :: 5 - Production/Stable", - "Intended Audience :: Developers", - "License :: OSI Approved :: ISC License (ISCL)", - "Operating System :: OS Independent", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Topic :: Internet", - "Topic :: Security", - "Topic :: Software Development :: Libraries :: Python Modules", + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: ISC License (ISCL)', + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Topic :: Internet', + 'Topic :: Security', + 'Topic :: Software Development :: Libraries :: Python Modules', ], packages=find_packages(), - python_requires=">=3.6", + python_requires='>=3.6', entry_points={ 'console_scripts': [ 'pylcg=pylcg.cli:main', diff --git a/unit_test.py b/unit_test.py index 3879dc9..2a6db44 100644 --- a/unit_test.py +++ b/unit_test.py @@ -1,6 +1,11 @@ -import unittest +#!/usr/bin/env python +# PyLCG - Linear Congruential Generator for IP Sharding - Developed by acidvegas ib Python (https://github.com/acidvegas/pylcg) +# unit_test.py + + import ipaddress import time +import unittest from pylcg import IPRange, ip_stream, LCG