https://github.com/ailln/ashe
✨ ashe is a super extension of Python.
https://github.com/ailln/ashe
python python-extension python-package
Last synced: about 2 months ago
JSON representation
✨ ashe is a super extension of Python.
- Host: GitHub
- URL: https://github.com/ailln/ashe
- Owner: Ailln
- License: mit
- Created: 2020-08-07T15:58:08.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-27T12:13:05.000Z (8 months ago)
- Last Synced: 2025-05-08T21:42:56.465Z (about 2 months ago)
- Topics: python, python-extension, python-package
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ashe
✨ `ashe` is a super extension of Python.
## 1 Feature
1. System
- size
2. Dict
- merge
- remove3. List
- reverse
- max_count4. String
- find
5. File
- read
- write6. Date
- today
- yesterday
- tomorrow
- week
- year
- get_interval_days
- get_week_days
- get_month_days## 2 Getting Started
### installation
```shell
pip install ashe -U
```### usage
```Python
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
[](./LICENSE)