A straight port of glib/gshell.c to Python
Project description
gshell.py
A port of GLib's gshell.c to Python 3.
Install
You should be able to install this via pypi in your environment of choice:
pip install gshell.py
You can then use it by importing from gshell
:
from gshell import g_shell_parse_argv, g_shell_quote, g_shell_unquote
API
I haven't found a nice way to turn the docstrings in gshell.py
into a simple
markdown document - sphinx is incredibly overkill and won't output markdown!
So for now I'd encourage you to
read the docstrings in the source code.
Development and Tests
I use Conda for development. You can create an environment using the included
environment.yml
file by running conda env create
, and then running
conda activate gshell.py
.
Tasks are via make, and include test
, lint
, clean
, package
and
publish
.
License
This library is available via the same license as GLib, which is the LGPL 2.1 or later. See the COPYING file for more 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
Built Distribution
File details
Details for the file gshell.py-0.0.4.tar.gz
.
File metadata
- Download URL: gshell.py-0.0.4.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87bc398d1cf9815550c523440d2363d6623314c87ef6d0d63ee6fb8030fb0b19 |
|
MD5 | d82ede0b6992b74296447cfb3bf95f38 |
|
BLAKE2b-256 | 50a3f512858da5a200b17f2851b6ff8b4da5731a6a0b4dedd39ba6ee87e8404e |
File details
Details for the file gshell.py-0.0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: gshell.py-0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fbb4383eb5148c8f55b2f18bd83d8dd32e1902372aa66e939563ca4084c931b |
|
MD5 | 2785d381e72a70dfefc771e0d20eb042 |
|
BLAKE2b-256 | f8593be769287e6668081033faf3e5765341afd833c5bcd4ff74a0e4ed506000 |