Skip to main content

Base services for CrewPlus AI applications

Project description

CrewPlus

PyPI version License: MIT Python Version Build Status

CrewPlus provides the foundational services and core components for building advanced AI applications. It is the heart of the CrewPlus ecosystem, designed for scalability, extensibility, and seamless integration.

Overview

This repository, crewplus-base, contains the core crewplus Python package. It includes essential building blocks for interacting with large language models, managing vector databases, and handling application configuration. Whether you are building a simple chatbot or a complex multi-agent system, CrewPlus offers the robust foundation you need.

The CrewPlus Ecosystem

CrewPlus is designed as a modular and extensible ecosystem of packages. This allows you to adopt only the components you need for your specific use case.

  • crewplus (This package): The core package containing foundational services for chat, model load balancing, and vector stores.
  • crewplus-agents: An extension for creating and managing autonomous AI agents.
  • crewplus-ingestion: Provides robust pipelines for knowledge ingestion and data processing.
  • crewplus-integrations: A collection of third-party integrations to connect CrewPlus with other services and platforms.
  • crewplus-enterprise: Enterprise-grade features for security, scalability, and support.

Features

  • Chat Services: A unified interface for interacting with various chat models (e.g., GeminiChatModel).
  • Model Load Balancer: Intelligently distribute requests across multiple LLM endpoints.
  • Vector DB Services: Abstractions for working with popular vector stores for retrieval-augmented generation (RAG).
  • Centralized Configuration: Manage application settings and secrets from a single source of truth (core/config.py).

Installation

To install the core crewplus package, run the following command:

pip install crewplus

Getting Started

Here is a simple example of how to use the GeminiChatModel to start a conversation with an AI model.

# main.py
from crewplus.services import GeminiChatModel

# Initialize the llm (API keys are typically handled by the configuration module)
llm = GeminiChatModel(google_api_key="your-google-api-key")

# Start a conversation
response = llm.chat("Hello, what is CrewPlus?")

print(response)

Project Structure

The crewplus-base repository is organized to separate core logic, tests, and documentation.

crewplus-base/                    # GitHub repo 名称
├── pyproject.toml
├── README.md
├── LICENSE
├── CHANGELOG.md
├── crewplus/                 # PyPI包名对应的目录
│   └──  __init__.py
│   └──  services/
│       └──  __init__.py
│       └──  gemini_chat_model.py
│       └──  model_load_balancer.py
│       └──  vdb_service.py
│       └──  ...
│   └──  vectorstores/
│       └──  ...
│   └──  core/
│       └──  __init__.py
│       └──  config.py
│       └──  ...
├── tests/
│   └── ...
└── notebooks/
    └── ...

Deploy to PyPI

install deployment tool

pip install twine

build package

python -m build

deploy to TestPyPI (Test first)

python -m twine upload --repository testpypi dist/*

install from TestPyPI

pip install -i https://test.pypi.org/simple/ crewplus

Deploy to official PyPI

python -m twine upload dist/*

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

crewplus-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

crewplus-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file crewplus-0.1.0.tar.gz.

File metadata

  • Download URL: crewplus-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for crewplus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2daaeec079c40ee53712371311929bde29f0aed8c4517286ab28467c1e27c922
MD5 483e012d697fc00111dd68a73319e539
BLAKE2b-256 53992ac8093e35a12e46e491dd3cde1ebfd324c965ce0c3757a165cb90bb0ca4

See more details on using hashes here.

File details

Details for the file crewplus-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: crewplus-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for crewplus-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7971d66abe22f8d0b74804ab9ce2984007d01fd70aa7c14f29844c56496f42c4
MD5 cb87466e781d8630f9d3eabce31fa7aa
BLAKE2b-256 2b4e92364c307ec095651fa3cb9ff0bf296a390a5efc86491d37bea6244ea50a

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