langchain-cockroachdb 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. langchain_cockroachdb-0.1.0/.github/actions/uv_setup/action.yml +26 -0
  2. langchain_cockroachdb-0.1.0/.github/dependabot.yml +19 -0
  3. langchain_cockroachdb-0.1.0/.github/workflows/_lint.yml +32 -0
  4. langchain_cockroachdb-0.1.0/.github/workflows/_release.yml +72 -0
  5. langchain_cockroachdb-0.1.0/.github/workflows/_test.yml +73 -0
  6. langchain_cockroachdb-0.1.0/.github/workflows/docs.yml +51 -0
  7. langchain_cockroachdb-0.1.0/.github/workflows/release.yml +16 -0
  8. langchain_cockroachdb-0.1.0/.github/workflows/test.yml +36 -0
  9. langchain_cockroachdb-0.1.0/.gitignore +97 -0
  10. langchain_cockroachdb-0.1.0/CHANGELOG.md +39 -0
  11. langchain_cockroachdb-0.1.0/CODE_OF_CONDUCT.md +128 -0
  12. langchain_cockroachdb-0.1.0/CONTRIBUTING.md +290 -0
  13. langchain_cockroachdb-0.1.0/DEVELOPMENT.md +374 -0
  14. langchain_cockroachdb-0.1.0/LICENSE +201 -0
  15. langchain_cockroachdb-0.1.0/Makefile +266 -0
  16. langchain_cockroachdb-0.1.0/PKG-INFO +236 -0
  17. langchain_cockroachdb-0.1.0/README.md +194 -0
  18. langchain_cockroachdb-0.1.0/SECURITY.md +226 -0
  19. langchain_cockroachdb-0.1.0/assets/cockroachdb_logo.svg +1 -0
  20. langchain_cockroachdb-0.1.0/docker-compose.yml +20 -0
  21. langchain_cockroachdb-0.1.0/docs/about/changelog.md +36 -0
  22. langchain_cockroachdb-0.1.0/docs/about/license.md +35 -0
  23. langchain_cockroachdb-0.1.0/docs/api/chat-history.md +22 -0
  24. langchain_cockroachdb-0.1.0/docs/api/engine.md +97 -0
  25. langchain_cockroachdb-0.1.0/docs/api/indexes.md +25 -0
  26. langchain_cockroachdb-0.1.0/docs/api/vectorstore.md +54 -0
  27. langchain_cockroachdb-0.1.0/docs/assets/cockroachdb_logo.svg +1 -0
  28. langchain_cockroachdb-0.1.0/docs/development/architecture.md +266 -0
  29. langchain_cockroachdb-0.1.0/docs/development/contributing.md +280 -0
  30. langchain_cockroachdb-0.1.0/docs/development/testing.md +332 -0
  31. langchain_cockroachdb-0.1.0/docs/examples/advanced-filtering.md +160 -0
  32. langchain_cockroachdb-0.1.0/docs/examples/basic-usage.md +258 -0
  33. langchain_cockroachdb-0.1.0/docs/examples/index-optimization.md +69 -0
  34. langchain_cockroachdb-0.1.0/docs/examples/index.md +86 -0
  35. langchain_cockroachdb-0.1.0/docs/getting-started/configuration.md +263 -0
  36. langchain_cockroachdb-0.1.0/docs/getting-started/installation.md +95 -0
  37. langchain_cockroachdb-0.1.0/docs/getting-started/quick-start.md +186 -0
  38. langchain_cockroachdb-0.1.0/docs/guides/async-vs-sync.md +498 -0
  39. langchain_cockroachdb-0.1.0/docs/guides/chat-history.md +527 -0
  40. langchain_cockroachdb-0.1.0/docs/guides/hybrid-search.md +393 -0
  41. langchain_cockroachdb-0.1.0/docs/guides/vector-indexes.md +353 -0
  42. langchain_cockroachdb-0.1.0/docs/guides/vector-store.md +551 -0
  43. langchain_cockroachdb-0.1.0/docs/index.md +153 -0
  44. langchain_cockroachdb-0.1.0/examples/README.md +130 -0
  45. langchain_cockroachdb-0.1.0/examples/chat_history.py +92 -0
  46. langchain_cockroachdb-0.1.0/examples/hybrid_search.py +112 -0
  47. langchain_cockroachdb-0.1.0/examples/metadata_filtering.py +151 -0
  48. langchain_cockroachdb-0.1.0/examples/quickstart.py +93 -0
  49. langchain_cockroachdb-0.1.0/examples/retry_configuration.py +282 -0
  50. langchain_cockroachdb-0.1.0/examples/sync_usage.py +160 -0
  51. langchain_cockroachdb-0.1.0/examples/vector_indexes.py +119 -0
  52. langchain_cockroachdb-0.1.0/langchain_cockroachdb/__init__.py +33 -0
  53. langchain_cockroachdb-0.1.0/langchain_cockroachdb/async_vectorstore.py +563 -0
  54. langchain_cockroachdb-0.1.0/langchain_cockroachdb/chat_message_histories.py +180 -0
  55. langchain_cockroachdb-0.1.0/langchain_cockroachdb/engine.py +233 -0
  56. langchain_cockroachdb-0.1.0/langchain_cockroachdb/hybrid_search_config.py +105 -0
  57. langchain_cockroachdb-0.1.0/langchain_cockroachdb/indexes.py +138 -0
  58. langchain_cockroachdb-0.1.0/langchain_cockroachdb/retry.py +199 -0
  59. langchain_cockroachdb-0.1.0/langchain_cockroachdb/vectorstores.py +172 -0
  60. langchain_cockroachdb-0.1.0/mkdocs.yml +90 -0
  61. langchain_cockroachdb-0.1.0/pyproject.toml +94 -0
  62. langchain_cockroachdb-0.1.0/tests/__init__.py +1 -0
  63. langchain_cockroachdb-0.1.0/tests/conftest.py +142 -0
  64. langchain_cockroachdb-0.1.0/tests/integration/__init__.py +1 -0
  65. langchain_cockroachdb-0.1.0/tests/integration/test_chat_history.py +139 -0
  66. langchain_cockroachdb-0.1.0/tests/integration/test_configuration.py +271 -0
  67. langchain_cockroachdb-0.1.0/tests/integration/test_engine.py +106 -0
  68. langchain_cockroachdb-0.1.0/tests/integration/test_retry_behavior.py +193 -0
  69. langchain_cockroachdb-0.1.0/tests/integration/test_sync_wrapper.py +223 -0
  70. langchain_cockroachdb-0.1.0/tests/integration/test_vectorstore.py +283 -0
  71. langchain_cockroachdb-0.1.0/tests/unit/__init__.py +1 -0
  72. langchain_cockroachdb-0.1.0/tests/unit/test_hybrid_search.py +113 -0
  73. langchain_cockroachdb-0.1.0/tests/unit/test_indexes.py +121 -0
  74. langchain_cockroachdb-0.1.0/tests/unit/test_retry.py +227 -0
@@ -0,0 +1,26 @@
1
+ name: Setup UV
2
+ description: Install and configure uv package manager
3
+
4
+ inputs:
5
+ python-version:
6
+ description: Python version to use
7
+ required: false
8
+ default: "3.12"
9
+
10
+ runs:
11
+ using: composite
12
+ steps:
13
+ - name: Set up Python
14
+ uses: actions/setup-python@v5
15
+ with:
16
+ python-version: ${{ inputs.python-version }}
17
+
18
+ - name: Install uv
19
+ shell: bash
20
+ run: |
21
+ curl -LsSf https://astral.sh/uv/install.sh | sh
22
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
23
+
24
+ - name: Verify uv installation
25
+ shell: bash
26
+ run: uv --version
@@ -0,0 +1,19 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "pip"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ open-pull-requests-limit: 10
8
+ labels:
9
+ - "dependencies"
10
+ - "python"
11
+
12
+ - package-ecosystem: "github-actions"
13
+ directory: "/"
14
+ schedule:
15
+ interval: "weekly"
16
+ open-pull-requests-limit: 5
17
+ labels:
18
+ - "dependencies"
19
+ - "ci"
@@ -0,0 +1,32 @@
1
+ name: Lint
2
+
3
+ on:
4
+ workflow_call:
5
+
6
+ jobs:
7
+ lint:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v6
11
+
12
+ - name: Setup UV
13
+ uses: ./.github/actions/uv_setup
14
+ with:
15
+ python-version: "3.12"
16
+
17
+ - name: Install dependencies
18
+ run: |
19
+ uv pip install --system ruff mypy
20
+
21
+ - name: Run ruff check
22
+ run: |
23
+ ruff check langchain_cockroachdb tests examples
24
+
25
+ - name: Run ruff format check
26
+ run: |
27
+ ruff format --check langchain_cockroachdb tests examples
28
+
29
+ - name: Run mypy
30
+ run: |
31
+ mypy langchain_cockroachdb --ignore-missing-imports
32
+ continue-on-error: true
@@ -0,0 +1,72 @@
1
+ name: Release
2
+
3
+ on:
4
+ workflow_call:
5
+ inputs:
6
+ version:
7
+ description: Version to release
8
+ required: true
9
+ type: string
10
+
11
+ jobs:
12
+ release:
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: write
16
+ id-token: write
17
+
18
+ steps:
19
+ - uses: actions/checkout@v6
20
+
21
+ - name: Setup UV
22
+ uses: ./.github/actions/uv_setup
23
+ with:
24
+ python-version: "3.12"
25
+
26
+ - name: Install dependencies
27
+ run: |
28
+ uv pip install --system -e ".[dev]"
29
+
30
+ - name: Start CockroachDB
31
+ run: |
32
+ docker run -d --name cockroachdb \
33
+ -p 26257:26257 \
34
+ -p 8080:8080 \
35
+ cockroachdb/cockroach:latest \
36
+ start-single-node --insecure
37
+
38
+ # Wait for CockroachDB to be ready
39
+ echo "Waiting for CockroachDB to start..."
40
+ for i in {1..30}; do
41
+ if docker exec cockroachdb ./cockroach sql --insecure -e "SELECT 1" 2>/dev/null; then
42
+ echo "✅ CockroachDB is ready!"
43
+ break
44
+ fi
45
+ echo "Waiting... ($i/30)"
46
+ sleep 2
47
+ done
48
+
49
+ - name: Run tests
50
+ env:
51
+ USE_TESTCONTAINER: "false"
52
+ COCKROACHDB_URL: "cockroachdb://root@localhost:26257/defaultdb?sslmode=disable"
53
+ run: |
54
+ pytest tests -v
55
+
56
+ - name: Build package
57
+ run: |
58
+ uv build
59
+
60
+ - name: Publish to PyPI
61
+ uses: pypa/gh-action-pypi-publish@release/v1
62
+ with:
63
+ skip-existing: true
64
+
65
+ - name: Create GitHub Release
66
+ uses: softprops/action-gh-release@v2
67
+ with:
68
+ tag_name: v${{ inputs.version }}
69
+ name: Release v${{ inputs.version }}
70
+ draft: false
71
+ prerelease: false
72
+ generate_release_notes: true
@@ -0,0 +1,73 @@
1
+ name: Test
2
+
3
+ on:
4
+ workflow_call:
5
+ inputs:
6
+ python-version:
7
+ description: Python version
8
+ required: true
9
+ type: string
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - uses: actions/checkout@v6
17
+
18
+ - name: Setup UV
19
+ uses: ./.github/actions/uv_setup
20
+ with:
21
+ python-version: ${{ inputs.python-version }}
22
+
23
+ - name: Install dependencies
24
+ run: |
25
+ uv pip install --system -e ".[dev]"
26
+
27
+ - name: Start CockroachDB
28
+ run: |
29
+ docker run -d --name cockroachdb \
30
+ -p 26257:26257 \
31
+ -p 8080:8080 \
32
+ cockroachdb/cockroach:latest \
33
+ start-single-node --insecure
34
+
35
+ # Wait for CockroachDB to be ready
36
+ echo "Waiting for CockroachDB to start..."
37
+ for i in {1..30}; do
38
+ if docker exec cockroachdb ./cockroach sql --insecure -e "SELECT 1" 2>/dev/null; then
39
+ echo "✅ CockroachDB is ready!"
40
+ break
41
+ fi
42
+ echo "Waiting... ($i/30)"
43
+ sleep 2
44
+ done
45
+
46
+ # Verify it's running
47
+ docker exec cockroachdb ./cockroach version
48
+
49
+ - name: Run unit tests
50
+ run: |
51
+ pytest tests/unit -v --tb=short
52
+
53
+ - name: Run integration tests
54
+ env:
55
+ USE_TESTCONTAINER: "false"
56
+ COCKROACHDB_URL: "cockroachdb://root@localhost:26257/defaultdb?sslmode=disable"
57
+ run: |
58
+ pytest tests/integration -v --tb=short
59
+
60
+ - name: Generate coverage report
61
+ if: inputs.python-version == '3.12'
62
+ run: |
63
+ pytest tests --cov=langchain_cockroachdb --cov-branch --cov-report=xml --cov-report=html
64
+
65
+ - name: Upload coverage reports to Codecov
66
+ if: inputs.python-version == '3.12'
67
+ uses: codecov/codecov-action@v5
68
+ with:
69
+ token: ${{ secrets.CODECOV_TOKEN }}
70
+ files: ./coverage.xml
71
+ flags: integration
72
+ name: codecov-umbrella
73
+ fail_ci_if_error: false
@@ -0,0 +1,51 @@
1
+ name: Documentation
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ paths:
7
+ - 'docs/**'
8
+ - 'mkdocs.yml'
9
+ - '.github/workflows/docs.yml'
10
+ pull_request:
11
+ branches: [main]
12
+ paths:
13
+ - 'docs/**'
14
+ - 'mkdocs.yml'
15
+ workflow_dispatch:
16
+
17
+ permissions:
18
+ contents: write
19
+
20
+ jobs:
21
+ deploy:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+ with:
26
+ fetch-depth: 0
27
+
28
+ - name: Setup Python
29
+ uses: actions/setup-python@v6
30
+ with:
31
+ python-version: '3.12'
32
+
33
+ - name: Cache dependencies
34
+ uses: actions/cache@v5
35
+ with:
36
+ path: ~/.cache/pip
37
+ key: ${{ runner.os }}-pip-docs-${{ hashFiles('pyproject.toml') }}
38
+ restore-keys: |
39
+ ${{ runner.os }}-pip-docs-
40
+
41
+ - name: Install dependencies
42
+ run: |
43
+ python -m pip install --upgrade pip
44
+ pip install -e ".[docs]"
45
+
46
+ - name: Build documentation
47
+ run: mkdocs build --strict
48
+
49
+ - name: Deploy to GitHub Pages
50
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
51
+ run: mkdocs gh-deploy --force
@@ -0,0 +1,16 @@
1
+ name: Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: Version to release (e.g., 0.1.0)
8
+ required: true
9
+ type: string
10
+
11
+ jobs:
12
+ release:
13
+ uses: ./.github/workflows/_release.yml
14
+ with:
15
+ version: ${{ inputs.version }}
16
+ secrets: inherit
@@ -0,0 +1,36 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main, develop]
6
+ pull_request:
7
+ branches: [main, develop]
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ lint:
12
+ uses: ./.github/workflows/_lint.yml
13
+
14
+ test-python-3-9:
15
+ uses: ./.github/workflows/_test.yml
16
+ with:
17
+ python-version: "3.9"
18
+ secrets: inherit
19
+
20
+ test-python-3-10:
21
+ uses: ./.github/workflows/_test.yml
22
+ with:
23
+ python-version: "3.10"
24
+ secrets: inherit
25
+
26
+ test-python-3-11:
27
+ uses: ./.github/workflows/_test.yml
28
+ with:
29
+ python-version: "3.11"
30
+ secrets: inherit
31
+
32
+ test-python-3-12:
33
+ uses: ./.github/workflows/_test.yml
34
+ with:
35
+ python-version: "3.12"
36
+ secrets: inherit
@@ -0,0 +1,97 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ share/python-wheels/
20
+ *.egg-info/
21
+ .installed.cfg
22
+ *.egg
23
+ MANIFEST
24
+
25
+ # Virtual environments
26
+ venv/
27
+ .venv/
28
+ env/
29
+ ENV/
30
+ env.bak/
31
+ venv.bak/
32
+
33
+ # Testing
34
+ .pytest_cache/
35
+ .coverage
36
+ .coverage.*
37
+ htmlcov/
38
+ .tox/
39
+ .nox/
40
+ coverage.xml
41
+ *.cover
42
+ .hypothesis/
43
+
44
+ # Type checking
45
+ .mypy_cache/
46
+ .dmypy.json
47
+ dmypy.json
48
+ .pyre/
49
+ .pytype/
50
+
51
+ # Linting
52
+ .ruff_cache/
53
+
54
+ # IDEs
55
+ .vscode/
56
+ .idea/
57
+ *.swp
58
+ *.swo
59
+ *~
60
+ .DS_Store
61
+
62
+ # Documentation
63
+ docs/_build/
64
+ site/
65
+
66
+ # Environment
67
+ .env
68
+ .env.local
69
+ .env.*.local
70
+
71
+ # Database
72
+ *.db
73
+ *.sqlite
74
+ *.sqlite3
75
+
76
+ # Logs
77
+ *.log
78
+
79
+ # OS
80
+ .DS_Store
81
+ Thumbs.db
82
+
83
+ # UV
84
+ uv.lock
85
+ CLAUDE.md
86
+
87
+ # Internal documentation (use make help instead)
88
+ MAKEFILE.md
89
+ PYPI_READINESS.md
90
+ PUBLISH_NOW.md
91
+
92
+ # Performance tests and benchmarks (local only)
93
+ tests/performance/
94
+ BENCHMARK_RESULTS.md
95
+ *_benchmark_results.txt
96
+ *_results.txt
97
+ LANGCHAIN_INTEGRATION.md
@@ -0,0 +1,39 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+ - Initial implementation of langchain-cockroachdb
12
+ - CockroachDBEngine for connection management
13
+ - AsyncCockroachDBVectorStore and CockroachDBVectorStore for vector operations
14
+ - C-SPANN vector index support with configurable partitions
15
+ - Multiple distance strategies (cosine, L2, inner product)
16
+ - Metadata filtering with complex operators ($and, $or, $gt, $lt, $in, etc.)
17
+ - Hybrid search combining FTS and vector similarity
18
+ - Chat message history persistence
19
+ - Comprehensive unit and integration tests
20
+ - Development and contributing guidelines
21
+
22
+ ### Changed
23
+ - N/A (initial release)
24
+
25
+ ### Deprecated
26
+ - N/A (initial release)
27
+
28
+ ### Removed
29
+ - N/A (initial release)
30
+
31
+ ### Fixed
32
+ - N/A (initial release)
33
+
34
+ ### Security
35
+ - N/A (initial release)
36
+
37
+ ## [0.1.0] - 2026-02-01
38
+
39
+ Initial alpha release.
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [INSERT CONTACT EMAIL].
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.