Skip to main content

Local filesystem adapter for the Model Context Standard.

Project description

mcs-adapter-localfs

Local filesystem adapter for the Model Context Standard (MCS).

Encapsulates all local file I/O (list_dir, read_text, write_text, ...) behind an adapter interface. Used by drivers like mcs-driver-csv and mcs-driver-filesystem so they never touch pathlib or os directly.

Zero runtime dependencies.

Installation

pip install mcs-adapter-localfs

Quick start

from mcs.adapter.localfs import LocalFsAdapter

adapter = LocalFsAdapter(base_dir="/data")
content = adapter.read_text("report.csv")

Links

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcs_adapter_localfs-0.2.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcs_adapter_localfs-0.2.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file mcs_adapter_localfs-0.2.0.tar.gz.

File metadata

  • Download URL: mcs_adapter_localfs-0.2.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for mcs_adapter_localfs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9b622f8b9c6d12f9c8fd99d2b3f88dfb365f93dbfed2c28192c4f029f7d1c004
MD5 e7514c64f220bc0256930193a89b106f
BLAKE2b-256 bc04d71361a5ccf4d796954e96112e8a10f841f97167b08fbeebf6f2a8183680

See more details on using hashes here.

File details

Details for the file mcs_adapter_localfs-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcs_adapter_localfs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ef6c99b01ea4df8b727cca7999688191df98a42a37c634af8662d8430f79a1d
MD5 6cb17939d1308eaf6f8a167a6016a6f3
BLAKE2b-256 175e30043b9693d40224870ced9409753ceac40ac4ec07dd7990bb04821f5c0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page