repo_name
stringclasses
25 values
repo_full_name
stringclasses
25 values
owner
stringclasses
25 values
stars
int64
117k
496k
license
stringclasses
7 values
repo_description
stringclasses
25 values
filepath
stringlengths
9
75
file_type
stringclasses
3 values
language
stringclasses
2 values
content
stringlengths
24
383k
size_bytes
int64
25
387k
num_lines
int64
2
4.44k
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\capitalize.py
python
Python
def capitalize(sentence: str) -> str: """ Capitalizes the first letter of a sentence or word. >>> capitalize("hello world") 'Hello world' >>> capitalize("123 hello world") '123 hello world' >>> capitalize(" hello world") ' hello world' >>> capitalize("a") 'A' >>> capitalize(...
664
28
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\check_anagrams.py
python
Python
""" wiki: https://en.wikipedia.org/wiki/Anagram """ from collections import defaultdict def check_anagrams(first_str: str, second_str: str) -> bool: """ Two strings are anagrams if they are made up of the same letters but are arranged differently (ignoring the case). >>> check_anagrams('Silent', 'Lis...
1,573
53
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\count_vowels.py
python
Python
def count_vowels(s: str) -> int: """ Count the number of vowels in a given string. :param s: Input string to count vowels in. :return: Number of vowels in the input string. Examples: >>> count_vowels("hello world") 3 >>> count_vowels("HELLO WORLD") 3 >>> count_vowels("123 hello...
777
35
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\credit_card_validator.py
python
Python
""" Functions for testing the validity of credit card numbers. https://en.wikipedia.org/wiki/Luhn_algorithm """ def validate_initial_digits(credit_card_number: str) -> bool: """ Function to validate initial digits of a given credit card number. >>> valid = "4111111111111111 41111111111111 34 35 37 412345...
3,620
104
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\damerau_levenshtein_distance.py
python
Python
""" This script is a implementation of the Damerau-Levenshtein distance algorithm. It's an algorithm that measures the edit distance between two string sequences More information about this algorithm can be found in this wikipedia article: https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance """ def d...
2,358
72
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\detecting_english_programmatically.py
python
Python
import os from string import ascii_letters LETTERS_AND_SPACE = ascii_letters + " \t\n" def load_dictionary() -> dict[str, None]: path = os.path.split(os.path.realpath(__file__)) english_words: dict[str, None] = {} with open(path[0] + "/dictionary.txt") as dictionary_file: for word in dictionary_f...
1,782
63
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\dna.py
python
Python
import re def dna(dna: str) -> str: """ https://en.wikipedia.org/wiki/DNA Returns the second side of a DNA strand >>> dna("GCTA") 'CGAT' >>> dna("ATGC") 'TACG' >>> dna("CTGA") 'GACT' >>> dna("GFGG") Traceback (most recent call last): ... ValueError: Invalid Str...
585
31
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\edit_distance.py
python
Python
def edit_distance(source: str, target: str) -> int: """ Edit distance algorithm is a string metric, i.e., it is a way of quantifying how dissimilar two strings are to one another. It is measured by counting the minimum number of operations required to transform one string into another. This impleme...
1,481
47
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\frequency_finder.py
python
Python
# Frequency Finder import string # frequency taken from https://en.wikipedia.org/wiki/Letter_frequency english_letter_freq = { "E": 12.70, "T": 9.06, "A": 8.17, "O": 7.51, "I": 6.97, "N": 6.75, "S": 6.33, "H": 6.09, "R": 5.99, "D": 4.25, "L": 4.03, "C": 2.78, "U": 2...
2,549
104
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\hamming_distance.py
python
Python
def hamming_distance(string1: str, string2: str) -> int: """Calculate the Hamming distance between two equal length strings In information theory, the Hamming distance between two strings of equal length is the number of positions at which the corresponding symbols are different. https://en.wikipedia.or...
1,099
41
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\indian_phone_validator.py
python
Python
import re def indian_phone_validator(phone: str) -> bool: """ Determine whether the string is a valid phone number or not :param phone: :return: Boolean >>> indian_phone_validator("+91123456789") False >>> indian_phone_validator("+919876543210") True >>> indian_phone_validator("012...
785
30
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\is_contains_unique_chars.py
python
Python
def is_contains_unique_chars(input_str: str) -> bool: """ Check if all characters in the string is unique or not. >>> is_contains_unique_chars("I_love.py") True >>> is_contains_unique_chars("I don't love Python") False Time complexity: O(n) Space complexity: O(1) 19320 bytes as we are h...
908
32
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\is_isogram.py
python
Python
""" wiki: https://en.wikipedia.org/wiki/Heterogram_(literature)#Isograms """ def is_isogram(string: str) -> bool: """ An isogram is a word in which no letter is repeated. Examples of isograms are uncopyrightable and ambidextrously. >>> is_isogram('Uncopyrightable') True >>> is_isogram('allowan...
902
31
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\is_pangram.py
python
Python
""" wiki: https://en.wikipedia.org/wiki/Pangram """ def is_pangram( input_str: str = "The quick brown fox jumps over the lazy dog", ) -> bool: """ A Pangram String contains all the alphabets at least once. >>> is_pangram("The quick brown fox jumps over the lazy dog") True >>> is_pangram("Waltz...
2,828
96
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\is_polish_national_id.py
python
Python
def is_polish_national_id(input_str: str) -> bool: """ Verification of the correctness of the PESEL number. www-gov-pl.translate.goog/web/gov/czym-jest-numer-pesel?_x_tr_sl=auto&_x_tr_tl=en PESEL can start with 0, that's why we take str as input, but convert it to int for some calculations. >...
2,587
93
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\is_spain_national_id.py
python
Python
NUMBERS_PLUS_LETTER = "Input must be a string of 8 numbers plus letter" LOOKUP_LETTERS = "TRWAGMYFPDXBNJZSQVHLCKE" def is_spain_national_id(spanish_id: str) -> bool: """ Spain National Id is a string composed by 8 numbers plus a letter The letter in fact is not part of the ID, it acts as a validator, ...
2,463
74
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\is_srilankan_phone_number.py
python
Python
import re def is_sri_lankan_phone_number(phone: str) -> bool: """ Determine whether the string is a valid sri lankan mobile phone number or not References: https://aye.sh/blog/sri-lankan-phone-number-regex >>> is_sri_lankan_phone_number("+94773283048") True >>> is_sri_lankan_phone_number("+94...
909
34
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\is_valid_email_address.py
python
Python
""" Implements an is valid email address algorithm @ https://en.wikipedia.org/wiki/Email_address """ import string email_tests: tuple[tuple[str, bool], ...] = ( ("simple@example.com", True), ("very.common@example.com", True), ("disposable.style.email.with+symbol@example.com", True), ("other-email-wit...
4,491
116
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\jaro_winkler.py
python
Python
"""https://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance""" def jaro_winkler(str1: str, str2: str) -> float: """ Jaro-Winkler distance is a string metric measuring an edit distance between two sequences. Output value is between 0.0 and 1.0. >>> jaro_winkler("martha", "marhta") 0.9611111...
2,261
81
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\join.py
python
Python
""" Program to join a list of strings with a separator """ def join(separator: str, separated: list[str]) -> str: """ Joins a list of strings using a separator and returns the result. :param separator: Separator to be used for joining the strings. :param separated: List of strings...
2,133
75
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\knuth_morris_pratt.py
python
Python
from __future__ import annotations def knuth_morris_pratt(text: str, pattern: str) -> int: """ The Knuth-Morris-Pratt Algorithm for finding a pattern within a piece of text with complexity O(n + m) 1) Preprocess pattern to identify any suffixes that are identical to prefixes This tells us wh...
2,731
102
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\levenshtein_distance.py
python
Python
from collections.abc import Callable def levenshtein_distance(first_word: str, second_word: str) -> int: """ Implementation of the Levenshtein distance in Python. :param first_word: the first word to measure the difference. :param second_word: the second word to measure the difference. :return: th...
4,402
126
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\lower.py
python
Python
def lower(word: str) -> str: """ Will convert the entire string to lowercase letters >>> lower("wow") 'wow' >>> lower("HellZo") 'hellzo' >>> lower("WHAT") 'what' >>> lower("wh[]32") 'wh[]32' >>> lower("whAT") 'what' """ # Converting to ASCII value, obtaining the...
683
27
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\manacher.py
python
Python
def palindromic_string(input_string: str) -> str: """ >>> palindromic_string('abbbaba') 'abbba' >>> palindromic_string('ababa') 'ababa' Manacher's algorithm which finds Longest palindromic Substring in linear time. 1. first this convert input_string("xyx") into new_string("x|y|x") where od...
4,089
110
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\min_cost_string_conversion.py
python
Python
""" Algorithm for calculating the most cost-efficient sequence for converting one string into another. The only allowed operations are --- Cost to copy a character is copy_cost --- Cost to replace a character is replace_cost --- Cost to delete a character is delete_cost --- Cost to insert a character is insert_cost """...
5,393
171
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\naive_string_search.py
python
Python
""" https://en.wikipedia.org/wiki/String-searching_algorithm#Na%C3%AFve_string_search this algorithm tries to find the pattern from every position of the mainString if pattern is found from position i it add it to the answer and does the same for position i+1 Complexity : O(n*m) n=length of main string m=length...
1,230
41
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\ngram.py
python
Python
""" https://en.wikipedia.org/wiki/N-gram """ def create_ngram(sentence: str, ngram_size: int) -> list[str]: """ Create ngrams from a sentence >>> create_ngram("I am a sentence", 2) ['I ', ' a', 'am', 'm ', ' a', 'a ', ' s', 'se', 'en', 'nt', 'te', 'en', 'nc', 'ce'] >>> create_ngram("I am an NLPer...
648
24
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\palindrome.py
python
Python
# Algorithms to determine if a string is palindrome from timeit import timeit test_data = { "MALAYALAM": True, "String": False, "rotor": True, "level": True, "A": True, "BB": True, "ABC": False, "amanaplanacanalpanama": True, # "a man a plan a canal panama" "abcdba": False, "A...
3,119
107
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\pig_latin.py
python
Python
def pig_latin(word: str) -> str: """Compute the piglatin of a given string. https://en.wikipedia.org/wiki/Pig_Latin Usage examples: >>> pig_latin("pig") 'igpay' >>> pig_latin("latin") 'atinlay' >>> pig_latin("banana") 'ananabay' >>> pig_latin("friends") 'iendsfray' >>> ...
1,031
45
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\prefix_function.py
python
Python
""" https://cp-algorithms.com/string/prefix-function.html Prefix function Knuth-Morris-Pratt algorithm Different algorithm than Knuth-Morris-Pratt pattern finding E.x. Finding longest prefix which is also suffix Time Complexity: O(n) - where n is the length of the string """ def prefix_function(input_string: str)...
1,685
65
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\rabin_karp.py
python
Python
# Numbers of alphabet which we call base alphabet_size = 256 # Modulus to hash a string modulus = 1000003 def rabin_karp(pattern: str, text: str) -> bool: """ The Rabin-Karp Algorithm for finding a pattern within a piece of text with complexity O(nm), most efficient when it is used with multiple patterns ...
2,699
92
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\remove_duplicate.py
python
Python
def remove_duplicates(sentence: str) -> str: """ Remove duplicates from sentence >>> remove_duplicates("Python is great and Java is also great") 'Java Python also and great is' >>> remove_duplicates("Python is great and Java is also great") 'Java Python also and great is' """ retu...
449
16
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\reverse_letters.py
python
Python
def reverse_letters(sentence: str, length: int = 0) -> str: """ Reverse all words that are longer than the given length of characters in a sentence. If ``length`` is not specified, it defaults to 0. >>> reverse_letters("Hey wollef sroirraw", 3) 'Hey fellow warriors' >>> reverse_letters("nohtyP ...
757
25
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\reverse_words.py
python
Python
def reverse_words(sentence: str) -> str: """Reverse the order of words in a given string. Extra whitespace between words is ignored. >>> reverse_words("I love Python") 'Python love I' >>> reverse_words("I Love Python") 'Python Love I' """ return " ".join(sentence.split()[:...
414
18
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\snake_case_to_camel_pascal_case.py
python
Python
def snake_to_camel_case(input_str: str, use_pascal: bool = False) -> str: """ Transforms a snake_case given string to camelCase (or PascalCase if indicated) (defaults to not use Pascal) >>> snake_to_camel_case("some_random_string") 'someRandomString' >>> snake_to_camel_case("some_random_string...
1,673
53
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\split.py
python
Python
def split(string: str, separator: str = " ") -> list: """ Will split the string up into all the values separated by the separator (defaults to spaces) >>> split("apple#banana#cherry#orange",separator='#') ['apple', 'banana', 'cherry', 'orange'] >>> split("Hello there") ['Hello', 'there'] ...
974
38
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\string_switch_case.py
python
Python
import re """ general info: https://en.wikipedia.org/wiki/Naming_convention_(programming)#Python_and_Ruby pascal case [ an upper Camel Case ]: https://en.wikipedia.org/wiki/Camel_case camel case: https://en.wikipedia.org/wiki/Camel_case kebab case [ can be found in general info ]: https://en.wikipedia.org/wiki/Nami...
3,629
123
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\strip.py
python
Python
def strip(user_string: str, characters: str = " \t\n\r") -> str: """ Remove leading and trailing characters (whitespace by default) from a string. Args: user_string (str): The input string to be stripped. characters (str, optional): Optional characters to be removed (default...
870
34
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\text_justification.py
python
Python
def text_justification(word: str, max_width: int) -> list: """ Will format the string such that each line has exactly (max_width) characters and is fully (left and right) justified, and return the list of justified text. example 1: string = "This is an example of text justification." max_wi...
3,647
92
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\title.py
python
Python
def to_title_case(word: str) -> str: """ Converts a string to capitalized case, preserving the input as is >>> to_title_case("Aakash") 'Aakash' >>> to_title_case("aakash") 'Aakash' >>> to_title_case("AAKASH") 'Aakash' >>> to_title_case("aAkAsH") 'Aakash' """ """ ...
1,307
58
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\top_k_frequent_words.py
python
Python
""" Finds the top K most frequent words from the provided word list. This implementation aims to show how to solve the problem using the Heap class already present in this repository. Computing order statistics is, in fact, a typical usage of heaps. This is mostly shown for educational purposes, since the problem can...
3,262
101
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\upper.py
python
Python
def upper(word: str) -> str: """ Convert an entire string to ASCII uppercase letters by looking for lowercase ASCII letters and subtracting 32 from their integer representation to get the uppercase letter. >>> upper("wow") 'WOW' >>> upper("Hello") 'HELLO' >>> upper("WHAT") 'WHAT...
554
23
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\wave_string.py
python
Python
def wave(txt: str) -> list: """ Returns a so called 'wave' of a given string >>> wave('cat') ['Cat', 'cAt', 'caT'] >>> wave('one') ['One', 'oNe', 'onE'] >>> wave('book') ['Book', 'bOok', 'boOk', 'booK'] """ return [ txt[:a] + txt[a].upper() + txt[a + 1 :] for a i...
457
21
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\wildcard_pattern_matching.py
python
Python
""" Implementation of regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding element. The matching should cover the entire input string (not partial). """ def match_pattern(input_string: str, pattern: str) -> bool: """ uses bottom...
3,460
113
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\word_occurrence.py
python
Python
# Created by sarathkaul on 17/11/19 # Modified by Arkadip Bhattacharya(@darkmatter18) on 20/04/2020 from collections import defaultdict def word_occurrence(sentence: str) -> dict: """ >>> from collections import Counter >>> SENTENCE = "a b A b c b d b d e f e g e h e i e j e 0" >>> occurence_dict = wo...
896
27
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\word_patterns.py
python
Python
def get_word_pattern(word: str) -> str: """ Returns numerical pattern of character appearances in given word >>> get_word_pattern("") '' >>> get_word_pattern(" ") '0' >>> get_word_pattern("pattern") '0.1.2.2.3.4.5' >>> get_word_pattern("word pattern") '0.1.2.3.4.5.6.7.7.8.2.9' ...
2,065
66
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
strings\z_function.py
python
Python
""" https://cp-algorithms.com/string/z-function.html Z-function or Z algorithm Efficient algorithm for pattern occurrence in a string Time Complexity: O(n) - where n is the length of the string """ def z_function(input_str: str) -> list[int]: """ For the given string this function computes value for each ...
2,661
91
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\co2_emission.py
python
Python
""" Get CO2 emission data from the UK CarbonIntensity API """ # /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # /// from datetime import date import httpx BASE_URL = "https://api.carbonintensity.org.uk/intensity" # Emission in the last half hour def fetch_last_half_hour() -> str: ...
852
34
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\covid_stats_via_xpath.py
python
Python
""" This script demonstrates fetching simple COVID-19 statistics from the Worldometers archive site using lxml. lxml is chosen over BeautifulSoup for its speed and convenience in Python web projects (such as Django or Flask). """ # /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # "lxml",...
1,664
60
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\crawl_google_results.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "beautifulsoup4", # "fake-useragent", # "httpx", # ] # /// import sys import webbrowser import httpx from bs4 import BeautifulSoup from fake_useragent import UserAgent if __name__ == "__main__": print("Googling.....") url = "https://w...
1,040
39
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\crawl_google_scholar_citation.py
python
Python
""" Get the citation from google scholar using title and year of publication, and volume and pages of journal. """ # /// script # requires-python = ">=3.13" # dependencies = [ # "beautifulsoup4", # "httpx", # ] # /// import httpx from bs4 import BeautifulSoup def get_citation(base_url: str, params: dict) ->...
1,131
43
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\currency_converter.py
python
Python
""" This is used to convert the currency using the Amdoren Currency API https://www.amdoren.com """ # /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # /// import os import httpx URL_BASE = "https://www.amdoren.com/api/currency.php" # Currency and their description list_of_currencies...
4,600
207
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\current_stock_price.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "beautifulsoup4", # "httpx", # ] # /// import httpx from bs4 import BeautifulSoup """ Get the HTML code of finance yahoo and select the current qsp-price Current AAPL stock price is 228.43 Current AMZN stock price is 201.85 Current IBM stock ...
1,487
49
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\current_weather.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # /// import httpx # Put your API key(s) here OPENWEATHERMAP_API_KEY = "" WEATHERSTACK_API_KEY = "" # Define the URL for the APIs with placeholders OPENWEATHERMAP_URL_BASE = "https://api.openweathermap.org/data/2.5/weather" WEATHERSTACK_...
1,916
58
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\daily_horoscope.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "beautifulsoup4", # "httpx", # ] # /// import httpx from bs4 import BeautifulSoup def horoscope(zodiac_sign: int, day: str) -> str: url = ( "https://www.horoscope.com/us/horoscopes/general/" f"horoscope-general-daily-{day}.asp...
1,165
44
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\download_images_from_google_query.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "beautifulsoup4", # "httpx", # ] # /// import json import os import re import sys import urllib.request import httpx from bs4 import BeautifulSoup headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" " ...
3,518
112
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\emails_from_url.py
python
Python
"""Get the site emails from URL.""" # /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # /// from __future__ import annotations __author__ = "Muhammad Umer Farooq" __license__ = "MIT" __version__ = "1.0.0" __maintainer__ = "Muhammad Umer Farooq" __email__ = "contact@muhammadumerfarooq.me...
3,541
118
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\fetch_anime_and_play.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "beautifulsoup4", # "fake-useragent", # "httpx", # ] # /// import httpx from bs4 import BeautifulSoup, NavigableString, Tag from fake_useragent import UserAgent BASE_URL = "https://ww7.gogoanime2.org" def search_scraper(anime_name: str) -> l...
6,137
198
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\fetch_bbc_news.py
python
Python
# Created by sarathkaul on 12/11/19 # /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # /// import httpx _NEWS_API = "https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey=" def fetch_bbc_news(bbc_news_api_key: str) -> None: # fetching a list of articles in json format...
673
25
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\fetch_github_info.py
python
Python
#!/usr/bin/env python3 """ Created by sarathkaul on 14/11/19 Updated by lawric1 on 24/11/20 Authentication will be made via access token. To generate your personal access token visit https://github.com/settings/tokens. NOTE: Never hardcode any credential information in the code. Always use an environment file to stor...
1,639
61
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\fetch_jobs.py
python
Python
""" Scraping jobs given job title and location from indeed website """ # /// script # requires-python = ">=3.13" # dependencies = [ # "beautifulsoup4", # "httpx", # ] # /// from __future__ import annotations from collections.abc import Generator import httpx from bs4 import BeautifulSoup url = "https://www...
1,046
35
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\fetch_quotes.py
python
Python
""" This file fetches quotes from the " ZenQuotes API ". It does not require any API key as it uses free tier. For more details and premium features visit: https://zenquotes.io/ """ # /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # /// import pprint import httpx API_ENDPOINT_URL...
1,017
42
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\fetch_well_rx_price.py
python
Python
""" Scrape the price and pharmacy name for a prescription drug from rx site after providing the drug name and zipcode. """ import httpx from bs4 import BeautifulSoup BASE_URL = "https://www.wellrx.com/prescriptions/{}/{}/?freshSearch=true" def fetch_pharmacy_and_price_list(drug_name: str, zip_code: str) -> list |...
2,818
92
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\get_amazon_product_data.py
python
Python
""" This file provides a function which will take a product name as input from the user, and fetch from Amazon information about products of this name or category. The product information will include title, URL, price, ratings, and the discount available. """ # /// script # requires-python = ">=3.13" # dependencies ...
3,832
113
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\get_imdb_top_250_movies_csv.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "beautifulsoup4", # "httpx", # ] # /// from __future__ import annotations import csv import httpx from bs4 import BeautifulSoup def get_imdb_top_250_movies(url: str = "") -> dict[str, float]: url = url or "https://www.imdb.com/chart/top/?re...
1,087
39
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\get_ip_geolocation.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # /// import httpx # Function to get geolocation data for an IP address def get_ip_geolocation(ip_address: str) -> str: try: # Construct the URL for the IP geolocation API url = f"https://ipinfo.io/{ip_address}/json" ...
1,386
48
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\get_top_billionaires.py
python
Python
""" CAUTION: You may get a json.decoding error. This works for some of us but fails for others. """ # /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # "rich", # ] # /// from datetime import UTC, date, datetime import httpx from rich import box from rich import console as rich_console f...
3,191
110
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\get_top_hn_posts.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # /// from __future__ import annotations import httpx def get_hackernews_story(story_id: str) -> dict: url = f"https://hacker-news.firebaseio.com/v0/item/{story_id}.json?print=pretty" return httpx.get(url, timeout=10).json() d...
1,007
34
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\giphy.py
python
Python
#!/usr/bin/env python3 # /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # /// import httpx giphy_api_key = "YOUR API KEY" # Can be fetched from https://developers.giphy.com/dashboard/ def get_gifs(query: str, api_key: str = giphy_api_key) -> list: """ Get a list of URLs of GI...
684
28
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\instagram_crawler.py
python
Python
#!/usr/bin/env python3 # /// script # requires-python = ">=3.13" # dependencies = [ # "beautifulsoup4", # "fake-useragent", # "httpx", # ] # /// from __future__ import annotations import json import httpx from bs4 import BeautifulSoup from fake_useragent import UserAgent headers = {"UserAgent": UserAge...
4,422
151
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\instagram_pic.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "beautifulsoup4", # "httpx", # ] # /// from datetime import UTC, datetime import httpx from bs4 import BeautifulSoup def download_image(url: str) -> str: """ Download an image from a given URL by scraping the 'og:image' meta tag. Pa...
1,714
56
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\instagram_video.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # /// from datetime import UTC, datetime import httpx def download_video(url: str) -> bytes: base_url = "https://downloadgram.net/wp-json/wppress/video-downloader/video?url=" video_url = httpx.get(base_url + url, timeout=10) ...
681
25
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\nasa_data.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # /// import httpx def get_apod_data(api_key: str) -> dict: """ Get the APOD(Astronomical Picture of the day) data Get your API Key from: https://api.nasa.gov/ """ url = "https://api.nasa.gov/planetary/apod" retur...
1,208
44
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\open_google_results.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "beautifulsoup4", # "fake-useragent", # "httpx", # ] # /// import webbrowser from sys import argv from urllib.parse import parse_qs, quote import httpx from bs4 import BeautifulSoup from fake_useragent import UserAgent if __name__ == "__main_...
939
40
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\random_anime_character.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "beautifulsoup4", # "fake-useragent", # "httpx", # ] # /// import os import httpx from bs4 import BeautifulSoup from fake_useragent import UserAgent headers = {"UserAgent": UserAgent().random} URL = "https://www.mywaifulist.moe/random" def ...
1,502
49
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\recaptcha_verification.py
python
Python
""" Recaptcha is a free captcha service offered by Google in order to secure websites and forms. At https://www.google.com/recaptcha/admin/create you can create new recaptcha keys and see the keys that your have already created. * Keep in mind that recaptcha doesn't work with localhost When you create a recaptcha key,...
2,805
77
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\reddit.py
python
Python
# /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # /// from __future__ import annotations import httpx valid_terms = set( """approved_at_utc approved_by author_flair_background_color author_flair_css_class author_flair_richtext author_flair_template_id author_fullname author_premiu...
2,237
62
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\search_books_by_isbn.py
python
Python
""" Get book and author data from https://openlibrary.org ISBN: https://en.wikipedia.org/wiki/International_Standard_Book_Number """ # /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # /// from json import JSONDecodeError import httpx def get_openlibrary_data(olid: str = "isbn/014032...
2,854
83
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\slack_message.py
python
Python
# Created by sarathkaul on 12/11/19 # /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # /// import httpx def send_slack_message(message_body: str, slack_url: str) -> None: headers = {"Content-Type": "application/json"} response = httpx.post( slack_url, json={"text": mes...
850
30
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\test_fetch_github_info.py
test
Python
import json import httpx from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info def test_fetch_github_info(monkeypatch): class FakeResponse: def __init__(self, content) -> None: assert isinstance(content, (bytes, str)) self.content = content def js...
880
28
Python
TheAlgorithms/Python
TheAlgorithms
220,221
MIT
All Algorithms implemented in Python
web_programming\world_covid19_stats.py
python
Python
#!/usr/bin/env python3 """ Provide the current worldwide COVID-19 statistics. This data is being scrapped from 'https://www.worldometers.info/coronavirus/'. """ # /// script # requires-python = ">=3.13" # dependencies = [ # "beautifulsoup4", # "httpx", # ] # /// import httpx from bs4 import BeautifulSoup d...
1,127
39
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\1password\README.md
readme
Markdown
# 1Password This plugin adds 1Password functionality to oh-my-zsh. To use, add `1password` to the list of plugins in your `.zshrc` file: ```zsh plugins=(... 1password) ``` Then, you can use the command `opswd` to copy passwords for services into your clipboard. ## `opswd` The `opswd` command is a wrapper around t...
1,663
41
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\alias-finder\README.md
readme
Markdown
# alias-finder plugin This plugin searches the defined aliases and outputs any that match the command inputted. This makes learning new aliases easier. ## Setup To use it, add `alias-finder` to the `plugins` array of your zshrc file: ``` plugins=(... alias-finder) ``` To enable it for every single command, set zsty...
2,453
71
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\aliases\cheatsheet.py
python
Python
#!/usr/bin/env python3 import sys import itertools import termcolor import argparse def parse(line): left = line[0:line.find('=')].strip() right = line[line.find('=')+1:].strip('\'"\n ') try: cmd = next(part for part in right.split() if len([char for char in '=<>' if char in part])==0) except S...
3,125
70
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\aliases\README.md
readme
Markdown
# Aliases cheatsheet With lots of 3rd-party amazing aliases installed, this plugin helps list the shortcuts that are currently available based on the plugins you have enabled. To use it, add `aliases` to the plugins array in your zshrc file: ```zsh plugins=(aliases) ``` Requirements: Python needs to be installed. ...
820
29
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\aliases\termcolor.py
python
Python
# coding: utf-8 # Copyright (c) 2008-2011 Volvox Development Team # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy...
5,211
169
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\ansible\README.md
readme
Markdown
# ansible plugin The `ansible plugin` adds several aliases for useful [ansible](https://docs.ansible.com/ansible/latest/index.html) commands and [aliases](#aliases). To use it, add `ansible` to the plugins array of your zshrc file: ``` plugins=(... ansible) ``` ## Aliases | Command ...
2,031
32
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\ant\README.md
readme
Markdown
# Ant This plugin provides completion for [Ant](https://ant.apache.org/). To use it, add `ant` to the plugins array in your zshrc file: ```zsh plugins=(... ant) ``` It caches ant targets in a file named `.ant_targets`, you might want to add that to your `.gitignore` file.
289
13
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\apache2-macports\README.md
readme
Markdown
# apache2-macports plugin Enables aliases to control a local Apache2 installed via [MacPorts](https://www.macports.org/). To use it, add `apache2-macports` to the plugins array in your zshrc file: ```zsh plugins=(... apache2-macports) ``` ## Aliases | Alias | Function | Desc...
756
22
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\arcanist\README.md
readme
Markdown
## arcanist This plugin adds many useful aliases for [arcanist](https://github.com/phacility/arcanist). To use it, add `arcanist` to the plugins array of your zshrc file: ```zsh plugins=(... arcanist) ``` ## Aliases | Alias | Command | | ------- | ---------------------------------- | |...
1,762
44
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\archlinux\README.md
readme
Markdown
# Arch Linux plugin This plugin adds some aliases and functions to work with Arch Linux. To use it, add `archlinux` to the plugins array in your zshrc file: ```zsh plugins=(... archlinux) ``` ## Features ### Pacman | Alias | Command | Description ...
16,049
184
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\arduino-cli\README.md
readme
Markdown
# Arduino CLI plugin This plugin adds completion for the [arduino-cli](https://github.com/arduino/arduino-cli) tool. To use it, add `arduino-cli` to the plugins array in your zshrc file: ```zsh plugins=(... arduino-cli) ```
236
10
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\argocd\README.md
readme
Markdown
# Argo CD plugin This plugin adds completion for the [Argo CD](https://argoproj.github.io/cd/) CLI. To use it, add `argocd` to the plugins array in your zshrc file: ```zsh plugins=(... argocd) ``` This plugin does not add any aliases. ## Cache This plugin caches the completion script and is automatically updated ...
522
21
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\asdf\README.md
readme
Markdown
# asdf Adds integration with [asdf](https://github.com/asdf-vm/asdf), the extendable version manager, with support for Ruby, Node.js, Elixir, Erlang and more. ## Installation 1. [Install](https://asdf-vm.com/guide/getting-started.html#_1-install-asdf) asdf and ensure that's it's discoverable on `$PATH`; 2. Enable it...
1,461
49
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\autoenv\README.md
readme
Markdown
# Autoenv plugin This plugin loads the [Autoenv](https://github.com/inishchith/autoenv). To use it, add `autoenv` to the plugins array in your zshrc file: ```zsh plugins=(... autoenv) ``` ## Functions * `use_env()`: creates and/or activates a virtualenv. For use in `.env` files. See the source code for details. ...
535
21
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\autojump\README.md
readme
Markdown
# Autojump plugin This plugin loads the [autojump navigation tool](https://github.com/wting/autojump). To use it, add `autojump` to the plugins array in your zshrc file: ```zsh plugins=(... autojump) ``` **Note:** you have to [install autojump](https://github.com/wting/autojump#installation) first.
315
12
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\autopep8\README.md
readme
Markdown
# autopep8 plugin This plugin adds completion for [autopep8](https://pypi.org/project/autopep8/), a tool that automatically formats Python code to conform to the [PEP 8](http://www.python.org/dev/peps/pep-0008/) style guide. To use it, add autopep8 to the plugins array of your zshrc file: ``` plugins=(... autopep8) `...
331
9
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\aws\README.md
readme
Markdown
# aws This plugin provides completion support for [awscli v2](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/index.html) and a few utilities to manage AWS profiles/regions and display them in the prompt. [awscli v1](https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration.html) is no longer...
4,518
99
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\azure\README.md
readme
Markdown
# azure This plugin provides completion support for [azure cli](https://docs.microsoft.com/en-us/cli/azure/) and a few utilities to manage azure subscriptions and display them in the prompt. To use it, add `azure` to the plugins array in your zshrc file. ```zsh plugins=(... azure) ``` ## Plugin commands * `az_sub...
1,580
49
ohmyzsh
ohmyzsh/ohmyzsh
ohmyzsh
186,494
MIT
🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up w
plugins\battery\README.md
readme
Markdown
# Battery Plugin This plugin adds some functions you can use to display battery information in your custom theme. To use, add `battery` to the list of plugins in your `.zshrc` file: `plugins=(... battery)` Then, add the `battery_pct_prompt` function to your custom theme. For example: ```zsh RPROMPT='$(battery_pct_...
1,210
43