Skip to main content

a library that was for working with files i guess

Project description


idk how to use the restructedtext thingy so uhh
(almost) 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


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.7.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file temalib-3.7.tar.gz.

File metadata

  • Download URL: temalib-3.7.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for temalib-3.7.tar.gz
Algorithm Hash digest
SHA256 8a9705c2fd17bfd21806ddb3f3eaeccaeb1fc730a603a3f0298c0deb9432baf9
MD5 69b2872563fa601fd9178b2cac70563c
BLAKE2b-256 9f1f6f4ac400f0a5d6dbb1830a51363763c433e29bbdd8dc61641fa451959a80

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