<commit_before>Path: Path for Pretty People
============================

path provide highly **readable** API for OS path manipulation and accessing filesystem. All operations are
available at module level as functions.

    >>> import path
    >>> path.cwd() # return current working directory.
    >>> path.chd() # change current working directory.
    ...
    
Operations are available as `Path` object methods too.

    >>> p = path.Path('c:\\hello\world.py')
    >>> p.name
    'world'
    >>> p.ext
    '.py'
    >>> p.ispath(path.EXIST) # check path or file existence.
    >>> p.isempty() # whether the file or dir is empty.
    ...
    
Individual classes for readability.

    >>> comp = path.Components('c:\\hello\world.py')
    >>> comp.name
    'world'
    >>> comp.ext
    '.py'
    
Unlike other packages, path also work on **URL** too. Which ease web-scrapper coding.

    >>> p = path.HttpPath('https://github.com/docopt/docopt')
    >>> p.path
    '/docopt/docopt'
    >>> p.create() # will create dir or file according to args.
    ...

Features
--------

- Work both on path and URL
- Highly readable API
- Provide constants
- Operations are available as functions and methods
- Individual classes for everything

Installation
------------

    $ pip install https://github.com/mahanmarwat/path/archive/master.zip

Documentation
-------------

Under development.
Check ``path.py`` which is self explanatory.

Contribute
----------

Give us a star.
<commit_msg>Upadated main section<commit_after>Path: Path for Pretty People
============================

Path provide highly **readable** API to access and manipulate both filesystem path and URL path.

All operations are available at module level as functions.

    >>> import path
    >>> path.cwd() # return current working directory.
    >>> path.chd() # change current working directory.
    ...
    
Operations are available as `Path` object methods too.

    >>> p = path.Path('c:\\hello\world.py')
    >>> p.name
    'world'
    >>> p.ext
    '.py'
    >>> p.ispath(path.EXIST) # check path or file existence.
    >>> p.isempty() # whether the file or dir is empty.
    ...
    
Individual classes for readability.

    >>> comp = path.Components('c:\\hello\world.py')
    >>> comp.name
    'world'
    >>> comp.ext
    '.py'
    
Unlike other packages, path also work on **URL** too. Which ease web-scrapper coding.

    >>> p = path.HttpPath('https://github.com/docopt/docopt')
    >>> p.path
    '/docopt/docopt'
    >>> p.create() # will create dir or file according to args.
    ...

Features
--------

- Work both on path and URL
- Highly readable API
- Provide constants
- Operations are available as functions and methods
- Individual classes for everything

Installation
------------

    $ pip install https://github.com/mahanmarwat/path/archive/master.zip

Documentation
-------------

Under development.
Check ``path.py`` which is self explanatory.

Contribute
----------

Give us a star.

{'fraction_non_alphanumeric': 0.16521155137676294, 'fraction_numerical': 0.0, 'mean_word_length': 2.5934861278648973, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 87, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4167814', 'n_tokens_mistral': 862, 'n_tokens_neox': 832, 'n_words': 291}