Skip to main content

File operation lib

Project description

File Mod

File mod is easy to perform file operations with the help of good method names and less arguments to pass

Installation and Usage

  1. use pip install file-mod
  2. Make sure that your pip version is updated pip install --upgrade pip.
  3. Select the correct package for your environment:
  4. Import the package: import filemodpakage

Functions in the module

  1. This is a file reader method reads file content and returns it as string filemodpakage.reader(filename)

  2. This file writer method writes contents to the file filemodpakage.writer(filename,content,method)

  3. This read_specific_line reads a specific line of the file and returns it as string filemodpakage.read_specific_line(filename,line)

Run Locally

Clone the project

  git clone https://github.com/kshitij1235/filemod/tree/main/dist

Install

  pip install file-mod

List of Functions

Color Hex args
Reader Reads file filename
writer writes content to file filename,content,method
read_specific_line read_specific_line filename,line

Usage/Examples

read file

import filemodpakage

filemodpakage.reader('demo_file.txt')

write file

import filemodpakage

filemodpakage.writer('demo_file.txt',content="new line ", method='w')

read_specific_line

import filemodpakage

filemodpakage.read_specific_line("demo_file.txt",1)

Badges

MIT License

Authors

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

filemod-0.0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

filemod-0.0.1-py3-none-any.whl (3.1 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