Skip to main content



Sinapsis

Build and manage AI workflows through modular and scalable Agents based on composite and reusable Templates.

🐍 Installation⚡ Quickstart🎯 Features👀 Examples🐳 Docker images📙 Documentation📚 Available sinapsis packages 🔍 License

Welcome to Sinapsis! The all-in-one AI-native platform that unifies the most powerful and innovative AI tools, from computer vision and NLP to GenAI, speech processing, time-series analysis, and beyond. Whether you're building, experimenting, or deploying, Sinapsis empowers you to create seamless end-to-end workflows, unlocking new possibilities and accelerating AI-driven innovation like never before. Join us in shaping the future of AI!

🐍 Installation

[!IMPORTANT] Sinapsis requires Python 3.10 or higher.

We strongly encourage the use of uv, although any other package manager should work too. If you need to install uv please see the official documentation.

  1. Install using your favourite package manager.

Example with uv:

  uv pip install sinapsis --extra-index-url https://pypi.sinapsis.tech

or with raw pip:

  pip install sinapsis --extra-index-url https://pypi.sinapsis.tech

⚡ Quickstart

CLI usage

The Sinapsis CLI provides an easy way to run agents and get information about templates:

# Run an agent with a config file
sinapsis run config.yml

# Run an agent with profiler enabled
sinapsis run config.yml --enable-profiler

# List all available templates
sinapsis info --all-template-names

# Get detailed info about a specific template
sinapsis info --template TemplateName

# Get example config for a template
sinapsis info --example-template-config TemplateName

# Display info for all templates
sinapsis info --all
📖 Hello World Sinapsis

Create a config file my_test_agent.yml:

You can also use the ones defined under the src/configs/ folder

agent:
  name: my_test_agent

templates:
- template_name: InputTemplate-1
  class_name: InputTemplate
  attributes: {}

- template_name: HelloWorld-1
  class_name: HelloWorld
  template_input: InputTemplate-1
  attributes:
    display_text: "Hello, this is my first template!"

Run the agent:

sinapsis run my_test_agent.yml

Output

... | DEBUG |  my_test_agent:__instantiate_templates:105 - Initialized template: InputTemplate-1
... | DEBUG |  my_test_agent:__instantiate_templates:105 - Initialized template: HelloWorld-1
... | DEBUG |  my_test_agent:_log_agent_execution_order:119 - Execution Order
... | DEBUG |  my_test_agent:_log_agent_execution_order:122 - Order: <<0>>, template name: <<InputTemplate-1>>
... | DEBUG |  my_test_agent:_log_agent_execution_order:122 - Order: <<1>>, template name: <<HelloWorld-1>>
... | INFO |  my_test_agent:_lazy_init:63 - Agent and templates initialized
... | INFO |  my_test_agent:signal_block_if_needed:156 - Signaling block mode for HelloWorld-1 no: 2/2
... | INFO |  my_test_agent:all_templates_finished:192 - All templates returned finished, stopping execution...
... | DEBUG | .../run_agent_from_config.py:run_agent_from_config:41 - result: DataContainer(container_id=abc..., images=[], audios=[], texts=[TextPacket(content='Hello, this is my first template!', id='abc...', source='HelloWorld-1', modified_by_templates=['HelloWorld-1'], embedding=[], generic_data={}, annotations=None)], time_series=[], binary_data=[], generic_data={})

🎯 Key Features

Agents
  • Declarative workflows
  • Multiple execution modes:
    • Generator
    • Single execute
    • Continuous execution
  • Sophisticated template orchestration:
    • Topological sorting of execution order
    • Parallel template execution
    • Execution blocking control
  • Built-in profiling capabilities:
    • Execution time tracking
  • State management:
    • Dynamic attribute updates
  • Failure handling
Templates
  • Self-contained components
  • Modular task-focused execution
  • Eager or lazy evaluation
  • Dynamic template definitions
  • Composite templates
  • SubAgents
Data Containers
  • Universal data transport
  • Domain agnostic design
  • Native built-in support for images, audio, text, time series
  • Multimodal data
General
  • Data Validation and Type Safety through Pydantic
  • YAML-based configuration files
  • Command Line Interface

👀 Examples

You can find specific implementations of templates in:

🐳 Docker images

Sinapsis provides Docker images with all dependencies pre-configured. When you want to use docker to test an app within the project, you need to make sure the sinapsis base images are built in your system. To build the images:

  1. Clone the repository:
git clone git@github.com:Sinapsis-ai/sinapsis.git
cd sinapsis
  1. Build the image
docker compose -f docker/compose.yaml build

This will create two docker images:

  • sinapsis:base: Contains UV package manager, git with SSH support, and Python 3.10 environment.
  • sinapsis-nvidia:base: Same as base plus CUDA 12.4.0 support for GPU acceleration.

📙 Documentation

Documentation is available on the sinapsis website

Tutorials for different projects within sinapsis are available at sinapsis tutorials page

📚 Available sinapsis packages

The sinapsis framework contains a list of public packages with Templates covering a wide range of tasks, including computer vision, time series, nlp, llm'. These packages include:

sinapsis data tools
sinapsis langchain
sinapsis image transforms

🔍 License

This project is licensed under the AGPLv3 license, which encourages open collaboration and sharing. For more details, please refer to the LICENSE file.

For commercial use, please refer to our official Sinapsis website for information on obtaining a commercial license.

Download files

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

Source Distribution

sinapsis-0.2.2.tar.gz (50.4 kB view details)

Uploaded Source

Built Distribution

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

sinapsis-0.2.2-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file sinapsis-0.2.2.tar.gz.

File metadata

  • Download URL: sinapsis-0.2.2.tar.gz
  • Upload date:
  • Size: 50.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.16

File hashes

Hashes for sinapsis-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0fd2f892333e1f1e95f75af4418668b02d2de8c6380fe46e21a7b99645a86c9a
MD5 6bd5bd4eec0012a5e79ccd77c2bea3d7
BLAKE2b-256 d099493e0902fb0e99a59ced28964fedaf5915f782d00bca72d1d6980e66efa3

See more details on using hashes here.

File details

Details for the file sinapsis-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: sinapsis-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.16

File hashes

Hashes for sinapsis-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d083a2f9d78776294603fb4e77c4424b8808507ac984800f35e2dcc30995ac69
MD5 b849bb41fb7f05796ab5be73605fccc3
BLAKE2b-256 16085fe399386cf5a26f6f610611c1752ccbe21d9cb5674263b064d58c0d4c45

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