Skip to main content

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

  1. create src folder

  2. put code .py under src folder

  3. create init file within src folder

  4. create setup.py outside of src folder

  5. go on terminal and run

python setup.py bdist_wheel

-- this creates build and dist library

  1. terminal and run
pip install -e .

this installs package locally. run it if you add new library so it installs all the library dependencies

  1. source distribution- builds a wheel file
python setup.py bdist_wheel
  1. check files under dist tar
tar tzf dist/hello-0.0.1.tar.gz
  1. build it to publish
python setup.py bdist_wheel sdist
  • it should have wheel file and source dist

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

hello-ta2642-0.0.1.tar.gz (14.5 kB view hashes)

Uploaded Source

Built Distribution

hello_ta2642-0.0.1-py3-none-any.whl (14.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page