# pineDOS #
Hello!
This library is created to write mini-programms for Pineapple-IV (Imitation of DOS systems)
BUT this library can be used anywhere u want! (It supports any python project)
It can create directories, clear output, customize console output, etc.
Have fun :D
### Updated (Version: 0.0.5) ###
1. Made the lib usable
2. Made documentaion
3. Tags to the lib
## Usage (Main commands) ##
```
from pineDOS import *
cout("hello world!", Color.yellow, BGColor.bg_red) #alternative of print()
cin(placeholder = ">>> ", type = str, ascii_check = False, color = Color.yellow, bg = BGColor.bg_red) #alternative of input()
delay(time in seconds) #no comments
clear_output() #no comments
```
## Usage (File editor) ##
```
from pineDOS import *
FileController().create_file("cute.txt", "some path") #creates a file
FileController().delete_file("some path") #deletes a file
FileController().rename_file("cute", "not_cute", "some path") #renames a file
```
## Usage (Directory editor) ##
```
from pineDOS import *
DirectoryControllerClass().create_directory("cute", "some path") #creates a directory (folder)
DirectoryControllerClass().delete_directory("some path") #deletes a directory (folder)
DirectoryControllerClass().rename_directory("cute", "not cute", "some path") #renames a directory (folder)
directory = current_directory("some path") #checks if directory exists and saves it in variable
directory_content = directory_content("some path") #returns a list of directory content
```
## Usage (Extra commands) ##
```
from pineDOS import *
file_info().file_date("some path", "modification date") #Returns the date of the file
Types:
modification_date,
creation_date
file_info().file_size("some path", "bytes") #Returns the size of the file
Units:
bytes,
kilobytes,
megabytes,
gigabytes,
terabytes
Errors.enable_logging = True #enables logging (.log file will be created anyways even the value of variable set on False)
```
## Developer ##
MKMysteryKey
Raw data
{
"_id": null,
"home_page": null,
"name": "pineDOS",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "files pineapple customisible_text custom pine DOS dos",
"author": "yaroslav_k",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/b0/1d/7a5ff14138e107afabd5744f7ef011419d26c245c5f5ece3833783f23b4e/pinedos-0.0.5.tar.gz",
"platform": null,
"description": "# pineDOS #\r\n\r\nHello! \r\n\r\nThis library is created to write mini-programms for Pineapple-IV (Imitation of DOS systems)\r\n\r\nBUT this library can be used anywhere u want! (It supports any python project)\r\n\r\nIt can create directories, clear output, customize console output, etc.\r\n\r\nHave fun :D \r\n\r\n### Updated (Version: 0.0.5) ###\r\n\r\n1. Made the lib usable\r\n2. Made documentaion\r\n3. Tags to the lib\r\n\r\n\r\n## Usage (Main commands) ##\r\n\r\n```\r\n\r\nfrom pineDOS import *\r\n\r\ncout(\"hello world!\", Color.yellow, BGColor.bg_red) #alternative of print()\r\n\r\ncin(placeholder = \">>> \", type = str, ascii_check = False, color = Color.yellow, bg = BGColor.bg_red) #alternative of input()\r\n\r\ndelay(time in seconds) #no comments\r\n\r\nclear_output() #no comments\r\n\r\n```\r\n\r\n## Usage (File editor) ##\r\n\r\n```\r\n\r\nfrom pineDOS import *\r\n\r\nFileController().create_file(\"cute.txt\", \"some path\") #creates a file\r\n\r\nFileController().delete_file(\"some path\") #deletes a file\r\n\r\nFileController().rename_file(\"cute\", \"not_cute\", \"some path\") #renames a file\r\n\r\n```\r\n\r\n## Usage (Directory editor) ##\r\n\r\n```\r\n\r\nfrom pineDOS import *\r\n\r\nDirectoryControllerClass().create_directory(\"cute\", \"some path\") #creates a directory (folder)\r\n\r\nDirectoryControllerClass().delete_directory(\"some path\") #deletes a directory (folder)\r\n\r\nDirectoryControllerClass().rename_directory(\"cute\", \"not cute\", \"some path\") #renames a directory (folder)\r\n\r\ndirectory = current_directory(\"some path\") #checks if directory exists and saves it in variable\r\n\r\ndirectory_content = directory_content(\"some path\") #returns a list of directory content\r\n\r\n```\r\n\r\n## Usage (Extra commands) ##\r\n\r\n```\r\n\r\nfrom pineDOS import *\r\n\r\nfile_info().file_date(\"some path\", \"modification date\") #Returns the date of the file\r\n Types: \r\n modification_date,\r\n creation_date\r\n\r\nfile_info().file_size(\"some path\", \"bytes\") #Returns the size of the file\r\n Units:\r\n bytes,\r\n kilobytes,\r\n megabytes,\r\n gigabytes,\r\n terabytes\r\n\r\nErrors.enable_logging = True #enables logging (.log file will be created anyways even the value of variable set on False)\r\n\r\n```\r\n\r\n\r\n## Developer ##\r\nMKMysteryKey\r\n",
"bugtrack_url": null,
"license": null,
"summary": "This library is created to write mini-programms for Pineapple-IV (Imitation of DOS systems)",
"version": "0.0.5",
"project_urls": null,
"split_keywords": [
"files",
"pineapple",
"customisible_text",
"custom",
"pine",
"dos",
"dos"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b01d7a5ff14138e107afabd5744f7ef011419d26c245c5f5ece3833783f23b4e",
"md5": "75de607513276dec17b9ef0859fae801",
"sha256": "d4bb083ae4b22ad20118afa5039f83bba0c5ab15251622ae4c7d39f19066faa9"
},
"downloads": -1,
"filename": "pinedos-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "75de607513276dec17b9ef0859fae801",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4665,
"upload_time": "2024-10-31T20:55:40",
"upload_time_iso_8601": "2024-10-31T20:55:40.816035Z",
"url": "https://files.pythonhosted.org/packages/b0/1d/7a5ff14138e107afabd5744f7ef011419d26c245c5f5ece3833783f23b4e/pinedos-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-31 20:55:40",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pinedos"
}