Skip to main content

SQLite for Serverless Computing

Project description

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:

Project details


Download files

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

Source Distribution

sqlalchemy_cloudsqlite-0.1.0.dev0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlalchemy_cloudsqlite-0.1.0.dev0-py2-none-any.whl (6.0 kB view details)

Uploaded Python 2

File details

Details for the file sqlalchemy_cloudsqlite-0.1.0.dev0.tar.gz.

File metadata

  • Download URL: sqlalchemy_cloudsqlite-0.1.0.dev0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for sqlalchemy_cloudsqlite-0.1.0.dev0.tar.gz
Algorithm Hash digest
SHA256 b5752a3a2364a7707f7fdcd20d69e41d6d3581fe346e2a8c7c0a58f2fa550c66
MD5 7ddb5291fe8651af71c4dc6dbf03c317
BLAKE2b-256 4c1e05ca4e9945747adfe578dfe246f594f33645e1ccd628e08cf211deb84ee9

See more details on using hashes here.

File details

Details for the file sqlalchemy_cloudsqlite-0.1.0.dev0-py2-none-any.whl.

File metadata

  • Download URL: sqlalchemy_cloudsqlite-0.1.0.dev0-py2-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 2
  • Uploaded using 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

File hashes

Hashes for sqlalchemy_cloudsqlite-0.1.0.dev0-py2-none-any.whl
Algorithm Hash digest
SHA256 a9bb4605bf9be4f458647e26e276fc378ddc19578897d07b7ccd42e724deb9ad
MD5 545e40e6c5d8b16a024ce4f45b332e39
BLAKE2b-256 b7c19cb807170cb4eca9961786aa665854c28b1cc7e5d020b6e2f903f6455e6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page