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.
$ pip3 install fileop
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()
-
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()
-
if you want to contribute:
$ git clone https://github.com/saurabhlondhe/fileop.git
$ cd fileop
$ python3
>>> import fileop as f
- 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
Saurabh Londhe β About β saurabhlondhe1111@gmail.com.com
- Fork it (https://github.com/saurabhlondhe/fileop/fork)
- Commit your changes (
git commit -am 'Add some'
) - Push to the branch (
git push origin
) - Create a new Pull Request