================================
Python access network interfaces
================================
General information:
Pyiface is a package that exposes the network interfaces
of the operating system in a easy to use and transparent way
Typical usage looks like this::
#!/usr/bin/env python
import pyiface
#Get all available network interfaces
allIfaces = pyiface.getIfaces()
for iface in allIfaces:
print iface
#Get a specific interface by name
eth0 = pyiface.Interface(name='eth0')
#view eth0 info
print eth0
#bring eth0 up
eth0.flags = eth0.flags | IFF_UP
#set ipv4 address of the interface
eth0.addr = (socket.AF_INET, '1.2.3.4')
#set ipv6 address of the interface
eth0.addr = (socket.AF_INET6, '2001:0db8:85a3:0000:0000:8a2e:0370:7334')
Install:
To install the package simply call setup.py with the install option.
Links:
For more information goto my `blogspot http://python-a-day.blogspot.com `
Or browse the `github https://github.com/bat-serjo/PyIface ` repository.
Metadata
Release files for pyiface 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyiface-0.0.6.tar.gz | 17.3 kB | Without provenance | Details |
Release files / pyiface-0.0.6.tar.gz
| Download URL | pyiface-0.0.6.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
774ea47bb1387e493f6d5d0937b68fa28202c948eccddbd6e4cf2d708dcd86f2
|
|
BLAKE2b-256 checksum How to use checksums |
336d1ff7e4c7d64d12d5e91495ba53fd423a891eeb509e21f951c3dedc700d4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyiface 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.