Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.6.3
Filename, size File type Python version Upload date Hashes
Filename, size emporium-0.6.3.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page