Skip to main content

Hello Package

A simple Python package that demonstrates how to create a class and use a method from another Python file.

Installation

If the package is published on PyPI:

pip install hello-package

Usage

Import the Hello class:

from hello_package import Hello

Create an object and call the greet() method:

hello = Hello()
hello.greet("Rahul")

Output:

Hello Rahul

Example

The package contains a simple Hello class:

class Hello:
    def __init__(self):
        pass

    def greet(self, name):
        self.name = name
        print(f"Hello {self.name}")

Project Structure

hello-package/
├── README.md
├── pyproject.toml
└── src/
    └── hello_package/
        ├── __init__.py
        └── hello.py

License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0).

See the LICENSE file for the full license text.

Release files for myexample-rahul 0.0.1

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

Source distribution (sdist)

Source distribution for myexample-rahul 0.0.1
File Size Uploaded
myexample_rahul-0.0.1.tar.gz 13.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for myexample-rahul 0.0.1
File Interpreter ABI Platform
myexample_rahul-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 27.1 kB

Release files / myexample_rahul-0.0.1.tar.gz

Download URL myexample_rahul-0.0.1.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dc4d34e025e71f4507f0f90cf768e0013d7296b8258814f7412ce9868fb62612
BLAKE2b-256 checksum
How to use checksums
a5f7134bccf26ad637bf55deeac416ac83e453925c9aac6446fd04df742d852a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / myexample_rahul-0.0.1-py3-none-any.whl

Download URL myexample_rahul-0.0.1-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98450720d802c704d273cc18420f3d5005ed83c25ed3a11382e3702bf726302b
BLAKE2b-256 checksum
How to use checksums
55443a120de249e318dbf25d2f2412a46f6c0f496d8e60dc0dd8d5ce2a17a9c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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