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

Metadata

Release files for ashe 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ashe 0.0.8
File Size Uploaded
ashe-0.0.8.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ashe 0.0.8
File Interpreter ABI Platform
ashe-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 kB

Release files / ashe-0.0.8.tar.gz

Download URL ashe-0.0.8.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
926c16b6c464d80ac21f063cf768d8bf0dd9a4a37a0b96aa71d96585834ed310
BLAKE2b-256 checksum
How to use checksums
9c229d05d12cda64ba5762d665b92860ac2398fb22d1bf609a6b8542d506d313
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release files / ashe-0.0.8-py3-none-any.whl

Download URL ashe-0.0.8-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5faf3c98d37e1caeb628399302ff2cc3c91e6c74a6754ee79d5ac2e62dc62c14
BLAKE2b-256 checksum
How to use checksums
93043463c724d81ab995c9027d9adc204dc7e502985d466e6d9844a7259f132c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page