awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
Chalarangelo avatar

Chalarangelo/30-seconds-of-pythonArchived

0
View on GitHub↗
8,826 星标·1,249 分支·Python·CC-BY-4.0·4 次浏览www.30secondsofcode.org/python/p/1↗

30 Seconds Of Python

30 Seconds of Python is a curated collection of short, reusable Python code snippets designed for quick reference and immediate reuse. It provides an interactive browser that lets you explore snippets organized by tags, search across names and descriptions, and copy code to your clipboard with a single click.

The collection covers a broad range of common programming tasks, including list and dictionary operations, string formatting and manipulation, date and time calculations, and color format conversion. It also includes utilities for data transformation, such as converting between case styles, mapping values between ranges, and creating URL-friendly slugs.

The snippets are stored as individual Markdown files with YAML front matter, and the entire collection is pre-built into static HTML pages for instant loading. The browser interface displays each snippet as a self-contained card with a copy button and tag labels, and supports real-time filtering as you type.

Features

  • Code Snippets and Examples - A curated collection of short, reusable Python code snippets for common programming tasks.
  • Code Snippets - A curated library of short, reusable Python code snippets for common programming tasks.
  • Named Tuples - Provides a snippet to create lightweight, immutable data records with named field access.
  • List Element Structural Matching - Provides functions to locate list elements matching a test condition, returning first, last, or all matches.

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI
  • Unique Value Filtering - Provides a function to remove duplicate entries from a list while preserving original order.
  • Emptiness Checks - Provides a function to check if a list contains no elements using the not operator.
  • Sorting and Filtering Operations - Provides a wide range of list and dictionary operations including sorting, filtering, and conversion.
  • List-to-Dictionary Mappings - Provides a function to map list elements through a function and store results in a dictionary.
  • Dictionary Inversion - Provides a function to invert a dictionary, grouping keys by their values.
  • Key Lookups by Value - Provides a function to find dictionary keys that map to a given value.
  • List and Dictionary Initializers - Provides utilities for initializing lists with values, ranges, and dates, and for creating named tuples.
  • Multi-Key Sorting - Provides a snippet to sort a list of dictionaries by multiple keys using a tuple.
  • Snippet Search - Provides a searchable collection of Python code snippets across names, tags, and descriptions.
  • Date and Time Utilities - Provides functions for date difference, day addition/subtraction, and weekday detection.
  • Tag-Organized Snippet Browsers - Provides an interactive browser for exploring a curated collection of Python snippets organized by tags.
  • Date Range Iterators - Provides a function to generate a list of date objects between two dates using timedelta.
  • Dictionary Construction From Sequences - Provides a function to combine two lists into a dictionary by pairing keys and values.
  • Dictionary-to-List Conversions - Provides functions to convert between dictionaries and lists of key-value tuples.
  • Multi-Dimensional - Provides a snippet to initialize a 2D list using nested list comprehensions.
  • Array Element Finding - Provides functions to locate elements, indices, or keys in lists and dictionaries by condition.
  • Extremum Finding - Ships a utility to find the index of the smallest or largest element in a list.
  • String Manipulation - Provides string formatting with f-strings, case conversion, and prefix stripping utilities.
  • Numeric Range Generators - Provides a function to generate a list of numbers within a given range.
  • List Initializers - Provides snippets to initialize lists with values, numeric ranges, or date sequences.
  • Code Snippet Cards - Displays each code example as a self-contained card with a copy button and tag labels for quick scanning.
  • Code Block Copy and Download Controls - Copies a snippet's code to the clipboard with a single click for immediate reuse.
  • String Substitutions - Demonstrates substituting values into template strings using positional arguments.
  • Map Value Transformers - Includes a utility that applies a transformation function to every value in a dictionary.
  • List Chunking Utilities - Splits a list into a specified number of smaller lists, distributing elements as evenly as possible.
  • Search-As-You-Type Filters - Filters the visible snippet list in real time as the user types, matching keywords against names and tags.
  • Tag-Based Search - Organizes snippets by user-defined tags, enabling filtered discovery without a full-text search engine.
  • Clipboard Copying - Provides a one-click copy-to-clipboard utility for Python code snippets.
  • Date Arithmetic Logic - Provides a function to add or subtract a specified number of days from a given date.
  • Date Difference Calculators - Provides a function to compute the interval between two dates in days, months, or years.
  • String Case Transformers - Ships utilities for converting strings between camelCase, snake_case, and kebab-case.
  • Color Space Conversions - Provides functions for converting between hexadecimal color codes and RGB component tuples.
  • Inline Expression Interpolation - Demonstrates embedding variables and expressions directly inside string literals using f-strings.
  • Numerical Range Scaling - Ships a function for proportionally scaling a numeric value from one interval to another.
  • Tag-Based Snippet Browsers - Provides an interactive browser for exploring and searching Python code snippets by tags and descriptions.
  • Slug Generators - Provides a utility to transform any string into a URL-safe, search-engine-friendly slug.
  • Star 历史

    chalarangelo/30-seconds-of-python 的 Star 历史图表chalarangelo/30-seconds-of-python 的 Star 历史图表

    常见问题解答

    chalarangelo/30-seconds-of-python 是做什么的?

    30 Seconds of Python is a curated collection of short, reusable Python code snippets designed for quick reference and immediate reuse. It provides an interactive browser that lets you explore snippets organized by tags, search across names and descriptions, and copy code to your clipboard with a single click.

    chalarangelo/30-seconds-of-python 的主要功能有哪些?

    chalarangelo/30-seconds-of-python 的主要功能包括:Code Snippets and Examples, Code Snippets, Named Tuples, List Element Structural Matching, Unique Value Filtering, Emptiness Checks, Sorting and Filtering Operations, List-to-Dictionary Mappings。

    chalarangelo/30-seconds-of-python 有哪些开源替代品?

    chalarangelo/30-seconds-of-python 的开源替代品包括: carp-lang/carp — Carp is a statically typed Lisp compiler that compiles Lisp-like syntax directly to C source code, enabling seamless… jerry-git/learn-python3 — This is an interactive Python tutorial delivered as a collection of Jupyter notebooks. It is designed as a structured… masterminds/sprig — Sprig is a comprehensive library of helper functions designed to extend the Go text template engine. It provides a… ecrmnn/collect.js — collect.js is a dependency-free JavaScript library that provides a fluent, chainable interface for manipulating arrays… sdispater/pendulum — Pendulum is a Python date and time library that provides a simplified interface for date arithmetic, ISO parsing,… sodiray/radash — Radash is a TypeScript functional utility library designed for data transformation, validation, and workflow…

    30 Seconds Of Python 的开源替代方案

    相似的开源项目,按与 30 Seconds Of Python 的功能重合度排序。
    • carp-lang/carpcarp-lang 的头像

      carp-lang/Carp

      5,815在 GitHub 上查看↗

      Carp is a statically typed Lisp compiler that compiles Lisp-like syntax directly to C source code, enabling seamless integration with existing C libraries and low-level system programming. It manages memory deterministically at compile time using ownership tracking and linear types, eliminating garbage collection pauses and runtime overhead while ensuring type safety through an inferred static type system. The language distinguishes itself through compile-time macro expansion and metaprogramming capabilities, allowing code generation and transformation before final binary output. It enforces

      Haskellfunctionalfunctional-programminggame-development
      在 GitHub 上查看↗5,815
    • jerry-git/learn-python3jerry-git 的头像

      jerry-git/learn-python3

      6,754在 GitHub 上查看↗

      This is an interactive Python tutorial delivered as a collection of Jupyter notebooks. It is designed as a structured learning path for beginners, teaching fundamental language concepts through a sequence of lessons that combine explanatory text with runnable code cells and embedded practice exercises. Each notebook is a self-contained unit that introduces a topic, demonstrates it with a minimal code example, and then asks the learner to write code themselves, receiving immediate feedback from the browser-based execution environment. The curriculum is built on a progressive concept-stacking mo

      HTMLjupyter-notebooklearning-pythonpython-exercises
      在 GitHub 上查看↗6,754
    • masterminds/sprigMasterminds 的头像

      Masterminds/sprig

      4,692在 GitHub 上查看↗

      Sprig is a comprehensive library of helper functions designed to extend the Go text template engine. It provides a wide array of custom functions that can be injected into the engine to enable complex data manipulation and logic directly within templates. The project offers specialized capabilities for cryptography, including the generation of private keys, X.509 certificates, and secure password hashes. It also includes advanced logic extensions for semantic versioning comparison, ternary evaluations, and the resolution of environment variables from the host operating system. The library co

      Gogotemplatetemplates
      在 GitHub 上查看↗4,692
  • ecrmnn/collect.jsecrmnn 的头像

    ecrmnn/collect.js

    6,571在 GitHub 上查看↗

    collect.js is a dependency-free JavaScript library that provides a fluent, chainable interface for manipulating arrays and objects. It mirrors the Laravel Collection API, offering a consistent set of methods for data transformation across JavaScript and Laravel backend environments. The library stores collection data as plain arrays internally and supports fluent method chaining, where each method returns a new collection instance. The library distinguishes itself by closely replicating the Laravel Collection API in JavaScript, mapping each PHP method to an equivalent JavaScript implementatio

    JavaScriptcollectionlaravellaravel-collections
    在 GitHub 上查看↗6,571
  • 查看 30 Seconds Of Python 的所有 30 个替代方案→