1- PyFilesystem2
2- =============
1+ # PyFilesystem2
32
43Python's Filesystem abstraction layer.
54
65[ ![ PyPI version] ( https://badge.fury.io/py/fs.svg )] ( https://badge.fury.io/py/fs )
76[ ![ PyPI] ( https://img.shields.io/pypi/pyversions/fs.svg )] ( https://pypi.org/project/fs/ )
87[ ![ Build Status] ( https://travis-ci.org/PyFilesystem/pyfilesystem2.svg?branch=master )] ( https://travis-ci.org/PyFilesystem/pyfilesystem2 )
98[ ![ Coverage Status] ( https://coveralls.io/repos/github/PyFilesystem/pyfilesystem2/badge.svg )] ( https://coveralls.io/github/PyFilesystem/pyfilesystem2 )
10- [ ![ Codacy Badge] ( https://api.codacy.com/project/badge/Grade/30ad6445427349218425d93886ade9ee )] ( https://www.codacy.com/app/will-mcgugan/pyfilesystem2?utm_source=github.com& ; utm_medium=referral& ; utm_content=PyFilesystem/pyfilesystem2& ; utm_campaign=Badge_Grade )
9+ [ ![ Codacy Badge] ( https://api.codacy.com/project/badge/Grade/30ad6445427349218425d93886ade9ee )] ( https://www.codacy.com/app/will-mcgugan/pyfilesystem2?utm_source=github.com&utm_medium=referral&utm_content=PyFilesystem/pyfilesystem2&utm_campaign=Badge_Grade )
1110[ ![ Code Health] ( https://landscape.io/github/PyFilesystem/pyfilesystem2/master/landscape.svg?style=flat )] ( https://landscape.io/github/PyFilesystem/pyfilesystem2/master )
1211
13- Documentation
14- -------------
12+ ## Documentation
1513
16- * [ Wiki] ( https://www.pyfilesystem.org )
17- * [ API Documentation] ( https://pyfilesystem2.readthedocs.io/en/latest/ )
18- * [ GitHub Repository] ( https://github.com/PyFilesystem/pyfilesystem2 )
19- * [ Blog] ( https://www.willmcgugan.com/tag/fs/ )
14+ - [ Wiki] ( https://www.pyfilesystem.org )
15+ - [ API Documentation] ( https://pyfilesystem2.readthedocs.io/en/latest/ )
16+ - [ GitHub Repository] ( https://github.com/PyFilesystem/pyfilesystem2 )
17+ - [ Blog] ( https://www.willmcgugan.com/tag/fs/ )
2018
19+ ## Introduction
2120
22- Introduction
23- ------------
24-
25- Think of PyFilesystem's `` FS `` objects as the next logical step to
26- Python's `` file `` objects. In the same way that file objects abstract a
21+ Think of PyFilesystem's ` FS ` objects as the next logical step to
22+ Python's ` file ` objects. In the same way that file objects abstract a
2723single file, FS objects abstract an entire filesystem.
2824
2925Let's look at a simple piece of code as an example. The following
3026function uses the PyFilesystem API to count the number of non-blank
31- lines of Python code in a directory. It works * recursively * , so it will
32- find `` .py ` ` files in all sub-directories.
27+ lines of Python code in a directory. It works _ recursively _ , so it will
28+ find ` .py ` files in all sub-directories.
3329
3430``` python
3531def count_python_loc (fs ):
@@ -50,10 +46,10 @@ print(count_python_loc(projects_fs))
5046```
5147
5248The line ` project_fs = open_fs('~/projects') ` opens an FS object that
53- maps to the `` projects ` ` directory in your home folder. That object is
49+ maps to the ` projects ` directory in your home folder. That object is
5450used by ` count_python_loc ` when counting lines of code.
5551
56- To count the lines of Python code in a * zip file * , we can make the
52+ To count the lines of Python code in a _ zip file _ , we can make the
5753following change:
5854
5955``` python
@@ -90,20 +86,27 @@ work with the OS filesystem. Any other filesystem would require an
9086entirely different API, and you would likely have to re-implement the
9187directory walking functionality of ` os.walk ` .
9288
93- Credits
94- -------
89+ ## Credits
90+
91+ The following developers have contributed code and their time to this projects:
92+
93+ - [ Will McGugan] ( https://github.com/willmcgugan )
94+ - [ Martin Larralde] ( https://github.com/althonos )
95+ - [ Giampaolo] ( https://github.com/gpcimino )
96+ - [ Geoff Jukes] ( https://github.com/geoffjukes )
9597
96- * [ Will McGugan] ( https://github.com/willmcgugan )
97- * [ Martin Larralde] ( https://github.com/althonos )
98- * [ Giampaolo] ( https://github.com/gpcimino ) for ` copy_if_newer ` and ftp fixes.
99- * [ Geoff Jukes] ( https://github.com/geoffjukes ) for ftp fixes.
98+ See CONTRIBUTORS.md for a full list of contributors.
10099
101100PyFilesystem2 owes a massive debt of gratitude to the following
102101developers who contributed code and ideas to the original version.
103102
104- * Ryan Kelly
105- * Andrew Scheller
106- * Ben Timby
103+ - Ryan Kelly
104+ - Andrew Scheller
105+ - Ben Timby
107106
108107Apologies if I missed anyone, feel free to prompt me if your name is
109108missing here.
109+
110+ ## Support
111+
112+ If commercial support is required, please contact
[ Will McGugan
] ( mailto:[email protected] ) .
0 commit comments