Skip to main content

autosave

Installation

pip install autosave

Example

from autosave import File, AppStorage



# When editing multiple entries,
# use a with statement to only save on exit.

with File('my_file.json') as data:
    data['dessert'] = 'pancakes'
    data['genre'] = 'jazz'


# By indexing entries on their own, the file is saved on each edit.
# This is adviced against if you're editing multiple entries at a time,
# as it is much less performant.

file = File('my_file.json')

file['garbage'] = 'smooth' + file['genre']


# Get access to the right directories for your app,
# by using this wrapper around `appdirs`

app = AppStorage('MyApp')
app.data / 'plugins/baguette.json'

Metadata

Release files for autosave 1.0.0.post1

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

Source distribution (sdist)

Source distribution for autosave 1.0.0.post1
File Size Uploaded
autosave-1.0.0.post1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autosave 1.0.0.post1
File Interpreter ABI Platform
autosave-1.0.0.post1-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / autosave-1.0.0.post1.tar.gz

Download URL autosave-1.0.0.post1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7e407b55724a72c86a03cc9ed0e0b9b38bb24d1c3b36f3d89649ba1a187fbd26
BLAKE2b-256 checksum
How to use checksums
92108fb4a1b3ac47bc5e98fd6454e2a2b37bcfea9751595b8e1dd2370cf7375e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.10 CPython/3.9.7 Linux/5.10.68-1-MANJARO

Release files / autosave-1.0.0.post1-py3-none-any.whl

Download URL autosave-1.0.0.post1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2692aba7b9f34cb1ddcd4cad8282888975f9fb53143a8c6dc90a8cf07bc500f3
BLAKE2b-256 checksum
How to use checksums
905dc8eb7609909364730c3f1c58baeeebbd67063df65d32ae5e0e826fbbb4d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.10 CPython/3.9.7 Linux/5.10.68-1-MANJARO

Release history Release notifications | RSS feed

This release

1.0.0.post1 This release

2 release files

1.0.0

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