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
hello-ta2642-0.0.1.tar.gz
(14.5 kB
view hashes)
Built Distribution
Close
Hashes for hello_ta2642-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3eb36737129a39cdb74502cee280afad33963a5c1a8f934a6288aa8975d7260 |
|
MD5 | 8895ac55bd3935a9ed8767b9d68d821b |
|
BLAKE2b-256 | 368f9b5e18553cefcde2b309413943a38cefd2e8ef6ea9410f321a6ae7467a45 |