| Name | FileCycle-nachash JSON |
| Version |
0.0.1
JSON |
| download |
| home_page | |
| Summary | The FileCycle is a Python library designed to manage file rotation in a specified directory. |
| upload_time | 2023-08-20 12:47:03 |
| maintainer | |
| docs_url | None |
| author | |
| requires_python | >=3.7 |
| license | |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# FileCycle: Python File Rotation Manager
**FileCycle** is a Python library designed to manage file rotation in a specified directory. It automatically organizes files into dated folders and applies a retention policy to remove old files. This ensures that you keep only the data you need for a specified period.
## Key Features:
- **Automated File Rotation**: Automatically moves files into dated folders based on the current date.
- **Retention Policy**: Cleans up old files based on a user-defined retention period, specified in days.
- **Customizable Working Directory**: Allows you to set the working directory where the file rotation and retention will occur.
- **Version Listing**: Provides a method to list all available versions (dated folders) in the working directory.
This library is particularly useful for applications that generate time-sensitive data files that need to be retained for a specific period.
## Installation
Copy the `FileCycle` class into your project.
## Features
- **Automated File Rotation**: Moves files into dated folders based on the current date.
- **Retention Policy**: Removes old files based on a user-defined retention period.
- **Customizable Working Directory**: Allows you to set the working directory for file rotation.
- **Version Listing**: Lists all available versions (dated folders) in the working directory.
## Usage
### Initialization
Initialize the `FileCycle` class by specifying the working directory prefix, the working directory, and the retention days.
```python
from FileCycle import FileCycle # Assuming FileCycle is in a file named FileCycle.py
# Initialize with default settings
file_cycle = FileCycle()
# Or specify custom settings
file_cycle = FileCycle(workdir_prefix="/your/prefix", workdir="/your/dir", retention_days=15)
Raw data
{
"_id": null,
"home_page": "",
"name": "FileCycle-nachash",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "",
"author_email": "Bo Stokholm <the.one.nachash@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/e9/b3/72a87724b8652104c14fad243f142a4cb2f80a51e2a1f8cedd73d29c0d2d/FileCycle_nachash-0.0.1.tar.gz",
"platform": null,
"description": "# FileCycle: Python File Rotation Manager\n\n**FileCycle** is a Python library designed to manage file rotation in a specified directory. It automatically organizes files into dated folders and applies a retention policy to remove old files. This ensures that you keep only the data you need for a specified period.\n\n## Key Features:\n\n- **Automated File Rotation**: Automatically moves files into dated folders based on the current date.\n \n- **Retention Policy**: Cleans up old files based on a user-defined retention period, specified in days.\n\n- **Customizable Working Directory**: Allows you to set the working directory where the file rotation and retention will occur.\n\n- **Version Listing**: Provides a method to list all available versions (dated folders) in the working directory.\n\nThis library is particularly useful for applications that generate time-sensitive data files that need to be retained for a specific period.\n\n\n## Installation\n\nCopy the `FileCycle` class into your project.\n\n## Features\n\n- **Automated File Rotation**: Moves files into dated folders based on the current date.\n- **Retention Policy**: Removes old files based on a user-defined retention period.\n- **Customizable Working Directory**: Allows you to set the working directory for file rotation.\n- **Version Listing**: Lists all available versions (dated folders) in the working directory.\n\n## Usage\n\n### Initialization\n\nInitialize the `FileCycle` class by specifying the working directory prefix, the working directory, and the retention days.\n\n```python\nfrom FileCycle import FileCycle # Assuming FileCycle is in a file named FileCycle.py\n\n# Initialize with default settings\nfile_cycle = FileCycle()\n\n# Or specify custom settings\nfile_cycle = FileCycle(workdir_prefix=\"/your/prefix\", workdir=\"/your/dir\", retention_days=15)\n",
"bugtrack_url": null,
"license": "",
"summary": "The FileCycle is a Python library designed to manage file rotation in a specified directory.",
"version": "0.0.1",
"project_urls": {
"Bug Tracker": "https://github.com/pypa/sampleproject/issues",
"Homepage": "https://github.com/pypa/sampleproject"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a9525f85feee0d74612c0e86367c4e81648ca867888d86d1a50310d1e14ebb3f",
"md5": "fb2fe50653a34601b662699a9aa59d71",
"sha256": "02d56fd9acdb45daf73b04648a3ab021ea0a59c978a60e492b1f33c7d3594517"
},
"downloads": -1,
"filename": "FileCycle_nachash-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fb2fe50653a34601b662699a9aa59d71",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 3854,
"upload_time": "2023-08-20T12:47:01",
"upload_time_iso_8601": "2023-08-20T12:47:01.848969Z",
"url": "https://files.pythonhosted.org/packages/a9/52/5f85feee0d74612c0e86367c4e81648ca867888d86d1a50310d1e14ebb3f/FileCycle_nachash-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e9b372a87724b8652104c14fad243f142a4cb2f80a51e2a1f8cedd73d29c0d2d",
"md5": "245da990f504208484036685df3de111",
"sha256": "7afc2a4e07aac1eb480352dc4975c78b08ea5c12ec95f9731a15cb5bb01dfecc"
},
"downloads": -1,
"filename": "FileCycle_nachash-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "245da990f504208484036685df3de111",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 3973,
"upload_time": "2023-08-20T12:47:03",
"upload_time_iso_8601": "2023-08-20T12:47:03.632450Z",
"url": "https://files.pythonhosted.org/packages/e9/b3/72a87724b8652104c14fad243f142a4cb2f80a51e2a1f8cedd73d29c0d2d/FileCycle_nachash-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-20 12:47:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pypa",
"github_project": "sampleproject",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "filecycle-nachash"
}