semvec/pypi-packages huggingface dataset:
ipfsspec 0.6.0
readonly implementation of fsspec for IPFS
License: MIT
Requires Python: >=3.9
Keywords: fsspec, IPFS, filesystem

# ipfsspec

A readonly implementation of fsspec for IPFS.

## Installation

You can install `ipfsspec` directly from git with the following command:
```bash
pip install ipfsspec
```

## Usage

This project is currently very rudimentaty. It is not yet optimized for efficiency and is not yet feature complete. However it should be enough to list directory contents and to retrieve files from `ipfs://` resources via fsspec. A simple hello worlds would look like:

```python
import fsspec

with fsspec.open("ipfs://QmZ4tDuvesekSs4qM5ZBKpXiZGun7S2CYtEZRB3DYXkjGx", "r") as f:
    print(f.read())
```

The current implementation uses a HTTP gateway to access the data. It uses [IPIP-280](https://github.com/ipfs/specs/pull/280) to determine which gateway to use. If you have a current installation of an IPFS node (e.g. kubo, IPFS Desktop etc...), you should be fine. In case you want to use a different gateway, you can use any of the methods specified in IPIP-280, e.g.:

* create the file `~/.ipfs/gateway` with the gateway address as first line
* define the environment variable `IPFS_GATEWAY` to the gateway address
* create the file `/etc/ipfs/gateway` with the gateway address as first line

No matter which option you use, the gateway has to be specified as an HTTP(S) url, e.g.: `http://127.0.0.1:8080`.
daytona-openai-demo 0.1.1
Enhanced OpenAI client with Daytona sandbox execution capabilities
License: MIT
Requires Python: >=3.10
Keywords: openai, daytona, ai, compute, sandbox

# Daytona OpenAI

Enhanced OpenAI client with Daytona sandbox execution capabilities.

## Overview

The `daytona-openai-demo` package extends the standard OpenAI client to add compute capabilities that execute code in a Daytona sandbox environment. This allows you to automatically generate and execute code based on natural language prompts.

## Installation

```bash
pip install daytona-openai-demo
```

All required dependencies (`openai` and `daytona-sdk`) will be automatically installed.

## Usage

```python
from daytona_openai_demo import DaytonaOpenAI

# Initialize the client
client = DaytonaOpenAI()

# Standard OpenAI request
response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "user", "content": "Explain quantum computing basics in 3 sentences"}
    ]
)
print(response.choices[0].message.content)

# Compute-enabled request (automatically generates and executes code)
response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "user", "content": "Generate the first 10 prime numbers."}
    ],
    compute=True
)
print(response.choices[0].message.content)
```

## Features

- Seamless integration with the OpenAI Python client
- Automatic code generation and execution in a secure sandbox
- Support for both chat completions and legacy completions APIs
- All standard OpenAI parameters are supported

## Requirements

- Python 3.10 or higher
- OpenAI API key
- Daytona API key