Skip to main content

No project description provided

Project description

Pappardelle

Pappardelle is a Python module that provides helper functions for lists and dates.

Change Log

  • Version 0.2
    • compare_lists returns a dictionary with keys: =, +, - (instead of: matched, + -)
    • Added relative date functions
  • Version 0.1
    • First release with compare_lists and lookup_lists functions

Author

My name is Katkam Nitin Reddy. I am a former software developer living (mostly) in Dubai. I created this library for functionality that I find myself re-writing for a Terraform-style project.

Acknowledgement

I would like to thank my mom, Katkam Nita Reddy, and my dad, Katkam Narsing Reddy, who have always motivated me to learn and contribute to the open-source community.

Getting Started

Install the Python module with

python3 -m pip install pappardelle

Then, within your Python (.py) source code, like in this example:

from pappardelle import compare_lists

Call the imported function:

>>> compare_lists(
    [1, 2, 3],
    [2, 3, 5]
)

# Returns the following
{
    '=': [2, 3],
    '-': [1],
    '+': [5]
}

References

List Functions

compare_lists(list1, list2, optional lambda comparator)

lookup_lists(list1, list2, optional lambda comparator)

Date Functions

days_before(num_of_days, from_date)

days_ago(num_of_days)

days_after(num_of_days, from_date)

days_since(num_of_days, from_date)

tomorrow()

yesterday()

hours_before(num_of_hours, from_date)

hours_ago(num_of_hours)

hours_after(num_of_hours, from_date)

hours_since(num_of_hours, from_date)

minutes_before(num_of_minutes, from_date)

minutes_ago(num_of_minutes)

minutes_after(num_of_minutes, from_datee)

minutes_since(num_of_minutes, from_date)

seconds_before(num_of_seconds, from_date)

seconds_ago(num_of_seconds)

seconds_after(num_of_seconds, from_date)

seconds_since(num_of_seconds, from_date)

weeks_before(num_of_weeks, from_date)

weeks_ago(num_of_weeks)

weeks_after(num_of_weeks, from_date)

weeks_since(num_of_weeks, from_date)

months_before(num_of_months, from_date)

months_ago(num_of_months)

months_after(num_of_months, from_date)

months_since(num_of_months, from_date)

years_before(num_of_years, from_date)

years_ago(num_of_years)

years_after(num_of_years, from_date)

years_since(num_of_years, from_date)

Examples

TODO

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

pappardelle-0.2.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.

pappardelle-0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file pappardelle-0.2.tar.gz.

File metadata

  • Download URL: pappardelle-0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for pappardelle-0.2.tar.gz
Algorithm Hash digest
SHA256 8f8028412e1b1c1d2a2056899345e275cb6ffd284b3cf117bde2d0f012e98e91
MD5 ea5d7e1cb494ffefe10cc20a62f99d5d
BLAKE2b-256 1c58ba4e5e81511194315a3294edf308c8f49e3f5a81a944e786ffbfd343ad6b

See more details on using hashes here.

File details

Details for the file pappardelle-0.2-py3-none-any.whl.

File metadata

  • Download URL: pappardelle-0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for pappardelle-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 172ae1e785247edff5c84686e5b016b71c56348c18f299872cabc24f8022dfe0
MD5 e7c9da7ec576b43ffa444d47fcbd887e
BLAKE2b-256 dfbc47b764f1ed05624d470c653b5a459c43cde32d47c6ad07e177ca42ec5ac7

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