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.6.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: macops-3.2.6.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.6.tar.gz
Algorithm Hash digest
SHA256 70c9d60685769ec80bd24333752337c2a3ebfcaddb0245d49840e0d9124fa846
MD5 8d35b6a8e45bd05da0884ea65b1542d0
BLAKE2b-256 a72d6cc463162cac7aa31a50256febd617e7521e5425c76efab0cd137e21d1c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: macops-3.2.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7ade182be374458979171af5c76cb6bca640dff6ab6712b8e4e2c3436ee2d4b0
MD5 35ab09067d7100d441205d46d6b13965
BLAKE2b-256 49a9b7a0a2093c3e33b9540fd4a97c89efbdefa2ae6d8fe2662a76616e9b3595

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