Skip to main content

Perform numpy-like analysis on data that remains in someone elses server

Project description



Syft Logo

Perform numpy-like analysis on data that remains in someone else's server

Quickstart

LinuxmacOS* ✅ Windows†‡

Install syft on Python 3.9 - 3.11

$ pip install -U syft -f https://whls.blob.core.windows.net/unstable/index.html

Launch a python dev Domain

# from Jupyter / Python
import syft as sy
sy.requires(">=0.8,<0.8.1")
node = sy.orchestra.launch(name="my-domain", port=8080, dev_mode=True, reset=True)
# or from the command line
$ syft launch --name=my-domain --port=8080 --reset=True

Starting syft-node server on 0.0.0.0:8080

Connect with our Python Client

import syft as sy
sy.requires(">=0.8,<0.8.1")
domain_client = sy.login(port=8080, email="info@openmined.org", password="changethis")

Deploy to a Container Engine or Cloud

  1. Install our handy 🛵 cli tool which makes deploying a Domain or Gateway server a one-liner:
    pip install -U hagrid

  2. Then run our interactive jupyter Install 🧙🏽‍♂️ WizardBETA:
    hagrid quickstart

  3. In the tutorial you will learn how to install and deploy:
    PySyft = our numpy-like 🐍 Python library for computing on private data in someone else's Domain

    PyGrid = our 🐳 docker / 🐧 vm Domain & Gateway Servers where private data lives

  4. During quickstart we will deploy PyGrid to localhost with 🐳 docker, however 🛵 HAGrid can deploy to podman or a 🐧 ubuntu VM on azure / gcp / ANY_IP_ADDRESS by using 🔨 ansible

Docs and Support

Install Notes

  • HAGrid 0.3 Requires: 🐍 python 🐙 git - Run: pip install -U hagrid
  • Interactive Install 🧙🏽‍♂️ WizardBETA Requires 🛵 hagrid: - Run: hagrid quickstart
    Windows does not support ansible, preventing some remote deployment targets
  • PySyft 0.8 Requires: 🐍 python 3.9 - 3.11 - Run: pip install -U syft
    *macOS Apple Silicon users might need cmake: brew install cmake
    Windows users must run this first: pip install jaxlib==0.4.10 -f https://whls.blob.core.windows.net/unstable/index.html
  • PyGrid Requires: 🐳 docker or 🐧 ubuntu VM - Run: hagrid launch ...

Versions

0.8.1 (Beta) - dev branch 👈🏽 API
0.8.0 (Stable) - API

Deprecated:

PySyft and PyGrid use the same version and its best to match them up where possible. We release weekly betas which can be used in each context:

PySyft (Stable): pip install -U syft
PyGrid (Stable) hagrid launch ... tag=latest

PySyft (Beta): pip install -U syft --pre
PyGrid (Beta): hagrid launch ... tag=beta

HAGrid is a cli / deployment tool so the latest version of hagrid is usually the best.

What is Syft?

Syft

Syft is OpenMined's open source stack that provides secure and private Data Science in Python. Syft decouples private data from model training, using techniques like Federated Learning, Differential Privacy, and Encrypted Computation. This is done with a numpy-like interface and integration with Deep Learning frameworks, so that you as a Data Scientist can maintain your current workflow while using these new privacy-enhancing techniques.

Why should I use Syft?

Syft allows a Data Scientist to ask questions about a dataset and, within privacy limits set by the data owner, get answers to those questions, all without obtaining a copy of the data itself. We call this process Remote Data Science. It means in a wide variety of domains across society, the current risks of sharing information (copying data) with someone such as, privacy invasion, IP theft and blackmail will no longer prevent the vast benefits such as innovation, insights and scientific discovery which secure access will provide.

No more cold calls to get access to a dataset. No more weeks of wait times to get a result on your query. It also means 1000x more data in every domain. PySyft opens the doors to a streamlined Data Scientist workflow, all with the individual's privacy at its heart.

Tutorials

Data Owner

Data Scientist

Data Engineer

  • Install Syft
  • Connect to a Domain
  • Search for Datasets
  • Train Models
  • Retrieve Secure Results
  • Learn Differential Privacy
  • Setup Dev Mode
  • Deploy to Azure
  • Deploy to GCP
  • Deploy to Kubernetes
  • Customize Networking
  • Modify PyGrid UI

Terminology

👨🏻‍💼 Data Owners

👩🏽‍🔬 Data Scientists

Provide datasets which they would like to make available for study by an outside party they may or may not fully trust has good intentions.

Are end users who desire to perform computations or answer a specific question using one or more data owners' datasets.

🏰 Domain Server

🔗 Gateway Server

Manages the remote study of the data by a Data Scientist and allows the Data Owner to manage the data and control the privacy guarantees of the subjects under study. It also acts as a gatekeeper for the Data Scientist's access to the data to compute and experiment with the results.

Provides services to a group of Data Owners and Data Scientists, such as dataset search and bulk project approval (legal / technical) to participate in a project. A gateway server acts as a bridge between it's members (Domains) and their subscribers (Data Scientists) and can provide access to a collection of domains at once.

Community

Courses

Contributors

OpenMined and Syft appreciates all contributors, if you would like to fix a bug or suggest a new feature, please see our guidelines.

Contributors

Supporters

Open Collective

OpenMined is a fiscally sponsored 501(c)(3) in the USA. We are funded by our generous supporters on Open Collective.

Contributors

Disclaimer

Syft is under active development and is not yet ready for pilots on private data without our assistance. As early access participants, please contact us via Slack or email if you would like to ask a question or have a use case that you would like to discuss.

License

Apache License 2.0
Person icons created by Freepik - Flaticon

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

syft-0.8.1b6.tar.gz (198.5 kB view details)

Uploaded Source

Built Distribution

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

syft-0.8.1b6-py2.py3-none-any.whl (249.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file syft-0.8.1b6.tar.gz.

File metadata

  • Download URL: syft-0.8.1b6.tar.gz
  • Upload date:
  • Size: 198.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for syft-0.8.1b6.tar.gz
Algorithm Hash digest
SHA256 2e432b7460748ac1a11963dfb9710c7c2a28348c6113a9e3338bdbffbaa86ae2
MD5 0cd1fd0605cc73e0a27025b9baf9a9f4
BLAKE2b-256 cebf427147a288bb2435561edec101aed9e0131370d5f933bbe7a724a832cfd6

See more details on using hashes here.

File details

Details for the file syft-0.8.1b6-py2.py3-none-any.whl.

File metadata

  • Download URL: syft-0.8.1b6-py2.py3-none-any.whl
  • Upload date:
  • Size: 249.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for syft-0.8.1b6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 de80ea15efc79ccd5be9f804c758a4036a0718504967016e2073e6d6c58c5bde
MD5 7f70cf112d936c4420c677cc1f7222db
BLAKE2b-256 1d0765ca8e27babc6b10d06eee3d21dc78732be77d1275ed592b85bfcd722e54

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