Skip to content

Python made things simple and easy, but i am lazy so created a module that helps to reduce simple file operations too πŸ“š

License

Notifications You must be signed in to change notification settings

saurabhlondhe/fileop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Fileop

PyPi Version Python Versions

Fileop is a python module written for handling files without maintaining file pointers. It helps to Read, Write, Create, Delete, Append data of file as well as to get permissions, owner and group of files. It also helps to load remote file data to local file or to a variable.

Installation

$ pip3 install fileop 

Usage example

This modules is not available with python itself need to download by pip3 install and works for only python3+ version.

Fileop(file Operation) having 3 classes;

Fileop____
          \---->(file)
           \--->(fstat)
            \-->(net)

file---|--- append()
       |--- copy()
       |--- count()
       |--- create()
       |--- delete()
       |--- read()
       |--- write()

fstat--|--- owner()
       |--- group()
       |--- size()
       |--- perm()

net----|--- load_data()

Functions

  • import fileop

    >>> import fileop
  • import file from fileop

    >>> from fileop import file
    • file.create("abc.txt")

      return a boolen value, If file is generated then True else False. You can pass name of file as a argument or assign name to file.name and call file.create()

      >>> file.create("abc.txt")
      
              or
      
      >>> file.name="abc.txt"
      >>> file.create()

Development setup

if you want to contribute:

$ git clone https://github.com/saurabhlondhe/fileop.git
$ cd fileop
$ python3
    >>> import fileop as f

Release History

  • 0.0.3
    • FIX: bugs fixed and stable release
  • 0.0.2
    • Not released
    • ADD: fstat,net
  • 0.0.1
    • The first proper release
    • ADD: File class with few methods
  • 0.0.0
    • Work in progress

Meta

Saurabh Londhe – About – saurabhlondhe1111@gmail.com.com

Contributing

  1. Fork it (https://github.com/saurabhlondhe/fileop/fork)
  2. Commit your changes (git commit -am 'Add some')
  3. Push to the branch (git push origin)
  4. Create a new Pull Request

About

Python made things simple and easy, but i am lazy so created a module that helps to reduce simple file operations too πŸ“š

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages