Skip to main content

PyPI package designed to make development in Python easier.

Project description

pythonbundle

A comprehensive collection of Python utility scripts covering data structures, cryptography, database management, sorting algorithms, and file processing.

Available methods

builder_for_flask_jsonify

Simple utility to wrap messages in a dictionary for Flask's jsonify function.

Key Constant

JSON_RESPONSE_TITLE = "response_data"

Function

bake(message) # Returns {"response_data": message}

check

Contains functions to check for the presence of specific character types in strings.

has_numbers(string)
has_numbers2(string)

has_spaces(string)
has_spaces2(string)

has_symbols(string)
has_symbols2(string)

cipher

Classic cryptography methods for text manipulation.

Caesar Cipher

Shifts characters based on an integer.

Keyword Cipher

Uses a keyword to generate a substitution alphabet.

Transposition Cipher

Splits text into even and odd indices and joins them.

convert

Quick conversion between UTF-8 strings and Base64 format.

string_to_base64(string)
base64_to_string(string)

dictionarily

A wrapper for Python dictionaries with custom sorting capabilities.

sort(): Standard alphabetical sort.

sort_numbers_first(): Logic to prioritize numeric keys over string keys.

easy_sql

A class-based wrapper to interact with SQLite databases without writing raw SQL for common tasks.

How to use

# Import the class
from easy_sql import EasySQL

# Create an instance of the class
a = EasySQL()

# Define the columns for the table
columns = [{"fname": "text"}, {"lname": "text"}]

# Create specified table
a.create_table("sample", "sampletable", columns)

# Define the values to be inserted
values = [{"fname": "Isaiah"}, {"lname": "Salazar"}]
values1 = [{"fname": "Saia"}, {"lname": "Razalas"}]

# Insert the values into specified table
a.insert_to_table("sample", "sampletable", values)
a.insert_to_table("sample", "sampletable", values1)

# Print the values in specified table
print(a.get_table_values("sample", "sampletable"))

# Delete a column-value pair from a specified table
a.delete_from_table("sample", "sampletable", {"fname": "Saia"})

excellent_reader

Reads the first column of Excel (.xlsx) spreadsheets.

get_first_column_from_sheet_index(): Targets a specific sheet.

get_first_column_from_all_sheets(): Iterates through the entire workbook.

memory

A high-level wrapper for list operations including adding, removing, and counting elements.

node

The fundamental building block for tree-based structures.

class Node:
    def __init__(self, val):
        self.l, self.r, self.v = None, None, val

sort

A massive library of sorting algorithms, ranging from basic to complex:

Basic

bubble_sort, selection_sort, insertion_sort

Efficient

quicksort, merge_sort, heapsort, timsort

Niche

shellsort, counting_sort, pigeonhole_sort, tree_sort

Experimental/Fun

bogosort, bead_sort, cocktail_shaker_sort

stackily

A standard implementation of a LIFO (Last-In-First-Out) Stack.

Methods

push, pop, peek, is_empty, size

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pythonbundle-1.0.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pythonbundle-1.0.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file pythonbundle-1.0.0.tar.gz.

File metadata

  • Download URL: pythonbundle-1.0.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pythonbundle-1.0.0.tar.gz
Algorithm Hash digest
SHA256 12175022ab72f04e87c181f5405a65a54d59352ff35030c16d50bc3a6ac93f30
MD5 9e00b67d1a8490694f4a72aabae95285
BLAKE2b-256 60a994a865669aec558ad537006cd62b394c80b3a917f0d985ef51e6c2c1d59e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pythonbundle-1.0.0.tar.gz:

Publisher: build_python_package.yml on isaiahnoelpulidosalazar/isaiahnoelpulidosalazar.github.io

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pythonbundle-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pythonbundle-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pythonbundle-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83f5af8024feeb18601cd5305a2fb00769bbe15485f5476f986897f3dd521ee4
MD5 8a9d7e72028143e1c366bb3c32842be1
BLAKE2b-256 b534ce1e4474573584553217a3b6eb0a81a5b7a65160a3af44c51a699211b981

See more details on using hashes here.

Provenance

The following attestation bundles were made for pythonbundle-1.0.0-py3-none-any.whl:

Publisher: build_python_package.yml on isaiahnoelpulidosalazar/isaiahnoelpulidosalazar.github.io

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page