ashe is super extension of Python.
Project description
ashe
✨ ashe
is a super extension of Python.
1 Feature
-
System
- size
-
Dict
- merge
- remove
-
List
- reverse
-
String
- find
-
File
- read
- write
-
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)
Built Distribution
ashe-0.0.7-py3-none-any.whl
(7.4 kB
view hashes)