https://github.com/agateau/popysh
https://github.com/agateau/popysh
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/agateau/popysh
- Owner: agateau
- Created: 2015-12-06T21:49:54.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-12T17:33:48.000Z (about 10 years ago)
- Last Synced: 2025-02-13T19:49:49.890Z (11 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Goals
Less magic:
- Wild-card only when you need them:
from glob import glob
from popysh.syscmd import rm
rm(glob('*.tmp'))
- No errors from files with spaces:
from popysh.syscmd import rm
rm('file with space', 'another one')
Easy integration with Python:
from popysh.syscmd import find
for idx, line in enumerate(find('-name', '*.py').lines()):
print('{} {}'.format(idx, line.decode()))
# Tests
Run `nosetests` from root dir