Skip to main content

FastAPI server scaffolding for the ARP Standard (v1).

Project description

ARP Standard Python Server (arp-standard-server)

FastAPI server scaffolding for implementing ARP components with spec-aligned request/response types.

Install

python3 -m pip install arp-standard-server

Usage

from arp_standard_server.daemon import BaseDaemonServer
from arp_standard_model import DaemonCreateInstancesRequest, InstanceCreateRequestBody

class MyDaemon(BaseDaemonServer):
    async def create_instances(self, request: DaemonCreateInstancesRequest):
        body = request.body
        # business logic here
        return ...

app = MyDaemon().create_app()

Service base classes

  • BaseRuntimeServer
  • BaseToolRegistryServer
  • BaseDaemonServer

Request objects

All server methods accept a single request object from arp_standard_model:

  • *Params for path/query parameters
  • *RequestBody for JSON bodies
  • *Request wrappers with params and/or body

Abstract method enforcement

Base server classes use ABC + @abstractmethod. Instantiating a class that does not implement all required endpoints raises a TypeError before the app is created.

Authentication (API key)

app = MyDaemon().create_app(api_key="your-api-key")

Streaming (NDJSON)

NDJSON endpoints currently use plain text payloads. Streaming helpers are planned but not implemented yet.

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

arp_standard_server-0.2.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

arp_standard_server-0.2.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arp_standard_server-0.2.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for arp_standard_server-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7559be7740433eb3217373e759e820933fb03aecbb3e56760a587c2b7a5434c7
MD5 4cd9c17c4dee94ae5e42adbc9415eba9
BLAKE2b-256 b9db243e659ab7a2601b2ea5e444006243a32b3bc573d737eb09a221f23f2cf6

See more details on using hashes here.

Provenance

The following attestation bundles were made for arp_standard_server-0.2.0.tar.gz:

Publisher: release.yml on AgentRuntimeProtocol/ARP_Standard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for arp_standard_server-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a7622c4d47e853b4b1d581b9a82e475d58057967374cede1b0cbc8bd653ac6e0
MD5 fa5f58b026a3b51bee75d6bb23229b3f
BLAKE2b-256 24d499245eb7e20893c92d8e8c9e39cbae2bcf785992b3f51398b4a5f921f5db

See more details on using hashes here.

Provenance

The following attestation bundles were made for arp_standard_server-0.2.0-py3-none-any.whl:

Publisher: release.yml on AgentRuntimeProtocol/ARP_Standard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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