Skip to main content

imaginary path aka MiniPath

Project description

minPath

a file system simulation

installation

Run the following to install:

pip install minPath

or

python -m pip install minPath

if that didn't work, try replacing pip with pip3.

need help? or have bugs to report, let me know in the lab

getting started

from minPath import *

my_files = [File("hay.py","print('Hello, World!')"),File("Hi.py","print('Hi')"),File("text.txt","here a text file"),File("BRUH",None),Folder("test",[File("testing.txt","A test file for my MiniPath testing"),File("huh.txt","anther testing file"),Folder("Folder 2"),Folder("empty",[File("empty file","nothing here :("),Folder("o")])]),File("random")]

pa = MiniPath("C:",my_files,path_sep="\\")
print(str(pa))
print(dir(pa)) # dir attrs
#help(File); help(Folder)


"""
# dump
with open("minPath.pickle","wb") as file:
	pickle.dump(pa)
"""

File class is file-like object Folder is Folder_Array

if you needed help join the lab

pickling, unpickling

how to dump and load minpath object

import pickle
from minPath import *

# load
with open("minPath.pickle","rb") as file:
	pa = pickle.load(file)

# do stuff
...

# dump
with open("minPath.pickle","wb") as file:
	pickle.dump(pa)

Warning do not edit the file this may break the file

Change Log

0.1.0 (2022/09/19)

  • First Release

0.1.1 (2022/09/21)

  • First Release
  • nothing new just rewrite the description
  • deleted useless modules(those modules were tests and a mess code)
  • fix installing unwanted packages install_requires

0.1.2 (2022/09/21)

  • fix installing unwanted packages install_requires

0.1.3 (2022/11/14)

  • fix folder(is not a folder) bug
  • made faster and better MiniPath.walk function
  • added a new functions removedirs, rmdir and remove
  • rename isexists to exists
  • added new atter version,author

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

minPath-0.1.3.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

minPath-0.1.3-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

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