Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

No project description provided

Project description


Emporium provides an abstraction over file stores. It currently supports storing files on local disk, in memory, or on S3. Most stores are implemented as a simple wrapper around the smart-open package.


The following code snippet creates a store, writes some text to a file in the store, and then reads and prints the file twice. The file hello.txt will have been created under folder data/job, relative to the current working directory.

from emporium import create_store

config = {
    "type": "local",
    "base_path": "data"

store = create_store(config)

with store.write("job/hello.txt") as handle:

with"job/hello.txt") as handle:

substore = store.substore("job/")

with"hello.txt") as handle:

To write the file to a key in S3, change the config definition to the following:

config = {
     "type": "s3",
     "bucket": "my-data-bucket",
     "prefix": "data"

Project details

Download files

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

Files for emporium, version 0.10.0
Filename, size File type Python version Upload date Hashes
Filename, size emporium-0.10.0.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page