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 queries —
connect()/ServerClient - Read / query a local
.dboffline —open_database()/FileAnalyzerDatabase - Optionally run an analysis locally —
analyze(), available only when the separatefile-analyzer-enginewheel 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)
Related wheels
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)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|