OSMan1


NameOSMan1 JSON
Version 0.1.6 PyPI version JSON
download
home_pagehttps://github.com/ZOUITANE-Ahmed/OSMan1.git
SummaryThe `OSMan1` library provides a set of utility functions for file and directory management tasks such as creating, removing, renaming, and listing files and directories. It also includes functions for file operations like reading and writing, as well as retrieving system and environmental information.
upload_time2024-07-21 22:27:57
maintainerNone
docs_urlNone
authorAhmed ZOUITANE
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # OSMan1

`OSMan1` is a Python library for managing files and folders easily and quickly. The library includes multiple functions for creating, reading, writing, and deleting files and folders, as well as changing directories and listing directory contents.


## Usage

### Import the Library

```python
import OSMan1
```

### Available Functions

#### 1. Create a File

```python
OSMan1.touch('filename.txt')
```

#### 2. Read a File

```python
OSMan1.cat('filename.txt')
```

#### 3. Write to a File

```python
OSMan1.nano('filename.txt', 'w', 'Hello, World!')
```

#### 4. Delete a File

```python
OSMan1.rm('filename.txt')
```

#### 5. Create a Folder

```python
OSMan1.mkdir('foldername')
```

#### 6. Delete a Folder

```python
OSMan1.rmdir('foldername')
```

#### 7. Rename a File or Folder

```python
OSMan1.ren('oldname', 'newname')
```

#### 8. Move a File or Folder

```python
OSMan1.mv('source_path', 'destination_path')
```

#### 9. Change the Current Directory

```python
OSMan1.cd('path')
```

#### 10. Display Directory Tree

```python
OSMan1.tree('path')
```

#### 11. Display Current Directory

```python
OSMan1.pwd()
```

#### 12. List Directory Contents

```python
OSMan1.ls('path')
```

#### 13. List Directory Contents with Details

```python
OSMan1.ls_l('path')
```

#### 14. Display Last Access Time of a File

```python
OSMan1.istime('filename.txt')
```

#### 15. Display File Size

```python
OSMan1.size('filename.txt')
```

#### 16. Display System Information

```python
OSMan1.get_info()
```

#### 17. Display Executable Paths

```python
OSMan1.get_path()
```

---

These sections provide clear instructions on how to install and use the `OSMan1` library with examples of each function it offers.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ZOUITANE-Ahmed/OSMan1.git",
    "name": "OSMan1",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Ahmed ZOUITANE",
    "author_email": "zouitane.ahmed02@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/cc/cd/b3835e046162bd89ccee48616baaa3e6eef2b3eb7440d2e83aab1996a6cd/osman1-0.1.6.tar.gz",
    "platform": null,
    "description": "# OSMan1\r\n\r\n`OSMan1` is a Python library for managing files and folders easily and quickly. The library includes multiple functions for creating, reading, writing, and deleting files and folders, as well as changing directories and listing directory contents.\r\n\r\n\r\n## Usage\r\n\r\n### Import the Library\r\n\r\n```python\r\nimport OSMan1\r\n```\r\n\r\n### Available Functions\r\n\r\n#### 1. Create a File\r\n\r\n```python\r\nOSMan1.touch('filename.txt')\r\n```\r\n\r\n#### 2. Read a File\r\n\r\n```python\r\nOSMan1.cat('filename.txt')\r\n```\r\n\r\n#### 3. Write to a File\r\n\r\n```python\r\nOSMan1.nano('filename.txt', 'w', 'Hello, World!')\r\n```\r\n\r\n#### 4. Delete a File\r\n\r\n```python\r\nOSMan1.rm('filename.txt')\r\n```\r\n\r\n#### 5. Create a Folder\r\n\r\n```python\r\nOSMan1.mkdir('foldername')\r\n```\r\n\r\n#### 6. Delete a Folder\r\n\r\n```python\r\nOSMan1.rmdir('foldername')\r\n```\r\n\r\n#### 7. Rename a File or Folder\r\n\r\n```python\r\nOSMan1.ren('oldname', 'newname')\r\n```\r\n\r\n#### 8. Move a File or Folder\r\n\r\n```python\r\nOSMan1.mv('source_path', 'destination_path')\r\n```\r\n\r\n#### 9. Change the Current Directory\r\n\r\n```python\r\nOSMan1.cd('path')\r\n```\r\n\r\n#### 10. Display Directory Tree\r\n\r\n```python\r\nOSMan1.tree('path')\r\n```\r\n\r\n#### 11. Display Current Directory\r\n\r\n```python\r\nOSMan1.pwd()\r\n```\r\n\r\n#### 12. List Directory Contents\r\n\r\n```python\r\nOSMan1.ls('path')\r\n```\r\n\r\n#### 13. List Directory Contents with Details\r\n\r\n```python\r\nOSMan1.ls_l('path')\r\n```\r\n\r\n#### 14. Display Last Access Time of a File\r\n\r\n```python\r\nOSMan1.istime('filename.txt')\r\n```\r\n\r\n#### 15. Display File Size\r\n\r\n```python\r\nOSMan1.size('filename.txt')\r\n```\r\n\r\n#### 16. Display System Information\r\n\r\n```python\r\nOSMan1.get_info()\r\n```\r\n\r\n#### 17. Display Executable Paths\r\n\r\n```python\r\nOSMan1.get_path()\r\n```\r\n\r\n---\r\n\r\nThese sections provide clear instructions on how to install and use the `OSMan1` library with examples of each function it offers.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "The `OSMan1` library provides a set of utility functions for file and directory management tasks such as creating, removing, renaming, and listing files and directories. It also includes functions for file operations like reading and writing, as well as retrieving system and environmental information.",
    "version": "0.1.6",
    "project_urls": {
        "Homepage": "https://github.com/ZOUITANE-Ahmed/OSMan1.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cccdb3835e046162bd89ccee48616baaa3e6eef2b3eb7440d2e83aab1996a6cd",
                "md5": "1155eafb89295ca3130a240cb1aeda8b",
                "sha256": "34ab922703698e13c7c9b03d5ab56d7800df4638d43406f449458518e0bd59ad"
            },
            "downloads": -1,
            "filename": "osman1-0.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "1155eafb89295ca3130a240cb1aeda8b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2769,
            "upload_time": "2024-07-21T22:27:57",
            "upload_time_iso_8601": "2024-07-21T22:27:57.816769Z",
            "url": "https://files.pythonhosted.org/packages/cc/cd/b3835e046162bd89ccee48616baaa3e6eef2b3eb7440d2e83aab1996a6cd/osman1-0.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-21 22:27:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ZOUITANE-Ahmed",
    "github_project": "OSMan1",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "osman1"
}
        
Elapsed time: 0.27914s