| 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 libraryrepository.
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
Metadata
Release files for ezcl-py-hello 8.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ezcl_py_hello-8.0.0.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ezcl_py_hello-8.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / ezcl_py_hello-8.0.0.tar.gz
| Download URL | ezcl_py_hello-8.0.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0f33c3c9afb7c39eeee3285b12cffbc14e189e8635e6fd358c4afb8cbb8a0eb
|
|
BLAKE2b-256 checksum How to use checksums |
de82bd8d393e0c77693e6f60bbeb9a8f3bc604f70dfda4412b5f0f2340dae824
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / ezcl_py_hello-8.0.0-py3-none-any.whl
| Download URL | ezcl_py_hello-8.0.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f953ef38b74e55466eef3a66568adc5e8d8139b4300d28966dd07ae3d3ae6667
|
|
BLAKE2b-256 checksum How to use checksums |
cd49f348c0e5f380018c4fdf5f499b30136d9db42401b964e1948b0bb18a7ad5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|