Skip to main content

Creates statistics from a folder structure

Project description

https://img.shields.io/pypi/v/folderstats.svg

This is a python module and command-line interface that creates statistics from a folder structure. It returns a Pandas dataframe from the folders and files from a selected folder.

Installation

pip install folderstats

Usage

To get statistics of a folder structure as a Pandas dataframe in Python you can type:

import folderstats
df = folderstats.folderstats('.', hash_name='md5', ignore_hidden=True)
df

id

path

name

extension

size

atime

mtime

ctime

folder

num_files

depth

parent

md5

3

./folderstats/__main__.py

__main__

py

2596

2018-12-23 23:14:23

2018-12-23 23:14:22

2018-12-23 23:14:22

False

1

2

87446d672b598eda17161296ea333ecc

4

./folderstats/__init__.py

__init__

py

2790

2018-12-23 23:09:07

2018-12-23 23:09:05

2018-12-23 23:09:05

False

1

2

7b4adc532f304863423ec11afd3232ad

2

./folderstats

./folderstats

13802

2018-12-23 23:14:48

2018-12-23 23:14:48

2018-12-23 23:14:48

True

2.0

1

2

5

./README.rst

README

rst

4989

2018-12-23 22:17:25

2018-12-22 14:50:43

2018-12-22 14:50:43

False

0

1

3046052820c91c309412fbbb4a1f5d3c

6

./LICENSE

LICENSE

1073

2018-12-23 22:34:16

2018-12-22 14:50:43

2018-12-22 14:50:43

False

0

1

1232cbd9eced47e27816f69740ad479d

7

./setup.py

setup

py

1975

2018-12-23 22:50:10

2018-12-23 22:50:09

2018-12-23 22:50:09

False

0

1

b5410458c1334a753c4dd71db0f337d2

1

.

.

21022

2018-12-23 23:16:26

2018-12-23 23:16:26

2018-12-23 23:16:26

True

5.0

0

0

You can use the same functionality as a command-line interface which can generate files (CSV or JSON) or print the statistics directly into the command line:

folderstats . -c md5 -i -o stats.csv

In order to see the other available arguments type:

folderstats --help

License

This project is licensed under the MIT license. See the LICENSE for details.

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

folderstats-0.2.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

folderstats-0.2.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file folderstats-0.2.0.tar.gz.

File metadata

  • Download URL: folderstats-0.2.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.8.1 pkginfo/1.2.1 requests/2.18.1 setuptools/40.6.2 requests-toolbelt/0.8.0 clint/0.5.1 CPython/3.6.3 Linux/4.13.0-46-generic

File hashes

Hashes for folderstats-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e0765660d0f53a61ecf6d6f0b8cb0444f1d821a5c3f229e26ccaff73053f8cfc
MD5 1c0a07ecfc28a284e620d266d5814f20
BLAKE2b-256 b70d7cceec049d5685cd5f6c1d50c6fe58be4be7793632408dd2d8185cff4466

See more details on using hashes here.

File details

Details for the file folderstats-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: folderstats-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.8.1 pkginfo/1.2.1 requests/2.18.1 setuptools/40.6.2 requests-toolbelt/0.8.0 clint/0.5.1 CPython/3.6.3 Linux/4.13.0-46-generic

File hashes

Hashes for folderstats-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f4f0e8b80e55fb024dcc8ce95aae2caf4ffc4cb4d632268bfd9dc6fe9aab08f
MD5 123564f5b7ef5bbf64a773d91d4c38d5
BLAKE2b-256 417f52f0f9d3580edff8500f853688e6a848999a5af8864400e89928cce04bf3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page