Skip to main content

Persisty Data

This is an addition to the persisty framework for handling binary data (File Uploads). The objective is to be compatible with third party services, including ones that use signed URLs for posting / reading (Such as S3).

Concepts

  • DataItems represent the storage of binary data, with methods for reading and writing as well as obtaining meta such as file size, last modified and etag
  • DataStores store data items, with higher level methods for copying efficiently
  • DataStoreFactories handle authorization when creating create data stores, as well as providing methods for generating presigned urls meaning that the server may be bypassed completely in some implementations (such as S3)

Implementations

Chunk

The chunk implementation breaks up an item into chunks smaller than preset size and storing these using regular persisty.

Directory

The Directory Store stores data items as files within a directory on a hosted file system.

S3

The S3 Store stores data items as entries in an S3 bucket. It is unique in the stock implementations in that it also provides an S3 Data Store Factory rather than relying on the Hosted Data Store Factory used by other implementations for providing pre-signed read urls and Upload Forms.

  • Reading Data
  • Writing data
  • Strategy for bypassing server using Signed URLs
  • Example

Example

A variant of the persisty messenger example application demonstrates file upload.

Installing local development dependencies

python setup.py install easy_install "persisty-data[dev]"

Release Procedure

status

The typical process here is:

  • Create a PR with changes. Merge these to main (The Quality workflows make sure that your PR meets the styling, linting, and code coverage standards).
  • New releases created in github are automatically uploaded to pypi

Metadata

Release files for persisty-data 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for persisty-data 0.0.3
File Size Uploaded
persisty-data-0.0.3.tar.gz 28.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for persisty-data 0.0.3
File Interpreter ABI Platform
persisty_data-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 70.9 kB

Release files / persisty-data-0.0.3.tar.gz

Download URL persisty-data-0.0.3.tar.gz
Size 28.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a671e5210a7d7fc18bd8ac7a8cd0323c89e1ed83b91062b28efe1f947df916b2
BLAKE2b-256 checksum
How to use checksums
52e90c487764dc63a9a6a1f42d448af861303c7bda636024812d63d9a3bb2a6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / persisty_data-0.0.3-py3-none-any.whl

Download URL persisty_data-0.0.3-py3-none-any.whl
Size 42.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
585ae27cbe0deb9c06b0f3a55f0b633686c00c1442a7be6f3e16d2dfc0fa5742
BLAKE2b-256 checksum
How to use checksums
80f183d68cb1b4bc01895767d92d33f549dba54eadbae6a07418a0d6db0c0b6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page