Skip to main content

ashe

ashe is a super extension of Python.

1 Feature

  1. System

    • size
  2. Dict

    • merge
    • remove
  3. List

    • reverse
    • max_count
  4. String

    • find
  5. File

    • read
    • write
  6. Date

    • today
    • yesterday
    • tomorrow
    • 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

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.8.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ashe-0.0.8-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file ashe-0.0.8.tar.gz.

File metadata

  • Download URL: ashe-0.0.8.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for ashe-0.0.8.tar.gz
Algorithm Hash digest
SHA256 926c16b6c464d80ac21f063cf768d8bf0dd9a4a37a0b96aa71d96585834ed310
MD5 623f682972d180c5b0e126b67f988234
BLAKE2b-256 9c229d05d12cda64ba5762d665b92860ac2398fb22d1bf609a6b8542d506d313

See more details on using hashes here.

File details

Details for the file ashe-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: ashe-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for ashe-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5faf3c98d37e1caeb628399302ff2cc3c91e6c74a6754ee79d5ac2e62dc62c14
MD5 95cce7d6fb735e6504caeed70239adc6
BLAKE2b-256 93043463c724d81ab995c9027d9adc204dc7e502985d466e6d9844a7259f132c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page