Skip to main content

UNKNOWN

Project description

Shelldon
========

###Python-wrapper of Bash (whut)


Table of Content
----------------
- [Introduction](#intro)
- [Installation](#install)
- [Usage](#usage)
- [License](#license)
- [Support](#support)

Introduction<a name='intro'></a>
--------------------------------
Whuttttt. A Python-wrapper for Bash? You know how you want to sometimes make some shell commands from Python? And then you go for:

```python
import subprocess

# Normally you do this from a Python script
subprocess.call(['git', 'add', '--all']
```

I find that way, way too much to type. Also, why put it into a form of a list?

Why can't we just write `subprocess.call('git add --all')`?

Installation<a name='install'></a>
----------------------------------
Just install the Raw shelldon.py. Then, add it to your Python Path, like this:
```shell
export PYTHONPATH=$PYTHONPATH:/~/path/to/the/shelldon.py
```

Test it by opening your Python shell.

```
>>> import shelldon
>>> # It works!
```

Usage<a name='usage'></a>
-------------------------
**Normal script use:**
```python
import shelldon

shelldon.call('git add --all') # So simple isn't it?!
```

**Or, if you want to have multiple commands bundled together:**
```python
shelldon.call("""
git add --all
git commit -m 'Initial commit'
git push origin master
""")
```

**Terminal use:**
```python
>> import shelldon
>> shelldon.terminal()
~$ >> ls
Desktop Programs
Documents Public
Downloads
Music
Pictures
~$ >> cd Desktop
~/Desktop$ >> quit # Use this command to quit shelldon's terminal
>> print 'yay to using shell in Python!' # Back to Python interpreter
```

License<a name='license'></a>
-----------------------------
The following code is released under the MIT license. See above for it.

Support<a name='support'></a>
-----------------------------
If you have any questions/concerns, please feel free to contact me.
My email address is guanhao3797@gmail.com

**Will update README once project is more substantial.**

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

shelldon-0.0.1.zip (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shelldon-0.0.1.win32.exe (200.6 kB view details)

Uploaded Source

File details

Details for the file shelldon-0.0.1.zip.

File metadata

  • Download URL: shelldon-0.0.1.zip
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for shelldon-0.0.1.zip
Algorithm Hash digest
SHA256 f4fb979878a7182e270659573c0477627d3af6c35e7a0ce9ea5f707381833cbe
MD5 e7b64d27d506b6c259218ce3c84e9fe9
BLAKE2b-256 95494c1b0cec6b9ca9cf6c144cbf32e20b7c6e4cde5f19e27a2a7209bb60e601

See more details on using hashes here.

File details

Details for the file shelldon-0.0.1.win32.exe.

File metadata

  • Download URL: shelldon-0.0.1.win32.exe
  • Upload date:
  • Size: 200.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for shelldon-0.0.1.win32.exe
Algorithm Hash digest
SHA256 9ba3bc6e2d114cca9fcbe99b649c5d0d3d17cf7b862e782d0edcd0027b5b3330
MD5 63d181fda10227d85924e1ea31bea9be
BLAKE2b-256 8ee73b7fc6ea8c15e49874a9cd0111a31ac7317823186ce875b9b410807abc50

See more details on using hashes here.

Supported by

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