Skip to main content

mac-vendors-client

Lightweight, offline MAC address -> vendor lookups against a pre-built SQLite database export.

  • Zero dependencies - reads the export via the standard library sqlite3.
  • Fast - range/bits index lookup, no network, no per-call cost.
  • Read-only - opens the export file read-only; never modifies it.

Use it when you have a downloaded SQLite export and want fast, local lookups with no network calls. For live queries against the hosted API, use the online SDK (mac-vendors-sdk) instead.

Install

pip install mac-vendors-client

Usage

from mac_vendors_client import MacVendorsClient

with MacVendorsClient("vendors.db") as client:
    match = client.lookup("00:50:56:AA:BB:CC")
    if match:
        print(match.organization_name)   # "VMware, Inc."
        print(match.assignment, match.bits)

    # Name only
    name = client.lookup_name("00-50-56-aa-bb-cc")

    # Batch (invalid entries map to None instead of raising)
    results = client.lookup_batch(["0050.56AA.BBCC", "FF:FF:FF:00:00:00"])

    # Export metadata
    info = client.info()
    print(info.exported_at, info.total_records)

MAC input accepts any common format (:/-/. separators or bare hex), and a shorter prefix such as a 6-hex OUI. The most specific (largest-bits) match wins when prefixes overlap (e.g. an MA-S assignment inside an MA-L block).

The export contract

The export is a SQLite database with this schema:

CREATE TABLE mac_addresses (
    id INTEGER PRIMARY KEY,
    assignment TEXT NOT NULL,
    organization_name TEXT,
    organization_address TEXT,
    range_begin INTEGER NOT NULL,   -- 48-bit MAC range start
    range_end   INTEGER NOT NULL,   -- 48-bit MAC range end
    bits INTEGER NOT NULL           -- 24 / 28 / 36
);
CREATE TABLE metadata (key TEXT PRIMARY KEY, value TEXT);  -- updated_at, exported_at, total_records

A lookup resolves a MAC M to the row where range_begin <= int(M) <= range_end, ordered by bits DESC (most specific first).

License

MIT

Metadata

Release files for mac-vendors-client 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mac-vendors-client 1.0.0
File Size Uploaded Provenance
mac_vendors_client-1.0.0.tar.gz 8.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mac-vendors-client 1.0.0
File Interpreter ABI Platform
mac_vendors_client-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.1 kB

Release files / mac_vendors_client-1.0.0.tar.gz

Download URL mac_vendors_client-1.0.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4e351a293f879b6c0612669f883ae3939db04636fd221c1712a51c1061103838
BLAKE2b-256 checksum
How to use checksums
ad5b83f9a0d15a2bf162affcec37d8c1154d077080ec0187332d79bb7a819bc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 23, 2026.

Transparency log

Release files / mac_vendors_client-1.0.0-py3-none-any.whl

Download URL mac_vendors_client-1.0.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92c33c4727dd1ef299e57e566249069be09f1763f4124a784351f9dcb0c06022
BLAKE2b-256 checksum
How to use checksums
44182c818ed78e14e7ddf44c3d97dd45872e7f4aa047c9fb559dd16e478d5673
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 23, 2026.

Transparency log

Security for mac-vendors-client 1.0.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mac_vendors_client-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 23, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page