Skip to main content

A simple "Hello, World!" package

Project description

Status Proposed
Category Library
Team Developer
Authors(s) eazycloudlife
Created By Jul 2024
Modified By Jul 2024

What is this repository for?

  • This is the ezcl hello python library repository.

Creating a "Hello, World!" package in Python is a great way to learn the basics of packaging and distributing Python libraries. Here’s a step-by-step guide to create a simple "Hello, World!" package:

index

How is the Python library created?

Examples of How To Use

Importing the package

from hello import (
    hello,
    hello_world,
    hi,
    hi_world,
    version
)

Using the package

def say_hello(name):
    return hello(name)

def say_hello_world():
    return hello_world()

def say_hi(name):
    return hi(name)

def say_hi_world():
    return hi_world()

def say_version():
    return version()

if __name__ == "__main__":
    name = "Eazy Cloud Life"

    print(say_hello(name))
    print(say_hello_world())
    print(say_hi(name))
    print(say_hi_world())
    print(say_version())
    print(hello.__version__)

⬆ Back to index

Summary

Creating a "Hello, World!" package involves defining a simple function, organizing your code into a package structure, writing a setup.py file for packaging, and optionally testing and publishing your package. This exercise provides a solid foundation for understanding Python packaging and distribution.

⬆ Back to index

Who do I talk to?

Authors

A repository is maintained by eazycloudlife with help from these awesome contributors. ⬆ Back to index

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

ezcl_py_hello-7.0.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

ezcl_py_hello-7.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file ezcl_py_hello-7.0.0.tar.gz.

File metadata

  • Download URL: ezcl_py_hello-7.0.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for ezcl_py_hello-7.0.0.tar.gz
Algorithm Hash digest
SHA256 95bdd46eddf696206b6bb2c51087402c1dc5c91861d8c2aece0b9aee3cacb82a
MD5 70ecaea2ebc372005d4502d0f38bc44b
BLAKE2b-256 e4054fc5595c5c82408b24dc2c28d1afbd9ed61d3ea802c53099aa39255a4707

See more details on using hashes here.

File details

Details for the file ezcl_py_hello-7.0.0-py3-none-any.whl.

File metadata

  • Download URL: ezcl_py_hello-7.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for ezcl_py_hello-7.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b7cf59689115e2138c070607d3ea4cd3120c3e1272c0edd9ae5cae798f37f26
MD5 3ffe8b69224257eadd634b2b43944b9d
BLAKE2b-256 ebe8163b85022a6cdf08cca6ffa5c70cf2e4b6c6ab1d694a31f5a5fc9e918139

See more details on using hashes here.

Supported by

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