renify


Namerenify JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryA simple cli tool for batch renaming files and folders, written in Rust.
upload_time2024-02-26 13:47:53
maintainerNone
docs_urlNone
authorJamjamjon <jamjamjon.usls@gmail.com>
requires_python>=3.7
licenseMIT
keywords automation rename cli rust python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Renify
A simple cli tool for batch renaming files and folders, written in Rust.

- πŸš€ written in Rust, fast.
- πŸŽ‰ Available on PyPi, install via `pip`.
- 🧩 `Windows` `Linux` `MacOS` support.
- πŸ“” `files` and `folders` support.
- 🎁 **7** renaming methods provided.
- ⚠️ `symlinks` are `unsupported` for now!



![Example GIF](assets/demo.gif)

# Installation
```
pip install renify
```

# Usage
### Renaming - 重命名
For those new to Renify, consider using the following code for **interactive mode**:
```bash
renify -i <File or Folder Path>
```

Or you can use:
```bash
renify -i <File or Folder Path> --target file --method znum --nbits 5 --recursive false --start 1 -y
```

### Rolling back - ι€€ε›žδΈŠδΈ€ζ¬‘ζ“δ½œ
You can revert to the previous state of the modifications by using:
```bash
renify -i . --roll
```

### Help & options
You can get help from:
```bash
renify --help
```

# Methods provided
- [x] **random:** Sample a u8, uniformly distributed over ASCII letters and numbers: a-z, A-Z and 0-9. `9AFoh, wGRLC, knj9y, ...`
- [x] **uuid:** Uuid4. `de2662a9-fb02-4686-b556-0aca36c0e087`
- [x] **time:** Local time now. `2023-03-04-22-26-42-222655555`
- [x] **num:**  Numbers start from `--start` (1 by default). `1, 2, 3, ...`
- [x] **znum:** Numbers with left zero padding start from `--start` (1 by default). `001, 002, 003, ...`
- [x] **prefix:** Add a prefix string to the file stem, along with a delimiter. `X.jpg => [--with][--delimiter]X.jpg`
- [x] **append:** Append a delimiter and a string after the file stem. `X.jpg => X[--delimiter][--with].jpg`

# Note that
Renify will set `--indiscriminate false` to make sure that the file stems stay consistent. This means that if you have files with the same stems in the same folder, they'll still look the same even after you rename them. Certainly, you can use `--indiscriminate` to treat each file as an independent entity without considering its relationship with other files.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "renify",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "automation,rename,cli,rust,python",
    "author": "Jamjamjon <jamjamjon.usls@gmail.com>",
    "author_email": "Jamjamjon <jamjamjon.usls@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/0c/f0/06d02d68b3c9a79a677de1cbbbb5e97ac8e5061fe7038e4282d3a6b85fed/renify-0.1.0.tar.gz",
    "platform": null,
    "description": "# Renify\nA simple cli tool for batch renaming files and folders, written in Rust.\n\n- \ud83d\ude80 written in Rust, fast.\n- \ud83c\udf89 Available on PyPi, install via `pip`.\n- \ud83e\udde9 `Windows` `Linux` `MacOS` support.\n- \ud83d\udcd4 `files` and `folders` support.\n- \ud83c\udf81 **7** renaming methods provided.\n- \u26a0\ufe0f `symlinks` are `unsupported` for now!\n\n\n\n![Example GIF](assets/demo.gif)\n\n# Installation\n```\npip install renify\n```\n\n# Usage\n### Renaming - \u91cd\u547d\u540d\nFor those new to Renify, consider using the following code for **interactive mode**:\n```bash\nrenify -i <File or Folder Path>\n```\n\nOr you can use:\n```bash\nrenify -i <File or Folder Path> --target file --method znum --nbits 5 --recursive false --start 1 -y\n```\n\n### Rolling back - \u9000\u56de\u4e0a\u4e00\u6b21\u64cd\u4f5c\nYou can revert to the previous state of the modifications by using:\n```bash\nrenify -i . --roll\n```\n\n### Help & options\nYou can get help from:\n```bash\nrenify --help\n```\n\n# Methods provided\n- [x] **random:** Sample a u8, uniformly distributed over ASCII letters and numbers: a-z, A-Z and 0-9. `9AFoh, wGRLC, knj9y, ...`\n- [x] **uuid:** Uuid4. `de2662a9-fb02-4686-b556-0aca36c0e087`\n- [x] **time:** Local time now. `2023-03-04-22-26-42-222655555`\n- [x] **num:**  Numbers start from `--start` (1 by default). `1, 2, 3, ...`\n- [x] **znum:** Numbers with left zero padding start from `--start` (1 by default). `001, 002, 003, ...`\n- [x] **prefix:** Add a prefix string to the file stem, along with a delimiter. `X.jpg => [--with][--delimiter]X.jpg`\n- [x] **append:** Append a delimiter and a string after the file stem. `X.jpg => X[--delimiter][--with].jpg`\n\n# Note that\nRenify will set `--indiscriminate false` to make sure that the file stems stay consistent. This means that if you have files with the same stems in the same folder, they'll still look the same even after you rename them. Certainly, you can use `--indiscriminate` to treat each file as an independent entity without considering its relationship with other files.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple cli tool for batch renaming files and folders, written in Rust.",
    "version": "0.1.0",
    "project_urls": {
        "Repository": "https://github.com/jamjamjon/renify"
    },
    "split_keywords": [
        "automation",
        "rename",
        "cli",
        "rust",
        "python"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "38f5660cce7087cc03f1ca9f599fca3256a7ec702795f5624147fe31f82afc2c",
                "md5": "a651f308a9820038072395a1bc840084",
                "sha256": "bcde7cc28f4118a4713ce17dfcba04cb03fa3ac7f7720b6a03049419cb22c883"
            },
            "downloads": -1,
            "filename": "renify-0.1.0-py3-none-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "a651f308a9820038072395a1bc840084",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 617347,
            "upload_time": "2024-02-26T13:47:42",
            "upload_time_iso_8601": "2024-02-26T13:47:42.127079Z",
            "url": "https://files.pythonhosted.org/packages/38/f5/660cce7087cc03f1ca9f599fca3256a7ec702795f5624147fe31f82afc2c/renify-0.1.0-py3-none-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "263967707a813154b8540f206d52dbaaff672e49938c55fe93fde36a4d2900a0",
                "md5": "2e6c5831e5e2874869e08425dc0d66fc",
                "sha256": "6de211cf1ab30589ed9ad74a3f3743c96ea57a5d5eba2a2517f135046e5adaaf"
            },
            "downloads": -1,
            "filename": "renify-0.1.0-py3-none-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "2e6c5831e5e2874869e08425dc0d66fc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 592859,
            "upload_time": "2024-02-26T13:47:44",
            "upload_time_iso_8601": "2024-02-26T13:47:44.720142Z",
            "url": "https://files.pythonhosted.org/packages/26/39/67707a813154b8540f206d52dbaaff672e49938c55fe93fde36a4d2900a0/renify-0.1.0-py3-none-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "347e5e7f69cd757f3f0e88f248b3f82de7a775c5302dfdbb3cb32ee7dec747fd",
                "md5": "dd22ec86f5595d18c8d80bf0b757f962",
                "sha256": "c0ce6489f00cb284c071b882f9a7eb4c28c779ea9ff691198ce2e699d54f7513"
            },
            "downloads": -1,
            "filename": "renify-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "dd22ec86f5595d18c8d80bf0b757f962",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 637173,
            "upload_time": "2024-02-26T13:47:46",
            "upload_time_iso_8601": "2024-02-26T13:47:46.404744Z",
            "url": "https://files.pythonhosted.org/packages/34/7e/5e7f69cd757f3f0e88f248b3f82de7a775c5302dfdbb3cb32ee7dec747fd/renify-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f0764b1ca76045234b848ec13b83df4a13671fa0935fcb113b5f22514c1b4f98",
                "md5": "7ef6003486da3883de906dbaa1aee2c5",
                "sha256": "786141b090692c6d09cd3bc625deb7cb5e0fd9ae5e342b56d93ebc963de6315b"
            },
            "downloads": -1,
            "filename": "renify-0.1.0-py3-none-manylinux_2_5_i686.manylinux1_i686.whl",
            "has_sig": false,
            "md5_digest": "7ef6003486da3883de906dbaa1aee2c5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 697867,
            "upload_time": "2024-02-26T13:47:48",
            "upload_time_iso_8601": "2024-02-26T13:47:48.074681Z",
            "url": "https://files.pythonhosted.org/packages/f0/76/4b1ca76045234b848ec13b83df4a13671fa0935fcb113b5f22514c1b4f98/renify-0.1.0-py3-none-manylinux_2_5_i686.manylinux1_i686.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5938ac104d5be3252b24187435d2901757d0a2349a481cd41a1e1b861ff9d978",
                "md5": "442337704c1a60a04d685bfdfacd564a",
                "sha256": "e7e786964904c43bf4a684b214b2dce20a9c61fee9299c9c31c01f862ec2f2ef"
            },
            "downloads": -1,
            "filename": "renify-0.1.0-py3-none-win32.whl",
            "has_sig": false,
            "md5_digest": "442337704c1a60a04d685bfdfacd564a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 485034,
            "upload_time": "2024-02-26T13:47:49",
            "upload_time_iso_8601": "2024-02-26T13:47:49.906487Z",
            "url": "https://files.pythonhosted.org/packages/59/38/ac104d5be3252b24187435d2901757d0a2349a481cd41a1e1b861ff9d978/renify-0.1.0-py3-none-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d66463365ce3d51aca59d5cb2edcd12914f715cbfee67eea18cc427513a9a4ec",
                "md5": "fe3fec4049c74d001232bc1f144acd74",
                "sha256": "65dba64b021ecc5bec821dc02f0af717e9712576752122eb06a66f623a499482"
            },
            "downloads": -1,
            "filename": "renify-0.1.0-py3-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "fe3fec4049c74d001232bc1f144acd74",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 515532,
            "upload_time": "2024-02-26T13:47:51",
            "upload_time_iso_8601": "2024-02-26T13:47:51.446119Z",
            "url": "https://files.pythonhosted.org/packages/d6/64/63365ce3d51aca59d5cb2edcd12914f715cbfee67eea18cc427513a9a4ec/renify-0.1.0-py3-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0cf006d02d68b3c9a79a677de1cbbbb5e97ac8e5061fe7038e4282d3a6b85fed",
                "md5": "c5368ddc6d746609b58d4f93e29d7376",
                "sha256": "0092d1ad5f4bd052554cdfc748655619a7d528696535a71a8af23586c416805b"
            },
            "downloads": -1,
            "filename": "renify-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c5368ddc6d746609b58d4f93e29d7376",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3493616,
            "upload_time": "2024-02-26T13:47:53",
            "upload_time_iso_8601": "2024-02-26T13:47:53.274312Z",
            "url": "https://files.pythonhosted.org/packages/0c/f0/06d02d68b3c9a79a677de1cbbbb5e97ac8e5061fe7038e4282d3a6b85fed/renify-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-26 13:47:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jamjamjon",
    "github_project": "renify",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "renify"
}
        
Elapsed time: 0.19259s