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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for hello-ta2642-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9533ab424a7a678b040e5123f2a793ca28618e03bbd48235ff53c4f222509ca2
MD5 427e00df13dc52da57714f42e66617cb
BLAKE2b-256 79e549c3cae880b228b8127b37f56f15f14d92249e0f6b39414ed9dd37c088f7

See more details on using hashes here.

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

Hashes for hello_ta2642-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3eb36737129a39cdb74502cee280afad33963a5c1a8f934a6288aa8975d7260
MD5 8895ac55bd3935a9ed8767b9d68d821b
BLAKE2b-256 368f9b5e18553cefcde2b309413943a38cefd2e8ef6ea9410f321a6ae7467a45

See more details on using hashes here.

Supported by

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