Skip to main content

Share files with explicit mock vs private control

Project description

🔐 Syft Objects

Share files with explicit mock vs private control

PyPI version

Quick Start

import syft_objects as syo

# Create an object with demo and real content
obj = syobj(
    name="AI Results",
    mock_contents="Model achieved good performance",
    private_contents="Accuracy: 94.5%, Cost: $127"
)

# Browse all your objects interactively
syo.objects

# Search for specific objects
syo.objects.search("financial")

What It Does

Mock vs Private Pattern: Every object has two versions:

  • Mock: What everyone sees (demo/sample)
  • Private: What authorized users see (real data)

Example:

obj = syobj(
    name="Customer Data",
    mock_contents="Sample: 100 customers, avg age 42",
    private_contents="Full: 47,293 customers, avg age 41.7, LTV $1,247"
)

Interactive Object Browser

# Browse all objects with search and selection
syo.objects

# Search by name, email, description, or metadata
syo.objects.search("financial")

# Filter by email
syo.objects.filter_by_email("andrew")

# Get specific objects
selected = [syo.objects[i] for i in [0, 1, 5]]

Installation

pip install syft-objects

For SyftBox integration:

pip install syft-objects[syftbox]

Key Features

  • One function: syobj() - simple and clean
  • Explicit control: You decide what goes in mock vs private
  • Beautiful display: Rich HTML widgets in Jupyter
  • Interactive browsing: Search and select objects easily
  • Unique filenames: No collisions when creating objects with same name
  • Real-time updates: New objects appear immediately

License

Apache License 2.0

Project details


Download files

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

Source Distribution

syft_objects-0.3.0.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

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

syft_objects-0.3.0-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file syft_objects-0.3.0.tar.gz.

File metadata

  • Download URL: syft_objects-0.3.0.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.20

File hashes

Hashes for syft_objects-0.3.0.tar.gz
Algorithm Hash digest
SHA256 29c12aea7444253a36c60bedb985680f1ddca80d5e533a4db44662437cde93cf
MD5 2aa1a8427d3471b040c6a1914aaaeaf5
BLAKE2b-256 edb1cc7a95f6481e30c9877260e49a59b2e53258e76386de9b6fd87c7cbe442c

See more details on using hashes here.

File details

Details for the file syft_objects-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for syft_objects-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3d94c38f75f352191984ead8c17e07129daaf67ee1fe5435f454c97c68626fa
MD5 68130f76396355d64d5774437f34c213
BLAKE2b-256 6e374fd238d49c9b80565e7af2c0749a991475cf9544b54e5439542ffe0d0718

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