Skip to main content

Add a short description here!

Project description

Documentation Status Python Workflow

patricesorter

Patricesorter is a sample Python packaging structure.

Installation

pip install -e .

or

pip install patricesorter

Usage

PS C: patricesorter> patricesorter -h

usage: patricesorter [-h] [-v] [-q] [--nargs NARGS [NARGS ...]] {} ...

positional arguments:
  {}                    sub command help

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -q, --quiet           suppress output
  --nargs NARGS [NARGS ...]

Command Line

PS C:patricesorter> patricesorter --nargs 60 20 50 1 4

The ['60', '20', '50', '1', '4'] sorted to  ['1', '20', '4', '50', '60']  , the first price is 1 last price 60

Interface

PS C: patricesorter> python

Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import patricesorter as ps
>>> ps.sort_prices(['60', '20', '50', '1', '4'])
(['1', '20', '4', '50', '60'], (First 1, Last 60))

Using tox

tox -e docs  # to build your documentation
tox -e build  # to build your package distribution
tox -e publish  # to test your project uploads correctly in test.pypi.org
tox -e publish -- --repository pypi  # to release your package to PyPI
tox -av  # to list all the tasks available

Note

This project has been set up using PyScaffold 4.2.1. For details and usage information on PyScaffold see https://pyscaffold.org/.

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

patricesorter-1.0.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

patricesorter-1.0.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file patricesorter-1.0.0.tar.gz.

File metadata

  • Download URL: patricesorter-1.0.0.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.4

File hashes

Hashes for patricesorter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 91836f9eada4752b2ecbb6e683f189661334d491ab200f9f7071e95ff1a1240b
MD5 0cc1809254dab7432adf13e4055dce3a
BLAKE2b-256 da51650de7e83e2a20c17b13ffcb24a6e7d8c76208e1a0eb972f8396c26ca618

See more details on using hashes here.

File details

Details for the file patricesorter-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for patricesorter-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffdd083747323602aea5a767eda34c27d82f9a514b372098f4b1d41aed17256c
MD5 5e1d5dd1bbbd050761a0269bda078c37
BLAKE2b-256 611628cde89436967d1bdf15c14a9775ede13c80f882f9f24eebcfabff37fd98

See more details on using hashes here.

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