Skip to content

Become an OpenAI API power user: Learn to leverage async, batching, and streaming for optimal performance and efficiency.

Notifications You must be signed in to change notification settings

lgesuellip/concurrent_processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Concurrent Processing Examples

This repository contains examples and implementations of various concurrent processing patterns and techniques in Python.

Project Structure

The project is organized into three main components:

1. Async and Threads

Located in async_and_threads/, this section demonstrates:

  • Asynchronous programming patterns using Python's asyncio
  • Threading implementations and best practices
  • Comparison between async and threaded approaches

2. OpenAI Batches

Located in openai_batches/, this section covers:

  • Batch processing techniques for OpenAI API calls
  • Efficient handling of multiple API requests
  • Rate limiting and concurrency management

3. Streaming

Located in streaming/, this section includes:

  • Stream processing implementations
  • Real-time data handling
  • Efficient streaming patterns and practices

Usage

Each directory contains specific examples and implementations. Navigate to the respective directories to find detailed documentation and usage instructions for each component.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Become an OpenAI API power user: Learn to leverage async, batching, and streaming for optimal performance and efficiency.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published