Skip to main content

Hello!

Project description

Publish package tutorial

Installation

Create a virtualenv and then install the library

pip3 install publishtutorial

Usage

from src.myfunc import say_hello, average
from src.second_script import second_function

# Generate "Hello, World!"
say_hello()

# Generate "Hello, Everybody!"
say_hello("Everybody")

# Compute average between two numbers (default values are 1 and 2 -> 1.5)
average()

# Compute average between two numbers (2.5)
average(2,3)

# Sum to input value the average between the input and 2 (default value is 1 -> 1 + average(1,2) = 2.5)
second_function()

# Sum to input value the average between the input and 2 (5.5)
second_function(3)

Developing

To install publishtutorial, along with the tools you need to develop and run tests, run the following in your virtualenv:

# Clone the repo
$ git clone git@github.com:matteobollettino/publish_tutorial.git

# Install package, along with the tools you need to develop and run tests
$ pip3 install -e .[dev]

# Run the tests already present
$ pytest

Credits to: Coding Tech and NeuralNine

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

publishtutorial-0.0.5.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

publishtutorial-0.0.5-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file publishtutorial-0.0.5.tar.gz.

File metadata

  • Download URL: publishtutorial-0.0.5.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for publishtutorial-0.0.5.tar.gz
Algorithm Hash digest
SHA256 78850732a63cf5fbdc34299e5249b3c606442e43338cbb528dc0797833a14f15
MD5 44631f05462039f7037204ca8e3531ca
BLAKE2b-256 3bea05724441aee8aad0b8665b7b35d73cbec7de129126ba542ed65876e0f6f2

See more details on using hashes here.

File details

Details for the file publishtutorial-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for publishtutorial-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 25271fea42c53bd2abb8b2913d2cb721fe45addf112168586832b91ed799f457
MD5 fb4af72d58f2c05777f35c0c80b23088
BLAKE2b-256 e848ff0cd82a20147c1b15563da1caef3fd8cb857e382d5ab2c1b3ae66b0447f

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