Dataset Viewer
Auto-converted to Parquet Duplicate
repo_id
stringclasses
1 value
file_path
stringlengths
16
121
content
stringlengths
4
160k
token_count
int64
3
66.1k
streamlit
streamlit/.claude/hooks/pre_bash_redirect.py
#!/usr/bin/env python3 # Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
1,195
streamlit
streamlit/.claude/settings.json
{ "hooks": { "PreToolUse": [ { "matcher": "Bash", "hooks": [ { "type": "command", "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/pre_bash_redirect.py", "timeout": 10 } ] } ] } }
178
streamlit
streamlit/.cursor/commands/py-docstring-fix.md
# Python Docstrings - Fix ## Overview Add or correct Numpydoc-style docstrings for public modules, classes, functions, and methods without changing code behavior. Refer to the Docstrings guidance in `.cursor/rules/python.mdc`. ## Success Criteria - All public APIs have clear, accurate Numpydoc docstrings. - Module...
883
streamlit
streamlit/.cursor/commands/py-parameterize-test.md
# Parameterize Tests ## Overview Convert repetitive `pytest` tests into parameterized tests using `pytest.mark.parametrize` to reduce duplication and improve maintainability, without changing behavior or reducing test coverage. ## Success Criteria - Coverage is maintained or increased. - All tests pass via `pytest`...
493
streamlit
streamlit/.cursor/rules/e2e_playwright.mdc
--- description: globs: e2e_playwright/**/*.py alwaysApply: false --- # Streamlit E2E Tests We use playwright with pytest to e2e test Streamlit library. E2E tests verify the complete Streamlit system (frontend, backend, communication, state, visual appearance) from a user's perspective (black-box). They complement Py...
1,471
streamlit
streamlit/.cursor/rules/make_commands.mdc
--- description: List of all available make commands globs: alwaysApply: false --- # Available `make` commands List of all `make` commands that are available for execution from the repository root folder: help Show all available make commands. all Install all dependencies, ...
1,161
streamlit
streamlit/.cursor/rules/new_feature.mdc
--- description: Implementation guide for new features globs: alwaysApply: false --- # New Feature - Implementation Guide - Most features need to be implemented in the backend in `lib/streamlit/`, the frontend `frontend/` and will need changes to our protobuf definitions in `proto/`. - New features should be covered ...
534
streamlit
streamlit/.cursor/rules/overview.mdc
--- description: globs: alwaysApply: true --- # Streamlit Repo Overview Streamlit is an open-source (Apache 2.0) Python library for creating interactive web applications and dashboards with focus on data apps and internal tools. ## Tech Stack - **Backend (Server):** Python, Tornado server, pytest - **Frontend (Web ...
1,097
streamlit
streamlit/.cursor/rules/protobuf.mdc
--- description: globs: **/*.proto alwaysApply: false --- # Protobuf Protobuf messages are used for communication between the Streamlit backend and frontend via WebSocket connections. **Note**: Messages are "released" once shipped in any Streamlit version. ## Protobuf Compatibility Always keep protobuf messages ba...
461
streamlit
streamlit/.cursor/rules/python.mdc
--- description: globs: **/*.py alwaysApply: false --- # Python Development Guide - Supported Python versions: 3.10 - 3.14 - Docstrings: Numpy style - Linter: Ruff 0.x (`.ruff.toml`) - Formatter: Ruff 0.x (`.ruff.toml`) - Type Checker: mypy 1.x (`mypy.ini`) - Testing: pytest 8.x (`lib/pytest.ini`) ## Key Principles ...
885
streamlit
streamlit/.cursor/rules/python_lib.mdc
--- description: globs: lib/streamlit/**/*.py alwaysApply: false --- # Streamlit Lib Python Guide Tips and guidelines specific to the development of the Streamlit Python library, not applicable to scripts and e2e tests. ## Logging If something needs to be logged, please use our logger - that returns a default Pytho...
314
streamlit
streamlit/.cursor/rules/python_tests.mdc
--- description: globs: lib/tests/**/*.py alwaysApply: false --- # Python Unit Test Guide We use the unit tests to cover internal behavior that can work without the web / backend counterpart. We aim for high unit test coverage (90% or higher) of our Python code in `lib/streamlit`. ## Key Principles - Prefer pytest ...
313
streamlit
streamlit/.cursor/rules/typescript.mdc
--- description: globs: **/*.ts, **/*.tsx alwaysApply: false --- # TypeScript Development Guide - TypeScript: v5 - Linter: eslint v9 - Formatter: prettier v3 - Framework: React v18 - Styling: @emotion/styled v11 - Build tool: vite v7 - Testing: vitest v3 & react testing library v16 - Package manager: yarn v4 with wor...
3,579
streamlit
streamlit/.cursor/worktrees.json
{ "setup-worktree": [ "cd \"$(git rev-parse --show-toplevel)\"; [ -d .venv ] || uv venv; VIRTUAL_ENV=.venv PATH=\".venv/bin:.venv/Scripts:$PATH\" make all-dev frontend" ] }
87
streamlit
streamlit/.devcontainer/Dockerfile
# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
374
streamlit
streamlit/.devcontainer/devcontainer.json
{ "name": "streamlit-dev", "build": { "dockerfile": "Dockerfile" }, "forwardPorts": [3000], "portsAttributes": { "3000": { "label": "Dev Server", "onAutoForward": "notify" } }, "customizations": { "vscode": { "extensions": [ "dbaeumer.vscode-eslint", "esbe...
2,229
streamlit
streamlit/.editorconfig
# https://editorconfig.org/ root = true [*] indent_style = space indent_size = 2 insert_final_newline = true trim_trailing_whitespace = true end_of_line = lf charset = utf-8 max_line_length = 79 [*.py] indent_size = 4 max_line_length = 88 # The JSON files contain newlines inconsistently [*.json] insert_final_newlin...
188
streamlit
streamlit/.nvmrc
v24
3
streamlit
streamlit/.pre-commit-config.yaml
# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
4,405
streamlit
streamlit/.ruff.toml
# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
1,969
streamlit
streamlit/.vscode/extensions.json
{ "recommendations": [ "dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "ms-python.mypy-type-checker", "ms-python.python", "ms-python.debugpy", "ms-python.vscode-pylance", "charliermarsh.ruff", "EditorConfig.EditorConfig", "vitest.explorer", "tamasfe.even-better-toml", "...
172
streamlit
streamlit/.vscode/launch.json
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Debug Streamlit App", "type": "debugpy", "requ...
254
streamlit
streamlit/CLAUDE.md
@./AGENTS.md
7
streamlit
streamlit/CODE_OF_CONDUCT.md
# Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex ch...
694
streamlit
streamlit/CONTRIBUTING.md
Thanks for your interest in helping improve Streamlit! 🎉 **If you are looking for Streamlit's documentation, go here instead: <https://docs.streamlit.io>** This wiki is for people who want to contribute code to Streamlit. There are also other ways to contribute, such as [reporting bugs](https://github.com/streamlit/...
4,042
streamlit
streamlit/LICENSE
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, ...
3,168
streamlit
streamlit/Makefile
# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
5,754
streamlit
streamlit/README.md
<br> <img src="https://user-images.githubusercontent.com/7164864/217935870-c0bc60a3-6fc0-4047-b011-7b4c59488c91.png" alt="Streamlit logo" style="margin-top:50px"></img> # Welcome to Streamlit 👋 **A faster way to build and share data apps.** ## What is Streamlit? Streamlit lets you transform Python scripts into in...
2,248
streamlit
streamlit/SECURITY.md
# Security Policy ## Supported Versions | Version | Supported | | --------- | --------- | | >= 1.11.1 | ✅ | </br> Please refer to the Snowflake [HackerOne program](https://hackerone.com/snowflake?type=team) for our security policies and for reporting any security vulnerabilities.
90
streamlit
streamlit/agent-knowledge/INDEX.md
--- last_updated: 2025-11-05 --- # Agent Knowledge Base Index Central registry of resources available to AI agents working on Streamlit. ## Available Resources ### [Processes](processes/) Development workflows and procedures: - [pr-creation/](processes/pr-creation/) - Complete PR creation workflow with guidance o...
250
streamlit
streamlit/agent-knowledge/README.md
# Agent Knowledge Base This directory contains documentation and guides designed for AI agents working on the Streamlit codebase. ## Purpose Tool-agnostic knowledge base for AI-assisted development. Works with any AI tool (Cursor, Cline, Aider, etc.) and any task type (commands, pipelines, ad-hoc prompts). ## Quick...
703
streamlit
streamlit/agent-knowledge/processes/pr-creation/README.md
--- status: stable last_updated: 2025-11-19 --- # PR Creation Process Reference materials for creating pull requests in the Streamlit repository. ## The PR Template **Location**: `.github/pull_request_template.md` (canonical source) ## Available Guides - [writing-principles.md](./writing-principles.md) - General ...
281
streamlit
streamlit/agent-knowledge/processes/pr-creation/branch-naming.md
--- status: experimental last_updated: 2025-11-05 --- # Branch Naming - Best Practices ## Format ``` {type}/{brief-description} ``` ## Types - `feature` - New features or functionality - `fix` - Bug fixes - `refactor` - Code refactoring - `chore` - Maintenance tasks (dependencies, tooling, etc.) - `docs` - Documen...
426
streamlit
streamlit/agent-knowledge/processes/pr-creation/describe-changes-guide.md
--- status: stable last_updated: 2025-12-02 --- # Guide: Describing Changes Use this guide for PR template sections that ask what changed (e.g., "Describe your changes"). ## Content Guidelines **Keep it brief:** 2-4 bullets maximum for listing changes. **List only impactful changes** - not every file touched. **O...
646
streamlit
streamlit/agent-knowledge/processes/pr-creation/labeling-guide.md
--- status: experimental last_updated: 2025-11-05 --- # PR Labeling Guide All Streamlit PRs must have the following labels applied. ## Required Labels ### 1. Security Assessment - `security-assessment-completed` - Required for all PRs ### 2. Impact Classification Choose **one**: - `impact:users` - Changes will ...
410
streamlit
streamlit/agent-knowledge/processes/pr-creation/testing-plan-guide.md
--- status: experimental last_updated: 2025-11-05 --- # How to Fill In the Testing Plan Guide for documenting tests in PR descriptions. ## Detect Test Changes in Git Diff Check for modified/added test files: **Python unit tests:** - Pattern: `lib/tests/**/*.py` - Example: `lib/tests/streamlit/elements/plotly_char...
707
streamlit
streamlit/agent-knowledge/processes/pr-creation/writing-principles.md
--- status: stable last_updated: 2025-12-02 --- # Writing Principles for PRs **Core principle: Highlight what matters. Omit the obvious.** Don't list every change - focus on the most impactful. Don't explain what's obvious from reading the code - only explain non-obvious decisions. ## Commit Messages **Format:** ...
726
streamlit
streamlit/agent-knowledge/references/guides/streamlit-layout-feature.md
--- status: stable last_updated: 2025-11-05 --- # Overview This document includes details of the implementation of the layout feature for Streamlit. The layout feature includes: - Width parameters for widgets and elements. - Height parameters for widgets and elements. - A container element for flexbox layouts (st.c...
3,444
streamlit
streamlit/component-lib/.yarnrc.yml
nodeLinker: node-modules
8
streamlit
streamlit/component-lib/README.md
# Streamlit Component Library An npm package that provides support code for creating [Streamlit Components](https://docs.streamlit.io/develop/concepts/custom-components). The fastest way to start writing a Streamlit Component is to use our [Component Template repo](https://github.com/streamlit/component-template), wh...
82
streamlit
streamlit/component-lib/RELEASE_NOTES.md
<!-- Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required ...
884
streamlit
streamlit/component-lib/jest.config.ts
/** * Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
1,938
streamlit
streamlit/component-lib/package.json
{ "name": "streamlit-component-lib", "version": "2.0.0", "description": "Support code for Streamlit Components", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist" ], "scripts": { "build": "tsc", "test": "jest ./src", "typesync": "typesync", "typesync:ci": "typesy...
767
streamlit
streamlit/component-lib/src/ArrowTable.test.ts
/** * Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
1,591
streamlit
streamlit/component-lib/src/ArrowTable.ts
/** * Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
2,387
streamlit
streamlit/component-lib/src/StreamlitReact.test.tsx
/** * Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
1,944
streamlit
streamlit/component-lib/src/StreamlitReact.tsx
/** * Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
1,754
streamlit
streamlit/component-lib/src/index.ts
/** * Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
365
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4