Skip to main content

It is a python module which can help you to change the current mac address of a certain interface, generate a mac address, get the current mac address and also reset the current mac address to the original one.

Project description

macops

It is a python module which can help you to change the current mac address of a certain interface, generate a mac address, get the current mac address and also reset the current mac address to the original one. Developed by Shounak Kulkarni (c) 2021

Not supported in Python 2.x

Installation

pip install macops

Functions

Get Current Mac

get_current_mac: As it's name describes itself, this function will get the current mac address.

How this function should be used:-

import MacOps
current_mac = MacOps.get_current_mac()
print(current_mac)

Generate Mac

generate_mac: This function generates a random mac address.

How this function should be used:-

import MacOps
new_mac = MacOps.generate_mac()
print(new_mac)

Change Mac

change_mac: This will change the mac address to the generated mac address. Note: This function can only be performed in unix/linux systems.

How this function should be used:-

import MacOps
MacOps.change_mac()

No parameter is required as it takes input fom the user and the new mac address is automatically generated.

Reset to Original Mac

reset_original_mac: This function will reset the permanent mac address. Note: This function can only be performed in unix/linux systems.

How this function should be used:-

import MacOps
MacOps.reset_original_mac()

License

Github repository: macops:Github

You can find the license here: License:macops

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

macops-3.2.4.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

macops-3.2.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file macops-3.2.4.tar.gz.

File metadata

  • Download URL: macops-3.2.4.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3rc1

File hashes

Hashes for macops-3.2.4.tar.gz
Algorithm Hash digest
SHA256 b42b3ceb93a3107ce5c1c0dfa02203755edc5af23164a01f8ac7619a35b8a0b6
MD5 2b3e3ee85f13af9fb60df172f833df31
BLAKE2b-256 c2496f8bba05c2677fe76b3d47441bcbd1bbc4c5bf2c3896f6710ca6ceabae6e

See more details on using hashes here.

File details

Details for the file macops-3.2.4-py3-none-any.whl.

File metadata

  • Download URL: macops-3.2.4-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3rc1

File hashes

Hashes for macops-3.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dcee812904398c7282ae500f2487e625c8af15ffcc01e53c072573d739d141a1
MD5 9ad8fb21f03b11086f3463e0a7dabb50
BLAKE2b-256 30d3fbab0237861c72ee8bddfa39efb43d8da20b5e7ed9fba81f561a3a737d98

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page