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

Uploaded Source

Built Distribution

publishtutorial-0.0.5-py3-none-any.whl (1.9 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