https://github.com/vra/reuse
Collection of useful python functions (reuse again and again). https://py-reuse.readthedocs.io
https://github.com/vra/reuse
collection linux python script tools utils
Last synced: about 2 months ago
JSON representation
Collection of useful python functions (reuse again and again). https://py-reuse.readthedocs.io
- Host: GitHub
- URL: https://github.com/vra/reuse
- Owner: vra
- License: mit
- Created: 2018-11-21T15:58:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-25T11:51:06.000Z (over 7 years ago)
- Last Synced: 2025-02-10T09:18:26.744Z (over 1 year ago)
- Topics: collection, linux, python, script, tools, utils
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reuse
Collection of useful python functions (reuse again and again).
[](https://travis-ci.com/vra/reuse)
Here is a demo about how to use: [Demo](https://asciinema.org/a/m0fEneiY03JwiEzc20ERG99Vl).
# supported platform
* Linux
* python2.7 and higher
* python3.5 and higher
# installation
```bash
pip3 install --user py-reuse
```
# how to use
```python
import reuse as rs
rs.check_exist('/path/to/dir') # Check if a file or directory exist
rs.create_dir_if_not_exist('/path/to/new/dir') # Create a directory only when it didn't exist
...
```
docs: .