Skip to main content

development testhello2025 package

Project description

damv1testhello2025

A simple Python package for testing and development purposes.

Installation

pip install damv1testhello2025

Usage

  1. Class hellowords2025
    This class provides two methods:

    • sayhello(): Returns a greeting message.
    • wordsloremipsum(): Returns a Lorem Ipsum text.

    Example Usage:

     from damv1testhello2025 import hellowords2025
    
     # Initialize the class
     hello = hellowords2025()
    
     # Use the sayhello method
     greeting = hello.sayhello()
     print(greeting)  # Output: "Hello, what's up. You are currently using package damv1testhello2025"
    
     # Use the wordsloremipsum method
     lorem_ipsum = hello.wordsloremipsum()
     print(lorem_ipsum)  # Output: Lorem Ipsum text   
    

  2. Class SendEmail
    This class is used to send emails using SMTP configuration. The SMTP configuration can be customized via a .env file or directly in the code.

    .env File Configuration:

    Create a .env file in your project directory with the following content:

     SMTP_SERVER=smtp.gmail.com
     SMTP_PORT=587
     SMTP_USER=your-email@gmail.com
     SMTP_PASS=your-email-password   
    

    Example Usage:

     from damv1testhello2025 import SendEmail
    
     # Initialize the class with a custom .env path (optional)
     sender = SendEmail(env_path="path/to/.env")
    
     # Send an email
     sender.send(
         subject="Test Email",
         body="Hello, this is a test email!",
         receiver_email="recipient@example.com"
     )   
    

    Parameters:

    • env_path (optional): Path to the .env file. If not provided, defaults to .env in the current directory.
    • subject: Email subject.
    • body: Email body.
    • receiver_email: Recipient's email address.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

damv1testhello2025-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file damv1testhello2025-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for damv1testhello2025-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 397050dac4095a624969e2db875595d5641496ed38650a030efb3bfa19fc9a8f
MD5 f5876e4331ea9f80f0d0864cf55b8eb3
BLAKE2b-256 45294295835653fa7258a67a721c164f0c91fdaa95613205d0b3c5c9242ccd45

See more details on using hashes here.

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