Skip to main content

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 LICENSE.txt 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

gshell.py-0.0.2.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

gshell.py-0.0.2-py2.py3-none-any.whl (11.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file gshell.py-0.0.2.tar.gz.

File metadata

  • Download URL: gshell.py-0.0.2.tar.gz
  • Upload date:
  • Size: 1.8 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

Hashes for gshell.py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f558847199280ba7886860924379047704db16d067252ac910be887e48e99a91
MD5 041c02656e2cd3824c46e7c693dde74c
BLAKE2b-256 9135983ac9384dbb538d8e8a035bb3873a47dfce2b31533fbc06194cab7578d4

See more details on using hashes here.

File details

Details for the file gshell.py-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: gshell.py-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.3 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

Hashes for gshell.py-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a5449d0bcdcb4b53c97b2c34e0e1fba5276f3e4311716976b074a1e77a51fc03
MD5 e31980a337bf2cb9e1dfcb82a5ae361f
BLAKE2b-256 d0b4874223bc08a91848af8f7fbed280c6f56346f37bb4cc2c1e160396aa02f0

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