Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

SQLAlchemy-CloudSQLite

Reuse your SQLite database in serverless applications and reduce prototyping costs.

With this package, you can synchronize your local SQLite database across multiple instances. Different storage vendors can be used and easily added. Commits result in a direct upload of your database. To reduce API calls when reading a database, a cache_duration can be configured.

Info:

Multiple write accesses in parallel can lead to data loss. Ideal for read-only applications. Because the database is transferred as a whole file, large databases can cause latency problems.

Available Integrations

  • AWS S3

Example

Install

pip install sqlalchemy_cloudsqlite

Usage

import sqlalchemy_cloudsqlite
SQLALCHEMY_DATABASE_URI = "cloudsqlite:///quickstart.sqlite"
...
engine = create_engine(SQLALCHEMY_DATABASE_URI)

Configuration

import json
os.environ['config'] = json.dumps(
    {
        'cache_duration': 60,
        'storage': {
            'S3': {'bucket_name': '<BUCKET_NAME>'}
        }
    }
)

and provide your credentials for S3 access via environment variables or a policy.

About

This project is based on the following research:

Metadata

Release files for sqlalchemy-cloudsqlite 0.1.0.dev0

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

Source distribution (sdist)

Source distribution for sqlalchemy-cloudsqlite 0.1.0.dev0
File Size Uploaded
sqlalchemy_cloudsqlite-0.1.0.dev0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sqlalchemy-cloudsqlite 0.1.0.dev0
File Interpreter ABI Platform
sqlalchemy_cloudsqlite-0.1.0.dev0-py2-none-any.whl Python 2 none any Details

Total release size: 10.0 kB

Release files / sqlalchemy_cloudsqlite-0.1.0.dev0.tar.gz

Download URL sqlalchemy_cloudsqlite-0.1.0.dev0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b5752a3a2364a7707f7fdcd20d69e41d6d3581fe346e2a8c7c0a58f2fa550c66
BLAKE2b-256 checksum
How to use checksums
4c1e05ca4e9945747adfe578dfe246f594f33645e1ccd628e08cf211deb84ee9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/2.7.17

Release files / sqlalchemy_cloudsqlite-0.1.0.dev0-py2-none-any.whl

Download URL sqlalchemy_cloudsqlite-0.1.0.dev0-py2-none-any.whl
Size 6.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
a9bb4605bf9be4f458647e26e276fc378ddc19578897d07b7ccd42e724deb9ad
BLAKE2b-256 checksum
How to use checksums
b7c19cb807170cb4eca9961786aa665854c28b1cc7e5d020b6e2f903f6455e6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/2.7.17

Release history Release notifications | RSS feed

This release

0.1.0.dev0 This release

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