Skip to main content

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

Metadata

Release files for publishtutorial 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for publishtutorial 0.0.5
File Size Uploaded Provenance Actions
publishtutorial-0.0.5.tar.gz 2.9 kB Without provenance Details for publishtutorial-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for publishtutorial 0.0.5
File Interpreter ABI Platform Actions
publishtutorial-0.0.5-py3-none-any.whl Python 3 none any Details for publishtutorial-0.0.5-py3-none-any.whl

Total release size: 4.9 kB

Release files / publishtutorial-0.0.5.tar.gz

Download URL publishtutorial-0.0.5.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
78850732a63cf5fbdc34299e5249b3c606442e43338cbb528dc0797833a14f15
BLAKE2b-256 checksum
How to use checksums
3bea05724441aee8aad0b8665b7b35d73cbec7de129126ba542ed65876e0f6f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / publishtutorial-0.0.5-py3-none-any.whl

Download URL publishtutorial-0.0.5-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25271fea42c53bd2abb8b2913d2cb721fe45addf112168586832b91ed799f457
BLAKE2b-256 checksum
How to use checksums
e848ff0cd82a20147c1b15563da1caef3fd8cb857e382d5ab2c1b3ae66b0447f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for publishtutorial 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page