Skip to main content

ashe is super extension of Python.

Project description

ashe

ashe is a super extension of Python.

1 Feature

  1. System

    • size
  2. Dict

    • merge
    • remove
  3. List

    • reverse
  4. String

    • find
  5. File

    • read
    • write
  6. Date

    • today
    • yesterday
    • week
    • year
    • get_interval_days
    • get_week_days
    • get_month_days

2 Getting Started

installation

pip install ashe -U

usage

from ashe import *

# get size
n = 1
print(size(n))
# 28

# reverse the list
l = [1, 2, 3]
print(reverse(l))
# [3, 2, 1]

# remove key and value from dict
d = {"a": 1, "b": 2}
print(remove("a", d))
# {'b': 2}

# get today and yesterday
print(today())
# 2022-10-23
print(yesterday())
# 2022-10-22
print(get_interval_days(interval=3))
# ["2022-10-21", "2022-10-22", "2022-10-23"]

3 Consistency

- Why reverse(list) not list.reverse()?

- Because len(list) not list.len().

I find built-in method named reversed 🤦‍.

4 License

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

ashe-0.0.7.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

ashe-0.0.7-py3-none-any.whl (7.4 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