basic hello package
Project description
Hello World
Installation
Run the following to install:
pip install hello
Usage
from helloworld import say_hello
# Generate "Hello, World!"
say_hello
#Generate hello, name
say_hello("name")
Tutorial from: https://www.youtube.com/watch?v=GIF3LaRqgXo&ab_channel=CodingTech
-
create src folder
-
put code .py under src folder
-
create init file within src folder
-
create setup.py outside of src folder
-
go on terminal and run
python setup.py bdist_wheel
-- this creates build and dist library
- terminal and run
pip install -e .
this installs package locally. run it if you add new library so it installs all the library dependencies
- source distribution- builds a wheel file
python setup.py bdist_wheel
- check files under dist tar
tar tzf dist/hello-0.0.1.tar.gz
- build it to publish
python setup.py bdist_wheel sdist
- it should have wheel file and source dist
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hello-ta2642-0.0.1.tar.gz.
File metadata
- Download URL: hello-ta2642-0.0.1.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9533ab424a7a678b040e5123f2a793ca28618e03bbd48235ff53c4f222509ca2
|
|
| MD5 |
427e00df13dc52da57714f42e66617cb
|
|
| BLAKE2b-256 |
79e549c3cae880b228b8127b37f56f15f14d92249e0f6b39414ed9dd37c088f7
|
File details
Details for the file hello_ta2642-0.0.1-py3-none-any.whl.
File metadata
- Download URL: hello_ta2642-0.0.1-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3eb36737129a39cdb74502cee280afad33963a5c1a8f934a6288aa8975d7260
|
|
| MD5 |
8895ac55bd3935a9ed8767b9d68d821b
|
|
| BLAKE2b-256 |
368f9b5e18553cefcde2b309413943a38cefd2e8ef6ea9410f321a6ae7467a45
|