Giter VIP home page Giter VIP logo

sandboxie-py's Introduction

sandboxie is a Python interface to Sandboxie.

Quickstart

>>> import sandboxie
>>> sbie = sandboxie.Sandboxie()

Create a sandbox:

>>> sbie.create_sandbox(box='foo', options={'Enabled': 'yes'})

Start a sandboxed process:

>>> sbie.start('notepad.exe', box='foo', wait=False)

Get sandboxed processes:

>>> for pid in sbie.running_processes(box='foo'):
>>>     print(pid)
3
15688
5716
26916

Terminate sandboxed processes:

>>> sbie.terminate_processes(box='foo')

Delete the contents of a sandbox:

>>> sbie.delete_contents(box='foo')

Destroy a sandbox:

>>> sbie.destroy_sandbox(box='foo')

Installation

The preferred way is to use pip:

$ pip install sandboxie

You can also use easy_install, but it's discouraged.

Supported Python versions

Python 2.7 and 3.2 are currently supported from a single codebase, without 2to3 translation.

Contribute

The code repository is on GitHub: https://github.com/gg/sandboxie-py.

To contribute:

  1. Work on an open issue or submit a new issue to start a discussion around a bug or feature request.

    • When submitting a bug, ensure your description includes the following:
      • the version of sandboxie used
      • any relevant system information, such as your operating system
      • steps to produce the bug (so others could reproduce it)
  2. Fork the repository and add the bug fix or feature to the develop branch.

  3. Write tests that demonstrate the bug was fixed or the feature works as expected.

  4. Submit a pull request and bug the maintainer until your contribution gets merged and published :-) You should also add yourself to AUTHORS.

Running the Tests

tox is used to run unit and integration tests in each of the supported Python environments.

First install tox:

$ pip install tox

Then run tox from the project root directory:

$ tox

Note: the integration tests require Sandboxie to be installed on your machine.

Coding Style

Ensure that your contributed code complies with PEP 8. The test runner tox also checks for PEP 8 compliance.

sandboxie-py's People

Contributors

gg avatar

Watchers

James Cloos 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.