ashe


Nameashe JSON
Version 0.0.8 PyPI version JSON
download
home_pagehttps://github.com/Ailln/ashe
Summaryashe is super extension of Python.
upload_time2024-10-27 12:14:20
maintainerNone
docs_urlNone
authorAilln
requires_python>=3.6
licenseMIT License
keywords
VCS
bugtrack_url
requirements setuptools
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

```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

[![](https://award.dovolopor.com?lt=License&rt=MIT&rbc=green)](./LICENSE)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Ailln/ashe",
    "name": "ashe",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Ailln",
    "author_email": "kinggreenhall@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/9c/22/9d05d12cda64ba5762d665b92860ac2398fb22d1bf609a6b8542d506d313/ashe-0.0.8.tar.gz",
    "platform": null,
    "description": "# ashe\n\n\u2728 `ashe` is a super extension of Python.\n\n## 1 Feature\n\n1. System\n\n   - size\n\n2. Dict\n\n   - merge\n   - remove\n\n3. List\n\n   - reverse\n   - max_count\n\n4. String\n\n   - find\n\n5. File\n\n   - read\n   - write\n\n6. Date\n\n   - today\n   - yesterday\n   - tomorrow\n   - week\n   - year\n   - get_interval_days\n   - get_week_days\n   - get_month_days\n\n## 2 Getting Started\n\n### installation\n\n```shell\npip install ashe -U\n```\n\n### usage\n\n```Python\nfrom ashe import *\n\n# get size\nn = 1\nprint(size(n))\n# 28\n\n# reverse the list\nl = [1, 2, 3]\nprint(reverse(l))\n# [3, 2, 1]\n\n# remove key and value from dict\nd = {\"a\": 1, \"b\": 2}\nprint(remove(\"a\", d))\n# {'b': 2}\n\n# get today and yesterday\nprint(today())\n# 2022-10-23\nprint(yesterday())\n# 2022-10-22\nprint(get_interval_days(interval=3))\n# [\"2022-10-21\", \"2022-10-22\", \"2022-10-23\"]\n```\n\n## 3 Consistency\n\n\\- Why `reverse(list)` not `list.reverse()`?\n\n\\- Because `len(list)` not `list.len()`.\n\n> I find built-in method named `reversed` \ud83e\udd26\u200d.\n\n## 4 License\n\n[![](https://award.dovolopor.com?lt=License&rt=MIT&rbc=green)](./LICENSE)\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "ashe is super extension of Python.",
    "version": "0.0.8",
    "project_urls": {
        "Homepage": "https://github.com/Ailln/ashe"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "93043463c724d81ab995c9027d9adc204dc7e502985d466e6d9844a7259f132c",
                "md5": "95cce7d6fb735e6504caeed70239adc6",
                "sha256": "5faf3c98d37e1caeb628399302ff2cc3c91e6c74a6754ee79d5ac2e62dc62c14"
            },
            "downloads": -1,
            "filename": "ashe-0.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "95cce7d6fb735e6504caeed70239adc6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 7929,
            "upload_time": "2024-10-27T12:14:19",
            "upload_time_iso_8601": "2024-10-27T12:14:19.029340Z",
            "url": "https://files.pythonhosted.org/packages/93/04/3463c724d81ab995c9027d9adc204dc7e502985d466e6d9844a7259f132c/ashe-0.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9c229d05d12cda64ba5762d665b92860ac2398fb22d1bf609a6b8542d506d313",
                "md5": "623f682972d180c5b0e126b67f988234",
                "sha256": "926c16b6c464d80ac21f063cf768d8bf0dd9a4a37a0b96aa71d96585834ed310"
            },
            "downloads": -1,
            "filename": "ashe-0.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "623f682972d180c5b0e126b67f988234",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 6003,
            "upload_time": "2024-10-27T12:14:20",
            "upload_time_iso_8601": "2024-10-27T12:14:20.813522Z",
            "url": "https://files.pythonhosted.org/packages/9c/22/9d05d12cda64ba5762d665b92860ac2398fb22d1bf609a6b8542d506d313/ashe-0.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-27 12:14:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Ailln",
    "github_project": "ashe",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "setuptools",
            "specs": [
                [
                    ">=",
                    "40.6.3"
                ]
            ]
        }
    ],
    "lcname": "ashe"
}
        
Elapsed time: 0.32856s