Skip to main content
# Remote Tensorflow Execution (RTF)

Bring the power of the Tensorflow Python API to any language, using gRPC.

This repository contains the code of the RTF server and client generator.

**WARNING**: experimental, unstable, WIP.

## Server

The gRPC server implements the server-side protocol. It accepts the requests of function definitions and executes them.
The execution is left to the Python interpreter and the output is streamed back to the client.

### Usage

The server waits for messages and sends back the responses.

#### Requirements

Compile the proto definition is required, however the `setup.py` script takes care of everything. There are 2 options

1. `pip install -e .` to work in edit mode, with the compiled protobufs
2. `pip install .` to install the package (it compiles the proto too)
3. (future) `pip install rtf` | `pip install rtf-gpu`

#### 1. Start the gRPC server

```
python -m rtf.server
```

## Client stub generation

To generate the stub of a client in `DEST_DIR` use the `rtf.generate` module.

```
python -m rtf.generate --dest_dir DEST_DIR --module tensorflow --target Go

```

Right now the only generator that is going to be developed is Go.

Metadata

Release files for rtf 0.0.1

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 rtf 0.0.1
File Interpreter ABI Platform Actions
rtf-0.0.1-py3-none-any.whl Python 3 none any Details for rtf-0.0.1-py3-none-any.whl

Release files / rtf-0.0.1-py3-none-any.whl

Download URL rtf-0.0.1-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77b5665257de104cd876a3925d53841c5635fda0e306470db5af5de03672c927
BLAKE2b-256 checksum
How to use checksums
21466b135f544752c75d1bbcfb4021c1015295873402706f8dda682896a1fd46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Security for rtf 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

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