repo stringlengths 7 90 | file_url stringlengths 81 315 | file_path stringlengths 4 228 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:38:15 2026-01-05 02:33:18 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/MySQL_Databses.py | MySQL_Databses.py | import mysql.connector
# MySQl databses details
host = input("Enter MySQL host: ")
username = input("Enter MySQL username: ")
password = input("Enter MySQL password: ")
db_name = input("Enter MySQL database: ")
mydb = mysql.connector.connect(
host=host, user=username, passwd=password, database=db_name
)
mycursor = ... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/blackJackGUI.py | blackJackGUI.py | from __future__ import print_function
import random
import simplegui
CARD_SIZE = (72, 96)
CARD_CENTER = (36, 48)
card_images = simplegui.load_image(
"http://storage.googleapis.com/codeskulptor-assets/cards_jfitz.png"
)
in_play = False
outcome = ""
score = 0
SUITS = ("C", "S", "H", "D")
RANKS = ("A", "2", "3", "4... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/polygon.py | polygon.py | import pygame
import sys
from pygame.locals import *
pygame.init()
window = pygame.display.set_mode((400, 300), 0, 32)
pygame.display.set_caption("Shape")
WHITE = (255, 255, 255)
GREEN = (0, 255, 0)
window.fill(WHITE)
pygame.draw.polygon(window, GREEN, ((146, 0), (236, 277), (56, 277)))
# Game logic
while True:
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/logs.py | logs.py | # Script Name : logs.py
# Author : Craig Richards
# Created : 13th October 2011
# Last Modified : 14 February 2016
# Version : 1.2
#
# Modifications : 1.1 - Added the variable zip_program so you can set it for the zip program on whichever OS, so to run on a different OS just change the locations of thes... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/check whether the string is Symmetrical or Palindrome.py | check whether the string is Symmetrical or Palindrome.py | def palindrome(a):
mid = (len(a) - 1) // 2
start = 0
last = len(a) - 1
flag = 0
while start < mid:
if a[start] == a[last]:
start += 1
last -= 1
else:
flag = 1
break
if flag == 0:
print("The entered string is palindrome")
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/days_from_date.py | days_from_date.py | import re # regular expressions
import calendar # module of python to provide useful fucntions related to calendar
import datetime # module of python to get the date and time
import tkinter as tk
root = tk.Tk()
root.geometry("400x250+50+50")
user_input1 = tk.StringVar()
def process_date(user_input):
user_inpu... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/RandomDice.py | RandomDice.py | # GGearing 01/10/19
# Random Dice Game using Tkinter
# Tkinter is used for Making Using GUI in Python Program!
# randint provides you with a random number within your given range!
from random import randint
from tkinter import *
# Function to rool the dice
def roll():
text.delete(0.0, END)
text.insert(END, st... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/rangoli.py | rangoli.py | """Rangoli Model"""
# Prints a rangoli of size n
def print_rangoli(n):
"""Prints a rangoli of size n"""
# Width of the rangoli
width = 4 * n - 3
# String to be printed
string = ""
# Loop to print the rangoli
for i in range(1, n + 1):
for j in range(0, i):
string += ch... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/generate_permutations.py | generate_permutations.py | def generate(A, k):
if k == 1:
print(A)
return
else:
for i in range(k):
generate(A, k - 1)
if i < k - 1:
if k % 2 == 0:
A[i], A[k - 1] = A[k - 1], A[i]
else:
A[0], A[k - 1] = A[k - 1], A[0]
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Binary Coefficients.py | Binary Coefficients.py | def pascal_triangle(lineNumber):
list1 = list()
list1.append([1])
i = 1
while i <= lineNumber:
j = 1
l = []
l.append(1)
while j < i:
l.append(list1[i - 1][j] + list1[i - 1][j - 1])
j = j + 1
l.append(1)
list1.append(l)
i = i... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/luhn_algorithm_for_credit_card_validation.py | luhn_algorithm_for_credit_card_validation.py | """
The Luhn Algorithm is widely used for error-checking in various applications, such as verifying credit card numbers.
By building this project, you'll gain experience working with numerical computations and string manipulation.
"""
# TODO: To make it much more better and succint
def verify_card_number(card_numb... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/repeat.py | repeat.py | def Repeat(x):
_size = len(x)
repeated = []
for i in range(_size):
k = i + 1
for j in range(k, _size):
if x[i] == x[j] and x[i] not in repeated:
repeated.append(x[i])
return repeated
list1 = [10, 20, 30, 20, 20, 30, 40, 50, -20, 60, 60, -20, -20]
print(Repea... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/pyhton_array.py | pyhton_array.py | from array import *
array1 = array("i", [10, 20, 30, 40, 50])
array1[2] = 80
for x in array1:
print(x)
| python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/birthdays.py | birthdays.py | birthdays = {"Alice": "Apr 1", "Bob": "Dec 12", "Carol": "Mar 4"}
while True:
print("Enter a name: (blank to quit)")
name = input()
if name == "":
break
if name in birthdays:
print(birthdays[name] + " is the birthday of " + name)
else:
print("I do not have birthday informatio... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/spotifyAccount.py | spotifyAccount.py | import platform
import random
import string
import threading
import time
from os import system
import requests
if platform.system() == "Windows": # checking OS
title = "windows"
else:
title = "linux"
def randomName(size=10, chars=string.ascii_letters + string.digits):
return "".join(random.choice(chars... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/thread_signal.py | thread_signal.py | from __future__ import print_function
import signal
import threading
from time import sleep
class producer(threading.Thread):
def __init__(self, event):
threading.Thread.__init__(self)
self.event = event
def run(self):
while self.event.is_set():
print("sub thread")
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/gambler.py | gambler.py | import random
from sys import argv
stake = int(argv[1])
goals = int(argv[2])
trials = int(argv[3])
wins = 0
bets = 0
for i in range(trials):
cash = stake
while cash > 0 and cash < goals:
bets += 1
if random.randrange(0, 2) == 0:
cash += 1
else:
cash -= 1
if... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/next_number.py | next_number.py | x, li, small, maxx, c = input(), list(), 0, 0, 1
for i in range(len(x)):
li.append(int(x[i]))
for i in range(len(li) - 1, -1, -1):
if i == 0:
print("No Number Possible")
c = 0
break
if li[i] > li[i - 1]:
small = i - 1
maxx = i
break
for i in range(small + 1, l... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/scientific_cal.py | scientific_cal.py | import math
while True:
print("""
Press 1 for basic calculator
Press 2 for scientifc calculator""")
try:
cho = int(input("enter your choice here.. "))
if cho == 1:
print(eval(input("enter the numbers with operator ")))
elif cho == 2:
user = int(
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/snake.py | snake.py | # SNAKES GAME
# Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting
# Original Author : Sanchit Gangwar
# Modified by : Rayan Dutta
# Minor changes made to keep the game working.
try:
import curses
from time import sleep
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/new.py | new.py |
print("Hello, world!")
| python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/spiralmatrix.py | spiralmatrix.py | n = int(input("Enter the size of matrix:"))
t = 1
r = 0 # r stands for row
c = 0 # c stands for column
matrix = [[0 for x in range(n)] for y in range(n)] # to initialise the matrix
if n % 2 == 0:
k = n // 2
else:
k = int((n / 2) + 1)
for i in range(k):
while c < n:
matrix[r][c] = t
t = t ... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Binary_to_Decimal.py | Binary_to_Decimal.py | # Program to convert binary to decimal
def binaryToDecimal(binary):
"""
>>> binaryToDecimal(111110000)
496
>>> binaryToDecimal(10100)
20
>>> binaryToDecimal(101011)
43
"""
decimal, i, n = 0, 0, 0
while binary != 0:
dec = binary % 10
decimal = decimal + dec * pow... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/kmp_str_search.py | kmp_str_search.py | """Author Anurag Kumar(mailto:anuragkumarak95@gmail.com)
The Knuth-Morris-Pratt Algorithm for finding a pattern within a piece of te$
with complexity O(n + m)
1) Preprocess pattern to identify any suffixes that are identical to prefix$
This tells us where to continue from if we get a mismatch between a cha$
and... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/index.py | index.py | num = 11
# Negative numbers, 0 and 1 are not primes
if num > 1:
# Iterate from 2 to n // 2
for i in range(2, (num // 2) + 1):
# If num is divisible by any number between
# 2 and n / 2, it is not prime
if (num % i) == 0:
print(num, "is not a prime number")
break
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Calendar (GUI).py | Calendar (GUI).py | from tkinter import *
import calendar
root = Tk()
# root.geometry("400x300")
root.title("Calendar")
# Function
def text():
month_int = int(month.get())
year_int = int(year.get())
cal = calendar.month(year_int, month_int)
textfield.delete(0.0, END)
textfield.insert(INSERT, cal)
# Creating Label... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/inheritance_YahV1729.py | inheritance_YahV1729.py | # A Python program to demonstrate inheritance
# Base or Super class. Note object in bracket.
# (Generally, object is made ancestor of all classes)
# In Python 3.x "class Person" is
# equivalent to "class Person(object)"
class Person(object):
# Constructor
def __init__(self, name):
self.name = name
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/billing.py | billing.py |
items = {"apple": 5, "soap": 4, "soda": 6, "pie": 7, "cake": 20}
total_price = 0
try:
print("""
Press 1 for apple
Press 2 for soap
Press 3 for soda
Press 4 for pie
Press 5 for cake
Press 6 for bill""")
while True:
choice = int(input("enter your choice here.."))
if choice == 1:
print... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/password_checker.py | password_checker.py | import time
pwd = "AKS2608" # any password u want to set
def IInd_func():
count1 = 0
for j in range(5):
a = 0
count = 0
user_pwd = input("") # password you remember
for i in range(len(pwd)):
if user_pwd[i] == pwd[a]: # comparing remembered pwd with fixed pwd
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/news_articles__scraper.py | news_articles__scraper.py | # -*- coding: utf-8 -*-
"""News_Articles__Scraper.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1v1XaNvdBmHIG79KQyaVUl793rKsV7qTD
***Uncomment the line to install newspaper3k first***
"""
# ! pip install newspaper3k
import sys
import pandas ... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/hamming-numbers.py | hamming-numbers.py | """
A Hamming number is a positive integer of the form 2^i*3^j*5^k, for some
non-negative integers i, j, and k. They are often referred to as regular numbers.
The first 20 Hamming numbers are: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 18, 20, 24, 25, 27, 30, 32, and 36
"""
def hamming(n_element: int) -> list:
"""
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/List.py | List.py | List = []
# List is Muteable
# means value can be change
List.insert(0, 5) # insertion takes place at mentioned index
List.insert(1, 10)
List.insert(0, 6)
print(List)
List.remove(6)
List.append(9) # insertion takes place at last
List.append(1)
List.sort() # arranges element in ascending order
print(List)
List.pop()
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Cricket_score.py | Cricket_score.py | from urllib import request
# import os
import pyttsx3
import bs4 # Beautiful Soup for Web Scraping
from win10toast import ToastNotifier
toaster = ToastNotifier()
# url from where we extrat data
url = "http://www.cricbuzz.com/cricket-match/live-scores"
sauce = request.urlopen(url).read()
soup = bs4.BeautifulSoup(s... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/ping_subnet.py | ping_subnet.py | from __future__ import print_function
import os # Load the Library Module
import subprocess # Load the Library Module
import sys # Load the Library Module
# Script Name : ping_subnet.py
# Author : Craig Richards
# Created : 12th January 2012
# Last Modified :
# Version : 1.0
# Modifications :
# Descrip... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/tuple.py | tuple.py | a = (1, 2, 3, 4, 5)
print("Individual elements of Tuple are")
for i in a:
print(i, end=" ")
print()
print("Value at index number 3 is:", a[3])
print("Values from index no 2 are", a[2:])
print("Length of tuple is", len(a))
print("Maximum value from tuple is ", max(a))
print("Minimum value from tuple is ", min(a))
d... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/colorma_as_color.py | colorma_as_color.py | from colorama import Fore, Back, Style
print(Fore.RED + "some red text")
print(Back.GREEN + "and with a green background")
print("So any text will be in green background?")
print("So is it a wrapper of some sort?")
print("dark_angel wasn't using it in her code.")
print("she was just being using direct ANSI codes.")
p... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Compression_Analysis/PSNR.py | Compression_Analysis/PSNR.py | import math
# using opencv3
import cv2
import numpy as np
def Representational(r, g, b):
return 0.299 * r + 0.287 * g + 0.114 * b
def calculate(img):
b, g, r = cv2.split(img)
pixelAt = Representational(r, g, b)
return pixelAt
def main():
# Loading images (original image and compressed image)
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Image-watermarker/watermark.py | Image-watermarker/watermark.py | from PIL import ImageDraw, ImageFont
from customtkinter import filedialog
from CTkMessagebox import CTkMessagebox
class Watermark:
def __init__(self):
pass
def add_text_watermark(
self, image, text, text_color, font_style, font_size, position=(0, 0)
):
font = ImageFont.truetype(fo... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Image-watermarker/app.py | Image-watermarker/app.py | import customtkinter as ctk
from customtkinter import filedialog
from CTkMessagebox import CTkMessagebox
from PIL import Image, ImageTk
from watermark import Watermark
import pyglet
from tkinter import colorchooser
# ------------------- Create Window -----------------
pyglet.font.add_directory("fonts")
window = ctk... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Python Program to Reverse a linked list.py | Python Programs/Python Program to Reverse a linked list.py | # Python program to reverse a linked list
# Time Complexity : O(n)
# Space Complexity : O(1)
# Node class
class Node:
# Constructor to initialize the node object
def __init__(self, data):
self.data = data
self.next = None
class LinkedList:
# Function to initialize head
def __init__(se... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/python program for finding square root for positive number.py | Python Programs/python program for finding square root for positive number.py | # Python Program to calculate the square root
# Note: change this value for a different result
num = 8
# To take the input from the user
# num = float(input('Enter a number: '))
num_sqrt = num**0.5
print("The square root of %0.3f is %0.3f" % (num, num_sqrt))
| python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Python Program to Transpose a Matrix.py | Python Programs/Python Program to Transpose a Matrix.py | X = [[12, 7], [4, 5], [3, 8]]
result = [[0, 0, 0], [0, 0, 0]]
# iterate through rows
for i in range(len(X)):
# iterate through columns
for j in range(len(X[0])):
result[j][i] = X[i][j]
for r in result:
print(r)
| python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Python Program to Merge Mails.py | Python Programs/Python Program to Merge Mails.py | # Python program to mail merger
# Names are in the file names.txt
# Body of the mail is in body.txt
# open names.txt for reading
with open("names.txt", "r", encoding="utf-8") as names_file:
# open body.txt for reading
with open("body.txt", "r", encoding="utf-8") as body_file:
# read entire content of t... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Python Program to Sort Words in Alphabetic Order.py | Python Programs/Python Program to Sort Words in Alphabetic Order.py | # Program to sort words alphabetically and put them in a dictionary with corresponding numbered keys
# We are also removing punctuation to ensure the desired output, without importing a library for assistance.
# Declare base variables
word_Dict = {}
count = 0
my_str = "Hello this Is an Example With cased letters. Hell... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Python Program for Product of unique prime factors of a number.py | Python Programs/Python Program for Product of unique prime factors of a number.py | # Python program to find sum of given
# series.
def productPrimeFactors(n):
product = 1
for i in range(2, n + 1):
if n % i == 0:
isPrime = 1
for j in range(2, int(i / 2 + 1)):
if i % j == 0:
isPrime = 0
break
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Program to print table of given number.py | Python Programs/Program to print table of given number.py | n = int(input("Enter the number to print the tables for:"))
for i in range(1, 11):
print(n, "x", i, "=", n * i)
# Example
# input: 2
# output:
"""
2 x 1 = 2
2 x 2 = 4
2 x 3 = 6
2 x 4 = 8
2 x 5 = 10
2 x 6 = 12
2 x 7 = 14
2 x 8 = 16
2 x 9 = 18
2 x 10 = 20
"""
| python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Python Program to Remove Punctuations from a String.py | Python Programs/Python Program to Remove Punctuations from a String.py | # define punctuation
punctuations = r"""!()-[]{};:'"\,<>./?@#$%^&*_~"""
my_str = "Hello!!!, he said ---and went."
# To take input from the user
# my_str = input("Enter a string: ")
# remove punctuation from the string
no_punct = ""
for char in my_str:
if char not in punctuations:
no_punct = no_punct + ch... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Python Program to Find LCM.py | Python Programs/Python Program to Find LCM.py | # Python Program to find the L.C.M. of two input number
def compute_lcm(x, y):
# choose the greater number
if x > y:
greater = x
else:
greater = y
while True:
if (greater % x == 0) and (greater % y == 0):
lcm = greater
break
greater += 1
re... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Python Program for factorial of a number.py | Python Programs/Python Program for factorial of a number.py | """
Factorial of a non-negative integer, is multiplication of
all integers smaller than or equal to n.
For example factorial of 6 is 6*5*4*3*2*1 which is 720.
"""
"""
Recursive:
Python3 program to find factorial of given number
"""
def factorial(n):
# single line to find factorial
return 1 if (n == 1 or n =... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Program to reverse Linked List( Recursive solution).py | Python Programs/Program to reverse Linked List( Recursive solution).py | from sys import stdin, setrecursionlimit
setrecursionlimit(10**6)
# Following is the Node class already written for the Linked List
class Node:
def __init__(self, data):
self.data = data
self.next = None
def reverseLinkedListRec(head):
if head is None:
return None
if head.next i... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Python Program to Display Fibonacci Sequence Using Recursion.py | Python Programs/Python Program to Display Fibonacci Sequence Using Recursion.py | def recur_fibo(n):
if n <= 1:
return n
else:
return recur_fibo(n - 1) + recur_fibo(n - 2)
nterms = 10
# check if the number of terms is valid
if nterms <= 0:
print("Please enter a positive integer")
else:
print("Fibonacci sequence:")
for i in range(nterms):
print(recur_fib... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Program of Reverse of any number.py | Python Programs/Program of Reverse of any number.py | num = int(input("enter any Number"))
rev = 0
while num > 0:
Rem = num % 10
num = num // 10
rev = rev * 10 + Rem
print("The Reverse of the number", rev)
##################
# could also simply do this another way
num = input()
print(int(num[::-1]))
| python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Python Program for Tower of Hanoi.py | Python Programs/Python Program for Tower of Hanoi.py | # Recursive Python function to solve the tower of hanoi
def TowerOfHanoi(n, source, destination, auxiliary):
if n == 1:
print("Move disk 1 from source ", source, " to destination ", destination)
return
TowerOfHanoi(n - 1, source, auxiliary, destination)
print("Move disk ", n, " from source "... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Python Program to Print the Fibonacci sequence.py | Python Programs/Python Program to Print the Fibonacci sequence.py | # Program to display the Fibonacci sequence up to n-th term
nterms = int(input("How many terms? "))
# first two terms
n1, n2 = 0, 1
count = 0
# check if the number of terms is valid
if nterms <= 0:
print("Please enter a positive integer")
elif nterms == 1:
print("Fibonacci sequence upto", nterms, ":")
pr... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Python Programs/Python Program to Count the Number of Each Vowel.py | Python Programs/Python Program to Count the Number of Each Vowel.py | # Program to count the number of each vowels
# string of vowels
vowels = "aeiou"
ip_str = "Hello, have you tried our tutorial section yet?"
# make it suitable for caseless comparisions
ip_str = ip_str.casefold()
# make a dictionary with each vowel a key and value 0
count = {}.fromkeys(vowels, 0)
# count the vowels... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/socket-programming/client.py | socket-programming/client.py | # Note :- Client and Server Must be connected to same Network
# import socket modules
import socket
# create TCP/IP socket
s = socket.socket()
# take user input ip of server
server = input("Enter Server IP: ")
# bind the socket to the port 12345, and connect
s.connect((server, 12345))
# receive message from server co... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/socket-programming/server.py | socket-programming/server.py | # Client and Server Must be connected to same network
# import socket module
import socket
# create TCP/IP socket
s = socket.socket()
# get the according IP address
ip = socket.gethostbyname(socket.gethostname())
# binding ip address and port
s.bind((ip, 12345))
# listen for incoming connections (server mode) with 3 c... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/notepad/notepad_support.py | notepad/notepad_support.py | #! /usr/bin/env python
#
# Support module generated by PAGE version 4.10
# In conjunction with Tcl version 8.6
# Jan 29, 2018 03:25:00 PM
import sqlite3
try:
from Tkinter import *
except ImportError:
from tkinter import *
try:
import ttk
py3 = 0
except ImportError:
py3 = 1
# connect with da... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Password Generator/pass_gen.py | Password Generator/pass_gen.py | import string as str
import secrets
class PasswordGenerator:
@staticmethod
def gen_sequence(
conditions,
): # must have conditions (in a list format), for each member of the list possible_characters
possible_characters = [
str.ascii_lowercase,
str.ascii_uppercase,... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/__pip-runner__.py | venv/Lib/site-packages/pip/__pip-runner__.py | """Execute exactly this copy of pip, within a different environment.
This file is named as it is, to ensure that this module can't be imported via
an import statement.
"""
# /!\ This version compatibility check section must be Python 2 compatible. /!\
import sys
# Copied from pyproject.toml
PYTHON_REQUIRES = (3, 8)... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/__main__.py | venv/Lib/site-packages/pip/__main__.py | import os
import sys
# Remove '' and current working directory from the first entry
# of sys.path, if present to avoid using current directory
# in pip commands check, freeze, install, list and show,
# when invoked as python -m pip <command>
if sys.path[0] in ("", os.getcwd()):
sys.path.pop(0)
# If we are running... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/__init__.py | venv/Lib/site-packages/pip/__init__.py | from typing import List, Optional
__version__ = "24.2"
def main(args: Optional[List[str]] = None) -> int:
"""This is an internal API only meant for use by pip's own console scripts.
For additional details, see https://github.com/pypa/pip/issues/7498.
"""
from pip._internal.utils.entrypoints import _... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/typing_extensions.py | venv/Lib/site-packages/pip/_vendor/typing_extensions.py | import abc
import collections
import collections.abc
import contextlib
import functools
import inspect
import operator
import sys
import types as _types
import typing
import warnings
__all__ = [
# Super-special typing primitives.
'Any',
'ClassVar',
'Concatenate',
'Final',
'LiteralString',
'... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | true |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/__init__.py | venv/Lib/site-packages/pip/_vendor/__init__.py | """
pip._vendor is for vendoring dependencies of pip to prevent needing pip to
depend on something external.
Files inside of pip._vendor should be considered immutable and should only be
updated to versions from upstream.
"""
from __future__ import absolute_import
import glob
import os.path
import sys
# Downstream r... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/packaging/_tokenizer.py | venv/Lib/site-packages/pip/_vendor/packaging/_tokenizer.py | from __future__ import annotations
import contextlib
import re
from dataclasses import dataclass
from typing import Iterator, NoReturn
from .specifiers import Specifier
@dataclass
class Token:
name: str
text: str
position: int
class ParserSyntaxError(Exception):
"""The provided source text could n... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/packaging/_elffile.py | venv/Lib/site-packages/pip/_vendor/packaging/_elffile.py | """
ELF file parser.
This provides a class ``ELFFile`` that parses an ELF executable in a similar
interface to ``ZipFile``. Only the read interface is implemented.
Based on: https://gist.github.com/lyssdod/f51579ae8d93c8657a5564aefc2ffbca
ELF header: https://refspecs.linuxfoundation.org/elf/gabi4+/ch4.eheader.html
""... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/packaging/tags.py | venv/Lib/site-packages/pip/_vendor/packaging/tags.py | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import annotations
import logging
import platform
import re
import struct
import subprocess
import sys
import sysconfig
fr... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/packaging/_structures.py | venv/Lib/site-packages/pip/_vendor/packaging/_structures.py | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
class InfinityType:
def __repr__(self) -> str:
return "Infinity"
def __hash__(self) -> int:
return hash(repr(self... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/packaging/specifiers.py | venv/Lib/site-packages/pip/_vendor/packaging/specifiers.py | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
"""
.. testsetup::
from pip._vendor.packaging.specifiers import Specifier, SpecifierSet, InvalidSpecifier
from pip._vendor.packagin... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | true |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/packaging/_musllinux.py | venv/Lib/site-packages/pip/_vendor/packaging/_musllinux.py | """PEP 656 support.
This module implements logic to detect if the currently running Python is
linked against musl, and what musl version is used.
"""
from __future__ import annotations
import functools
import re
import subprocess
import sys
from typing import Iterator, NamedTuple, Sequence
from ._elffile import ELF... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/packaging/version.py | venv/Lib/site-packages/pip/_vendor/packaging/version.py | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
"""
.. testsetup::
from pip._vendor.packaging.version import parse, Version
"""
from __future__ import annotations
import itertools
i... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/packaging/metadata.py | venv/Lib/site-packages/pip/_vendor/packaging/metadata.py | from __future__ import annotations
import email.feedparser
import email.header
import email.message
import email.parser
import email.policy
import typing
from typing import (
Any,
Callable,
Generic,
Literal,
TypedDict,
cast,
)
from . import requirements, specifiers, utils
from . import version... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/packaging/_parser.py | venv/Lib/site-packages/pip/_vendor/packaging/_parser.py | """Handwritten parser of dependency specifiers.
The docstring for each __parse_* function contains EBNF-inspired grammar representing
the implementation.
"""
from __future__ import annotations
import ast
from typing import NamedTuple, Sequence, Tuple, Union
from ._tokenizer import DEFAULT_RULES, Tokenizer
class N... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/packaging/utils.py | venv/Lib/site-packages/pip/_vendor/packaging/utils.py | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import annotations
import re
from typing import NewType, Tuple, Union, cast
from .tags import Tag, parse_tag
from .versio... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/packaging/requirements.py | venv/Lib/site-packages/pip/_vendor/packaging/requirements.py | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import annotations
from typing import Any, Iterator
from ._parser import parse_requirement as _parse_requirement
from ._to... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/packaging/markers.py | venv/Lib/site-packages/pip/_vendor/packaging/markers.py | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import annotations
import operator
import os
import platform
import sys
from typing import Any, Callable, TypedDict, cast
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/packaging/__init__.py | venv/Lib/site-packages/pip/_vendor/packaging/__init__.py | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
__title__ = "packaging"
__summary__ = "Core utilities for Python packages"
__uri__ = "https://github.com/pypa/packaging"
__version__ = "24... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/packaging/_manylinux.py | venv/Lib/site-packages/pip/_vendor/packaging/_manylinux.py | from __future__ import annotations
import collections
import contextlib
import functools
import os
import re
import sys
import warnings
from typing import Generator, Iterator, NamedTuple, Sequence
from ._elffile import EIClass, EIData, ELFFile, EMachine
EF_ARM_ABIMASK = 0xFF000000
EF_ARM_ABI_VER5 = 0x05000000
EF_ARM... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/distro/distro.py | venv/Lib/site-packages/pip/_vendor/distro/distro.py | #!/usr/bin/env python
# Copyright 2015-2021 Nir Cohen
#
# 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 applicable law or a... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | true |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/distro/__main__.py | venv/Lib/site-packages/pip/_vendor/distro/__main__.py | from .distro import main
if __name__ == "__main__":
main()
| python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/distro/__init__.py | venv/Lib/site-packages/pip/_vendor/distro/__init__.py | from .distro import (
NORMALIZED_DISTRO_ID,
NORMALIZED_LSB_ID,
NORMALIZED_OS_ID,
LinuxDistribution,
__version__,
build_number,
codename,
distro_release_attr,
distro_release_info,
id,
info,
like,
linux_distribution,
lsb_release_attr,
lsb_release_info,
major... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/msgpack/fallback.py | venv/Lib/site-packages/pip/_vendor/msgpack/fallback.py | """Fallback pure Python implementation of msgpack"""
from datetime import datetime as _DateTime
import sys
import struct
if hasattr(sys, "pypy_version_info"):
# StringIO is slow on PyPy, StringIO is faster. However: PyPy's own
# StringBuilder is fastest.
from __pypy__ import newlist_hint
try:
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | true |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/msgpack/exceptions.py | venv/Lib/site-packages/pip/_vendor/msgpack/exceptions.py | class UnpackException(Exception):
"""Base class for some exceptions raised while unpacking.
NOTE: unpack may raise exception other than subclass of
UnpackException. If you want to catch all error, catch
Exception instead.
"""
class BufferFull(UnpackException):
pass
class OutOfData(UnpackEx... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/msgpack/ext.py | venv/Lib/site-packages/pip/_vendor/msgpack/ext.py | from collections import namedtuple
import datetime
import struct
class ExtType(namedtuple("ExtType", "code data")):
"""ExtType represents ext type in msgpack."""
def __new__(cls, code, data):
if not isinstance(code, int):
raise TypeError("code must be int")
if not isinstance(data,... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/msgpack/__init__.py | venv/Lib/site-packages/pip/_vendor/msgpack/__init__.py | from .exceptions import *
from .ext import ExtType, Timestamp
import os
version = (1, 0, 8)
__version__ = "1.0.8"
if os.environ.get("MSGPACK_PUREPYTHON"):
from .fallback import Packer, unpackb, Unpacker
else:
try:
from ._cmsgpack import Packer, unpackb, Unpacker
except ImportError:
from... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/cachecontrol/filewrapper.py | venv/Lib/site-packages/pip/_vendor/cachecontrol/filewrapper.py | # SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
import mmap
from tempfile import NamedTemporaryFile
from typing import TYPE_CHECKING, Any, Callable
if TYPE_CHECKING:
from http.client import HTTPResponse
class CallbackFileWrapper:
"""
... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/cachecontrol/controller.py | venv/Lib/site-packages/pip/_vendor/cachecontrol/controller.py | # SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
"""
The httplib2 algorithms ported for use with requests.
"""
from __future__ import annotations
import calendar
import logging
import re
import time
from email.utils import parsedate_tz
from typing import TYPE_CHECKING, Collection, Ma... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/cachecontrol/serialize.py | venv/Lib/site-packages/pip/_vendor/cachecontrol/serialize.py | # SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
import io
from typing import IO, TYPE_CHECKING, Any, Mapping, cast
from pip._vendor import msgpack
from pip._vendor.requests.structures import CaseInsensitiveDict
from pip._vendor.urllib3 import HTTPR... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/cachecontrol/heuristics.py | venv/Lib/site-packages/pip/_vendor/cachecontrol/heuristics.py | # SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
import calendar
import time
from datetime import datetime, timedelta, timezone
from email.utils import formatdate, parsedate, parsedate_tz
from typing import TYPE_CHECKING, Any, Mapping
if TYPE_CHECKI... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/cachecontrol/wrapper.py | venv/Lib/site-packages/pip/_vendor/cachecontrol/wrapper.py | # SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
from typing import TYPE_CHECKING, Collection
from pip._vendor.cachecontrol.adapter import CacheControlAdapter
from pip._vendor.cachecontrol.cache import DictCache
if TYPE_CHECKING:
from pip._vend... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/cachecontrol/__init__.py | venv/Lib/site-packages/pip/_vendor/cachecontrol/__init__.py | # SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
"""CacheControl import Interface.
Make it easy to import from cachecontrol without long namespaces.
"""
__author__ = "Eric Larson"
__email__ = "eric@ionrock.org"
__version__ = "0.14.0"
from pip._vendor.cachecontrol.adapter import Cach... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/cachecontrol/cache.py | venv/Lib/site-packages/pip/_vendor/cachecontrol/cache.py | # SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
"""
The cache object API for implementing caches. The default is a thread
safe in-memory dictionary.
"""
from __future__ import annotations
from threading import Lock
from typing import IO, TYPE_CHECKING, MutableMapping
if TYPE_CHECKI... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/cachecontrol/adapter.py | venv/Lib/site-packages/pip/_vendor/cachecontrol/adapter.py | # SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
import functools
import types
import zlib
from typing import TYPE_CHECKING, Any, Collection, Mapping
from pip._vendor.requests.adapters import HTTPAdapter
from pip._vendor.cachecontrol.cache import D... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/cachecontrol/_cmd.py | venv/Lib/site-packages/pip/_vendor/cachecontrol/_cmd.py | # SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
import logging
from argparse import ArgumentParser
from typing import TYPE_CHECKING
from pip._vendor import requests
from pip._vendor.cachecontrol.adapter import CacheControlAdapter
from pip._vendor.... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py | venv/Lib/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py | # SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
import hashlib
import os
from textwrap import dedent
from typing import IO, TYPE_CHECKING, Union
from pathlib import Path
from pip._vendor.cachecontrol.cache import BaseCache, SeparateBodyBaseCache
fr... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/cachecontrol/caches/__init__.py | venv/Lib/site-packages/pip/_vendor/cachecontrol/caches/__init__.py | # SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
from pip._vendor.cachecontrol.caches.file_cache import FileCache, SeparateBodyFileCache
from pip._vendor.cachecontrol.caches.redis_cache import RedisCache
__all__ = ["FileCache", "SeparateBodyFileCache", "RedisCache"]
| python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py | venv/Lib/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py | # SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
from datetime import datetime, timezone
from typing import TYPE_CHECKING
from pip._vendor.cachecontrol.cache import BaseCache
if TYPE_CHECKING:
from redis import Redis
class RedisCache(BaseCac... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/api.py | venv/Lib/site-packages/pip/_vendor/requests/api.py | """
requests.api
~~~~~~~~~~~~
This module implements the Requests API.
:copyright: (c) 2012 by Kenneth Reitz.
:license: Apache2, see LICENSE for more details.
"""
from . import sessions
def request(method, url, **kwargs):
"""Constructs and sends a :class:`Request <Request>`.
:param method: method for the ... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/cookies.py | venv/Lib/site-packages/pip/_vendor/requests/cookies.py | """
requests.cookies
~~~~~~~~~~~~~~~~
Compatibility code to be able to use `http.cookiejar.CookieJar` with requests.
requests.utils imports from here, so be careful with imports.
"""
import calendar
import copy
import time
from ._internal_utils import to_native_string
from .compat import Morsel, MutableMapping, coo... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
geekcomputers/Python | https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/compat.py | venv/Lib/site-packages/pip/_vendor/requests/compat.py | """
requests.compat
~~~~~~~~~~~~~~~
This module previously handled import compatibility issues
between Python 2 and Python 3. It remains for backwards
compatibility until the next major version.
"""
import sys
# -------------------
# Character Detection
# -------------------
def _resolve_char_detection():
"""F... | python | MIT | 21cbdf223aadd1c28293570d1106fe47af6e9434 | 2026-01-04T14:42:18.827821Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.