Skip to main content

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

Project description



Syft Logo

Perform data science on data that remains in someone else's server

Quickstart

LinuxmacOSWindowsDockerKubernetes

Install Client

$ pip install -U syft[data_science]

Launch Server

# from Jupyter / Python
import syft as sy
sy.requires(">=0.8.7,<0.8.8")
server = sy.orchestra.launch(
    name="my-datasite",
    port=8080,
    create_producer=True,
    n_consumers=1,
    dev_mode=True,
    reset=True, # resets database
)
# or from the command line
$ syft launch --name=my-datasite --port=8080 --reset=True

Starting syft-datasite server on 0.0.0.0:8080

Launch Client

import syft as sy
sy.requires(">=0.8.6,<0.8.7")
datasite_client = sy.login(
    port=8080,
    email="info@openmined.org",
    password="changethis"
)

PySyft in 10 minutes

📝 API Example Notebooks

Deploy Kubernetes Helm Chart

0. Deploy Kubernetes

Required resources: 1 CPU and 4GB RAM. However, you will need some special instructions to deploy, please consult these instructions or look at the resource constraint testing here.
Recommended resources: 8+ Cores and 16GB RAM

If you're using Docker Desktop to deploy your Kubernetes, you may need to go into Settings > Resources and increase CPUs and Memory.

Note: Assuming we have a Kubernetes cluster already setup.

1. Add and update Helm repo for Syft

helm repo add openmined https://openmined.github.io/PySyft/helm
helm repo update openmined

2. Search for available Syft versions

helm search repo openmined/syft --versions --devel

3. Set your preferred Syft Chart version

SYFT_VERSION="<paste the chart version number>"

4. Provisioning Helm Charts

helm install my-datasite openmined/syft --version $SYFT_VERSION --namespace syft --create-namespace --set ingress.className="traefik"

Ingress Controllers

For Azure AKS

helm install ... --set ingress.className="azure-application-gateway"

For AWS EKS

helm install ... --set ingress.className="alb"

For Google GKE we need the gce annotation.

helm install ... --set ingress.class="gce"

Note:

🚨 Our old deployment tool HAGrid has been deprecated. For the updated deployment options kindly refer to:

Docs and Support

Install Notes

  • PySyft 0.8.6 Requires: 🐍 python 3.10 - 3.12 - Run: pip install -U syft
  • Syft Server Requires: 🐳 docker or ☸️ kubernetes

Versions

0.9.0 - Coming soon...
0.8.8 (Beta) - dev branch 👈🏽 API - Coming soon...
0.8.7 (Stable) - API

Deprecated:

PySyft and Syft Server 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

PySyft (Beta): pip install -U syft --pre

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 datasites 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 datasite. PySyft opens the doors to a streamlined Data Scientist workflow, all with the individual's privacy at its heart.

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.

🏰 Datasite 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 (Datasites) and their subscribers (Data Scientists) and can provide access to a collection of datasites 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

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.7.tar.gz (614.6 kB view details)

Uploaded Source

Built Distribution

syft-0.8.7-py2.py3-none-any.whl (709.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file syft-0.8.7.tar.gz.

File metadata

  • Download URL: syft-0.8.7.tar.gz
  • Upload date:
  • Size: 614.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for syft-0.8.7.tar.gz
Algorithm Hash digest
SHA256 4e6f8b4b7ecc19f70a75b102f0e99dd7945ebfc6ea0921e1c07672370e029c29
MD5 888253d5e0f8489678716f359b249340
BLAKE2b-256 028d530be74431f90d09833cc5450a7afd65654db83add8585ea0db88f3b4b4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: syft-0.8.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 709.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for syft-0.8.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c919f50c0169be511af7931e6e2c3c98d305702a23088e119925ed4e8b9c1978
MD5 ec358e64da30e224e0c524a16228c653
BLAKE2b-256 493388d65da28e69af06760be930eba40fb7c3b69728577e27c2930effdc321c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page