GithubHelp home page GithubHelp logo

yeoldegrove / sailfish-python-sample-os Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sailfishos/python-sample

0.0 3.0 0.0 32 KB

A sample Sailfish application written in Python

QMake 4.35% QML 61.90% Python 33.75%

sailfish-python-sample-os's Introduction

sailfish-python-sample-os

A sample Sailfish application written in Python.

This is a fork of https://github.com/sailfishos/python-sample extended/modified with some examples for executing shell/OS commands.

What's in it

This gives you 2 ways of getting shell access via python and a few static and dynamic input/output examples.

  • subprocess.check_output vs. subprocess.Popen
  • static "Hello World" and "uname" output
  • "execute OS command"
    • execute any shell command
      • get stdout
      • get stderr

Background

I looked for some simple example code to access shell commands in a sailfish/qml app without hassling with c++. Although https://github.com/Acce0ss/shellex is great as a starting point, I found it to blown up for a non c++ developer.

Also a good python example how to acutally access shell commands and work with them was not around. https://github.com/sailfishos/python-sample might be a good starting point for actual python developers, but does not give you much in regards of shell access.

sailfish-python-sample-os's People

Contributors

martyone avatar yeoldegrove avatar jussipakkanen avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.