Skip to main content

my-little-help

my-little-help is a Python utility library that provides simplified wrapper functions for rapidfuzz, pyspellchecker, sqlite3, and pgpy.

Installation

Install the package via pip from PyPI:

pip install my-little-help

Usage

String Similarity (rapidfuzz)

import myLittleHelp

# Check if two strings are similar based on a ratio threshold
similar = myLittleHelp.is_similar("apple", "aple", factor=75)
print(similar)  # Returns True or False

Spell Checking (pyspellchecker)

import myLittleHelp

# Verify if a word exists in the dictionary of a specific language
valid_word = myLittleHelp.is_word("hello", lang="en")
print(valid_word)  # Returns True or False

Database Management (sqlite3)

import myLittleHelp

db_path = "storage.db"

# Create a database table
myLittleHelp.create_table(
    table_name="users",
    databasepath=db_path,
    primary_key="id",
    primary_key_format="INTEGER",
    other_keys=["name", "email"],
    key_formats=["TEXT", "TEXT"],
    autoincrement_primary_key=True,
    override_if_exists=False
)

# Insert data into a table
myLittleHelp.insert_to_table(
    table_name="users",
    databasepath=db_path,
    keys=["name", "email"],
    values=[["John Doe"], ["john@example.com"]]
)

# Fetch data from a table
data = myLittleHelp.get_from_database(
    databasepath=db_path,
    value="name",
    table_name="users"
)

# Execute custom SQLite code
results = myLittleHelp.execute_sqlite_code(
    databasepath=db_path,
    code="SELECT * FROM users;"
)

PGP Encryption and Signing (pgpy)

import myLittleHelp

# Generate a new PGP private and public key pair string
private_key, public_key = myLittleHelp.new_keys_pgpy(name="John Doe", email="john@example.com")

# Encrypt text using a public key file path
encrypted_text = myLittleHelp.encode_pgpy(text="Secret Message", pubkey_path="public.asc")

# Decrypt a message file using a private key file path
decrypted_text = myLittleHelp.decode_pgpy(privkey_path="private.asc", message_path="encrypted.asc")

# Sign text using a private key file path
signed_text = myLittleHelp.sign_pgpy(text="Verified Message", privkey_path="private.asc")

# Verify the signature of a message file using a public key file path
is_valid = myLittleHelp.check_sign_pgpy(pubkey_path="public.asc", message_path="signed.asc")

Nostr Integration (nostr-sdk)

import myLittleHelp
import asyncio

# Generate a new Nostr private and public key pair in both Hex and Bech32 formats
keys = myLittleHelp.generate_nostr_keys()
print(keys["private_key_bech32"])  # nsec...
print(keys["public_key_bech32"])   # npub...

# Encrypt a text offline using Nostr NIP-04 encryption
encrypted_content = myLittleHelp.encrypt_with_nostr(
    sender_priv_key="nsec...",
    recipient_pub_key="npub...",
    cleartext="Hello Nostr"
)

# Decrypt a Nostr NIP-04 message offline
cleartext = myLittleHelp.decrypt_with_nostr(
    my_priv_key="nsec...",
    sender_pub_key="npub...",
    encrypted_content=encrypted_content
)

# Send any text (Nostr-encrypted, PGP armor string, or plain text) via Nostr Relays
async def send():
    event_id = await myLittleHelp.send_via_nostr(
        sender_priv_key="nsec...",
        text_content=encrypted_content,
        relays=["wss://relay.damus.io", "wss://nos.lol"]
    )
    print(f"Sent successfully! Event ID: {event_id}")

asyncio.run(send())

# Fetch raw text contents from a specific author via Nostr Relays
async def fetch():
    payloads = await myLittleHelp.fetch_from_nostr(
        author_pub_key="npub...",
        limit=5,
        relays=["wss://relay.damus.io", "wss://nos.lol"]
    )
    print(payloads)  # Returns a list of raw strings

asyncio.run(fetch())

Requirements

  • Python 3.13 or higher
  • rapidfuzz
  • pyspellchecker
  • pgpy
  • pysqlite3

License

This project is licensed under the MIT License. For more details, refer to the LICENSE file included in the repository.

Metadata

Release files for my-little-help 26.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for my-little-help 26.11
File Size Uploaded Provenance Actions
my_little_help-26.11.tar.gz 5.7 kB With provenance Details for my_little_help-26.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for my-little-help 26.11
File Interpreter ABI Platform Actions
my_little_help-26.11-py3-none-any.whl Python 3 none any Details for my_little_help-26.11-py3-none-any.whl

Total release size: 12.0 kB

Release files / my_little_help-26.11.tar.gz

Download URL my_little_help-26.11.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1b4c0c87b893516494fb3fd0d30e42e03d30ecc48a1b6c875006c0dcf9d07c02
BLAKE2b-256 checksum
How to use checksums
2dcdc883a5345f542b5479d8845338a01c596d418fc7052f00d1d786d5210c4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / my_little_help-26.11-py3-none-any.whl

Download URL my_little_help-26.11-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ed88863a1fa3fae6c0a0b8f9ee9c14e1905d3d55371d7f07cf16e56cae8e34a
BLAKE2b-256 checksum
How to use checksums
98775a13bd40f869a465d72326685d3250fef5d43d5c254097a4dd6f2df9366a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for my-little-help 26.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for my_little_help-26.11.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page