Skip to main content

An example Python Hello World package

Project description

Pello

Pello is an example package that will be used as a part of Fedora Python Packaging Guidelines. The only thing that this package does is printing Hello World! on the command line.

Installation

In a virtual environment, run:

$ python -m pip install pello

If you want colorized output, install the color extra:

$ python -m pip install pello[color]

Running

You can run the pello_greeting command directly:

$ pello_greeting
Hello World!

You can also run the pello Python package:

$ python -m pello
Hello World!

Or you can use the Python API:

>>> import pello
>>> pello.greeting()
Hello World!

Tests

Run tests using Tox:

$ tox

This tests several Python interpreters (if they're available). It also checks for some “code quality” issues in a separate Tox environment, lint.

Contributing to Pello

Pull requests welcome, but keep in mind that this is an example package. Please coordinate major changes on Fedora's Python SIG mailing list.

Name & History

Beginner RPM packaging guides have traditionally featured simple example programs hello (in Bash), cello (in C) and pello (in Python).

This project is not a simple script, but a full Python project with associated metadata (in pyproject.toml and setup.py). This metadata should be converted, as automatically as possible, into RPM metadata.

Thanks to the capital P, Pello differs from the normalized name pello, so we can show where each of them is needed.

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

Pello-1.0.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

Pello-1.0.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file Pello-1.0.4.tar.gz.

File metadata

  • Download URL: Pello-1.0.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for Pello-1.0.4.tar.gz
Algorithm Hash digest
SHA256 298e2ceb8189769fc36927b511e5bc43478ff959ba3c000f8c1c89171cbbaea5
MD5 65fea097da91b5e928c208a4f7220972
BLAKE2b-256 4ad0c5047a342d7c2e82adaa6d601f00dd665cac297780448125c8494df88b22

See more details on using hashes here.

Provenance

File details

Details for the file Pello-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: Pello-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for Pello-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5b9a4304ed24f8aaf49ec36d9b2943442bc9c68e5d32afff3150af52ae30bec2
MD5 5367acc67e9015e16c71254189a063be
BLAKE2b-256 d483c0f3ef9cb6f8f5f9fb64163b560e4d3dd8b0624a4f3cb9c1f024374894ba

See more details on using hashes here.

Provenance

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