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-5.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

ezcl_py_hello-5.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ezcl_py_hello-5.0.0.tar.gz
  • Upload date:
  • Size: 3.5 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-5.0.0.tar.gz
Algorithm Hash digest
SHA256 60243f83f2f9ff52cc3c7bcf8a5214439cee2c74392f4514ffd1d71114eb3db7
MD5 c3446e0dc9e51d07caa418d8870bd268
BLAKE2b-256 3d9156f85e1dbfe848cca7108900ae67da33476950d2c43b365aaeafd940b197

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ezcl_py_hello-5.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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-5.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5d1019cc6f29fed635feadc82480ec569dd94155a908b1f9d6f1b5844ad2523
MD5 2e1f40ee716feb9f3220ec03593e41af
BLAKE2b-256 086a6db96c240e5af5c92190c6a474b179aa08317abdad1e6c8611d5fc71dd91

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