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.py - Flask helper for JSON responses.
- check.py - String validation and character checking.
- cipher.py - Cryptographic algorithms (Caesar, Keyword, Transposition).
- convert.py - Base64 encoding and decoding.
- dictionarily.py - Enhanced dictionary management.
- easy_sql.py - Simplified SQLite3 wrapper.
- excellent_reader.py - Excel file reader using openpyxl.
- memory.py - Dynamic list-based storage.
- node.py - Basic tree node class.
- sort.py - Extensive collection of sorting algorithms.
- stackily.py - Stack data structure implementation.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pythonbundle-1.1.0.tar.gz.
File metadata
- Download URL: pythonbundle-1.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6eb073f834033666a77aefef8ed5cf2083e46f0b5b05f04641d6139c48a1801
|
|
| MD5 |
3f886712518735609ce9fc194efddb45
|
|
| BLAKE2b-256 |
8dc22a34f40d86838d1b084f4dc31260cc04b285d1da0e60a7bad56de78b4bf1
|
Provenance
The following attestation bundles were made for pythonbundle-1.1.0.tar.gz:
Publisher:
build_python_package.yml on isaiahnoelpulidosalazar/isaiahnoelpulidosalazar.github.io
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pythonbundle-1.1.0.tar.gz -
Subject digest:
b6eb073f834033666a77aefef8ed5cf2083e46f0b5b05f04641d6139c48a1801 - Sigstore transparency entry: 1409136654
- Sigstore integration time:
-
Permalink:
isaiahnoelpulidosalazar/isaiahnoelpulidosalazar.github.io@a58debc00c3250daeec61719f54eaa9781d63a8f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/isaiahnoelpulidosalazar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_python_package.yml@a58debc00c3250daeec61719f54eaa9781d63a8f -
Trigger Event:
push
-
Statement type:
File details
Details for the file pythonbundle-1.1.0-py3-none-any.whl.
File metadata
- Download URL: pythonbundle-1.1.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a15e741441e03407a18f4e8dd228be1551b5bccb1adced7149d60d1bcdd1945d
|
|
| MD5 |
dc2ca5540c6eea59dd0a35a054658104
|
|
| BLAKE2b-256 |
46eb8fe940ee4ec52eb5416da0907f730d4369025c16819a488344dc03236656
|
Provenance
The following attestation bundles were made for pythonbundle-1.1.0-py3-none-any.whl:
Publisher:
build_python_package.yml on isaiahnoelpulidosalazar/isaiahnoelpulidosalazar.github.io
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pythonbundle-1.1.0-py3-none-any.whl -
Subject digest:
a15e741441e03407a18f4e8dd228be1551b5bccb1adced7149d60d1bcdd1945d - Sigstore transparency entry: 1409136659
- Sigstore integration time:
-
Permalink:
isaiahnoelpulidosalazar/isaiahnoelpulidosalazar.github.io@a58debc00c3250daeec61719f54eaa9781d63a8f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/isaiahnoelpulidosalazar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_python_package.yml@a58debc00c3250daeec61719f54eaa9781d63a8f -
Trigger Event:
push
-
Statement type: