Skip to main content

file-analyzer-client

The tiny, dependency-free client for the file-analyzer platform.

This wheel is pure Python standard library. Install it on any machine that needs to talk to the platform without pulling in the analyzer fleet:

  • Connect to a hosted server and run queriesconnect() / ServerClient
  • Read / query a local .db offlineopen_database() / FileAnalyzerDatabase
  • Optionally run an analysis locallyanalyze(), available only when the separate file-analyzer-engine wheel is also installed
from file_analyzer.client import open_database, connect, has_engine

# Read a database a previous analysis run produced -- offline, no engine needed.
db = open_database("repository.db")
print(db.tables())
for row in db.query_dicts("SELECT path FROM files LIMIT 5"):
    print(row["path"])

# Talk to a hosted server.
client = connect("http://localhost:8765", token="…")
print(client.health())

# Local analysis is opt-in; it needs the engine wheel.
if has_engine():
    from file_analyzer.client import analyze
    result = analyze(".")
    print(result.database)

The platform ships as three wheels that share the file_analyzer namespace:

Wheel Install where Contains
file-analyzer-client anywhere (this wheel) client + read-only DB access (stdlib only)
file-analyzer-server the hosting server the database-hosting server
file-analyzer-engine wherever analysis runs the analyzer fleet that builds databases

Installing only the client keeps the footprint minimal; add the others when a machine actually needs to host databases or run analyses.

Release files for file-analyzer-client 1.1.0

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

Built distribution (wheel)

Table of built distributions (wheels) for file-analyzer-client 1.1.0
File Interpreter ABI Platform
file_analyzer_client-1.1.0-py3-none-any.whl Python 3 none any Details

Release files / file_analyzer_client-1.1.0-py3-none-any.whl

Download URL file_analyzer_client-1.1.0-py3-none-any.whl
Size 40.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1c3fc8b46cb135a0689bec4fe22de3e1201f95edb1b27f0b9f75d004a895663
BLAKE2b-256 checksum
How to use checksums
d44dfbdeb57cf0c012096c04d2ab6972cc587424b57e295df6fcc5f8e284c5c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release history Release notifications | RSS feed

1.1.1

1 release file

This release

1.1.0 This release

1 release file

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