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?
- How to install?
- How to uninstall?
- How to upgrade?
- Examples of How To Use
- Summary
- Who do I talk to?
- Authors
How is the Python library created?
How to install?
pip install ezcl-py-hello
How to uninstall?
pip uninstall ezcl-py-hello
How to upgrade?
pip install --upgrade ezcl-py-hello
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__)
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.
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
Built Distribution
File details
Details for the file ezcl_py_hello-8.0.0.tar.gz
.
File metadata
- Download URL: ezcl_py_hello-8.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0f33c3c9afb7c39eeee3285b12cffbc14e189e8635e6fd358c4afb8cbb8a0eb |
|
MD5 | 98875dc76a2bcb46523816eba71d96a7 |
|
BLAKE2b-256 | de82bd8d393e0c77693e6f60bbeb9a8f3bc604f70dfda4412b5f0f2340dae824 |
File details
Details for the file ezcl_py_hello-8.0.0-py3-none-any.whl
.
File metadata
- Download URL: ezcl_py_hello-8.0.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f953ef38b74e55466eef3a66568adc5e8d8139b4300d28966dd07ae3d3ae6667 |
|
MD5 | 9706306279473768f9ce182491c7eb27 |
|
BLAKE2b-256 | cd49f348c0e5f380018c4fdf5f499b30136d9db42401b964e1948b0bb18a7ad5 |