Skip to main content

file-analyzer-server

The database-hosting server for the file-analyzer platform.

Install this on the machine that should host analysis databases and serve them to clients. It stands up a real, detachable, multi-instance server that:

  • resolves (or reuses) a session token per repository and stores every database under PROJECT_ROOT-{token}-{db_name} in SQLite or Postgres/MySQL,
  • coordinates parallel instances through a shared session catalog (token reuse, no duplicate copies),
  • runs periodic chunked rotating backups,
  • serves a token-authenticated HTTP control plane that file-analyzer-client's ServerClient connects to.
from file_analyzer.server import FileAnalyzerServer

srv = FileAnalyzerServer("/repo", backend="sqlite")
info = srv.start(detach=True)          # background; returns {url, token, pid}
srv.host_database("repository.db", "repository")
client = srv.connect()                 # a ServerClient bound to url + token
print(client.query(srv.storage_key_for("repository"),
                   "SELECT * FROM v_file_inventory"))
srv.stop()

Or from the command line:

file-analyzer-server run /path/to/repo --backend sqlite

Dependencies

  • Requires file-analyzer-client (pure stdlib foundation + ServerClient).
  • SQLite hosting needs nothing extra. For remote backends install an extra: pip install "file-analyzer-server[postgres]" or [mysql].
Wheel Install where Contains
file-analyzer-client anywhere client + read-only DB access (stdlib only)
file-analyzer-server the hosting server the database-hosting server (this wheel)
file-analyzer-engine wherever analysis runs the analyzer fleet that builds databases

Release files for file-analyzer-server 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-server 1.1.0
File Interpreter ABI Platform
file_analyzer_server-1.1.0-py3-none-any.whl Python 3 none any Details

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

Download URL file_analyzer_server-1.1.0-py3-none-any.whl
Size 50.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e0c94d48009c684e529e39941aac2778b09d0b1ed69b273b7bf148dd0180956
BLAKE2b-256 checksum
How to use checksums
d2dfd5550510b246275d7b044f9e96b4206b106e860c1df0969111fef548e632
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