a library that was for working with files i guess
Project description
idk how to use the restructedtext thingy so uhh
all commands in this library:
smthfile(fp, mode):
does the same what codecs.open(fp, mode, encoding="utf-8") does
also check openfile(fp) and editfile(fp)
get_folder_path(caller, *args, create_folders):
constructs a folder path relative to the caller's directory, optionally creating missing folders
fore xample 👾👾👾👾👾👾:
print(temalib.get_folder_path(
__file__, "i", "am", "going", "to", "invade", "denmark"
))
# output: file's_subfolder/i/am/going/to/invade/denmark
get_file_path(caller, *args, create_folders, create_file):
does same what get_folder_path but last arg is a file (also optionally created)
add_line(fp, line):
formerly altteotf() (add line to the end of the file)
remove_line(fp, line):
if theres that line in the file then removes it
listpaths(fp):
return list of paths
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
temalib-3.6.tar.gz
(4.7 kB
view details)
File details
Details for the file temalib-3.6.tar.gz
.
File metadata
- Download URL: temalib-3.6.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23bf996ac5c58f680b60a2c6d0da2b835ef245f9d2f318cbb4264cf8181be433 |
|
MD5 | a8ebf78920c96722850fa9ce0e277e42 |
|
BLAKE2b-256 | 33a469b199e1e7a955abd6e405398a666beceb654bc90cffcac16dd333b9db04 |