Skip to main content

This library is created to write mini-programms for Pineapple-IV (Imitation of DOS systems)

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pinedos-0.0.5.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file pinedos-0.0.5.tar.gz.

File metadata

  • Download URL: pinedos-0.0.5.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for pinedos-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d4bb083ae4b22ad20118afa5039f83bba0c5ab15251622ae4c7d39f19066faa9
MD5 75de607513276dec17b9ef0859fae801
BLAKE2b-256 b01d7a5ff14138e107afabd5744f7ef011419d26c245c5f5ece3833783f23b4e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page