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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ezcl_py_hello-6.0.0.tar.gz
  • Upload date:
  • Size: 3.6 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-6.0.0.tar.gz
Algorithm Hash digest
SHA256 f42da65508f0c4bd6b3d6a2be086ba0cfebd0cc6eba22dc66a6ceafbeaffdf2d
MD5 6bc19aeaa897c4db4966aa434d7b73e3
BLAKE2b-256 c75b8a79f3072be05620690e8de705b093fcc64c465837cf8e6da121cc211355

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ezcl_py_hello-6.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-6.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63042efa9165e1190d562da0edd5c6e09e41eff1eec56882de6d10ad213e5ec2
MD5 31eb0ce06aab75a4d5ae31435c7b5ea4
BLAKE2b-256 fe4a3a7516b09b04da32d921fae162c8667e9d00a8e88e81db9ca628edcbe4f8

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