Code Monkey home page Code Monkey logo

lightdp's Introduction

LightDP

build codecov

A Light-Weight imperative language for developing provably privacy-preserving algorithms. More details can be found in the paper.

This project presents a tool for transforming LightDP programs into Python programs along with differential-privacy proofs, it is built to learn the ideas of LightDP and very primitive.

Install

Virtual environment is highly recommended (or if you prefer virtualenv or conda, the setup is similar):

python -m venv venv
source venv/bin/acitvate
# now we're in virtual environment
pip install .

Usage

usage: lightdp [-h] [-o OUT] [-c CONSTRAINTS] FILE

positional arguments:
  FILE

optional arguments:
  -h, --help            show this help message and exit
  -o OUT, --out OUT     The output file name.
  -c CONSTRAINTS, --constraints CONSTRAINTS
                        Output all constraints to file.

For example, run lightdp ./examples/sparsevector.py for verifying Sparse Vector, LightDP will output:

2019-04-23 10:58:35 INFO Type check succeeds, now transforming the algorithm...
2019-04-23 10:58:35 INFO Transformation finished at ./sparse_vector_t.py. See ./sparse_vector_constraints.txt for constraints generated.

We also put some annotated programs in examples/ for references. The default name for transformed file and constraint file is *_t.py and *_constraints.txt.

License

MIT.

lightdp's People

Contributors

yuxincs avatar zeyudd avatar dkifer 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.