repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/app/utils/prompts.py
openmemory/api/app/utils/prompts.py
MEMORY_CATEGORIZATION_PROMPT = """Your task is to assign each piece of information (or “memory”) to one or more of the following categories. Feel free to use multiple categories per item when appropriate. - Personal: family, friends, home, hobbies, lifestyle - Relationships: social network, significant others, colleag...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/app/utils/permissions.py
openmemory/api/app/utils/permissions.py
from typing import Optional from uuid import UUID from app.models import App, Memory, MemoryState from sqlalchemy.orm import Session def check_memory_access_permissions( db: Session, memory: Memory, app_id: Optional[UUID] = None ) -> bool: """ Check if the given app has permission to access a mem...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/app/utils/memory.py
openmemory/api/app/utils/memory.py
""" Memory client utilities for OpenMemory. This module provides functionality to initialize and manage the Mem0 memory client with automatic configuration management and Docker environment support. Docker Ollama Configuration: When running inside a Docker container and using Ollama as the LLM or embedder provider, t...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/app/utils/db.py
openmemory/api/app/utils/db.py
from typing import Tuple from app.models import App, User from sqlalchemy.orm import Session def get_or_create_user(db: Session, user_id: str) -> User: """Get or create a user with the given user_id""" user = db.query(User).filter(User.user_id == user_id).first() if not user: user = User(user_id=...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/app/utils/categorization.py
openmemory/api/app/utils/categorization.py
import logging from typing import List from app.utils.prompts import MEMORY_CATEGORIZATION_PROMPT from dotenv import load_dotenv from openai import OpenAI from pydantic import BaseModel from tenacity import retry, stop_after_attempt, wait_exponential load_dotenv() openai_client = OpenAI() class MemoryCategories(Bas...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/app/utils/__init__.py
openmemory/api/app/utils/__init__.py
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/app/routers/config.py
openmemory/api/app/routers/config.py
from typing import Any, Dict, Optional from app.database import get_db from app.models import Config as ConfigModel from app.utils.memory import reset_memory_client from fastapi import APIRouter, Depends, HTTPException from pydantic import BaseModel, Field from sqlalchemy.orm import Session router = APIRouter(prefix=...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/app/routers/__init__.py
openmemory/api/app/routers/__init__.py
from .apps import router as apps_router from .backup import router as backup_router from .config import router as config_router from .memories import router as memories_router from .stats import router as stats_router __all__ = ["memories_router", "apps_router", "stats_router", "config_router", "backup_router"]
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/app/routers/memories.py
openmemory/api/app/routers/memories.py
import logging from datetime import UTC, datetime from typing import List, Optional, Set from uuid import UUID from app.database import get_db from app.models import ( AccessControl, App, Category, Memory, MemoryAccessLog, MemoryState, MemoryStatusHistory, User, ) from app.schemas impor...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/app/routers/apps.py
openmemory/api/app/routers/apps.py
from typing import Optional from uuid import UUID from app.database import get_db from app.models import App, Memory, MemoryAccessLog, MemoryState from fastapi import APIRouter, Depends, HTTPException, Query from sqlalchemy import desc, func from sqlalchemy.orm import Session, joinedload router = APIRouter(prefix="/a...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/app/routers/backup.py
openmemory/api/app/routers/backup.py
from datetime import UTC, datetime import io import json import gzip import zipfile from typing import Optional, List, Dict, Any from uuid import UUID from fastapi import APIRouter, Depends, HTTPException, UploadFile, File, Query, Form from fastapi.responses import StreamingResponse from pydantic import BaseModel f...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/app/routers/stats.py
openmemory/api/app/routers/stats.py
from app.database import get_db from app.models import App, Memory, MemoryState, User from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.orm import Session router = APIRouter(prefix="/api/v1/stats", tags=["stats"]) @router.get("/") async def get_profile( user_id: str, db: Session = Depends(...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/alembic/env.py
openmemory/api/alembic/env.py
import os import sys from logging.config import fileConfig from alembic import context from dotenv import load_dotenv from sqlalchemy import engine_from_config, pool # Add the parent directory to the Python path sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) # Load environment variables...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/alembic/versions/afd00efbd06b_add_unique_user_id_constraints.py
openmemory/api/alembic/versions/afd00efbd06b_add_unique_user_id_constraints.py
"""remove_global_unique_constraint_on_app_name_add_composite_unique Revision ID: afd00efbd06b Revises: add_config_table Create Date: 2025-06-04 01:59:41.637440 """ from typing import Sequence, Union from alembic import op # revision identifiers, used by Alembic. revision: str = 'afd00efbd06b' down_revision: Union[s...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/alembic/versions/add_config_table.py
openmemory/api/alembic/versions/add_config_table.py
"""add_config_table Revision ID: add_config_table Revises: 0b53c747049a Create Date: 2023-06-01 10:00:00.000000 """ import uuid import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = 'add_config_table' down_revision = '0b53c747049a' branch_labels = None depends_on = None ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/openmemory/api/alembic/versions/0b53c747049a_initial_migration.py
openmemory/api/alembic/versions/0b53c747049a_initial_migration.py
"""Initial migration Revision ID: 0b53c747049a Revises: Create Date: 2025-04-19 00:59:56.244203 """ from typing import Sequence, Union import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision: str = '0b53c747049a' down_revision: Union[str, None] = None branch_labels: Union[s...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/examples/misc/personal_assistant_agno.py
examples/misc/personal_assistant_agno.py
""" Create your personal AI Assistant powered by memory that supports both text and images and remembers your preferences In order to run this file, you need to set up your Mem0 API at Mem0 platform and also need a OpenAI API key. export OPENAI_API_KEY="your_openai_api_key" export MEM0_API_KEY="your_mem0_api_key" """ ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/examples/misc/voice_assistant_elevenlabs.py
examples/misc/voice_assistant_elevenlabs.py
""" Personal Voice Assistant with Memory (Whisper + CrewAI + Mem0 + ElevenLabs) This script creates a personalized AI assistant that can: - Understand voice commands using Whisper (OpenAI STT) - Respond intelligently using CrewAI Agent and LLMs - Remember user preferences and facts using Mem0 memory - Speak responses b...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/examples/misc/vllm_example.py
examples/misc/vllm_example.py
""" Example of using vLLM with mem0 for high-performance memory operations. SETUP INSTRUCTIONS: 1. Install vLLM: pip install vllm 2. Start vLLM server (in a separate terminal): vllm serve microsoft/DialoGPT-small --port 8000 Wait for the message: "Uvicorn running on http://0.0.0.0:8000" (Small model: ~50...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/examples/misc/personalized_search.py
examples/misc/personalized_search.py
""" Personalized Search Agent with Mem0 + Tavily Uses LangChain agent pattern with Tavily tools for personalized search based on user memories stored in Mem0. """ from dotenv import load_dotenv from mem0 import MemoryClient from langchain.agents import create_openai_tools_agent, AgentExecutor from langchain_core.promp...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/examples/misc/strands_agent_aws_elasticache_neptune.py
examples/misc/strands_agent_aws_elasticache_neptune.py
""" GitHub Repository Research Agent with Persistent Memory This example demonstrates how to build an AI agent with persistent memory using: - Mem0 for memory orchestration and lifecycle management - Amazon ElastiCache for Valkey for high-performance vector similarity search - Amazon Neptune Analytics for graph-based...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/examples/misc/fitness_checker.py
examples/misc/fitness_checker.py
""" Simple Fitness Memory Tracker that tracks your fitness progress and knows your health priorities. Uses Mem0 for memory and gpt-4.1-nano for image understanding. In order to run this file, you need to set up your Mem0 API at Mem0 platform and also need an OpenAI API key. export OPENAI_API_KEY="your_openai_api_key" ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/examples/misc/study_buddy.py
examples/misc/study_buddy.py
""" Create your personal AI Study Buddy that remembers what you’ve studied (and where you struggled), helps with spaced repetition and topic review, personalizes responses using your past interactions. Supports both text and PDF/image inputs. In order to run this file, you need to set up your Mem0 API at Mem0 platfor...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/examples/misc/movie_recommendation_grok3.py
examples/misc/movie_recommendation_grok3.py
""" Memory-Powered Movie Recommendation Assistant (Grok 3 + Mem0) This script builds a personalized movie recommender that remembers your preferences (e.g. dislikes horror, loves romcoms) using Mem0 as a memory layer and Grok 3 for responses. In order to run this file, you need to set up your Mem0 API at Mem0 platform...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/examples/misc/healthcare_assistant_google_adk.py
examples/misc/healthcare_assistant_google_adk.py
import asyncio import warnings from google.adk.agents import Agent from google.adk.runners import Runner from google.adk.sessions import InMemorySessionService from google.genai import types from mem0 import MemoryClient warnings.filterwarnings("ignore", category=DeprecationWarning) # Initialize Mem0 client mem0_c...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/examples/misc/multillm_memory.py
examples/misc/multillm_memory.py
""" Multi-LLM Research Team with Shared Knowledge Base Use Case: AI Research Team where each model has different strengths: - GPT-4: Technical analysis and code review - Claude: Writing and documentation All models share a common knowledge base, building on each other's work. Example: GPT-4 analyzes a tech stack → Cl...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/examples/misc/diet_assistant_voice_cartesia.py
examples/misc/diet_assistant_voice_cartesia.py
"""Simple Voice Agent with Memory: Personal Food Assistant. A food assistant that remembers your dietary preferences and speaks recommendations Powered by Agno + Cartesia + Mem0 export MEM0_API_KEY=your_mem0_api_key export OPENAI_API_KEY=your_openai_api_key export CARTESIA_API_KEY=your_cartesia_api_key """ from textw...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/examples/misc/test.py
examples/misc/test.py
from agents import Agent, Runner, enable_verbose_stdout_logging, function_tool from dotenv import load_dotenv from mem0 import MemoryClient enable_verbose_stdout_logging() load_dotenv() # Initialize Mem0 client mem0 = MemoryClient() # Define memory tools for the agent @function_tool def search_memory(query: str, ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/examples/multiagents/llamaindex_learning_system.py
examples/multiagents/llamaindex_learning_system.py
""" Multi-Agent Personal Learning System: Mem0 + LlamaIndex AgentWorkflow Example INSTALLATIONS: !pip install llama-index-core llama-index-memory-mem0 openai You need MEM0_API_KEY and OPENAI_API_KEY to run the example. """ import asyncio import logging from datetime import datetime from dotenv import load_dotenv #...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/server/main.py
server/main.py
import logging import os from typing import Any, Dict, List, Optional from dotenv import load_dotenv from fastapi import FastAPI, HTTPException from fastapi.responses import JSONResponse, RedirectResponse from pydantic import BaseModel, Field from mem0 import Memory logging.basicConfig(level=logging.INFO, format="%(...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/cookbooks/helper/mem0_teachability.py
cookbooks/helper/mem0_teachability.py
# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai # # SPDX-License-Identifier: Apache-2.0 # # Portions derived from https://github.com/microsoft/autogen are under the MIT License. # SPDX-License-Identifier: MIT # forked from autogen.agentchat.contrib.capabilities.teachability.Teachability from typi...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/cookbooks/helper/__init__.py
cookbooks/helper/__init__.py
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/evaluation/prompts.py
evaluation/prompts.py
ANSWER_PROMPT_GRAPH = """ You are an intelligent memory assistant tasked with retrieving accurate information from conversation memories. # CONTEXT: You have access to memories from two speakers in a conversation. These memories contain timestamped information that may be relevant to answering th...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/evaluation/generate_scores.py
evaluation/generate_scores.py
import json import pandas as pd # Load the evaluation metrics data with open("evaluation_metrics.json", "r") as f: data = json.load(f) # Flatten the data into a list of question items all_items = [] for key in data: all_items.extend(data[key]) # Convert to DataFrame df = pd.DataFrame(all_items) # Convert c...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/evaluation/run_experiments.py
evaluation/run_experiments.py
import argparse import os from src.langmem import LangMemManager from src.memzero.add import MemoryADD from src.memzero.search import MemorySearch from src.openai.predict import OpenAIPredict from src.rag import RAGManager from src.utils import METHODS, TECHNIQUES from src.zep.add import ZepAdd from src.zep.search imp...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/evaluation/evals.py
evaluation/evals.py
import argparse import concurrent.futures import json import threading from collections import defaultdict from metrics.llm_judge import evaluate_llm_judge from metrics.utils import calculate_bleu_scores, calculate_metrics from tqdm import tqdm def process_item(item_data): k, v = item_data local_results = de...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/evaluation/src/langmem.py
evaluation/src/langmem.py
import json import multiprocessing as mp import os import time from collections import defaultdict from dotenv import load_dotenv from jinja2 import Template from langgraph.checkpoint.memory import MemorySaver from langgraph.prebuilt import create_react_agent from langgraph.store.memory import InMemoryStore from langg...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/evaluation/src/utils.py
evaluation/src/utils.py
TECHNIQUES = ["mem0", "rag", "langmem", "zep", "openai"] METHODS = ["add", "search"]
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/evaluation/src/rag.py
evaluation/src/rag.py
import json import os import time from collections import defaultdict import numpy as np import tiktoken from dotenv import load_dotenv from jinja2 import Template from openai import OpenAI from tqdm import tqdm load_dotenv() PROMPT = """ # Question: {{QUESTION}} # Context: {{CONTEXT}} # Short answer: """ clas...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/evaluation/src/openai/predict.py
evaluation/src/openai/predict.py
import argparse import json import os import time from collections import defaultdict from dotenv import load_dotenv from jinja2 import Template from openai import OpenAI from tqdm import tqdm load_dotenv() ANSWER_PROMPT = """ You are an intelligent memory assistant tasked with retrieving accurate information f...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/evaluation/src/zep/search.py
evaluation/src/zep/search.py
import argparse import json import os import time from collections import defaultdict from dotenv import load_dotenv from jinja2 import Template from openai import OpenAI from prompts import ANSWER_PROMPT_ZEP from tqdm import tqdm from zep_cloud import EntityEdge, EntityNode from zep_cloud.client import Zep load_dote...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/evaluation/src/zep/add.py
evaluation/src/zep/add.py
import argparse import json import os from dotenv import load_dotenv from tqdm import tqdm from zep_cloud import Message from zep_cloud.client import Zep load_dotenv() class ZepAdd: def __init__(self, data_path=None): self.zep_client = Zep(api_key=os.getenv("ZEP_API_KEY")) self.data_path = data_...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/evaluation/src/memzero/search.py
evaluation/src/memzero/search.py
import json import os import time from collections import defaultdict from concurrent.futures import ThreadPoolExecutor from dotenv import load_dotenv from jinja2 import Template from openai import OpenAI from prompts import ANSWER_PROMPT, ANSWER_PROMPT_GRAPH from tqdm import tqdm from mem0 import MemoryClient load_...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/evaluation/src/memzero/add.py
evaluation/src/memzero/add.py
import json import os import threading import time from concurrent.futures import ThreadPoolExecutor from dotenv import load_dotenv from tqdm import tqdm from mem0 import MemoryClient load_dotenv() # Update custom instructions custom_instructions = """ Generate personal memories that follow these guidelines: 1. E...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/evaluation/metrics/llm_judge.py
evaluation/metrics/llm_judge.py
import argparse import json from collections import defaultdict import numpy as np from openai import OpenAI from mem0.memory.utils import extract_json client = OpenAI() ACCURACY_PROMPT = """ Your task is to label an answer to a question as ’CORRECT’ or ’WRONG’. You will be given the following data: (1) a quest...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/evaluation/metrics/utils.py
evaluation/metrics/utils.py
""" Borrowed from https://github.com/WujiangXu/AgenticMemory/blob/main/utils.py @article{xu2025mem, title={A-mem: Agentic memory for llm agents}, author={Xu, Wujiang and Liang, Zujie and Mei, Kai and Gao, Hang and Tan, Juntao and Zhang, Yongfeng}, journal={arXiv preprint arXiv:2502.12110}, y...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
d2l-ai/d2l-zh
https://github.com/d2l-ai/d2l-zh/blob/e6b18ccea71451a55fcd861d7b96fddf2587b09a/setup.py
setup.py
from setuptools import setup, find_packages import d2l requirements = [ 'jupyter==1.0.0', 'numpy==1.21.5', 'matplotlib==3.5.1', 'requests==2.25.1', 'pandas==1.2.4' ] setup( name='d2l', version=d2l.__version__, python_requires='>=3.5', author='D2L Developers', author_email='d2l....
python
Apache-2.0
e6b18ccea71451a55fcd861d7b96fddf2587b09a
2026-01-04T14:38:16.201239Z
false
d2l-ai/d2l-zh
https://github.com/d2l-ai/d2l-zh/blob/e6b18ccea71451a55fcd861d7b96fddf2587b09a/static/post_latex/main.py
static/post_latex/main.py
import os import re import regex import sys def _unnumber_chaps_and_secs(lines): def _startswith_unnumbered(l): UNNUMBERED = {'\\section{小结', '\\section{练习', '\\subsection{小结', '\\subsection{练习'} for unnum in UNNUMBERED: ...
python
Apache-2.0
e6b18ccea71451a55fcd861d7b96fddf2587b09a
2026-01-04T14:38:16.201239Z
false
d2l-ai/d2l-zh
https://github.com/d2l-ai/d2l-zh/blob/e6b18ccea71451a55fcd861d7b96fddf2587b09a/ci/submit-job.py
ci/submit-job.py
import argparse import random import os import re import sys import time from datetime import datetime import boto3 from botocore.compat import total_seconds from botocore.config import Config job_type_info = { 'ci-cpu': { 'job_definition': 'd2l-ci-cpu-builder:2', 'job_queue': 'D2L-CI-CPU' },...
python
Apache-2.0
e6b18ccea71451a55fcd861d7b96fddf2587b09a
2026-01-04T14:38:16.201239Z
false
d2l-ai/d2l-zh
https://github.com/d2l-ai/d2l-zh/blob/e6b18ccea71451a55fcd861d7b96fddf2587b09a/ci/docker/print_versions.py
ci/docker/print_versions.py
import os import sys if len(sys.argv) > 1: framework_name = sys.argv[1] else: # Assume using d2l-builder docker container # Here all the frameworks are installed and no CUDA support framework_name = None print("*"*10, "D2L Framework Version Details", "*"*10) if framework_name: # Print CUDA version print("nvcc ...
python
Apache-2.0
e6b18ccea71451a55fcd861d7b96fddf2587b09a
2026-01-04T14:38:16.201239Z
false
d2l-ai/d2l-zh
https://github.com/d2l-ai/d2l-zh/blob/e6b18ccea71451a55fcd861d7b96fddf2587b09a/contrib/to-rm-mx-contrib-text/d2lzh/utils.py
contrib/to-rm-mx-contrib-text/d2lzh/utils.py
import collections from d2lzh import text import math import os import random import sys import tarfile import time import zipfile from IPython import display from matplotlib import pyplot as plt import mxnet as mx from mxnet import autograd, gluon, image, init, nd from mxnet.gluon import data as gdata, loss as gloss,...
python
Apache-2.0
e6b18ccea71451a55fcd861d7b96fddf2587b09a
2026-01-04T14:38:16.201239Z
false
d2l-ai/d2l-zh
https://github.com/d2l-ai/d2l-zh/blob/e6b18ccea71451a55fcd861d7b96fddf2587b09a/contrib/to-rm-mx-contrib-text/d2lzh/__init__.py
contrib/to-rm-mx-contrib-text/d2lzh/__init__.py
from . import text from .utils import * __version__ = '1.0.0'
python
Apache-2.0
e6b18ccea71451a55fcd861d7b96fddf2587b09a
2026-01-04T14:38:16.201239Z
false
d2l-ai/d2l-zh
https://github.com/d2l-ai/d2l-zh/blob/e6b18ccea71451a55fcd861d7b96fddf2587b09a/contrib/to-rm-mx-contrib-text/d2lzh/text/vocab.py
contrib/to-rm-mx-contrib-text/d2lzh/text/vocab.py
class Vocabulary: def __init__(self, counter, min_freq=0, reserved_tokens=None): if reserved_tokens is None: reserved_tokens = [] # Sort according to frequencies self.token_freqs = sorted(counter.items(), key=lambda x: x[0]) self.token_freqs.sort(key=lambda x: x[1], rever...
python
Apache-2.0
e6b18ccea71451a55fcd861d7b96fddf2587b09a
2026-01-04T14:38:16.201239Z
false
d2l-ai/d2l-zh
https://github.com/d2l-ai/d2l-zh/blob/e6b18ccea71451a55fcd861d7b96fddf2587b09a/contrib/to-rm-mx-contrib-text/d2lzh/text/__init__.py
contrib/to-rm-mx-contrib-text/d2lzh/text/__init__.py
from . import vocab from . import embedding
python
Apache-2.0
e6b18ccea71451a55fcd861d7b96fddf2587b09a
2026-01-04T14:38:16.201239Z
false
d2l-ai/d2l-zh
https://github.com/d2l-ai/d2l-zh/blob/e6b18ccea71451a55fcd861d7b96fddf2587b09a/contrib/to-rm-mx-contrib-text/d2lzh/text/embedding.py
contrib/to-rm-mx-contrib-text/d2lzh/text/embedding.py
import os from mxnet import nd, gluon import tarfile import zipfile DATA_URL = 'http://d2l-data.s3-accelerate.amazonaws.com/' PRETRAINED_FILE = { 'glove':{}, 'fasttext':{} } PRETRAINED_FILE['glove']['glove.6b.50d.txt'] = (DATA_URL + 'glove.6B.50d.zip', '0b8703943...
python
Apache-2.0
e6b18ccea71451a55fcd861d7b96fddf2587b09a
2026-01-04T14:38:16.201239Z
false
d2l-ai/d2l-zh
https://github.com/d2l-ai/d2l-zh/blob/e6b18ccea71451a55fcd861d7b96fddf2587b09a/d2l/tensorflow.py
d2l/tensorflow.py
DATA_HUB = dict() DATA_URL = 'http://d2l-data.s3-accelerate.amazonaws.com/' import numpy as np import tensorflow as tf nn_Module = tf.keras.Model ################# WARNING ################ # The below part is generated automatically through: # d2lbook build lib # Don't edit it directly import collections imp...
python
Apache-2.0
e6b18ccea71451a55fcd861d7b96fddf2587b09a
2026-01-04T14:38:16.201239Z
true
d2l-ai/d2l-zh
https://github.com/d2l-ai/d2l-zh/blob/e6b18ccea71451a55fcd861d7b96fddf2587b09a/d2l/mxnet.py
d2l/mxnet.py
USE_MXNET = True USE_PYTORCH = False USE_TENSORFLOW = False DATA_HUB = dict() DATA_URL = 'http://d2l-data.s3-accelerate.amazonaws.com/' from mxnet import autograd, context, gluon, image, init, np, npx from mxnet.gluon import nn, rnn from mxnet.gluon.data.vision import transforms nn_Module = nn.Block ###############...
python
Apache-2.0
e6b18ccea71451a55fcd861d7b96fddf2587b09a
2026-01-04T14:38:16.201239Z
true
d2l-ai/d2l-zh
https://github.com/d2l-ai/d2l-zh/blob/e6b18ccea71451a55fcd861d7b96fddf2587b09a/d2l/paddle.py
d2l/paddle.py
################# WARNING ################ # The below part is generated automatically through: # d2lbook build lib # Don't edit it directly import collections import hashlib import math import os import random import re import shutil import sys import tarfile import time import zipfile from collections import ...
python
Apache-2.0
e6b18ccea71451a55fcd861d7b96fddf2587b09a
2026-01-04T14:38:16.201239Z
true
d2l-ai/d2l-zh
https://github.com/d2l-ai/d2l-zh/blob/e6b18ccea71451a55fcd861d7b96fddf2587b09a/d2l/__init__.py
d2l/__init__.py
"""Saved source code for "Dive into Deep Learing" (https://d2l.ai). Please import d2l by one of the following ways: from d2l import mxnet as d2l # Use MXNet as the backend from d2l import torch as d2l # Use PyTorch as the backend from d2l import tensorflow as d2l # Use TensorFlow as the backend from d2l import pad...
python
Apache-2.0
e6b18ccea71451a55fcd861d7b96fddf2587b09a
2026-01-04T14:38:16.201239Z
false
d2l-ai/d2l-zh
https://github.com/d2l-ai/d2l-zh/blob/e6b18ccea71451a55fcd861d7b96fddf2587b09a/d2l/torch.py
d2l/torch.py
DATA_HUB = dict() DATA_URL = 'http://d2l-data.s3-accelerate.amazonaws.com/' import numpy as np import torch import torchvision from PIL import Image from torch import nn from torch.nn import functional as F from torch.utils import data from torchvision import transforms nn_Module = nn.Module ################# WARN...
python
Apache-2.0
e6b18ccea71451a55fcd861d7b96fddf2587b09a
2026-01-04T14:38:16.201239Z
true
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/config.py
config.py
# fmt: off ######################### # Application # ######################### APP_NAME = "diagrams" DIR_DOC_ROOT = "docs/nodes" DIR_APP_ROOT = "diagrams" DIR_RESOURCE = "resources" DIR_TEMPLATE = "templates" PROVIDERS = ( "base", "onprem", "aws", "azure", "digitalocean", "gcp", ...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/scripts/generate.py
scripts/generate.py
import os import sys from typing import Iterable from jinja2 import Environment, FileSystemLoader, Template, exceptions import config as cfg from . import app_root_dir, base_dir, doc_root_dir, resource_dir, template_dir _usage = "Usage: generate.py <provider>" def load_tmpl(tmpl: str) -> Template: env = Envir...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/scripts/resource.py
scripts/resource.py
""" resources.py provides useful tools for resources processing. There are 2 commands available. - clean: clean and unify the resources file names with some rules. - round: generate the rounded images from the original squared images. """ import os import subprocess import sys import config as cfg from . import res...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/scripts/__init__.py
scripts/__init__.py
import os from pathlib import Path import config as cfg def base_dir() -> Path: return Path(os.path.abspath(os.path.dirname(__file__))).parent def app_root_dir(pvd: str) -> str: return os.path.join(base_dir(), cfg.DIR_APP_ROOT, pvd) def doc_root_dir() -> str: return os.path.join(base_dir(), cfg.DIR_D...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/tests/test_c4.py
tests/test_c4.py
import os import random import string import unittest from diagrams import Diagram, setcluster, setdiagram from diagrams.c4 import Container, Database, Person, Relationship, System, SystemBoundary class C4Test(unittest.TestCase): def setUp(self): self.name = "diagram-" + \ "".join([random.cho...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/tests/test_diagram.py
tests/test_diagram.py
import os import pathlib import shutil import unittest from diagrams import Cluster, Diagram, Edge, Node, getcluster, getdiagram, setcluster, setdiagram class DiagramTest(unittest.TestCase): def setUp(self): self.name = "diagram_test" def tearDown(self): setdiagram(None) setcluster(N...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/tests/test_cli.py
tests/test_cli.py
import os import unittest from io import StringIO from unittest.mock import mock_open, patch from diagrams.cli import run class CliTest(unittest.TestCase): def setUp(self): self.test_file = "test_diagram.py" # dummy content for the test file self.test_content_1 = """ from diagrams import ...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/tests/__init__.py
tests/__init__.py
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/cli.py
diagrams/cli.py
import argparse import sys def run() -> int: """ Run diagrams code files in a diagrams environment. Args: paths: A list of paths to Python files containing diagrams code. Returns: The exit code. """ parser = argparse.ArgumentParser( description="Run diagrams code files...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/__init__.py
diagrams/__init__.py
import contextvars import os import uuid from pathlib import Path from typing import Dict, List, Optional, Union from graphviz import Digraph # Global contexts for a diagrams and a cluster. # # These global contexts are for letting the clusters and nodes know # where context they are belong to. So the all clusters an...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/crm.py
diagrams/saas/crm.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Crm(_Saas): _type = "crm" _icon_dir = "resources/saas/crm" class Intercom(_Crm): _icon = "intercom.png" class Zendesk(_Crm): _icon = "zendesk.png" # Aliases
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/recommendation.py
diagrams/saas/recommendation.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Recommendation(_Saas): _type = "recommendation" _icon_dir = "resources/saas/recommendation" class Recombee(_Recommendation): _icon = "recombee.png" # Aliases
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/security.py
diagrams/saas/security.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Security(_Saas): _type = "security" _icon_dir = "resources/saas/security" class Crowdstrike(_Security): _icon = "crowdstrike.png" class Sonarqube(_Security): _icon = "sonarqube.png" # Aliases
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/automation.py
diagrams/saas/automation.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Automation(_Saas): _type = "automation" _icon_dir = "resources/saas/automation" class N8N(_Automation): _icon = "n8n.png" # Aliases
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/social.py
diagrams/saas/social.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Social(_Saas): _type = "social" _icon_dir = "resources/saas/social" class Facebook(_Social): _icon = "facebook.png" class Twitter(_Social): _icon = "twitter.png" # Aliases
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/identity.py
diagrams/saas/identity.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Identity(_Saas): _type = "identity" _icon_dir = "resources/saas/identity" class Auth0(_Identity): _icon = "auth0.png" class Okta(_Identity): _icon = "okta.png" # Aliases
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/chat.py
diagrams/saas/chat.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Chat(_Saas): _type = "chat" _icon_dir = "resources/saas/chat" class Discord(_Chat): _icon = "discord.png" class Line(_Chat): _icon = "line.png" class Mattermost(_Chat): _icon = "mattermost.png" ...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/payment.py
diagrams/saas/payment.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Payment(_Saas): _type = "payment" _icon_dir = "resources/saas/payment" class Adyen(_Payment): _icon = "adyen.png" class AmazonPay(_Payment): _icon = "amazon-pay.png" class Paypal(_Payment): _icon...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/analytics.py
diagrams/saas/analytics.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Analytics(_Saas): _type = "analytics" _icon_dir = "resources/saas/analytics" class Dataform(_Analytics): _icon = "dataform.png" class Snowflake(_Analytics): _icon = "snowflake.png" class Stitch(_Anal...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/filesharing.py
diagrams/saas/filesharing.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Filesharing(_Saas): _type = "filesharing" _icon_dir = "resources/saas/filesharing" class Nextcloud(_Filesharing): _icon = "nextcloud.png" # Aliases
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/logging.py
diagrams/saas/logging.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Logging(_Saas): _type = "logging" _icon_dir = "resources/saas/logging" class Datadog(_Logging): _icon = "datadog.png" class Newrelic(_Logging): _icon = "newrelic.png" class Papertrail(_Logging): ...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/__init__.py
diagrams/saas/__init__.py
""" Saas provides a set of general saas services. """ from diagrams import Node class _Saas(Node): _provider = "saas" _icon_dir = "resources/saas" fontcolor = "#ffffff" class Saas(_Saas): _icon = "saas.png"
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/media.py
diagrams/saas/media.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Media(_Saas): _type = "media" _icon_dir = "resources/saas/media" class Cloudinary(_Media): _icon = "cloudinary.png" # Aliases
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/alerting.py
diagrams/saas/alerting.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Alerting(_Saas): _type = "alerting" _icon_dir = "resources/saas/alerting" class Newrelic(_Alerting): _icon = "newrelic.png" class Opsgenie(_Alerting): _icon = "opsgenie.png" class Pagerduty(_Alerting...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/cdn.py
diagrams/saas/cdn.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Cdn(_Saas): _type = "cdn" _icon_dir = "resources/saas/cdn" class Akamai(_Cdn): _icon = "akamai.png" class Cloudflare(_Cdn): _icon = "cloudflare.png" class Fastly(_Cdn): _icon = "fastly.png" cla...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/saas/communication.py
diagrams/saas/communication.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Saas class _Communication(_Saas): _type = "communication" _icon_dir = "resources/saas/communication" class Twilio(_Communication): _icon = "twilio.png" # Aliases
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/outscale/security.py
diagrams/outscale/security.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Outscale class _Security(_Outscale): _type = "security" _icon_dir = "resources/outscale/security" class Firewall(_Security): _icon = "firewall.png" class IdentityAndAccessManagement(_Security): _icon = "identity-a...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/outscale/compute.py
diagrams/outscale/compute.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Outscale class _Compute(_Outscale): _type = "compute" _icon_dir = "resources/outscale/compute" class Compute(_Compute): _icon = "compute.png" class DirectConnect(_Compute): _icon = "direct-connect.png" # Aliases...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/outscale/storage.py
diagrams/outscale/storage.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Outscale class _Storage(_Outscale): _type = "storage" _icon_dir = "resources/outscale/storage" class SimpleStorageService(_Storage): _icon = "simple-storage-service.png" class Storage(_Storage): _icon = "storage.p...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/outscale/network.py
diagrams/outscale/network.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Outscale class _Network(_Outscale): _type = "network" _icon_dir = "resources/outscale/network" class ClientVpn(_Network): _icon = "client-vpn.png" class InternetService(_Network): _icon = "internet-service.png" ...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/outscale/__init__.py
diagrams/outscale/__init__.py
from diagrams import Node class _Outscale(Node): _provider = "outscale" _icon_dir = "resources/outscale" fontcolor = "#ffffff" class Outscale(_Outscale): _icon = "outscale.png"
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/custom/__init__.py
diagrams/custom/__init__.py
""" Custom provides the possibility of load an image to be presented as a node. """ from diagrams import Node class Custom(Node): _provider = "custom" _type = "custom" _icon_dir = None fontcolor = "#ffffff" def _load_icon(self): return self._icon def __init__(self, label, icon_path...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/generic/blank.py
diagrams/generic/blank.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Generic class _Blank(_Generic): _type = "blank" _icon_dir = "resources/generic/blank" class Blank(_Blank): _icon = "blank.png" # Aliases
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/generic/compute.py
diagrams/generic/compute.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Generic class _Compute(_Generic): _type = "compute" _icon_dir = "resources/generic/compute" class Rack(_Compute): _icon = "rack.png" # Aliases
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/generic/storage.py
diagrams/generic/storage.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Generic class _Storage(_Generic): _type = "storage" _icon_dir = "resources/generic/storage" class Storage(_Storage): _icon = "storage.png" # Aliases
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/generic/network.py
diagrams/generic/network.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Generic class _Network(_Generic): _type = "network" _icon_dir = "resources/generic/network" class Firewall(_Network): _icon = "firewall.png" class Router(_Network): _icon = "router.png" class Subnet(_Network): ...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/generic/database.py
diagrams/generic/database.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Generic class _Database(_Generic): _type = "database" _icon_dir = "resources/generic/database" class SQL(_Database): _icon = "sql.png" # Aliases
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/generic/os.py
diagrams/generic/os.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Generic class _Os(_Generic): _type = "os" _icon_dir = "resources/generic/os" class Android(_Os): _icon = "android.png" class Centos(_Os): _icon = "centos.png" class Debian(_Os): _icon = "debian.png" class ...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/generic/__init__.py
diagrams/generic/__init__.py
""" Generic provides the possibility of load an image to be presented as a node. """ from diagrams import Node class _Generic(Node): provider = "generic" _icon_dir = "resources/generic" fontcolor = "#ffffff" class Generic(_Generic): _icon = "generic.png"
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false
mingrammer/diagrams
https://github.com/mingrammer/diagrams/blob/072474aa2a7d24cd074b2e1a61d0b714c3daa945/diagrams/generic/virtualization.py
diagrams/generic/virtualization.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _Generic class _Virtualization(_Generic): _type = "virtualization" _icon_dir = "resources/generic/virtualization" class Qemu(_Virtualization): _icon = "qemu.png" class Virtualbox(_Virtualization): _icon = "virtualb...
python
MIT
072474aa2a7d24cd074b2e1a61d0b714c3daa945
2026-01-04T14:39:58.534150Z
false