awesome-repositories.com
Blog
awesome-repositories.com

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
Chalarangelo avatar

Chalarangelo/30-seconds-of-pythonArchived

0
View on GitHub↗
8,826 Stars·1,249 Forks·Python·CC-BY-4.0·4 Aufrufewww.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.
  • 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-Verlauf

Star-Verlauf für chalarangelo/30-seconds-of-pythonStar-Verlauf für chalarangelo/30-seconds-of-python

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Häufig gestellte Fragen

Was macht 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.

Was sind die Hauptfunktionen von chalarangelo/30-seconds-of-python?

Die Hauptfunktionen von chalarangelo/30-seconds-of-python sind: 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.

Welche Open-Source-Alternativen gibt es zu chalarangelo/30-seconds-of-python?

Open-Source-Alternativen zu chalarangelo/30-seconds-of-python sind unter anderem: 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…

Open-Source-Alternativen zu 30 Seconds Of Python

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit 30 Seconds Of Python.
  • carp-lang/carpAvatar von carp-lang

    carp-lang/Carp

    5,815Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗5,815
  • jerry-git/learn-python3Avatar von jerry-git

    jerry-git/learn-python3

    6,754Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗6,754
  • masterminds/sprigAvatar von Masterminds

    Masterminds/sprig

    4,692Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗4,692
  • ecrmnn/collect.jsAvatar von ecrmnn

    ecrmnn/collect.js

    6,571Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗6,571
  • Alle 30 Alternativen zu 30 Seconds Of Python anzeigen→